/* Eden Service Health - brand tokens taken from eden-software.com */
:root {
  --navy: #0e2d45;
  --brand: #205787;
  --brand-mid: #0e5988;
  --accent: #2ea3f2;
  --bg: #f2f2fa;
  --surface: #ffffff;
  --text: #212121;
  --muted: #5b6573;
  --border: #e2e5ec;
  --radius: 4px;

  --ok: #1e7f4f;       --ok-bg: #e7f5ee;
  --warn: #9a5b00;     --warn-bg: #fff4e0;   --warn-dot: #e08e0b;
  --bad: #b42318;      --bad-bg: #fdecea;
  --maint: #205787;    --maint-bg: #e8f1fa;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
a { color: var(--brand); }
a:hover { color: var(--brand-mid); }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }

/* Header - white like the main site */
.site-header { background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.1); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.logo img { height: 40px; width: auto; display: block; }
.logo span { font-weight: 500; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--border); padding-left: 14px; }
.header-link { font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }

/* Hero / overall status band */
.hero { background: linear-gradient(135deg, var(--navy), var(--brand)); color: #fff; padding: 40px 0 72px; }
.hero h1 { margin: 0 0 6px; font-size: 13px; letter-spacing: 4px; text-transform: uppercase; font-weight: 500; opacity: .8; }
.overall { display: flex; align-items: center; gap: 14px; font-size: clamp(22px, 4vw, 30px); font-weight: 700; margin: 0; }
.overall .dot { width: 18px; height: 18px; flex: none; }
.hero .updated { margin-top: 8px; font-size: 14px; opacity: .8; }

main { margin-top: -44px; padding-bottom: 48px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: 0 2px 10px rgba(14,45,69,.08); }
section { margin-bottom: 28px; }
h2 { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--navy); margin: 0 0 12px; font-weight: 700; }

.announcement { padding: 16px 20px; border-left: 4px solid var(--accent); margin-bottom: 28px; white-space: pre-line; }

/* Service rows */
.services { overflow: hidden; }
.service { padding: 20px; border-top: 1px solid var(--border); }
.service:first-child { border-top: 0; }
.service-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.service h3 { margin: 0; font-size: 17px; font-weight: 500; color: var(--navy); }
.service .desc { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: currentColor; }
.s-operational { color: var(--ok); }          .pill.s-operational { background: var(--ok-bg); }
.s-degraded    { color: var(--warn); }        .pill.s-degraded    { background: var(--warn-bg); }
.s-degraded .dot { background: var(--warn-dot); }
.s-outage      { color: var(--bad); }         .pill.s-outage      { background: var(--bad-bg); }
.s-maintenance { color: var(--maint); }       .pill.s-maintenance { background: var(--maint-bg); }
.hero .dot.s-operational { background: #4ade80; }
.hero .dot.s-degraded { background: #fbbf24; }
.hero .dot.s-outage { background: #f87171; }
.hero .dot.s-maintenance { background: var(--accent); }

.advisory { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); font-size: 14px; white-space: pre-line; }
.advisory strong { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px; }
.advisory.s-degraded { background: var(--warn-bg); color: #5c3700; }
.advisory.s-outage { background: var(--bad-bg); color: #7a1a12; }
.advisory.s-maintenance, .advisory.s-operational { background: var(--maint-bg); color: var(--navy); }
.service .meta { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* Maintenance + history lists */
.list { padding: 4px 20px; }
.item { padding: 14px 0; border-top: 1px solid var(--border); }
.item:first-child { border-top: 0; }
.item .when { font-size: 13px; color: var(--muted); }
.item .title { font-weight: 500; color: var(--navy); }
.item .body { font-size: 14px; white-space: pre-line; margin-top: 2px; }
.empty { padding: 16px 20px; color: var(--muted); font-size: 14px; }

.help { padding: 20px; display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.help p { margin: 0; font-size: 14px; color: var(--muted); }

.btn {
  display: inline-block; border: 0; border-radius: var(--radius); background: var(--brand); color: #fff;
  font: 700 13px 'Roboto', Helvetica, Arial, sans-serif; letter-spacing: 3px; text-transform: uppercase;
  padding: 12px 20px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--navy); color: #fff; }
.btn.secondary { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.btn.secondary:hover { background: var(--maint-bg); color: var(--navy); }
.btn:disabled { opacity: .6; cursor: progress; }

.site-footer { background: var(--navy); color: rgba(255,255,255,.75); font-size: 13px; padding: 24px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer a { color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 560px) {
  .logo img { height: 32px; }
  .logo span { display: none; }
  .hero { padding: 28px 0 64px; }
}
