:root {
  color-scheme: light;
  --page: #f7f8f6;
  --paper: #fdfefd;
  --ink: #162521;
  --muted: #52645d;
  --line: #d9e1da;
  --green: #196046;
  --green-bar: #4b9374;
  --green-bg: #eaf3ec;
  --amber: #834812;
  --amber-bar: #bd773c;
  --amber-bg: #f8efe1;
  --red: #a03535;
  --red-bar: #b74d4d;
  --red-bg: #f9eaea;
  --neutral-bar: #dbe3dc;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); }
h1, h2, p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 48px, 920px); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 1; padding: 8px 12px; background: var(--paper); transform: translateY(-170%); }
.skip:focus { transform: none; }
.top { border-bottom: 1px solid var(--line); }
.masthead { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.identity { display: flex; align-items: center; gap: 12px; }
.wordmark { display: inline-grid; place-items: center; width: 39px; height: 30px; background: var(--ink); color: var(--page); border-radius: 4px; font-size: .875rem; line-height: 1; font-weight: 800; letter-spacing: -.035em; }
.identity-title { font-size: .9375rem; font-weight: 650; }
.masthead a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: var(--muted); font-size: .875rem; white-space: nowrap; text-decoration: none; }
.masthead a:hover, .footer a:hover { text-decoration: underline; color: var(--ink); }
.intro { margin: 62px 0 30px; }
h1 { font-size: 3rem; line-height: 1.1; letter-spacing: -.055em; font-weight: 760; }
.intro p { margin-top: 13px; color: var(--muted); max-width: 57ch; }
.summary { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 16px 19px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--muted); }
.summary[data-state="operational"] { background: var(--green-bg); color: var(--green); border-color: #cbded0; }
.summary[data-state="degraded"] { background: var(--amber-bg); color: var(--amber); border-color: #e7d7bf; }
.summary[data-state="outage"] { background: var(--red-bg); color: var(--red); border-color: #ebcbcb; }
.summary-state { display: flex; align-items: center; gap: 10px; font-weight: 660; }
.state-icon { flex: 0 0 21px; display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid currentColor; border-radius: 50%; font-size: .75rem; line-height: 1; }
.checked { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.availability { margin-top: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.section-head h2 { font-size: 1.1875rem; font-weight: 690; letter-spacing: -.02em; }
.section-head > span { color: var(--muted); font-size: .875rem; }
.placeholder { padding: 23px 20px; color: var(--muted); }
.service { border-bottom: 1px solid var(--line); }
.service summary { list-style: none; cursor: pointer; padding: 14px 20px 13px; }
.service summary::-webkit-details-marker { display: none; }
.service summary:hover { background: #f5f8f5; }
.service-line { display: grid; align-items: center; grid-template-columns: minmax(190px, .9fr) minmax(0, 1.35fr); gap: 22px; }
.service-label { display: flex; align-items: center; gap: 9px; }
.service-label strong { font-weight: 650; letter-spacing: -.015em; }
.disclosure { flex: none; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); rotate: -45deg; margin-right: 3px; }
.service[open] .disclosure { rotate: 45deg; }
.current { margin-left: auto; font-size: .875rem; font-weight: 540; color: var(--muted); white-space: nowrap; }
.current[data-state="operational"] { color: var(--green); }
.current[data-state="degraded"] { color: var(--amber); }
.current[data-state="outage"] { color: var(--red); }
.history { min-width: 0; }
.segments { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; }
.segment { height: 15px; border-radius: 2px; background: var(--neutral-bar); }
.segment[data-state="operational"], .swatch[data-state="operational"] { background: var(--green-bar); }
.segment[data-state="degraded"], .swatch[data-state="degraded"] { background: var(--amber-bar); }
.segment[data-state="outage"], .swatch[data-state="outage"] { background: var(--red-bar); }
.range { display: flex; justify-content: space-between; margin-top: 4px; font-size: .75rem; line-height: 1.3; color: var(--muted); font-variant-numeric: tabular-nums; }
.service-detail { margin: 0 20px; padding: 12px 0 16px; border-top: 1px solid var(--line); font-size: .875rem; }
.detail-copy { color: var(--muted); }
.history-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-variant-numeric: tabular-nums; }
.history-table th, .history-table td { padding: 5px 0; border-bottom: 1px solid var(--line); text-align: left; }
.history-table th:last-child, .history-table td:last-child { text-align: right; }
.history-table th { color: var(--muted); font-weight: 550; }
.history-table tbody tr:last-child > * { border: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 20px; color: var(--muted); font-size: .8125rem; }
.legend span { display: inline-flex; gap: 5px; align-items: center; }
.swatch { width: 9px; height: 9px; border-radius: 2px; background: var(--neutral-bar); }
.explanation { margin-top: 14px; color: var(--muted); font-size: .875rem; max-width: 66ch; }
.footer { margin-top: 44px; padding-block: 14px 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0 16px; justify-content: space-between; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }

@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  .masthead { min-height: 59px; }
  .identity { gap: 8px; }
  .identity-title { font-size: .875rem; }
  .intro { margin: 39px 0 24px; }
  h1 { font-size: 2.375rem; max-width: 13ch; }
  .intro p { margin-top: 10px; font-size: .9375rem; }
  .summary { align-items: flex-start; flex-direction: column; padding: 12px 14px; gap: 4px; }
  .checked { margin-left: 31px; }
  .availability { margin-top: 20px; }
  .section-head, .service summary { padding-inline: 14px; }
  .service-line { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .service-label { min-height: 25px; }
  .legend { padding-inline: 14px; column-gap: 12px; }
  .service-detail { margin-inline: 14px; }
  .footer { margin-top: 30px; }
}
