:root {
  --ex-blue-900: #1d4f91;
  --ex-blue-700: #426da9;
  --ex-purple-800: #77127b;
  --ex-magenta-700: #af1685;
  --ex-pink-700: #e80070;
  --surface: #ffffff;
  --surface-2: #fbfcfe;
  --bg: #f6f8fc;
  --rb-sidebar-bg: #f5f7fb;
  --rb-border: #e2e8f0;
  --text: #1f2936;
  --muted: rgba(31, 41, 54, 0.72);
}

/* Accordion */
.accordion {
  background-color: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: 1px solid var(--rb-border);
  transition: background-color 0.2s ease;
}

.active, .accordion:hover {
  background-color: var(--rb-border);
}

.panel {
  padding: 0 18px;
  background-color: var(--surface);
  display: none;
  border: 1px solid var(--rb-border);
  border-top: 0;
}

.accordion:after {
  content: '\02795';
  float: right;
  color: var(--ex-blue-900);
}

.active:after {
  content: "\2796";
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

th, td {
  border: 1px solid var(--rb-border);
  padding: 8px;
}

table thead th {
  background: var(--ex-blue-700);
  color: var(--surface);
}

table tbody tr:nth-of-type(even) {
  background-color: var(--bg);
}

/* Typography */
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface-2);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h2,
h3,
h4 {
  color: var(--ex-blue-900);
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

p {
  max-width: 760px;
  margin-bottom: 0.85rem;
  color: var(--muted);
}

a {
  color: var(--ex-blue-900);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

section {
  margin: 2.25rem auto;
}

main > section + section {
  border-top: 1px solid var(--rb-border);
  padding-top: 2.25rem;
}

header {
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.46) 14%, rgba(255, 255, 255, 0.2) 28%, rgba(255, 255, 255, 0) 48%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.22) 18%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(
      90deg,
      #8fb3d1 0%,
      #365d9c 35%,
      #424a95 55%,
      #424a95 75%,
      #263f78 100%
    );
  border-top: 4px solid var(--ex-blue-900);
  color: var(--surface);
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--text) 14%, transparent);
}

header .container {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

header h1 {
  margin: 0;
  color: var(--surface);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
}

header p {
  max-width: none;
  margin: 0.35rem 0 0;
  color: var(--surface);
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.88;
}

.rb-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.rb-header-logo {
  flex: 0 0 auto;
  height: 160px;
  width: auto;
}

.rb-header-text {
  margin-left: auto;
  text-align: right;
}

.info-box {
  border: 1px solid var(--rb-border);
  border-left: 5px solid var(--ex-blue-900);
  border-radius: 8px;
  padding: 1.5rem;
  background: var(--surface);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--text) 8%, transparent);
}

.info-box p:last-child,
.api-card p:last-child,
.feature-item p:last-child,
.step p:last-child,
.endpoint-box p:last-child {
  margin-bottom: 0;
}

.info-box p {
  max-width: none;
}

.info-points {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.info-points li {
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

.info-points li:last-child {
  margin-bottom: 0;
}

.api-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.api-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--rb-border);
  border-radius: 8px;
  padding: 1.5rem;
  background: var(--surface);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--text) 8%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.api-card:hover,
.feature-item:hover,
.step:hover {
  transform: translateY(-2px);
  border-color: var(--ex-blue-700);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--text) 12%, transparent);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border-radius: 999px;
  padding: 0.72rem 1.35rem;
  background: var(--ex-blue-900);
  color: var(--surface);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--ex-blue-700);
  color: var(--surface);
  transform: translateY(-1px);
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.endpoint-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--rb-border);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--surface);
}

.endpoint-box code {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--rb-border);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  background: var(--surface-2);
  color: var(--ex-blue-900);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.support-box {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 1rem;
  border: 1px solid var(--rb-border);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--surface);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--text) 7%, transparent);
}

.support-box p:last-child {
  margin-bottom: 0;
}

.support-links {
  border-left: 1px solid var(--rb-border);
  padding-left: 1rem;
}

.support-links p {
  max-width: none;
}

.feature-section {
  margin-top: 2.5rem;
}

.section-centered > h2,
.section-centered > p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.feature-grid,
.steps-grid {
  display: grid;
  align-items: stretch;
  grid-auto-rows: 1fr;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.feature-grid {
  max-width: 980px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  column-gap: 2rem;
}

.feature-item,
.step {
  display: flex;
  height: 100%;
  min-height: 150px;
  flex-direction: column;
  border: 1px solid var(--rb-border);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--surface);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--text) 7%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-item h3,
.step h3 {
  margin-bottom: 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.feature-item p,
.step p {
  max-width: none;
  margin-bottom: 0;
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: var(--ex-blue-900);
  color: var(--surface);
  font-weight: 700;
}

footer {
  border-top: 1px solid var(--rb-border);
  margin-top: 2rem;
  background: var(--surface);
  color: var(--muted);
}

footer .container {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.footer-right {
  text-align: right;
}

.footer-right a {
  font-weight: 600;
  text-decoration: none;
}

.copyright {
  margin-top: 0.25rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .container {
    padding: 1rem;
  }

  section {
    margin: 1.75rem auto;
  }

  main > section + section {
    padding-top: 1.75rem;
  }

  header h1 {
    font-size: 1.55rem;
  }

  header p {
    font-size: 0.92rem;
  }

  .rb-header-row,
  .endpoint-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .support-box {
    grid-template-columns: 1fr;
  }

  .support-links {
    border-left: 0;
    border-top: 1px solid var(--rb-border);
    padding-top: 1rem;
    padding-left: 0;
  }

  .rb-header-text,
  .footer-right {
    margin-left: 0;
    text-align: left;
  }

  .rb-header-logo {
    height: 112px;
  }

  .feature-grid {
    max-width: none;
    grid-template-columns: 1fr;
  }
}
