/* ------------------------------------------------------------------
   Coriunder e-commerce extensions - docs pages
   Ported from Extensions\<platform>\landing\index.html and
   Extensions\index.html so the pages keep their look inside the
   Merchants.Master layout.

   Every rule is scoped so it cannot leak into the Dashlite chrome:
     .ext-page       platform landing pages
     .ext-changelog  the shared release-history page

   Per-platform accent colours are set inline on each page.
   ------------------------------------------------------------------ */

/* ============================ landing pages ======================== */
.ext-page {--bg:#f5f6fa; --card:#fff; --text:#526484; --head:#364a63; --muted:#8094ae;
  --border:#e5e9f2; --border-soft:#eff2f7; --primary:#6576ff; --primary-soft:#eef0ff;
  --accent:#96588a; --accent-soft:#f7eff6; --accent-rgb:150,88,138; --ok:#0a9b78; --ok-soft:#e5faf5;
  --code-bg:#f5f6fa; --code-text:#364a63; --header-bg:rgba(255,255,255,.92);
  --shadow:0 1px 3px rgba(54,74,99,.08); --shadow-lg:0 12px 40px rgba(54,74,99,.10);}
body.dark-mode .ext-page {--bg:#101924; --card:#1c2b46; --text:#b6c6e3; --head:#e5e9f2; --muted:#8094ae;
  --border:#203247; --border-soft:#1b2b40; --primary:#6576ff; --primary-soft:#232c4d;
  --accent-soft:#2e2340; --ok:#1ee0ac; --ok-soft:#123b34;
  --code-bg:#141f2f; --code-text:#c4cefe; --header-bg:rgba(28,43,70,.92);
  --shadow:none; --shadow-lg:0 12px 40px rgba(0,0,0,.35);}
.ext-page * {box-sizing:border-box}
.ext-page h1,.ext-page h2,.ext-page h3,.ext-page h4,.ext-page .title {font-family:Quicksand,Roboto,Arial,sans-serif;color:var(--head);font-weight:700;margin:0;line-height:1.25}
.ext-page p {margin:0 0 14px}
.ext-page a {color:var(--primary);text-decoration:none}
.ext-page a:hover {text-decoration:underline}
.ext-page code {font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.8125rem;background:var(--code-bg);color:var(--code-text);padding:1px 5px;border-radius:3px}
.ext-page .wrap {max-width:1120px;margin:0 auto;padding:0 24px}
.ext-page .eyebrow {font-size:.6875rem;letter-spacing:.16em;text-transform:uppercase;font-weight:700;color:var(--primary);margin-bottom:12px}
.ext-page .btn {display:inline-flex;align-items:center;gap:8px;border-radius:4px;padding:10px 20px;font-size:.8125rem;font-weight:500;border:1px solid transparent;cursor:pointer;font-family:inherit;line-height:1.4}
.ext-page .btn-primary {background:var(--primary);color:#fff}
.ext-page .btn-primary:hover {background:#4d5fe3;color:#fff;text-decoration:none}
.ext-page .btn-light {background:#fff;color:#0e123a}
.ext-page .btn-light:hover {background:#eef0ff;color:#0e123a;text-decoration:none}
.ext-page .btn-outline {border-color:rgba(255,255,255,.4);color:#fff}
.ext-page .btn-outline:hover {background:rgba(255,255,255,.12);color:#fff;text-decoration:none}
.ext-page .btn-ghost {border-color:var(--border);color:var(--text)}
.ext-page .btn-ghost:hover {border-color:var(--primary);color:var(--primary);text-decoration:none}
.ext-page .hero {background:linear-gradient(120deg,#0e123a,#2b3990);color:#fff;padding:72px 0 78px;position:relative;overflow:hidden}
.ext-page .hero::after {content:"";position:absolute;right:-140px;top:-140px;width:460px;height:460px;border-radius:50%;background:radial-gradient(circle,rgba(var(--accent-rgb),0.42),transparent 68%)}
.ext-page .hero-grid {display:grid;grid-template-columns:1.15fr .85fr;gap:48px;align-items:center;position:relative;z-index:1}
.ext-page .hero .eyebrow {color:#c4cefe}
.ext-page .hero h1 {color:#fff;font-size:2.5rem;margin-bottom:16px}
.ext-page .hero .lede {color:#c8d0f5;font-size:1.0625rem;max-width:560px;margin-bottom:26px}
.ext-page .hero .lede code {background:rgba(255,255,255,.14);color:#e6ebff}
.ext-page .hero-act {display:flex;gap:12px;flex-wrap:wrap;margin-bottom:30px}
.ext-page .hero-facts {display:flex;gap:34px;flex-wrap:wrap}
.ext-page .hero-facts .num {font-family:Quicksand,sans-serif;font-size:1.625rem;font-weight:700;color:#fff;line-height:1.1}
.ext-page .hero-facts .lbl {font-size:.6875rem;text-transform:uppercase;letter-spacing:.12em;color:#a9b5ef}
.ext-page .mock {background:#fff;border-radius:8px;box-shadow:0 20px 50px rgba(0,0,0,.32);overflow:hidden;color:#526484;font-size:.8125rem}
.ext-page .mock-bar {display:flex;align-items:center;gap:6px;padding:10px 14px;background:#f5f6fa;border-bottom:1px solid #e5e9f2}
.ext-page .mock-dot {width:9px;height:9px;border-radius:50%;background:#dbe0ea}
.ext-page .mock-url {margin-left:8px;font-size:.6875rem;color:#8094ae;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ext-page .mock-body {padding:18px}
.ext-page .mock-h {font-family:Quicksand,sans-serif;font-weight:700;color:#364a63;font-size:.9375rem;margin-bottom:12px}
.ext-page .pm {display:flex;align-items:center;gap:10px;border:1px solid #e5e9f2;border-radius:5px;padding:11px 13px;margin-bottom:8px}
.ext-page .pm.on {border-color:#6576ff;background:#eef0ff}
.ext-page .pm .radio {width:15px;height:15px;border-radius:50%;border:2px solid #cdd5e4;flex:0 0 auto}
.ext-page .pm.on .radio {border-color:#6576ff;box-shadow:inset 0 0 0 3px #fff;background:#6576ff}
.ext-page .pm .nm {font-weight:500;color:#364a63}
.ext-page .pm .tag {margin-left:auto;font-size:.625rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#0a9b78;background:#e5faf5;border-radius:9px;padding:1px 8px}
.ext-page .mock-note {font-size:.75rem;color:#8094ae;margin:12px 0 14px}
.ext-page .mock-btn {background:#6576ff;color:#fff;text-align:center;border-radius:4px;padding:10px;font-weight:500}
.ext-page section {padding:72px 0}
.ext-page .sec-head {max-width:680px;margin-bottom:34px}
.ext-page .sec-head h2 {font-size:1.75rem;margin-bottom:10px}
.ext-page .sec-head p {color:var(--muted);margin:0}
.ext-page .band {background:var(--card);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.ext-page .grid-3 {display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}
.ext-page .grid-2 {display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px}
.ext-page .card {background:var(--card);border:1px solid var(--border);border-radius:6px;padding:26px;box-shadow:var(--shadow);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.ext-page .band .card {background:var(--bg)}
.ext-page .card:hover {transform:translateY(-3px);box-shadow:var(--shadow-lg);border-color:var(--primary)}
.ext-page .card h3 {font-size:1.0625rem;margin-bottom:8px}
.ext-page .card p {margin:0;font-size:.875rem}
.ext-page .ico {width:40px;height:40px;border-radius:9px;background:var(--primary-soft);color:var(--primary);display:inline-flex;align-items:center;justify-content:center;margin-bottom:16px}
.ext-page .ico svg {width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ext-page .ico.alt {background:var(--accent-soft);color:var(--accent)}
body.dark-mode .ext-page .ico.alt {color:#fff}
.ext-page .steps {counter-reset:s;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}
.ext-page .step {position:relative;background:var(--card);border:1px solid var(--border);border-radius:6px;padding:26px;box-shadow:var(--shadow)}
.ext-page .step::before {counter-increment:s;content:counter(s);position:absolute;top:-15px;left:26px;width:32px;height:32px;border-radius:50%;background:var(--primary);color:#fff;font-family:Quicksand,sans-serif;font-weight:700;font-size:.875rem;display:flex;align-items:center;justify-content:center}
.ext-page .step h3 {font-size:1rem;margin:12px 0 6px}
.ext-page .step p {font-size:.875rem;margin:0}
.ext-page .table-wrap {overflow-x:auto;background:var(--card);border:1px solid var(--border);border-radius:6px;box-shadow:var(--shadow)}
.ext-page table {width:100%;border-collapse:collapse;font-size:.875rem}
.ext-page th {text-align:left;font-size:.6875rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:700;padding:14px 22px;border-bottom:1px solid var(--border);background:var(--bg)}
.ext-page td {padding:13px 22px;border-bottom:1px solid var(--border-soft);vertical-align:top}
.ext-page tr:last-child td {border-bottom:0}
.ext-page td:first-child {color:var(--head);font-weight:500;white-space:nowrap}
.ext-page .checks {list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:12px 26px}
.ext-page .checks li {position:relative;padding-left:30px;font-size:.875rem}
.ext-page .checks li::before {content:"";position:absolute;left:0;top:.45em;width:18px;height:18px;border-radius:50%;background:var(--ok-soft)}
.ext-page .checks li::after {content:"";position:absolute;left:5px;top:.72em;width:8px;height:4px;border-left:2px solid var(--ok);border-bottom:2px solid var(--ok);transform:rotate(-45deg)}
.ext-page .checks b {color:var(--head);font-weight:500}
.ext-page .faq {max-width:800px}
.ext-page details {background:var(--card);border:1px solid var(--border);border-radius:6px;padding:0 22px;margin-bottom:10px;box-shadow:var(--shadow)}
.ext-page details[open] {border-color:var(--primary)}
.ext-page summary {cursor:pointer;list-style:none;padding:17px 0;font-family:Quicksand,sans-serif;font-weight:700;color:var(--head);font-size:.9375rem;display:flex;align-items:center;gap:12px}
.ext-page summary::-webkit-details-marker {display:none}
.ext-page summary::after {content:"+";margin-left:auto;color:var(--primary);font-size:1.25rem;line-height:1}
.ext-page details[open] summary::after {content:"\2212"}
.ext-page details p {padding-bottom:18px;margin:0;font-size:.875rem}
.ext-page .cta {background:linear-gradient(120deg,#0e123a,#2b3990);color:#fff;border-radius:8px;padding:52px 44px;text-align:center}
.ext-page .cta h2 {color:#fff;font-size:1.75rem;margin-bottom:12px}
.ext-page .cta p {color:#c8d0f5;max-width:560px;margin:0 auto 24px}
.ext-page .cta-act {display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
@media (max-width:900px) {
  .ext-page .hero-grid {grid-template-columns:1fr;gap:38px}
  .ext-page .hero h1 {font-size:2rem}
}
@media (max-width:600px) {
  .ext-page section {padding:52px 0}
  .ext-page .hero {padding:52px 0}
  .ext-page .cta {padding:38px 22px}
}

.ext-page {color:var(--text);font-family:Roboto,"Helvetica Neue",Arial,sans-serif;font-size:.9375rem;line-height:1.7;-webkit-font-smoothing:antialiased}
.ext-page > .hero:first-child {border-radius:6px}
.ext-page section:last-child {padding-bottom:0}
.ext-page section {padding:56px 0}
.ext-page .hero {padding:56px 0 62px;border-radius:6px}
.ext-page .band {border-radius:6px}

/* =========================== release history ======================= */
.ext-changelog {--bg:#f5f6fa; --card:#fff; --text:#526484; --head:#364a63; --muted:#8094ae;
  --border:#e5e9f2; --border-soft:#eff2f7; --primary:#6576ff; --primary-soft:#eef0ff;
  --code-bg:#f5f6fa; --code-text:#364a63; --header-bg:#fff; --side-bg:#fff; --shadow:0 1px 3px rgba(54,74,99,.08);}
body.dark-mode .ext-changelog {--bg:#101924; --card:#1c2b46; --text:#b6c6e3; --head:#e5e9f2; --muted:#8094ae;
  --border:#203247; --border-soft:#1b2b40; --primary:#6576ff; --primary-soft:#232c4d;
  --code-bg:#141f2f; --code-text:#c4cefe; --header-bg:#1c2b46; --side-bg:#1c2b46; --shadow:none;}
.ext-changelog * {box-sizing:border-box}
.ext-changelog h1,.ext-changelog h2,.ext-changelog h3,.ext-changelog h4,.ext-changelog h5,.ext-changelog h6,.ext-changelog .title {font-family:Quicksand,Roboto,Arial,sans-serif;color:var(--head);font-weight:700;margin:0}
.ext-changelog a {color:var(--primary);text-decoration:none}
.ext-changelog a:hover {text-decoration:underline}
.ext-changelog code {font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.8125rem;background:var(--code-bg);color:var(--code-text);padding:1px 5px;border-radius:3px}
.ext-changelog pre {font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.8125rem;background:var(--code-bg);color:var(--code-text);padding:16px 18px;border-radius:4px;border:1px solid var(--border);overflow-x:auto;line-height:1.6;margin:0}
.ext-changelog pre code {background:none;padding:0}
.ext-changelog .mi {width:22px;height:22px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:9px;font-weight:700;font-family:Quicksand,sans-serif;flex:0 0 auto}
.ext-changelog .header-content {display:flex;gap:30px;align-items:center;justify-content:space-between;background:linear-gradient(120deg,#0e123a,#2b3990);border-radius:6px;padding:38px 40px;margin-bottom:26px;color:#fff}
.ext-changelog .header-caption {max-width:640px}
.ext-changelog .header-rating {display:inline-flex;align-items:center;gap:8px;font-size:.75rem;color:#c4cefe;margin-bottom:10px;text-transform:uppercase;letter-spacing:.12em;font-weight:700}
.ext-changelog .header-title {color:#fff;font-size:1.75rem;line-height:1.25;margin-bottom:10px}
.ext-changelog .header-text {color:#c8d0f5;font-size:.875rem;margin:0 0 18px}
.ext-changelog .header-action {display:flex;gap:10px;flex-wrap:wrap}
.ext-changelog .btn {display:inline-block;border-radius:4px;padding:9px 18px;font-size:.8125rem;font-weight:500;border:1px solid transparent;cursor:pointer;font-family:inherit}
.ext-changelog .btn-primary {background:var(--primary);color:#fff}
.ext-changelog .btn-primary:hover {background:#4d5fe3;text-decoration:none;color:#fff}
.ext-changelog .btn-outline {border-color:rgba(255,255,255,.4);color:#fff}
.ext-changelog .btn-outline:hover {background:rgba(255,255,255,.1);text-decoration:none;color:#fff}
.ext-changelog .header-stats {display:flex;gap:26px;flex-wrap:wrap}
.ext-changelog .stat .num {font-family:Quicksand,sans-serif;font-size:1.75rem;font-weight:700;color:#fff;line-height:1}
.ext-changelog .stat .lbl {font-size:.6875rem;text-transform:uppercase;letter-spacing:.12em;color:#a9b5ef}
.ext-changelog .section-head {margin:34px 0 14px}
.ext-changelog .section-head .title {font-size:1.125rem}
.ext-changelog .section-head .sub {font-size:.8125rem;color:var(--muted)}
.ext-changelog .grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.ext-changelog .card {background:var(--card);border:1px solid var(--border);border-radius:4px;box-shadow:var(--shadow)}
.ext-changelog .card-inner {padding:20px 22px}
.ext-changelog .card + .card {margin-top:14px}
.ext-changelog .tile {display:flex;gap:12px;align-items:flex-start}
.ext-changelog .tile .title {font-size:.9375rem}
.ext-changelog .tile .meta {font-size:.75rem;color:var(--muted)}
.ext-changelog .tile-body {flex:1;min-width:0}
.ext-changelog .tile-date {margin-top:8px;padding-top:8px;border-top:1px solid var(--border-soft);font-size:.6875rem;color:var(--muted)}
.ext-changelog .tile-date b {color:var(--head);font-weight:500}
.ext-changelog .tile-date b.tile-nodate {color:#9a7a06;font-weight:500}
body.dark-mode .ext-changelog .tile-date b.tile-nodate {color:#f4bd0e}
.ext-changelog .tile-ver {margin-left:auto;font-size:.75rem;font-weight:700;color:var(--primary);background:var(--primary-soft);padding:2px 8px;border-radius:12px;white-space:nowrap}
.ext-changelog .platform {scroll-margin-top:90px;margin-top:38px}
.ext-changelog .platform-head {display:flex;align-items:center;gap:14px;padding-bottom:14px;border-bottom:1px solid var(--border);margin-bottom:18px}
.ext-changelog .platform-head .mi {width:38px;height:38px;border-radius:8px;font-size:13px}
.ext-changelog .platform-head .title {font-size:1.25rem}
.ext-changelog .platform-head .sub {font-size:.8125rem;color:var(--muted)}
.ext-changelog .platform-head .tile-ver {font-size:.8125rem;padding:4px 12px}
.ext-changelog table {width:100%;border-collapse:collapse;font-size:.8125rem}
.ext-changelog th {text-align:left;font-size:.6875rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:700;padding:0 12px 8px 0;border-bottom:1px solid var(--border)}
.ext-changelog td {padding:9px 12px 9px 0;border-bottom:1px solid var(--border-soft);vertical-align:top}
.ext-changelog tr:last-child td {border-bottom:0}
.ext-changelog td:first-child {color:var(--head);font-weight:500;white-space:nowrap}
.ext-changelog .table-wrap {overflow-x:auto}
.ext-changelog ul.plain {margin:0;padding-left:18px}
.ext-changelog ul.plain li {margin-bottom:5px}
.ext-changelog ul.plain li:last-child {margin-bottom:0}
.ext-changelog .ver {position:relative;padding:0 0 4px 26px;border-left:2px solid var(--border);margin-left:6px}
.ext-changelog .ver:last-child {border-left-color:transparent}
.ext-changelog .ver::before {content:"";position:absolute;left:-7px;top:6px;width:12px;height:12px;border-radius:50%;background:var(--card);border:3px solid var(--primary)}
.ext-changelog .ver.old::before {border-color:var(--border)}
.ext-changelog .ver-head {display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.ext-changelog .badge-ver {font-family:Quicksand,sans-serif;font-weight:700;font-size:.9375rem;color:var(--head)}
.ext-changelog .ver-date {font-size:.75rem;color:var(--muted)}
.ext-changelog .chip {font-size:.625rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:2px 8px;border-radius:10px}
.ext-changelog .chip-current {background:#e5faf5;color:#0a9b78}
body.dark-mode .ext-changelog .chip-current {background:#123b34;color:#1ee0ac}
.ext-changelog .chip-pkg {background:var(--primary-soft);color:var(--primary)}
.ext-changelog .ver-body {padding-bottom:20px}
.ext-changelog .grp {margin-bottom:12px}
.ext-changelog .grp:last-child {margin-bottom:0}
.ext-changelog .tag {display:inline-block;font-size:.625rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:2px 9px;border-radius:3px;margin-bottom:6px}
.ext-changelog .t-security {background:#fdefee;color:#c9382e}
.ext-changelog .t-added {background:#e5faf5;color:#0a9b78}
.ext-changelog .t-fixed {background:#e3f7fb;color:#0a8fa6}
.ext-changelog .t-changed {background:#fdf5e1;color:#9a7a06}
.ext-changelog .t-removed {background:#eff2f7;color:#66799e}
.ext-changelog .t-compat {background:#f0edfd;color:#6b4fd8}
.ext-changelog .t-note {background:#eff2f7;color:#66799e}
body.dark-mode .ext-changelog .t-security {background:#3a2020;color:#f78b82}
body.dark-mode .ext-changelog .t-added {background:#123b34;color:#1ee0ac}
body.dark-mode .ext-changelog .t-fixed {background:#0f3540;color:#4fd3ea}
body.dark-mode .ext-changelog .t-changed {background:#3a3113;color:#f4bd0e}
body.dark-mode .ext-changelog .t-removed,body.dark-mode .ext-changelog .t-note {background:#243652;color:#a3b6d8}
body.dark-mode .ext-changelog .t-compat {background:#2b2551;color:#a996f7}
.ext-changelog .ver-body ul {margin:0;padding-left:18px}
.ext-changelog .ver-body li {margin-bottom:5px}
.ext-changelog .ver-body li:last-child {margin-bottom:0}
.ext-changelog .alert {border-radius:4px;padding:12px 16px;font-size:.8125rem;border:1px solid var(--border);background:var(--code-bg);margin-top:14px}
.ext-changelog .alert b {color:var(--head)}
.ext-changelog .no-results {padding:40px;text-align:center;color:var(--muted);display:none}
@media (max-width:1200px) {
  .ext-changelog .header-stats {display:none}
}
@media (max-width:575px) {
  .ext-changelog .header-content {padding:26px 20px}
  .ext-changelog .header-title {font-size:1.375rem}
}
@media print {
  .ext-changelog .card {break-inside:avoid}
}

.ext-changelog {color:var(--text);font-family:Roboto,"Helvetica Neue",Arial,sans-serif;font-size:.875rem;line-height:1.65;-webkit-font-smoothing:antialiased}
.ext-changelog .ext-filter {width:100%;max-width:340px;height:38px;border:1px solid var(--border);background:var(--card);color:var(--text);border-radius:4px;padding:0 12px;font-family:inherit;font-size:.8125rem;outline:none}
.ext-changelog .ext-filter:focus {border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}
.ext-changelog .ext-jump {display:flex;flex-wrap:wrap;gap:8px;margin:0 0 6px}
.ext-changelog .ext-jump a {display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border);background:var(--card);border-radius:20px;padding:5px 13px 5px 6px;font-size:.75rem;font-weight:500;color:var(--text)}
.ext-changelog .ext-jump a:hover {border-color:var(--primary);color:var(--primary);text-decoration:none}
