body {
  margin: 0;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, Segoe UI, Oxygen, Ubuntu, Cantarell,
    Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  line-height: 1.5;
  padding-bottom: 2.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em 0;
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: 2em;
}

a {
  color: inherit;
}

@media (min-width: 400px) {
  body {
    font-size: 16px;
  }
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

article {
  padding: 1rem 1.25rem;
  position: relative;
  border-radius: 0.2rem;
  border: 1px solid;
}
article.link a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
article + article {
  margin-top: 0.5rem;
}
article + h3 {
  margin-top: 1rem;
}
h3 {
  opacity: 0.75;
}
h4 {
  font-weight: bold;
}
article.down {
  border-left: 0.2rem solid;
}
article.degraded {
  border-left: 0.2rem solid;
}
article.up {
  border-left: 0.2rem solid;
}

.f {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

section + h2 {
  margin-top: 2rem;
}

.tag {
  display: inline-block;
  padding: 0.33rem 0.5rem;
  border-radius: 0.2rem;
  font-size: 70%;
  vertical-align: middle;
  margin-top: -0.2rem;
  margin-left: 0.5rem;
}

dl {
  margin-bottom: 1.5rem;
}
dl dt {
  font-weight: bold;
}
dl dd {
  margin: 0 0 1rem 0;
}

nav {
  border-bottom: 1px solid;
}

[aria-current] {
  border-bottom: 2px solid;
}

a.error-button {
  border: 0.1rem solid;
}

/* Theming */

.submit-button {
  background: #01a3a4;
  color: #fff;
  border-color: transparent;
}

body {
  background: var(--body-background-color);
  color: var(--body-text-color);
}

code {
  color: var(--code-color);
  background: var(--code-background-color);
}

article {
  background: var(--card-background-color);
  border-color: var(--card-border-color);
}

article.down {
  border-left-color: var(--down-border-left-color) !important;
  color: var(--down-color-color);
}
article.down-active {
  background: var(--down-background-color);
  border-color: var(--down-border-left-color);
}
article.degraded {
  border-left-color: var(--degraded-border-left-color) !important;
  color: var(--degraded-color-color);
}
article.up {
  border-left-color: var(--up-border-left-color) !important;
  color: var(--up-color-color);
}

.tag {
  color: var(--tag-color);
}
.tag.closed,
.tag.up {
  background: var(--tag-up-background-color) !important;
}
.tag.open,
.tag.down {
  background: var(--tag-down-background-color) !important;
}
.tag.degraded {
  background: var(--tag-degraded-background-color) !important;
}

.changed + section .data {
  background: var(--change-background-color);
}

nav {
  border-bottom-color: var(--nav-border-bottom-color);
  background: var(--nav-background-color);
}

[aria-current] {
  border-bottom-color: var(--nav-current-border-bottom-color);
}

a.error-button {
  border-color: var(--error-button-border-color);
  background: var(--error-button-background-color);
  color: var(--error-button-color);
}

.submit-button {
  background: var(--submit-button-background-color);
  color: var(--submit-button-color);
  border-color: var(--submit-button-border-color);
}

article .graph {
  opacity: var(--graph-opacity);
  filter: var(--graph-filter);
}

/* Jetta status theme */
:root {
  --body-background-color: #f4f4f4;
  --body-text-color: #1f1f1f;
  --card-background-color: #ffffff;
  --card-border-color: #dddddd;
  --nav-background-color: #1f1f1f;
  --nav-border-bottom-color: #1f1f1f;
  --nav-current-border-bottom-color: #95a2b3;
  --code-color: #102b52;
  --code-background-color: #ededed;
  --up-border-left-color: #3e5d88;
  --up-color-color: #1f1f1f;
  --down-border-left-color: #9f4d2f;
  --down-color-color: #1f1f1f;
  --down-background-color: #fff8f5;
  --degraded-border-left-color: #b6763f;
  --degraded-color-color: #1f1f1f;
  --tag-color: #ffffff;
  --tag-up-background-color: #3e5d88;
  --tag-down-background-color: #9f4d2f;
  --tag-degraded-background-color: #b6763f;
  --change-background-color: #f0f3f6;
  --error-button-border-color: #9f4d2f;
  --error-button-background-color: #9f4d2f;
  --error-button-color: #ffffff;
  --submit-button-background-color: #102b52;
  --submit-button-color: #ffffff;
  --submit-button-border-color: #102b52;
  --graph-opacity: 0.16;
  --graph-filter: grayscale(0.2) saturate(0.65);
}

body {
  font-family: "Open Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(31, 31, 31, 0.08), rgba(244, 244, 244, 0) 18rem),
    linear-gradient(90deg, rgba(149, 162, 179, 0.16), rgba(255, 255, 255, 0));
}

.container {
  max-width: 1120px;
}

nav {
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(31, 31, 31, 0.3);
}

nav .container {
  min-height: 68px;
}

nav a {
  color: #ffffff;
  text-decoration: none;
}

nav img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: none;
}

nav .logo div,
nav ul a {
  font-family: "Open Sans", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav .logo div {
  letter-spacing: 0.04em;
}

header {
  position: relative;
  margin: 2rem 0 1.25rem;
  padding: clamp(2rem, 5vw, 4.2rem);
  border: 1px solid rgba(149, 162, 179, 0.34);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(31, 31, 31, 0.98), rgba(16, 43, 82, 0.86)),
    #1f1f1f;
  color: #ffffff;
  overflow: hidden;
}

header::after {
  content: "";
  position: absolute;
  right: 2rem;
  top: 2rem;
  bottom: 2rem;
  width: min(34vw, 24rem);
  border-top: 2px solid rgba(149, 162, 179, 0.65);
  border-bottom: 2px solid rgba(149, 162, 179, 0.25);
  transform: skewX(-18deg);
}

header > * {
  position: relative;
  z-index: 1;
}

h1 {
  max-width: 760px;
  color: #ffffff;
  font-family: Merriweather, Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-top: 2.4rem;
  color: #1f1f1f;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h3 {
  font-size: 0.95rem;
  font-weight: 680;
}

h4 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

p.lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.65;
}

article {
  border: 1px solid #dddddd;
  border-radius: 0;
  box-shadow: 0 10px 30px rgba(31, 31, 31, 0.06);
}

article + article {
  margin-top: 0.65rem;
}

article.down-active {
  border-color: rgba(159, 77, 47, 0.42);
  box-shadow: 0 12px 30px rgba(159, 77, 47, 0.10);
}

.svelte-8lnl4f article.down-active,
main > section:first-of-type article {
  background: #ffffff;
}

main > section:first-of-type h3,
article.down-active h3 {
  color: #7d3c25;
}

.live-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.live-status article {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  min-height: 168px;
  padding-bottom: 58px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.live-status article.graph {
  background-image: none !important;
}

.live-status article:hover {
  border-color: rgba(62, 93, 136, 0.42);
  box-shadow: 0 14px 34px rgba(16, 43, 82, 0.12);
  transform: translateY(-1px);
}

.live-status article::before {
  content: "Operational";
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 2;
  padding: 0.22rem 0.5rem;
  border: 1px solid rgba(62, 93, 136, 0.24);
  border-radius: 0;
  background: rgba(62, 93, 136, 0.08);
  color: #102b52;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.live-status article.down::before,
.live-status article.down-active::before {
  content: "Action needed";
  border-color: rgba(159, 77, 47, 0.28);
  background: rgba(159, 77, 47, 0.1);
  color: #7d3c25;
}

.live-status article.degraded::before {
  content: "Degraded";
  border-color: rgba(182, 118, 63, 0.3);
  background: rgba(182, 118, 63, 0.12);
  color: #7a4b22;
}

.live-status article::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  height: 32px;
  border: 1px solid rgba(62, 93, 136, 0.2);
  border-radius: 0;
  background:
    repeating-linear-gradient(
      90deg,
      #3e5d88 0 4px,
      rgba(62, 93, 136, 0.18) 4px 7px,
      transparent 7px 9px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(149, 162, 179, 0.08));
  opacity: 0.96;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.live-status article:hover::after {
  border-color: rgba(62, 93, 136, 0.46);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.58),
    0 6px 18px rgba(16, 43, 82, 0.12);
  opacity: 1;
  transform: translateY(-1px);
}

.live-status article > div:last-of-type::after {
  content: "30 day check history";
  position: absolute;
  right: 1rem;
  bottom: 3.25rem;
  color: #6c7480;
  font-size: 0.68rem;
  font-weight: 620;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.live-status article:hover > div:last-of-type::after {
  content: "Click service name for detail";
  color: #102b52;
}

.live-status article.down::after,
.live-status article.down-active::after {
  border-color: rgba(159, 77, 47, 0.26);
  background:
    repeating-linear-gradient(
      90deg,
      #9f4d2f 0 4px,
      rgba(159, 77, 47, 0.18) 4px 7px,
      transparent 7px 9px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(159, 77, 47, 0.08));
}

.live-status article.down:hover,
.live-status article.down-active:hover {
  border-color: rgba(159, 77, 47, 0.5);
  box-shadow: 0 14px 34px rgba(159, 77, 47, 0.14);
}

.live-status article.down:hover > div:last-of-type::after,
.live-status article.down-active:hover > div:last-of-type::after {
  color: #7d3c25;
}

.live-status article.degraded::after {
  border-color: rgba(182, 118, 63, 0.3);
  background:
    repeating-linear-gradient(
      90deg,
      #b6763f 0 4px,
      rgba(182, 118, 63, 0.2) 4px 7px,
      transparent 7px 9px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(182, 118, 63, 0.08));
}

.live-status article.degraded:hover {
  border-color: rgba(182, 118, 63, 0.5);
  box-shadow: 0 14px 34px rgba(182, 118, 63, 0.14);
}

.live-status article.degraded:hover > div:last-of-type::after {
  color: #7a4b22;
}

.live-status h4 {
  max-width: calc(100% - 7.5rem);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #1f1f1f;
  font-family: Merriweather, Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.2;
}

.live-status p {
  color: #4f5660;
}

.live-status article .graph {
  display: none;
}

.live-status article svg,
.live-status article img {
  max-width: 100%;
}

.r label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.7rem;
  border: 1px solid #dddddd;
  border-radius: 0;
  background: #ffffff;
  color: #4f5660;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.r input:checked + label {
  border-color: #102b52;
  background: #102b52;
  color: #ffffff;
}

footer {
  color: #4f5660;
}

@media (max-width: 720px) {
  header {
    margin-top: 1rem;
    padding: 1.5rem;
  }

  .live-status {
    grid-template-columns: 1fr;
  }
}

/* End Jetta status theme */
