:root {
  color-scheme: light;
  --ink: #17162b;
  --muted: #545769;
  --line: #dedfe7;
  --teal-dark: #075b51;
  --paper: #fff;
  --surface: #f7f8fb;
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --heading: "League Spartan", var(--font);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { color: var(--ink); background: var(--surface); font: 1rem/1.5 var(--font); }
p, h1, h2, h3 { margin: 0; }
a { color: inherit; }
a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #236ea6;
  outline-offset: 3px;
}
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 1;
  top: 0.75rem;
  left: 1rem;
  padding: 0.65rem 1rem;
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-180%);
}
.skip:focus { transform: none; }
.hero {
  background: linear-gradient(116deg, #a4d9d8 0%, #75c4c6 56%, #55b4a2 100%);
}
.hero-inner { padding-block: clamp(2.5rem, 6vw, 4.7rem); }
.phase {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid #29766e;
  border-radius: 2rem;
  background: #e4f4ef;
  color: #174e44;
  font-size: 0.83rem;
  font-weight: 700;
}
.phase span[aria-hidden] { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #91611c; }
.phase[data-mode="available"] span[aria-hidden] { background: #21755c; }
h1, h2 { font-family: var(--heading); font-weight: 700; }
h1 { margin-top: 0.85rem; font-size: clamp(2.25rem, 6.2vw, 4.2rem); line-height: 1.06; letter-spacing: -0.045em; }
.hero-description { max-width: 41rem; margin-top: 1rem; color: #203639; font-size: clamp(1.02rem, 2vw, 1.14rem); }
.directory { padding-block: clamp(2rem, 5vw, 3.4rem); }
.directory-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}
.directory-heading h2 { font-size: clamp(1.65rem, 3.9vw, 2.45rem); letter-spacing: -0.04em; line-height: 1.2; }
.directory-heading p { color: var(--muted); font-size: 0.92rem; }
.directory-heading div p { margin-top: 0.45rem; }
.result-count { font-weight: 650; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 270px); gap: 1rem; margin-top: 1.35rem; }
.filters label { display: grid; min-width: 0; gap: 0.35rem; font-size: 0.87rem; font-weight: 650; }
.filters input, .filters select {
  min-width: 0;
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  border: 1px solid #aeb1be;
  border-radius: 0.45rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.filters input::placeholder { color: var(--muted); }
.results { display: grid; gap: 1.05rem; margin-top: 1.4rem; }
.category {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--paper);
}
.category h3 {
  padding: 0.7rem 1rem;
  background: #eceef5;
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.018em;
}
.category ul { margin: 0; padding: 0; list-style: none; }
.solution {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(6rem, 10rem) minmax(7.5rem, 10rem) minmax(7rem, auto);
  align-items: center;
  gap: 0.35rem 1rem;
  min-height: 3.65rem;
  padding: 0.7rem 1rem;
  overflow-wrap: anywhere;
}
.solution + .solution { border-top: 1px solid var(--line); }
.solution-name { font-weight: 680; }
.scope, .detail { color: var(--muted); font-size: 0.87rem; }
.detail { display: block; margin-top: 0.1rem; font-weight: 400; }
.source-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
  color: var(--teal-dark);
  font-size: 0.87rem;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2rem;
}
.source-link:hover, .footer-inner a:hover { color: #0e796a; text-decoration-thickness: 2px; }
.empty { margin-top: 1.4rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 0.7rem; background: var(--paper); }
.status-meta { justify-self: start; display: grid; gap: 0.1rem; }
.status-badge, .event-state {
  display: inline-flex;
  justify-self: start;
  border-radius: 0.4rem;
  padding: 0.23rem 0.5rem;
  color: #464957;
  background: #eceef3;
  font-size: 0.78rem;
  font-weight: 720;
}
.status-badge[data-state="operational"] { background: #dff3ea; color: #195743; }
.status-badge[data-state="degraded"], .status-badge[data-state="stale"] { background: #fff0cc; color: #70480e; }
.status-badge[data-state="partial_outage"], .status-badge[data-state="major_outage"],
.event-state[data-state="incident"] { background: #fbe4e6; color: #8c2c39; }
.status-badge[data-state="maintenance"], .event-state { background: #e4edf9; color: #244773; }
.status-date { color: var(--muted); font-size: 0.74rem; }
.events { margin-top: 1.65rem; border: 1px solid var(--line); border-radius: 0.7rem; background: var(--paper); }
.events summary { cursor: pointer; padding: 0.9rem 1rem; color: var(--ink); font-weight: 720; }
.events summary::marker { color: var(--teal-dark); }
.events summary:focus-visible { outline: 3px solid #236ea6; outline-offset: 3px; border-radius: 0.7rem; }
.events summary span + span { margin-inline-start: 0.5rem; color: var(--muted); font-size: 0.87rem; font-weight: 500; }
.events ul { margin: 0; padding: 0 0.9rem 0.9rem; list-style: none; display: grid; gap: 0.6rem; }
.event { display: grid; justify-items: start; gap: 0.25rem; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 0.7rem; background: var(--paper); }
.event a { font-weight: 700; color: var(--teal-dark); text-underline-offset: 0.2rem; }
.event p { color: var(--muted); font-size: 0.87rem; }
.site-footer { border-top: 1px solid var(--line); background: #eeeff5; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; padding-block: 1.25rem; font-size: 0.9rem; }
.footer-inner a { color: var(--teal-dark); font-weight: 700; text-underline-offset: 0.2rem; }
@media (max-width: 650px) {
  .shell { width: calc(100% - 32px); }
  .filters { grid-template-columns: 1fr; gap: 0.65rem; }
  .solution { grid-template-columns: 1fr; gap: 0.12rem; }
  .source-link { justify-self: start; }
}
