.rs-page,
.rs-page * { box-sizing: border-box; }

.rs-page :where(h1, h2, h3, p, blockquote, figure, ul, ol, dl, dd) { margin: 0; }
.rs-page [hidden] { display: none !important; }

.rs-page {
  --rs-text-muted: #405971;
  --rs-light-muted: #c2d5e8;
  --rs-grid-line: #9bbbd42b;
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.rs-hero {
  padding-block: clamp(44px, 5.5vw, 80px) clamp(54px, 6vw, 88px);
  border-bottom: 1px solid #a9c7dd33;
  background:
    radial-gradient(ellipse at 78% 36%, #203d56 0%, #17283d 37%, transparent 72%),
    var(--yaoxi-navy);
  color: var(--yaoxi-white);
}

.rs-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(28px, 4.2vw, 60px);
}

.rs-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #28708b;
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: .045em;
}

.rs-label::before {
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
}

.rs-hero .rs-label,
.rs-contact .rs-label { color: var(--yaoxi-ice); }

.rs-intro h1 {
  margin-top: 13px;
  color: var(--yaoxi-white);
  font-size: clamp(3.25rem, 6.4vw, 5.625rem);
  font-weight: 760;
  letter-spacing: -.055em;
  line-height: 1.1;
}

.rs-tagline {
  margin-top: 12px;
  color: var(--yaoxi-ice);
  font-size: clamp(1.2rem, 2.4vw, 2.125rem);
  font-weight: 690;
  letter-spacing: -.025em;
  line-height: 1.42;
}

.rs-lede {
  max-width: 29em;
  margin-top: 20px;
  color: var(--rs-light-muted);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
}

.rs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 27px;
}

.rs-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.rs-button-primary { background: var(--yaoxi-ice); color: #0e2435; }
.rs-button-primary:hover { background: #d1f3fc; }
.rs-button-secondary { border-color: #6786a0; color: var(--yaoxi-white); }
.rs-button-secondary:hover { border-color: var(--yaoxi-ice); background: #a8dff319; }

.rs-map {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #99bcd14c;
  border-radius: var(--yaoxi-radius);
  background: #111f30;
  box-shadow: 0 24px 50px #080e1b55;
}

.rs-map-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 10px;
  padding: 11px 15px;
}

.rs-map-head h2 {
  font-size: .9375rem;
  font-weight: 690;
  line-height: 1.45;
}

.rs-example {
  color: #d2e1ed;
  font-size: .8125rem;
  line-height: 1.45;
}

.rs-map-visual {
  position: relative;
  aspect-ratio: 12 / 7;
  border-block: 1px solid var(--rs-grid-line);
  background: #172b3f;
}

.rs-map-visual img {
  display: block;
  width: 100%;
  height: 100%;
}

.rs-map-visual::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(0deg, #b3d0e021 1px, transparent 1px),
    linear-gradient(90deg, #b3d0e021 1px, transparent 1px);
  background-position: center;
  background-size: 16.666% 25%;
  pointer-events: none;
  content: "";
}

.rs-map-markers { position: absolute; z-index: 1; inset: 0; }

.rs-map-marker {
  position: absolute;
  display: grid;
  width: clamp(19px, 2vw, 28px);
  aspect-ratio: 1;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid #102432;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #0f223677, 0 2px 10px #070e1c8c;
  color: #102432;
  font: 750 .8125rem / 1 var(--yaoxi-font-sans);
}

.rs-map-marker-a { top: 43.5%; left: 73.3%; background: #7ff0e9; }
.rs-map-marker-b { top: 41%; left: 32%; background: #ffc593; }

.rs-map-north {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 16px;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--yaoxi-white);
  font: 650 .75rem / 1 var(--yaoxi-font-sans);
  text-shadow: 0 1px 4px #0e1726;
}

.rs-map-north::after {
  width: 11px;
  height: 16px;
  clip-path: polygon(50% 0, 100% 100%, 50% 76%, 0 100%);
  background: #c9dce9;
  content: "";
}

.rs-map-foot {
  display: flex;
  min-height: 63px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 5px 12px;
  padding: 7px 11px;
}

.rs-map-controls { display: flex; flex-wrap: wrap; gap: 3px; }

.rs-map-controls button {
  min-height: 44px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #d3e3ef;
  font: 600 .875rem / 1.4 var(--yaoxi-font-sans);
  cursor: pointer;
}

.rs-map-controls button:hover,
.rs-map-controls button[aria-pressed="true"] {
  border-color: #547992;
  background: #274258;
  color: #e4f7fc;
}

.rs-map-key { min-width: min(100%, 241px); padding-inline: 4px; }

.rs-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 13px;
  padding: 0;
  color: #d9e6f1;
  font-size: .8125rem;
  list-style: none;
}

.rs-map-legend li { display: flex; align-items: center; gap: 5px; }

.rs-map-legend i {
  display: block;
  width: 12px;
  height: 8px;
  flex: 0 0 auto;
  border: 1px solid #87bbd0;
  border-radius: 1px;
  background: #2c82a7;
}

.rs-map-legend .rs-key-add { border-color: #8de6de; background: #56bcb8; }
.rs-map-legend .rs-key-loss { border-color: #ffca9d; background: #de9b70; }

.rs-section { padding-block: clamp(45px, 6vw, 84px); }
.rs-section p { color: var(--rs-text-muted); }
.rs-section .rs-label { color: #28708b; }

.rs-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: end;
  gap: 14px 60px;
  margin-bottom: clamp(23px, 3vw, 42px);
}

.rs-section-head h2,
.rs-contact h2 {
  max-width: 19em;
  margin-top: 10px;
  font-size: clamp(1.625rem, 3.1vw, 2.625rem);
  font-weight: 740;
  line-height: 1.27;
  letter-spacing: -.035em;
  text-wrap: pretty;
}

.rs-section-head > p { padding-bottom: 3px; }

.rs-request {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 14px 42px;
  padding: 22px clamp(16px, 2.6vw, 34px);
  border: 1px solid #bfd3e1;
  border-left: 3px solid #5a9eb6;
  border-radius: 8px;
  background: #e4eef6;
}

.rs-request h3 { margin-bottom: 6px; font-size: .9375rem; }
.rs-request blockquote { color: #1b3e57; font-size: clamp(1rem, 1.45vw, 1.2rem); font-weight: 615; }

.rs-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  margin-top: 30px;
  border-block: 1px solid var(--yaoxi-line);
  list-style: none;
}

.rs-flow li { padding: 21px clamp(14px, 2vw, 25px); }
.rs-flow li + li { border-left: 1px solid var(--yaoxi-line); }
.rs-flow li h3 { margin-block: 9px 4px; font-size: 1.125rem; }

.rs-step {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #9fbdcd;
  border-radius: 50%;
  background: #e2eef6;
  color: #24566c;
  font-size: .875rem;
  font-weight: 750;
  line-height: 1;
}

.rs-delivery { border-block: 1px solid #c9d9e5; background: #e7f0f7; }

.rs-delivery-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: 25px clamp(24px, 5vw, 72px);
}

.rs-outputs > div { padding: 14px 0; border-bottom: 1px solid #bdcfdd; }
.rs-outputs > div:first-child { padding-top: 0; }

.rs-outputs dt {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--yaoxi-ink);
  font-size: 1.0625rem;
  font-weight: 720;
}

.rs-outputs dd { margin-top: 3px; padding-inline-start: 36px; color: var(--rs-text-muted); }

.rs-output-icon {
  position: relative;
  width: 24px;
  height: 22px;
  flex: 0 0 24px;
  border: 1px solid #4b7e95;
  border-radius: 4px;
  color: #36718c;
}

.rs-output-icon::after {
  position: absolute;
  inset: 5px;
  background: currentColor;
  content: "";
}

.rs-output-map::after { clip-path: polygon(0 61%, 25% 20%, 51% 50%, 81% 0, 100% 25%, 100% 39%, 82% 15%, 54% 68%, 25% 37%, 0 77%); }
.rs-output-list::after { background: repeating-linear-gradient(currentColor 0 1px, transparent 1px 4px); }
.rs-output-record::after { clip-path: polygon(13% 0, 77% 0, 77% 32%, 100% 32%, 100% 100%, 13% 100%, 13% 80%, 82% 80%, 82% 52%, 59% 52%, 59% 18%, 30% 18%, 30% 80%, 13% 80%); }

.rs-review {
  overflow: hidden;
  border: 1px solid #b9cedd;
  border-radius: 9px;
  background: #f4f9fd;
}

.rs-review table { width: 100%; border-collapse: collapse; font-size: .9375rem; text-align: left; }

.rs-review caption {
  padding: 13px 16px;
  color: #f3f8ff;
  background: #20354d;
  font-size: 1rem;
  font-weight: 680;
  text-align: left;
}

.rs-review caption span {
  display: inline-block;
  margin-inline-start: 7px;
  color: #c1d6e8;
  font-size: .8125rem;
  font-weight: 500;
}

.rs-review :is(th, td) { padding: 10px clamp(8px, 1.4vw, 16px); border-bottom: 1px solid #c9dae8; }
.rs-review :is(th, td):nth-child(-n+2) { white-space: nowrap; }
.rs-review thead { background: #dce9f3; }
.rs-review tbody td { color: var(--rs-text-muted); }

.rs-review > p {
  padding: 11px clamp(8px, 1.4vw, 16px);
  border-inline-start: 3px solid #4b85a0;
  background: #eaf3fa;
  font-size: .9375rem;
}

.rs-review-marker {
  display: inline-grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid #73baba;
  border-radius: 50%;
  background: #cbf1ed;
  color: #1c4d53;
  font-weight: 750;
  line-height: 1;
}

.rs-review-marker-loss { border-color: #cf9d72; background: #ffead7; color: #683f32; }

.rs-context { padding-block: clamp(30px, 4.2vw, 56px); }

.rs-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px clamp(24px, 5vw, 76px);
}

.rs-context h2 { margin-bottom: 4px; font-size: 1.1875rem; }
.rs-context p { color: var(--rs-text-muted); }

.rs-contact {
  padding-block: clamp(35px, 4.8vw, 70px);
  border-bottom: 1px solid #58728b8a;
  background: #182d44;
  color: var(--yaoxi-white);
}

.rs-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 19px 32px;
}

.rs-contact h2 { margin-bottom: 9px; }
.rs-contact p:not(.rs-label) { max-width: 40em; color: var(--rs-light-muted); }

.rs-contact-actions {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.rs-email {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: #d2e9f6;
  text-underline-offset: .25em;
}

.rs-email:hover { color: var(--yaoxi-ice); }

@media (max-width: 960px) {
  .rs-map-foot { justify-content: start; }
  .rs-map-legend { padding-block: 4px; }
  .rs-section-head { gap: 14px 30px; }
}

@media (max-width: 780px) {
  .rs-hero-grid,
  .rs-section-head,
  .rs-delivery-grid { grid-template-columns: minmax(0, 1fr); }
  .rs-hero-grid { gap: 26px; }
  .rs-lede { margin-top: 13px; }
  .rs-actions { margin-top: 19px; }
  .rs-map-foot { justify-content: space-between; }
  .rs-section-head h2 { max-width: none; }
  .rs-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-flow li:nth-child(3) { border-left: 0; }
  .rs-flow li:nth-child(n+3) { border-top: 1px solid var(--yaoxi-line); }
}

@media (max-width: 540px) {
  .rs-hero { padding-block: 33px 35px; }
  .rs-intro h1 { margin-top: 9px; }
  .rs-tagline { margin-top: 8px; }
  .rs-map-head { padding-inline: 9px; }
  .rs-map-foot { justify-content: start; gap: 3px; padding-inline: 7px; }
  .rs-map-controls button { padding-inline: 7px; }
  .rs-map-legend { gap: 5px 10px; }
  .rs-request,
  .rs-flow,
  .rs-context-grid,
  .rs-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .rs-flow li { padding: 13px 0; }
  .rs-flow li + li { border-top: 1px solid var(--yaoxi-line); border-left: 0; }
  .rs-flow li h3 { margin-block: 0 4px; }
  .rs-flow li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; }
  .rs-flow li p { grid-column: 2; }
  .rs-contact-actions { gap: 4px; }
}
