:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #172033;
  background: #f4f7fb;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  background:
    radial-gradient(circle at 15% 10%, rgba(113, 151, 255, 0.18), transparent 34rem),
    linear-gradient(135deg, #f8fbff 0%, #eef3fb 100%);
}

body.error-page {
  grid-template-rows: 1fr;
}

.shell {
  width: min(100% - 3rem, 52rem);
  margin: auto;
  padding: 4.5rem 0;
}

body:not(.error-page) .shell {
  padding-bottom: 8.05rem;
}

.signature {
  display: block;
  width: min(100%, 27rem);
  height: 13rem;
  margin-bottom: 3.4rem;
  object-fit: contain;
  object-position: left center;
  transform: rotate(-1deg);
  filter: drop-shadow(0 0.6rem 1rem rgba(36, 59, 122, 0.06));
}

.error-message {
  width: min(100%, 24rem);
  color: #40547e;
  font-size: 1.2rem;
  font-weight: 600;
}

.services summary:focus-visible,
.bubble:focus-visible {
  outline: 3px solid rgba(36, 59, 122, 0.35);
  outline-offset: 3px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  width: min(100% - 3rem, 52rem);
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  color: #a1abbb;
  font-size: 0.72rem;
}

.site-footer,
.filing,
.services summary {
  white-space: nowrap;
}

.filing,
.services summary {
  color: #a1abbb;
  font: inherit;
  text-decoration: none;
}

.footer-separator {
  color: #c3cad5;
}

.services {
  position: relative;
}

.services summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  list-style: none;
  cursor: pointer;
}

.services summary::-webkit-details-marker {
  display: none;
}

.services summary::marker {
  content: "";
}

.services:not([open]) .bubbles {
  display: none;
}

.bubbles {
  position: absolute;
  right: 0;
  bottom: 2.3rem;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 0.45rem;
}

.bubble {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  gap: 0.55rem;
  padding: 0.58rem 0.8rem;
  border: 1px solid #d6e0f2;
  border-radius: 999px;
  color: #40547e;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0.55rem 1.35rem rgba(36, 59, 122, 0.11);
  font-size: 0.72rem;
  text-decoration: none;
  white-space: nowrap;
}

.bubble:hover {
  border-color: #bccbe4;
  transform: translateY(-1px);
}

@media (max-width: 36rem) {
  .shell {
    width: calc(100% - 2.5rem);
    padding: 3.2rem 0 2.4rem;
  }

  body:not(.error-page) .shell {
    padding-bottom: 5.9rem;
  }

  .signature {
    width: min(100%, 21rem);
    height: 11rem;
    margin-bottom: 3.2rem;
  }

  .error-message {
    width: 92%;
    margin-inline: auto;
  }

  .site-footer {
    justify-content: flex-start;
    width: calc(100% - 2.5rem);
    padding: 1.2rem 0 max(1.6rem, env(safe-area-inset-bottom));
    font-size: 0.62rem;
  }

  .services {
    order: 1;
  }

  .footer-separator {
    order: 2;
  }

  .filing {
    order: 3;
  }

  .bubbles {
    left: 0;
    right: auto;
    bottom: 2.15rem;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .bubble {
    font-size: 0.68rem;
  }
}
