.ns-page {
  --ns-operational: #508f7e;
  --ns-maintenance: #4c78a4;
  --ns-degraded: #ad711e;
  --ns-outage: #b44946;
  font-variant-numeric: tabular-nums;
}
.ns-hero {
  background: linear-gradient(90deg, var(--az-sky) 15%, #accee3bb), url("hosting-pattern.svg") right top / 360px 200px, var(--az-sky);
  border-bottom: 1px solid #97b9ce;
}
.ns-hero-frame { padding-block: 1.15rem 1.85rem; }
.ns-crumbs { display: flex; align-items: center; gap: .65rem; color: var(--az-charcoal); font-size: .875rem; }
.ns-hero-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-block: 1.55rem 1.4rem;
}
.ns-hero h1 {
  margin: 0;
  font-size: clamp(2.55rem, 5.2vw, 3.65rem);
  line-height: 1;
  letter-spacing: -.03em;
}
.ns-hero-head p { margin: .48rem 0 0; max-width: 61ch; color: var(--az-charcoal); }
.ns-report {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 45px;
  padding: .55rem .9rem;
  background: #fff;
  color: var(--az-link);
  border: 1px solid #7da6bd;
  border-radius: .4rem;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
.ns-report:hover { background: var(--az-wash); text-decoration: underline; }

.ns-overview {
  display: grid;
  gap: .85rem;
  padding: 1rem 1.25rem;
  background: var(--az-deep);
  color: #fff;
  border-radius: .75rem;
}
.ns-current { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.ns-current-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: #fae9d2;
  color: #70451b;
}
.ns-current-icon.is-operational { background: #d9eee5; color: #21604e; }
.ns-current-icon .az-icon { width: 1.35rem; height: 1.35rem; stroke-width: 2; }
.ns-current h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.ns-current p { margin: .2rem 0 0; color: #d8e9f2; font-size: .85rem; }
.ns-recap-updated { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .32em; }
.ns-overview-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr));
  gap: .75rem 1rem;
  margin: 0;
  padding-block-start: .8rem;
  border-top: 1px solid #52758c;
}
.ns-overview-facts dt { color: #e2edf4; font-size: .84rem; font-weight: 650; line-height: 1.3; }
.ns-overview-facts dd {
  margin: .2rem 0 0;
  font: 700 2.1rem/1 var(--az-display);
  letter-spacing: -.02em;
}
.ns-fact-unit { color: #c9dfea; font-size: .65em; }
.ns-overview-facts .ns-sla { color: var(--az-accent); }
.ns-overview-facts .ns-fact-note { color: #d8e9f2; font: 500 .74rem/1.35 var(--az-body); letter-spacing: normal; }

.ns-content { padding-block: 1.6rem clamp(2.5rem, 6vw, 4.75rem); }
.ns-regional { margin-block: 2.45rem 2.9rem; }
.ns-regional:focus { outline: none; }
.ns-section-heading { margin-block-end: 1rem; }
.ns-section-heading h2 {
  margin: 0;
  color: var(--az-deep);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  letter-spacing: -.02em;
}
.ns-section-heading p { margin: .33rem 0 0; color: var(--az-muted); font-size: .95rem; }
.ns-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem 1.25rem;
  margin-block-end: .75rem;
}
.ns-filters { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; }
.ns-filters a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .42rem .7rem;
  border-radius: .38rem;
  color: var(--az-link);
  font-size: .85rem;
  font-weight: 650;
  text-decoration: none;
}
.ns-filters a:hover { background: var(--az-wash); text-decoration: underline; }
.ns-filters a[aria-current] { background: var(--az-action); color: #fff; }
.ns-locations a[aria-current] { color: var(--az-deep); background: #deedf6; }

.ns-regions {
  display: grid;
  container-type: inline-size;
  padding: 0;
  margin: 0;
  list-style: none;
  border: 1px solid var(--az-edge);
  border-radius: .75rem;
}
.ns-region {
  display: grid;
  grid-template-columns: minmax(12rem, .84fr) minmax(0, 1.65fr) minmax(5rem, .28fr);
  align-items: center;
  gap: 1rem clamp(1.15rem, 3.8vw, 3.1rem);
  padding: .95rem clamp(1rem, 2.7vw, 1.85rem);
}
.ns-region + .ns-region { border-top: 1px solid var(--az-edge); }
.ns-region-name { display: flex; align-items: center; gap: .63rem; }
.ns-region-name .ha-flag { width: 26px; height: 18px; }
.ns-region h3 { margin: 0; font-size: 1.55rem; }
.ns-region-name p { margin: 0; color: var(--az-muted); font-size: .8rem; }
.ns-service-states { margin: .48rem 0 0; }
.ns-service-states > div { display: flex; align-items: baseline; justify-content: space-between; gap: .35rem .55rem; }
.ns-service-states dt, .ns-service-states dd { margin: 0; font-size: .78rem; }
.ns-service-states dt { color: var(--az-charcoal); font-weight: 650; }
.ns-state { display: inline-flex; align-items: baseline; gap: .3rem; color: var(--az-charcoal); font-weight: 650; }
.ns-state > span {
  align-self: center;
  flex: none;
  width: .45rem;
  height: .45rem;
  background: var(--ns-state-color);
  border-radius: 50%;
}
.ns-operational { --ns-state-color: var(--ns-operational); }
.ns-maintenance { --ns-state-color: var(--ns-maintenance); }
.ns-degraded { --ns-state-color: var(--ns-degraded); }
.ns-outage { --ns-state-color: var(--ns-outage); }
.ns-state.ns-operational { color: #286451; }
.ns-state.ns-maintenance { color: #355e83; }
.ns-state.ns-degraded { color: #81521b; }
.ns-state.ns-outage { color: #8b3936; }
.ns-history { min-width: 0; }
.ns-history-heading, .ns-history-range { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.ns-history-heading { margin-block-end: .42rem; color: var(--az-charcoal); font-size: .84rem; font-weight: 650; }
.ns-history-heading strong { font: 700 1.7rem/1 var(--az-display); color: var(--az-deep); }
.ns-history-range { margin-block-start: .32rem; color: var(--az-muted); font-size: .75rem; }
.ns-bars {
  display: grid;
  grid-template-columns: repeat(90, minmax(0, 1fr));
  gap: clamp(1px, .16vw, 2px);
  padding: .35rem;
  border-radius: .32rem;
  background: var(--az-wash);
}
.ns-bars span { height: 1.08rem; border-radius: 1px; background: var(--ns-state-color); }
.ns-region-latency {
  display: grid;
  justify-items: center;
  align-content: center;
  padding-inline-start: .72rem;
  min-height: 3.15rem;
  margin: 0;
  border-inline-start: 1px solid var(--az-line);
  color: var(--az-muted);
}
.ns-region-latency dt { font-size: .8rem; font-weight: 600; }
.ns-region-latency dd { margin: .12rem 0 0; font: 700 1.55rem/1 var(--az-display); color: var(--az-deep); }
.ns-region-latency dd span { font-size: .7em; }
.ns-legend { display: flex; flex-wrap: wrap; gap: .2rem .95rem; list-style: none; padding: 0; margin: .53rem 0 0; font-size: .76rem; }
.ns-legend .ns-state { align-items: center; }

.ns-schedule { background: var(--az-amber-light); border: 1px solid #dabe97; border-radius: .7rem; }
.ns-schedule h2 {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  padding: .62rem 1.1rem .13rem;
  color: #714c20;
  font-size: 1rem;
}
.ns-schedule h2 .az-icon { width: 1rem; height: 1rem; }
.ns-log { max-width: 100%; }
.ns-log .ns-events { border: 1px solid var(--az-edge); border-radius: .75rem; }
.ns-event + .ns-event { border-top: 1px solid var(--az-edge); }
.ns-event summary {
  display: grid;
  grid-template-columns: 4.65rem minmax(0, 1fr) auto 1.1rem;
  align-items: center;
  gap: .68rem;
  list-style: none;
  min-height: 3.7rem;
  padding: .62rem 1rem;
  border-radius: .4rem;
  cursor: pointer;
}
.ns-schedule summary { min-height: 3.3rem; padding-block: .35rem .65rem; }
.ns-event summary::-webkit-details-marker { display: none; }
.ns-event summary:hover { background: var(--az-wash); }
.ns-schedule summary:hover { background: #ffeac9; }
.ns-event summary:focus-visible { outline-offset: -3px; }
.ns-event summary > .az-icon { color: var(--az-link); transition: transform .18s ease-out; }
.ns-event[open] summary > .az-icon { transform: rotate(180deg); }
.ns-event-date { color: var(--az-deep); font-weight: 700; font-size: .88rem; }
.ns-event-caption { display: grid; min-width: 0; gap: .04rem; }
.ns-event-caption strong { color: var(--az-ink); font-size: 1rem; line-height: 1.3; }
.ns-event-caption > span { color: var(--az-muted); font-size: .78rem; }
.ns-event-phase {
  justify-self: start;
  border: 1px solid var(--az-edge);
  border-radius: .35rem;
  padding: .08rem .47rem;
  color: var(--az-deep);
  background: var(--az-wash);
  font-size: .75rem;
  font-weight: 650;
  white-space: nowrap;
}
.ns-schedule .ns-event-phase { color: #70451b; border-color: #dabe97; background: #fff9ee; }
.ns-event-detail { padding: .15rem 1rem .95rem 6.35rem; }
.ns-event-detail dl { margin: 0; }
.ns-event-detail dl > div { display: grid; grid-template-columns: minmax(5.25rem, 7.2rem) minmax(0, 63ch); gap: .18rem .65rem; margin-block: .46rem; }
.ns-event-detail dt { color: var(--az-deep); font-weight: 700; }
.ns-event-detail dd { margin: 0; color: var(--az-charcoal); }
.ns-event-detail dt, .ns-event-detail dd { font-size: .88rem; }
.ns-empty { margin: 0; padding: 1rem; border: 1px solid var(--az-edge); border-radius: .65rem; color: var(--az-charcoal); background: var(--az-wash); }

@container (width < 45rem) {
  .ns-region { grid-template-columns: minmax(0, 1fr) auto; }
  .ns-region-place { grid-column: 1 / -1; }
  .ns-service-states { display: flex; flex-wrap: wrap; gap: .25rem .8rem; }
  .ns-service-states > div { justify-content: start; }
}
@media (max-width: 520px) {
  .ns-hero-frame { padding-block: .85rem 1.1rem; }
  .ns-hero-head { align-items: start; flex-direction: column; gap: .65rem; margin-block: .95rem .9rem; }
  .ns-hero-head p { font-size: .94rem; }
  .ns-current { gap: .63rem; }
  .ns-current-icon { width: 2.35rem; height: 2.35rem; }
  .ns-overview { padding: .8rem .85rem; gap: .68rem; }
  .ns-overview-facts dd { font-size: 1.8rem; }
  .ns-overview-facts .ns-fact-note { font-size: .72rem; }
  .ns-content { padding-block-start: 1.1rem; }
  .ns-regional { margin-block: 1.9rem 2.25rem; }
  .ns-filters a { padding-inline: .46rem; font-size: .78rem; }
  .ns-region { grid-template-columns: minmax(0, 1fr) auto; column-gap: .6rem; }
  .ns-region-place { grid-column: 1 / -1; }
  .ns-service-states { gap: .18rem .7rem; }
  .ns-history-heading { font-size: .78rem; }
  .ns-history-heading strong { font-size: 1.38rem; }
  .ns-event summary { grid-template-columns: minmax(0, 1fr) auto 1rem; gap: .2rem .5rem; padding-inline: .75rem; }
  .ns-event-date { grid-column: 1; grid-row: 1; font-size: .77rem; }
  .ns-event-caption { grid-column: 1 / 3; grid-row: 2; }
  .ns-event-phase { grid-column: 2; grid-row: 1; }
  .ns-event summary > .az-icon { grid-column: 3; grid-row: 1 / 3; }
  .ns-event-detail { padding: .05rem .75rem .72rem; }
  .ns-event-detail dl > div { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ns-event summary > .az-icon { transition: none; }
}
