/* MrIvory docs — ivory canvas, teal chrome, --rdp-accent / holding-page --soon-* tokens */
:root {
  --soon-teal: #214344;
  --soon-orange: #ff4e2f;
  --soon-cream: #fdf4ef;
  --soon-green: #a7d6c0;
  --soon-ink: #1c2424;
  --soon-muted: #5f6b6b;
  --soon-quiet: #7a8686;
  --soon-line: #e8dfd8;
  --soon-on-teal: #c5d4d2;
  --soon-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --docs-teal: #214344;
  --docs-cream: #fdf4ef;
  --docs-orange: #ff4e2f;
  --docs-green: #a7d6c0;
  --docs-ink: #1c2424;
  --docs-muted: #5f6b6b;
  --docs-quiet: #7a8686;
  --docs-line: #e8dfd8;
  --docs-card: #ffffff;
  --docs-code: #1c2424;
  --docs-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.rdp-docs {
  margin: 0;
  min-height: 100vh;
  font-family: var(--soon-font);
  background: var(--docs-cream);
  color: var(--docs-ink);
}

.docs-skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 40;
  background: var(--docs-card);
  color: var(--docs-teal);
  padding: 8px 12px;
  border-radius: 8px;
}
.docs-skip:focus { left: 12px; }

.docs-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px 22px;
  background: var(--docs-teal);
  color: #fff;
  box-shadow: 0 8px 24px rgba(33, 67, 68, 0.18);
}
.docs-bar .docs-brand,
.docs-bar .rdp-lockup {
  color: #fff;
  margin: 0;
}
.docs-bar .rdp-banner {
  margin: 0;
  background: rgba(255, 78, 47, 0.16);
  color: #ffd4cb;
  border-color: var(--docs-orange);
}
.docs-bar-actions {
  margin-inline-start: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.docs-bar .rdp-lang { margin: 0; }
.docs-bar .rdp-lang select {
  background: var(--docs-cream);
  color: var(--docs-teal);
  border: 0;
}
.docs-bar .rdp-lang button {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

html[lang="ar"] .rdp-docs,
html[lang="ur"] .rdp-docs {
  font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Noto Sans Arabic", Arial, var(--docs-font);
}
html[dir="rtl"] .docs-shell {
  grid-template-columns: minmax(0, 1fr) 248px;
}
html[dir="rtl"] .docs-side {
  border-right: 0;
  border-left: 1px solid rgba(167, 214, 192, 0.18);
}
html[dir="rtl"] .docs-callout {
  border-left: 1px solid rgba(255, 78, 47, 0.28);
  border-right: 4px solid var(--docs-orange);
}

.docs-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100vh - 64px);
}

.docs-side {
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow: auto;
  background: var(--docs-teal);
  padding: 22px 14px 40px;
  border-right: 1px solid rgba(167, 214, 192, 0.18);
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.docs-nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.docs-nav-label {
  margin: 0 8px 6px;
  color: var(--docs-green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.docs-nav a {
  text-decoration: none;
  color: var(--soon-on-teal);
  padding: 8px 12px;
  min-height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}
.docs-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.docs-nav a.active {
  background: var(--docs-green);
  color: var(--docs-teal);
  font-weight: 700;
}

.docs-stage {
  min-width: 0;
}

.docs-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 40px 28px;
}
.docs-main h1 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--docs-teal);
  font-weight: 700;
}
.docs-main h2 {
  margin: 36px 0 12px;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--docs-teal);
  font-weight: 700;
}
.docs-main h3 {
  margin: 24px 0 8px;
  font-size: 16px;
  color: var(--docs-teal);
  font-weight: 700;
}
.docs-main p { margin: 0 0 16px; line-height: 1.65; }
.docs-lede,
.docs-main .rdp-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--docs-muted);
  margin-bottom: 22px;
}

.docs-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  color: var(--docs-teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-callout {
  background: #fff7f4;
  color: var(--docs-ink);
  border: 1px solid rgba(255, 78, 47, 0.28);
  border-left: 4px solid var(--docs-orange);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.55;
}
.docs-callout--mint {
  background: #eef7f3;
  border-color: rgba(167, 214, 192, 0.7);
  border-left-color: var(--docs-teal);
}

.docs-list,
.docs-steps { margin: 0 0 18px; padding-left: 22px; }
.docs-list li,
.docs-steps li { margin: 0 0 10px; line-height: 1.55; }

.docs-step-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.docs-step-cards li {
  background: var(--docs-card);
  color: var(--docs-ink);
  border-radius: 14px;
  padding: 16px 16px 18px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 10px 24px rgba(33, 67, 68, 0.06);
  border: 1px solid var(--docs-line);
}
.docs-step-cards li strong {
  display: block;
  margin-bottom: 6px;
  color: var(--docs-teal);
  font-size: 15px;
}
.docs-step-cards li:nth-child(1) { border-top: 3px solid var(--docs-teal); }
.docs-step-cards li:nth-child(2) { border-top: 3px solid var(--docs-orange); }
.docs-step-cards li:nth-child(3) { border-top: 3px solid var(--docs-green); }

.docs-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}
.docs-card {
  display: block;
  background: var(--docs-card);
  color: inherit;
  text-decoration: none;
  border-radius: 14px;
  padding: 18px 18px 16px;
  border: 1px solid var(--docs-line);
  box-shadow: 0 10px 24px rgba(33, 67, 68, 0.06);
  min-height: 100%;
}
a.docs-card:hover {
  border-color: var(--docs-teal);
  box-shadow: 0 14px 28px rgba(33, 67, 68, 0.1);
}
.docs-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.docs-card p {
  margin: 0;
  color: var(--docs-muted);
  font-size: 14px;
}
.docs-card code {
  font-size: 12px;
}
.docs-card-meta {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--docs-teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.docs-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}
.docs-cta,
.docs-panel {
  text-decoration: none;
  background: var(--docs-orange);
  color: #fff;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: none;
}
.docs-cta:hover,
.docs-panel:hover { color: #fff; background: #e63e22; }
.docs-cta-ghost,
a.docs-cta-ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.docs-cta-ghost:hover,
a.docs-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.docs-cta-secondary,
a.docs-cta-secondary {
  background: var(--docs-teal);
  color: #fff;
}
.docs-cta-secondary:hover,
a.docs-cta-secondary:hover {
  background: #193536;
  color: #fff;
}
.docs-cta-outline,
a.docs-cta-outline {
  background: #fff;
  color: var(--docs-teal);
  box-shadow: inset 0 0 0 1px var(--docs-teal);
}
.docs-cta-outline:hover,
a.docs-cta-outline:hover {
  background: #eef6f2;
  color: var(--docs-teal);
}

.docs-table-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
  -webkit-overflow-scrolling: touch;
  background: var(--docs-card);
  border: 1px solid var(--docs-line);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(33, 67, 68, 0.05);
}
.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
}
.docs-table th,
.docs-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--docs-line);
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}
.docs-table tr:last-child td { border-bottom: 0; }
.docs-table th {
  color: var(--docs-teal);
  font-weight: 700;
  white-space: nowrap;
  background: #f6f1ed;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.docs-code {
  margin: 0 0 20px;
  background: var(--docs-code);
  color: #f6f1ed;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(33, 67, 68, 0.12);
}
.docs-code-label {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--docs-green);
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.docs-main pre {
  overflow-x: auto;
  background: var(--docs-code);
  color: #f6f1ed;
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: none;
  margin: 0 0 20px;
}
.docs-code pre {
  margin: 0;
  border-radius: 0;
  background: transparent;
}
.docs-main code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.92em;
}
.docs-main p code,
.docs-main li code,
.docs-main td code,
.docs-main dd code {
  background: #efe7e0;
  color: var(--docs-teal);
  padding: 1px 6px;
  border-radius: 6px;
}

.docs-foot {
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 40px 48px;
  color: var(--docs-quiet);
  font-size: 13px;
  line-height: 1.5;
}
.docs-foot p { margin: 0; }

@media (max-width: 1180px) {
  .docs-shell { grid-template-columns: 1fr; }
  .docs-side {
    position: sticky;
    top: 56px;
    height: auto;
    z-index: 20;
    padding: 10px 12px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .docs-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .docs-nav-group {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    flex-shrink: 0;
  }
  .docs-nav-label { display: none; }
  .docs-nav a {
    background: rgba(255, 255, 255, 0.08);
    min-height: 48px;
    padding: 8px 12px;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .docs-bar .rdp-lang select,
  .docs-cta,
  .docs-panel { min-height: 48px; }
  .docs-bar .rdp-lang select { font-size: 16px; }
  .docs-main { padding: 28px 18px 20px; overflow-x: hidden; }
  .docs-foot { padding: 8px 18px 40px; }
  .docs-main h1 { font-size: 28px; }
  .docs-step-cards,
  .docs-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .docs-bar { padding: 12px 14px; }
  .docs-brand { font-size: 18px; }
  .docs-bar-actions { width: 100%; margin-inline-start: 0; }
  .docs-panel,
  .docs-cta,
  .docs-nav a { min-height: 48px; }
  .docs-main { overflow-x: hidden; }
  .docs-table { min-width: 460px; }
  .docs-table th { white-space: nowrap; }
  .docs-bar-actions .docs-cta { flex: 1 1 auto; }
}

/* Merchant tour — stepped walkthrough, mock desks, sticky outline */
.tour-hero {
  display: grid;
  gap: 16px;
  margin: 0 0 28px;
}
.tour-cta-card {
  background: #fff;
  border: 1px solid var(--docs-line);
  border-radius: 16px;
  padding: 20px 22px 18px;
  box-shadow: 0 12px 28px rgba(33, 67, 68, 0.08);
}
.tour-cta-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.tour-cta-card p { margin: 0 0 12px; }
.tour-creds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.tour-creds li {
  margin: 0;
  padding: 10px 12px;
  background: #f6f1ed;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}
.tour-creds span {
  display: block;
  color: var(--docs-quiet);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.tour-outline {
  position: sticky;
  top: 68px;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 28px;
  padding: 10px;
  background: rgba(253, 244, 239, 0.94);
  border: 1px solid var(--docs-line);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.tour-outline a {
  text-decoration: none;
  color: var(--docs-teal);
  background: #fff;
  border: 1px solid var(--docs-line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.tour-outline a:hover { border-color: var(--docs-teal); }
.tour-outline a.is-active {
  background: var(--docs-teal);
  color: #fff;
  border-color: var(--docs-teal);
}
.tour-step {
  scroll-margin-top: 140px;
  margin: 0 0 36px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--docs-line);
}
.tour-step:last-of-type { border-bottom: 0; }
.tour-step-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--docs-orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tour-clicks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.tour-click {
  background: #eef6f2;
  color: var(--docs-teal);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}
.tour-mock {
  position: relative;
  background: var(--docs-teal);
  color: #c5d4d2;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 0 16px;
  box-shadow: 0 16px 32px rgba(33, 67, 68, 0.16);
  min-height: 220px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
}
.tour-mock-side {
  padding: 14px 10px 18px;
  border-right: 1px solid rgba(167, 214, 192, 0.18);
  font-size: 11px;
  line-height: 1.35;
}
.tour-mock-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 12px;
}
.tour-mock-brand i {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--docs-green);
  display: inline-block;
}
.tour-mock-side b {
  display: block;
  color: var(--docs-green);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 8px 0 4px;
}
.tour-mock-side span {
  display: block;
  padding: 4px 6px;
  border-radius: 6px;
}
.tour-mock-side span.on {
  background: var(--docs-green);
  color: var(--docs-teal);
  font-weight: 700;
}
.tour-mock-main {
  background: var(--docs-cream);
  color: var(--docs-ink);
  padding: 14px 16px 16px;
}
.tour-mock-main h4 {
  margin: 0 0 10px;
  color: var(--docs-teal);
  font-size: 15px;
}
.tour-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}
.tour-metric {
  background: #fff;
  border: 1px solid var(--docs-line);
  border-radius: 10px;
  padding: 8px 10px;
}
.tour-metric em {
  display: block;
  font-style: normal;
  color: var(--docs-quiet);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tour-metric strong {
  display: block;
  color: var(--docs-teal);
  font-size: 16px;
  margin-top: 2px;
}
.tour-rows {
  background: #fff;
  border: 1px solid var(--docs-line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 12px;
}
.tour-rows div {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.8fr;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--docs-line);
}
.tour-rows div:last-child { border-bottom: 0; }
.tour-rows .ok { color: #1d6b4a; font-weight: 700; }
.tour-rows .bad { color: var(--docs-orange); font-weight: 700; }
.tour-pin {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--docs-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(255, 78, 47, 0.22);
}
.tour-pin-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--docs-muted);
}
.tour-pin-note i {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--docs-orange);
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.tour-step-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 4px;
}
.tour-step-nav a {
  text-decoration: none;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
}
.tour-step-nav .tour-prev {
  color: var(--docs-teal);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--docs-teal);
}
.tour-step-nav .tour-next {
  color: #fff;
  background: var(--docs-teal);
  margin-inline-start: auto;
}
.tour-step-nav .is-disabled {
  visibility: hidden;
  pointer-events: none;
}

html[dir="rtl"] .tour-mock {
  grid-template-columns: minmax(0, 1fr) 132px;
}
html[dir="rtl"] .tour-mock-side {
  border-right: 0;
  border-left: 1px solid rgba(167, 214, 192, 0.18);
}
html[dir="rtl"] .tour-step-nav .tour-next { margin-inline-start: 0; margin-inline-end: auto; }

@media (max-width: 720px) {
  .tour-creds,
  .tour-metrics,
  .tour-mock { grid-template-columns: 1fr; }
  .tour-mock-side { display: none; }
  .tour-outline { top: 56px; }
  .tour-step { scroll-margin-top: 168px; }
}
