:root {
  font-family: system-ui, sans-serif;
  font-size: 14px;
  color: #192b27;
  background: #fff;
  line-height: 1.5;
  --green: #087b55;
  --muted: #5c6c66;
  --line: #dbe4dd;
  --surface: #f5f8f6;
  --motion: 180ms ease;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
}
a {
  color: var(--green);
  text-underline-offset: 0.2em;
  transition: color var(--motion);
}
a:hover {
  color: #075d40;
}
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.container {
  width: min(960px, 100% - 48px);
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  padding: 10px;
  background: white;
  z-index: 10;
}
.skip-link:focus {
  top: 12px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.site-header {
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding-block: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 750;
  letter-spacing: -0.05em;
  text-decoration: none;
  color: #192b27;
}
.brand span {
  color: var(--green);
  margin-left: -7px;
}
.header-label {
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 18px;
  font-size: 0.86rem;
}
.header-inner nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
}
.header-inner nav a {
  text-decoration: none;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 0 18px;
}
.eyebrow {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  margin: 0 0 5px;
}
h1 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin: 0;
}
h2 {
  font-size: 1.1rem;
  line-height: 1.4;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}
h3 {
  font-size: 1rem;
  line-height: 1.45;
  margin: 0;
}
button,
.button {
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 12px;
  min-height: 34px;
  cursor: pointer;
  color: var(--green);
  background: white;
  transition:
    background var(--motion),
    border-color var(--motion),
    color var(--motion);
}
button:hover:not(:disabled) {
  background: #edf6f0;
  border-color: #a5c6b6;
}
button:active:not(:disabled) {
  background: #dfede4;
}
button:disabled {
  cursor: wait;
  color: var(--muted);
}
#refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-shrink: 0;
  width: 118px;
  color: var(--green);
}
#refresh:hover {
  background: #edf6f0;
  border-color: #a5c6b6;
}
.refresh-icon {
  display: block;
  flex-shrink: 0;
  transform-origin: center;
  animation: spin 1600ms linear infinite;
  animation-play-state: paused;
}
#refresh[data-spinning="true"] .refresh-icon {
  animation-play-state: running;
}
.button {
  display: inline-block;
  background: var(--green);
  border-color: var(--green);
  color: white;
  text-decoration: none;
  text-align: center;
}
.button:hover,
.button:active {
  background: #076746;
  color: white;
}
.status-panel {
  --tone: #66776e;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid #cbd5ce;
  border-radius: 10px;
  background: var(--surface);
  transition:
    border-color 300ms ease,
    background 300ms ease;
}
.status-content {
  min-width: 0;
}
.status-indicator {
  position: relative;
  width: 10px;
  height: 10px;
  margin: 5px 4px 0;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 12%, transparent);
  flex-shrink: 0;
  transition:
    background 300ms ease,
    box-shadow 300ms ease;
}
.status-panel[data-indicator="available"] .status-indicator {
  background: var(--green);
  box-shadow: 0 0 0 4px #087b5514;
}
.status-panel[data-indicator="available"] .status-indicator::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--green);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: status-pulse 3.2s ease-out infinite;
}
.status-panel h2 {
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  margin: 4px 0 6px;
  color: var(--tone);
}
.status-panel p {
  margin: 0;
}
.panel-label {
  font-weight: 600;
  font-size: 0.8rem;
}
#state-description {
  font-size: 0.9rem;
}
.status-panel #checked {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 7px;
}
.status-panel[data-tone="available"] {
  --tone: #087b55;
  border-color: #b4d9c3;
  background: #f0f9f3;
}
.status-panel[data-tone="warning"] {
  --tone: #93510c;
  border-color: #e3cf9e;
  background: #fff9ee;
}
.status-panel[data-tone="problem"] {
  --tone: #a3312b;
  border-color: #edc2bd;
  background: #fff5f3;
}
.status-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.78rem;
}
.muted,
.incident-date {
  color: var(--muted);
  font-size: 0.86rem;
}
.topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.topic-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition:
    color var(--motion),
    background var(--motion);
}
.topic-nav a:hover,
.topic-nav a[aria-current="location"] {
  color: var(--green);
  background: #edf6f0;
}
.nav-count {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 20px;
  height: 19px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}
#feed-info {
  margin: 10px 0 16px;
  font-size: 0.8rem;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.feed-section {
  min-width: 0;
  padding-bottom: 18px;
  scroll-margin-top: 16px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.section-heading h2 {
  margin: 0;
}
.history-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.history-filters button {
  min-height: 28px;
  border-color: transparent;
  padding: 4px 9px;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font-size: 0.78rem;
}
.history-filters button[aria-pressed="true"] {
  color: var(--green);
  background: white;
  border-color: var(--line);
  box-shadow: 0 1px 2px #192b2708;
}
.empty-message {
  border: 1px dashed #cbd5ce;
  padding: 13px 14px;
  margin: 0;
  border-radius: 8px;
  color: var(--muted);
  background: #fafcfb;
  font-size: 0.86rem;
  animation: appear 220ms ease both;
}
.incident {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px 16px;
  margin: 0 0 10px;
  overflow-wrap: anywhere;
  animation: appear 220ms ease both;
}
.incident:last-child {
  margin-bottom: 0;
}
.incident-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.incident .muted {
  margin: 6px 0;
}
.incident-date {
  margin: 0 0 10px;
  font-size: 0.78rem;
}
.badge {
  display: inline-block;
  padding: 2px 7px;
  background: #f0f4f1;
  font-size: 0.75rem;
  border-radius: 5px;
}
.incident[data-tone="available"] .badge {
  color: #076746;
  background: #edf7f1;
}
.incident[data-tone="warning"] .badge {
  color: #89500d;
  background: #fff4dd;
}
.incident[data-tone="problem"] .badge {
  color: #9d2e29;
  background: #ffede9;
}
.incident-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0 0 10px;
  font-size: 0.9rem;
  white-space: pre-wrap;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 4px;
}
.timeline li {
  position: relative;
  border-left: 1px solid var(--line);
  padding: 0 0 14px 14px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 5px;
  width: 5px;
  height: 5px;
  background: #9baea3;
  border-radius: 50%;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline time {
  color: var(--muted);
  font-size: 0.78rem;
}
.timeline strong {
  display: block;
  font-size: 0.86rem;
  margin-top: 2px;
}
.timeline p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  white-space: pre-wrap;
}
.incident details {
  margin-top: 10px;
}
summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  list-style: none;
  cursor: pointer;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 600;
}
summary::-webkit-details-marker {
  display: none;
}
summary::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform var(--motion);
  flex-shrink: 0;
}
details[open] > summary::before {
  transform: rotate(45deg);
}
details[open] > .timeline,
details[open] > .details-content {
  animation: appear 180ms ease both;
}
.monitoring-note {
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.86rem;
}
.details-content {
  padding-left: 14px;
  color: var(--muted);
}
.details-content p {
  margin: 8px 0;
}
.details-content p:last-child {
  margin-bottom: 2px;
}
.support-box {
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}
.support-box h2 {
  margin: 0 0 5px;
  font-size: 1rem;
}
.support-box > div {
  flex: 1;
  min-width: 0;
}
.support-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.support-box .button {
  flex-shrink: 0;
}
footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.notice {
  border-left: 3px solid var(--green);
  padding: 12px;
  background: var(--surface);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes status-pulse {
  0% {
    opacity: 0;
    transform: scale(0.65);
  }
  25% {
    opacity: 0.45;
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 960px) {
  .header-label {
    display: none;
  }
}
@media (max-width: 680px) {
  .container {
    width: calc(100% - 32px);
  }
  .header-inner {
    gap: 12px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .page-heading {
    padding-top: 22px;
  }
  .support-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .support-box > div {
    width: 100%;
  }
}
@media (max-width: 380px) {
  .header-inner nav {
    gap: 12px;
    font-size: 0.86rem;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .topic-nav a {
    padding-inline: 7px;
    gap: 5px;
  }
}
@media (pointer: coarse) {
  button,
  .button,
  .history-filters button,
  .topic-nav a,
  summary {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
