/* Visual language follows status.secureworkload.cisco.com (Atlassian
   Statuspage): white page, #333 ink, #E0E0E0 rules, blue links, and the
   page's own status colors. */
:root {
  --ink: #333333;
  --muted: #757575;
  --rule: #e0e0e0;
  --wash: #f4f5f7;
  --link: #207ab6;
  --operational: #1e8542;
  --degraded: #f1c40f;
  --degraded-text: #8a6d00;
  --partial: #b35e14;
  --major: #de2f1b;
  --maintenance: #3498db;
  --maintenance-text: #1f6fa8;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 16px/1.5 var(--font);
}
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
code { font-family: var(--mono); font-size: .875em; overflow-wrap: anywhere; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 52rem; margin: 0 auto; padding: 0 1.25rem; }

/* Masthead */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; min-height: 4.5rem; padding-top: .75rem; padding-bottom: .75rem;
}
.wordmark { display: flex; align-items: baseline; gap: .45rem; color: var(--ink); text-decoration: none; }
.wordmark-cisco { font-weight: 700; font-size: 1.375rem; letter-spacing: -.01em; color: #049fd9; }
.wordmark-product { font-weight: 400; font-size: 1.375rem; letter-spacing: -.01em; }
.page-status {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9375rem; text-decoration: none; color: var(--ink);
}
.page-status:hover .page-status-text { text-decoration: underline; }

/* Heading + form */
h1 { font-size: 2rem; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; margin: 2.5rem 0 .5rem; }
.lede { margin: 0 0 2rem; color: var(--muted); font-size: 1.125rem; }

.finder label { display: block; font-weight: 600; margin-bottom: .4rem; }
.finder-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.field {
  flex: 1 1 20rem; min-width: 0;
  display: flex; align-items: stretch;
  border: 1px solid #b3bac5; border-radius: 4px; background: #fff;
}
.field:focus-within { border-color: var(--link); box-shadow: 0 0 0 2px rgba(32, 122, 182, .35); }
.field.is-invalid { border-color: var(--major); }
.field input {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  padding: .7rem .25rem .7rem .85rem;
}
.field input:focus { outline: none; }
.field input::placeholder { color: #8c8c8c; }
.suffix {
  display: flex; align-items: center; padding: 0 .85rem 0 0;
  color: var(--muted); font-size: 1.0625rem; white-space: nowrap;
}
.field.full-host .suffix { display: none; }

button {
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: .7rem 1.4rem; border-radius: 4px; cursor: pointer;
  color: #fff; background: var(--link); border: 1px solid var(--link);
}
button:hover { background: #1a6699; }
button:disabled { opacity: .7; cursor: progress; }
.hint { margin: .5rem 0 0; color: var(--muted); font-size: .875rem; }

/* Result */
.result { margin: 2.25rem 0 0; }
.result:focus { outline: none; }
.result:empty { display: none; }

.trace {
  margin: 0 0 1.25rem; padding: 0; list-style: none;
  font-family: var(--mono); font-size: .875rem; color: var(--muted);
}
.trace li { position: relative; padding-left: 1.5rem; overflow-wrap: anywhere; }
.trace li + li { margin-top: .25rem; }
.trace li::before {
  content: ""; position: absolute; left: .45rem; top: -.35rem; width: .55rem; height: .95rem;
  border-left: 1px solid #b3bac5; border-bottom: 1px solid #b3bac5;
}
.trace li:first-child { padding-left: 0; color: var(--ink); }
.trace li:first-child::before { display: none; }
.trace .rr { color: #8c8c8c; margin-right: .5rem; }
.trace .hit { color: var(--ink); font-weight: 600; }

.found-label { margin: 0; color: var(--muted); }
.cluster-name {
  margin: 0 0 1rem; font-size: 3rem; line-height: 1.1; font-weight: 700; letter-spacing: -.03em;
}

/* Statuspage-style component group */
.components { border: 1px solid var(--rule); border-radius: 4px; }
.component {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.25rem; border-top: 1px solid var(--rule);
}
.component:first-child { border-top: 0; }
.component.group { font-weight: 600; }
.component.child { padding-left: 2.25rem; font-size: .9375rem; }
.component-status { display: inline-flex; align-items: center; gap: .45rem; font-size: .875rem; white-space: nowrap; font-weight: 400; }
.status-unavailable { padding: .9rem 1.25rem; color: var(--muted); border-top: 1px solid var(--rule); font-size: .9375rem; }
.updated { margin: .5rem 0 0; color: var(--muted); font-size: .8125rem; }

.icon { display: inline-block; width: 1rem; height: 1rem; flex: none; }
.icon svg { display: block; width: 100%; height: 100%; }

.s-operational { color: var(--operational); }
.s-degraded_performance { color: var(--degraded-text); }
.s-degraded_performance .icon { color: var(--degraded); }
.s-partial_outage { color: var(--partial); }
.s-major_outage { color: var(--major); }
.s-under_maintenance { color: var(--maintenance-text); }
.s-under_maintenance .icon { color: var(--maintenance); }
.s-unknown { color: var(--muted); }
.page-status.s-operational .page-status-text,
.page-status.s-unknown .page-status-text { color: var(--ink); }

.status-link {
  display: inline-block; margin-top: 1.25rem; font-weight: 600;
}

/* Problems */
.notice {
  border: 1px solid var(--rule); border-left: 4px solid var(--partial);
  border-radius: 4px; padding: 1rem 1.25rem; background: #fff;
}
.notice.is-input { border-left-color: var(--major); }
.notice h2 { font-size: 1.0625rem; margin: 0 0 .35rem; }
.notice p { margin: 0; }
.notice .trace { margin: .75rem 0 0; }
.notice .next { margin-top: .75rem; }

/* About */
.about { margin: 3rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--rule); max-width: 40rem; }
.about h2 { font-size: 1.125rem; margin: 0 0 .5rem; }
.about p { margin: 0 0 .75rem; }

.footer { margin-top: 2.5rem; padding-bottom: 2.5rem; color: var(--muted); font-size: .875rem; }
.footer p { margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--rule); }

@media (max-width: 34rem) {
  h1 { font-size: 1.625rem; margin-top: 1.75rem; }
  .cluster-name { font-size: 2.5rem; }
  .finder-row button { flex: 1 1 100%; }
  .component { padding: .8rem 1rem; }
  .component.child { padding-left: 1.5rem; flex-wrap: wrap; gap: .25rem 1rem; }
  .suffix { font-size: .9375rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .result > * { animation: settle .25s ease-out both; }
  @keyframes settle { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
