/* Qandeel status: same clay-warm language as the site. No inline styles (CSP). */
:root {
  --paper: #fbf7f0; --cream: #fff9ef; --ink: #1b1645; --ink-2: #3a3463; --muted: #655e82; --line: #e9dfcf;
  --sand-2: #f7e6d1; --sand-3: #fbefe0; --clay: #c8683a; --palm: #2f7a4e; --amber-300: #ffc85a; --amber-200: #ffe6a8; --amber-edge: #d9850f; --on-amber: #2a1a05;
  --display: "Kufam", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --en: "Parkinsans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber-300); outline-offset: 3px; border-radius: 12px; }
[lang="en"] { font-family: var(--en); }
main { flex: 1; width: 100%; max-width: 1100px; margin-inline: auto; padding: 0 clamp(10px, 3vw, 24px) 32px; }

.top { display: flex; align-items: center; max-width: 1100px; width: 100%; margin-inline: auto; padding: 14px clamp(16px, 4vw, 34px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand img { height: 32px; width: auto; }
.brand__tag { padding: 3px 12px; border-radius: 999px; background: var(--amber-200); color: var(--on-amber); font-size: 14px; font-weight: 600; display: inline-flex; gap: 6px; }
.brand__tag span + span::before { content: "·"; margin-inline-end: 6px; }

.hero {
  position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  min-height: clamp(260px, 42svh, 400px); padding: clamp(24px, 4vw, 52px) clamp(22px, 5vw, 64px) 0; border-radius: 30px;
  background: radial-gradient(60% 90% at 15% 70%, rgba(255, 214, 120, .8), rgba(255, 214, 120, 0) 70%), linear-gradient(180deg, var(--sand-3), var(--sand-2));
}
.is-slow .hero { background: radial-gradient(60% 90% at 15% 70%, rgba(255, 214, 120, .55), rgba(255, 214, 120, 0) 70%), linear-gradient(180deg, #fdf0dd, #f6e2c6); }
.is-down .hero { background: linear-gradient(180deg, #fbeadb, #f4d9c2); }
.hero__text { align-self: center; padding-bottom: clamp(24px, 4vw, 52px); min-width: 0; }
h1 { margin: 0; font: 600 clamp(36px, 6vw, 76px)/1.15 var(--display); text-wrap: balance; }
.hero__en { margin: 8px 0 0; font-size: clamp(18px, 2.2vw, 28px); color: var(--ink-2); }
.hero__shu { height: clamp(190px, 34svh, 360px); width: auto; flex: none; transform-origin: 50% 100%; animation: bob 4.4s ease-in-out infinite; }
.is-up .hero__shu { animation-name: hop; animation-duration: 2.6s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-6px) rotate(1deg); } }
@keyframes hop { 0%, 100% { transform: translateY(0) scale(1, 1); } 40% { transform: translateY(-14px) scale(.98, 1.03); } 55% { transform: translateY(0) scale(1.03, .97); } }

.svcs { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(10px, 1.6vw, 18px); }
.svc {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "ic name ms" "ic state ms"; align-items: center; gap: 0 16px;
  padding: 18px 22px; border-radius: 26px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 3px 0 var(--line), 0 16px 26px -22px rgba(60, 30, 0, .45);
}
.svc__ic { grid-area: ic; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #e1f0de; color: var(--palm); }
.svc__ic svg { width: 28px; height: 28px; }
.svc.is-slow .svc__ic { background: #ffe6a8; color: #8a5200; }
.svc.is-down .svc__ic { background: #fbdcc8; color: #9a4a1a; }
.svc__name { grid-area: name; align-self: end; font: 600 20px/1.3 var(--display); display: flex; flex-wrap: wrap; gap: 0 10px; align-items: baseline; }
.svc__name [lang="en"] { font: 400 14px/1.3 var(--en); color: var(--muted); }
.svc__state { grid-area: state; align-self: start; color: var(--ink-2); font-size: 15.5px; }
.svc__state b { font-weight: 600; }
.svc__state b[lang="en"] { font-weight: 400; font-family: var(--en); }
.svc.is-slow .svc__state { color: #8a5200; }
.svc.is-down .svc__state { color: #9a4a1a; }
.svc__ms { grid-area: ms; color: var(--muted); font: 500 14px/1 var(--en); white-space: nowrap; }

.checked { margin: 22px 4px 0; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.checked span + span { font-family: var(--en); }
.checked time { font-family: var(--en); font-weight: 400; color: var(--ink-2); }

.foot { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: center; padding: 18px; border-top: 1px solid var(--line); background: var(--cream); color: var(--muted); font-size: 15px; }
.foot a { display: inline-flex; gap: 6px; min-height: 44px; align-items: center; text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot a span + span::before { content: "·"; margin-inline-end: 6px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-inline: 20px; min-height: 0; }
  .hero__shu { height: 170px; }
  h1 { font-size: 34px; }
  .svc { padding: 14px 16px; gap: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }
