/* Status page. Site cards borrow the dark ops-board look from the home hero. */
.st-section { padding-top: clamp(2.5rem, 5vw, 4rem); }
.st-app { display: grid; gap: 1.4rem; }

/* overall banner */
.st-banner { display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.4rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); transition: background .4s, border-color .4s; }
.st-banner b { font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.4rem); display: block; letter-spacing: -.02em; }
.st-banner .st-meta { display: block; color: var(--ink-3); font-family: var(--mono); font-size: .76rem; margin-top: .15rem; }
.st-banner.unavailable .st-meta { font-family: var(--body); font-size: .92rem; color: var(--ink-2); }
.st-banner.ok { background: var(--green-soft); border-color: color-mix(in srgb, var(--live) 45%, var(--line)); }
.st-banner.degraded { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 45%, var(--line)); }
.st-banner.down { background: color-mix(in srgb, #C8402F 12%, var(--paper-2)); border-color: color-mix(in srgb, #C8402F 45%, var(--line)); }
.st-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--live); box-shadow: 0 0 0 4px color-mix(in srgb, var(--live) 22%, transparent); }
.js .st-banner.ok .st-dot { animation: pulse 2.4s ease-out infinite; }
.st-banner.degraded .st-dot { background: var(--amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 22%, transparent); }
.st-banner.down .st-dot { background: #C8402F; box-shadow: 0 0 0 4px rgba(200,64,47,.22); }
.st-banner.loading .st-dot, .st-banner.unavailable .st-dot { background: var(--ink-3); box-shadow: none; }
.js .st-banner.loading .st-dot { animation: st-breathe 1.2s ease-in-out infinite; }
@keyframes st-breathe { 50% { opacity: .35; } }

/* one card per monitored site */
.st-sites { display: grid; gap: 1.2rem; }
.st-site { background: var(--dark); color: var(--dark-ink); border-radius: 14px; border: 1px solid var(--dark-line); font-family: var(--mono); font-size: .8rem; overflow: hidden; box-shadow: 0 40px 80px -48px rgba(23,28,33,.6), 0 0 0 1px rgba(255,255,255,.04) inset; }
.js .st-app.in .st-site { animation: st-in .6s var(--ease) both; }
@keyframes st-in { from { opacity: 0; transform: translateY(12px); } }
.st-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .95rem 1.2rem; border-bottom: 1px solid var(--dark-line); }
.st-head b { font-size: 1rem; font-weight: 500; color: var(--dark-ink); }
.st-head small { color: var(--dark-ink2); text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; margin-inline-start: .7rem; }
.st-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .32rem .75rem; border-radius: 999px; border: 1px solid var(--dark-line); color: var(--dark-ink2); white-space: nowrap; background: var(--dark-2); }
.st-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--dark-ink2); }
.st-pill.up { color: var(--live); } .st-pill.up i { background: var(--live); }
.js .st-pill.up i { animation: pulse 2.4s ease-out infinite; }
.st-pill.degraded { color: var(--amber); } .st-pill.degraded i { background: var(--amber); }
.st-pill.down { color: #FF8A78; } .st-pill.down i { background: #FF8A78; }
.st-body { padding: 1.1rem 1.2rem 1.2rem; display: grid; gap: 1.1rem; }

/* 90-day strip: one bar per day, oldest first (mirrors in RTL via flex) */
.st-strip-h { display: flex; justify-content: space-between; color: var(--dark-ink2); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem; }
.st-strip { display: flex; gap: 2px; height: 36px; }
.st-strip i { flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--dark-line); transform-origin: bottom; cursor: default; transition: filter .2s; }
.st-strip i.ok { background: var(--live); }
.st-strip i.slow { background: var(--amber); }
.st-strip i.down { background: #E0523F; }
.st-strip i:hover { filter: brightness(1.3); }
.js .st-app.in .st-strip i { animation: st-grow .55s var(--ease) both; animation-delay: calc(var(--i) * 7ms + .15s); }
@keyframes st-grow { from { transform: scaleY(0); } }
.st-strip-f { display: flex; justify-content: space-between; color: var(--dark-ink2); font-size: .64rem; margin-top: .45rem; }

/* numbers */
.st-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1px; background: var(--dark-line); border: 1px solid var(--dark-line); border-radius: 10px; overflow: hidden; }
.st-stat { background: var(--dark-2); padding: .85rem .95rem; min-width: 0; }
.st-stat .k { color: var(--dark-ink2); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: .4rem; line-height: 1.35; }
.st-stat .v { font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: var(--dark-ink); letter-spacing: -.02em; line-height: 1.1; display: block; overflow-wrap: anywhere; }
.st-stat .v small { font-family: var(--mono); font-size: .68rem; font-weight: 400; color: var(--dark-ink2); margin-inline-start: .3rem; }
.st-stat .v.ok { color: var(--live); }
.st-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.2rem; color: var(--dark-ink2); font-size: .66rem; }
.st-legend { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.st-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-inline-end: .4rem; vertical-align: -1px; background: var(--dark-line); }
.st-legend i.ok { background: var(--live); } .st-legend i.slow { background: var(--amber); } .st-legend i.down { background: #E0523F; }

/* incidents */
.st-inc-list { border-bottom: 1px solid var(--line); }
.st-inc { display: grid; grid-template-columns: 9rem 1fr; gap: .3rem 1.4rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.st-inc time { font-family: var(--mono); font-size: .76rem; color: var(--ink-3); padding-top: .2rem; }
.st-inc b { font-family: var(--display); font-weight: 600; }
.st-inc p { margin: .35rem 0 0; color: var(--ink-2); font-size: .95rem; max-width: 40rem; }
.st-tag { font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green); background: var(--green-soft); padding: .15rem .5rem; border-radius: 4px; margin-inline-start: .5rem; vertical-align: 2px; }
.st-tag.ongoing { color: var(--amber); background: var(--amber-soft); }
@media (max-width: 34rem) { .st-inc { grid-template-columns: 1fr; gap: .2rem; } }

/* recent updates panel */
.st-recent-h { font-size: 1.3rem; margin-bottom: 1rem; }
.st-recent { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.st-recent li { display: grid; grid-template-columns: auto auto; gap: .35rem .7rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--line); justify-content: start; }
.st-recent li:last-child { border-bottom: 1px solid var(--line); }
.st-recent time { font-family: var(--mono); font-size: .74rem; color: var(--ink-3); }
.st-recent p { grid-column: 1 / -1; margin: 0; color: var(--ink-2); font-size: .95rem; }

/* cta with two buttons */
.st-cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: end; }
.cta-band .st-cta-line { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.cta-band .st-cta-line:hover { border-color: #fff; color: #fff; }
@media (max-width: 48rem) { .st-cta-actions { justify-content: start; } }

@media (prefers-reduced-motion: reduce) { .js .st-app.in .st-strip i, .js .st-app.in .st-site { animation: none; } }
