/*
 * Matchbook Build: main stylesheet.
 *
 * The design's CSS sits between the two markers below, copied verbatim from design/mvp.html.
 * Never edit it in place: put every change in the theme additions block at the end (guide 02).
 */

/* Montserrat variable font, Latin subset, self-hosted (SIL OFL 1.1, see ../fonts/OFL.txt). */
@font-face {
	font-family: "Montserrat";
	src: url("../fonts/montserrat-latin-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* === design/mvp.html lines 13–470, verbatim: change nothing until the additions marker === */
/* Matchbook Build MVP, built on the v5 design. Concept: the site reads like an exchange market.
   Grey canvas, white panels, Montserrat only, Matchbook red for action and key numbers,
   back-blue and lay-pink borrowed from the ladder to carry "you pay" and "you earn". */
.mbx{
  --red:#E4222E; --red-ink:#B8121D; --red-tint:#FDEBED;
  --slate:#0C0C0C; --slate-2:#181818; --slate-line:#2E2E2E; --on-slate:#E8E8E8; --on-slate-mute:#A6A6A6; /* Matchbook B2B black */
  --canvas:#EFF1F4; --panel:#FFFFFF; --line:#DDE1E7; --line-2:#C8CDD5; --ink:#16181D; --mute:#596070;
  --back:#A6D8FF; --back-2:#D8EDFF; --lay:#FAC3CD; --lay-2:#FDE2E7;
  --green:#12603A; --green-tint:#E3F3EA;
  --font:Montserrat,Helvetica,Arial,sans-serif;
  --code:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --head:64px;
  --r-frame:16px; --r-panel:10px; --r-ctl:6px; --r-cell:0px;
  color-scheme:light; font-family:var(--font); font-size:16px; line-height:1.65; color:var(--ink); background:var(--canvas);
  font-variant-numeric:lining-nums;
}
body{margin:0;background:#EFF1F4}
.mbx *,.mbx *::before,.mbx *::after{box-sizing:border-box}
.mbx [hidden]{display:none !important}
.mbx a{color:var(--red-ink);text-underline-offset:3px}
.mbx a:hover{color:#8A0D16}
.mbx :focus-visible{outline:3px solid var(--red);outline-offset:2px;border-radius:4px}
.mbx button,.mbx input,.mbx select,.mbx textarea{font:inherit}
.mbx-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- top bar ---------- */
.mbx-top{position:sticky;top:0;z-index:20;background:var(--slate)}
.mbx-bar{display:flex;align-items:center;gap:22px;padding:0 24px;height:var(--head)}
.mbx-brand{display:flex;align-items:center;gap:14px;text-decoration:none;flex:0 0 auto}
.mbx-brand img{display:block;height:28px;width:auto}
.mbx-brand span{font-weight:700;font-size:14px;color:var(--on-slate-mute);padding-left:14px;border-left:1px solid var(--slate-line)}
.mbx-search{flex:1 1 auto;max-width:360px;position:relative}
.mbx-search input{width:100%;height:40px;border-radius:var(--r-ctl);border:1px solid var(--slate-line);background:var(--slate-2);color:#fff;padding:0 12px 0 38px;font-size:14px}
.mbx-search input::placeholder{color:#8C8C8C}
.mbx-search svg{position:absolute;left:12px;top:12px}
.mbx-actions{margin-left:auto;display:flex;gap:6px;align-items:center}
.mbx-actions a.mbx-toplink{color:var(--on-slate);text-decoration:none;font-size:14px;font-weight:600;padding:10px 12px;border-radius:var(--r-ctl)}
.mbx-actions a.mbx-toplink:hover{color:#fff;background:var(--slate-2)}
.mbx-menu{display:none;background:transparent;border:1px solid var(--slate-line);color:#fff;border-radius:var(--r-ctl);height:42px;width:44px;padding:0;justify-content:center;align-items:center;cursor:pointer}
.mbx-menu .x{display:none}
.mbx-menu[aria-expanded="true"] .bars{display:none}
.mbx-menu[aria-expanded="true"] .x{display:block}

/* ---------- shell + sidebar ---------- */
.mbx-shell{display:flex;align-items:flex-start;max-width:1440px;margin:0 auto}
.mbx-side{flex:0 0 272px;position:sticky;top:var(--head);height:calc(100vh - var(--head));overflow-y:auto;padding:22px 16px 40px;background:var(--panel);border-right:1px solid var(--line)}
.mbx-group{border-bottom:1px solid var(--line);padding:4px 0}
.mbx-group:last-of-type{border-bottom:0}
.mbx-group h2{margin:0}
.mbx-group h2 button{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;background:none;border:0;padding:10px 10px;cursor:pointer;color:var(--red);font-weight:800;font-size:14.5px;text-align:left;border-radius:var(--r-ctl)}
.mbx-group h2 button:hover{background:var(--red-tint)}
.mbx-group h2 button svg{transition:transform .2s;flex:0 0 auto}
.mbx-group.is-open h2 button svg{transform:rotate(180deg)}
.mbx-group ul{list-style:none;margin:0 0 8px;padding:0}
.mbx-group:not(.is-open) ul{display:none}
.mbx-side.is-searching .mbx-group ul{display:block}
.mbx-group a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px 7px 14px;border-radius:var(--r-ctl);font-size:14px;font-weight:500;color:#30343C;text-decoration:none}
.mbx-group a:hover{background:var(--canvas);color:var(--ink)}
.mbx-group a.is-active{background:var(--canvas);color:var(--ink);font-weight:700;box-shadow:inset 3px 0 0 var(--red)}
.mbx-pill{font-size:11px;font-weight:700;padding:1px 7px;border-radius:999px;background:var(--canvas);color:var(--mute);white-space:nowrap}
.mbx-pill.is-new{background:var(--red);color:#fff}
.mbx-noresults{padding:8px 10px;font-size:14px;color:var(--mute)}
.mbx-side-search{display:none;margin-bottom:14px}
.mbx-side-search input{width:100%;height:42px;border:1px solid var(--line-2);border-radius:var(--r-ctl);padding:0 12px;background:var(--panel);color:var(--ink)}

/* ---------- page type ---------- */
.mbx-main{flex:1 1 0;min-width:0;padding:44px 52px 80px;max-width:1120px}
.mbx-page{display:flex;flex-direction:column;gap:20px;scroll-margin-top:calc(var(--head) + 24px)}
.mbx-crumb{display:none}
.mbx-page h1{margin:0;font-weight:800;font-size:40px;line-height:1.1;letter-spacing:-.02em;text-wrap:balance;max-width:20em}
.mbx-page h1 em{font-style:normal}
.mbx-page h2{margin:24px 0 0;font-weight:800;font-size:24px;line-height:1.2;letter-spacing:-.01em}
.mbx-page h3{margin:0;font-weight:700;font-size:17px;line-height:1.3}
.mbx-page p{margin:0}
.mbx-lede{font-size:19px;line-height:1.55;color:#353A44;max-width:36em}
.mbx-page ul.mbx-list{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:8px;max-width:42em}
.mbx-page ul.mbx-list li::marker{color:var(--red)}
.mbx-muted{color:var(--mute)} .mbx-small{font-size:13.5px;color:var(--mute);max-width:52em}
.mbx-w{max-width:42em}

/* ---------- controls ---------- */
.mbx-btns{display:flex;gap:10px;flex-wrap:wrap}
.mbx-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 20px;min-height:46px;border-radius:var(--r-ctl);font-weight:700;font-size:15px;text-decoration:none;border:1.5px solid transparent;cursor:pointer;line-height:1.2}
.mbx a.mbx-btn-primary,.mbx button.mbx-btn-primary{background:var(--red);color:#fff}
.mbx a.mbx-btn-primary:hover,.mbx button.mbx-btn-primary:hover{background:#C51824;color:#fff}
.mbx a.mbx-btn-ghost,.mbx button.mbx-btn-ghost{background:var(--panel);color:var(--ink);border-color:var(--line-2)}
.mbx a.mbx-btn-ghost:hover{border-color:var(--ink);color:var(--ink)}
.mbx a.mbx-btn-dark{background:transparent;color:#fff;border-color:#4D4D4D}
.mbx a.mbx-btn-dark:hover{border-color:#fff;color:#fff}
.mbx a.mbx-btn-light{background:#fff;color:var(--ink)} .mbx a.mbx-btn-light:hover{background:#E6E8EC;color:var(--ink)}
.mbx-actions .mbx-btn{min-height:40px}

.mbx-chip{align-self:flex-start;font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;background:var(--canvas);color:#3A3F49;white-space:nowrap;line-height:1.5}
.mbx-chip.is-live{background:var(--green-tint);color:var(--green)}
.mbx-chip.is-apply{background:var(--red-tint);color:var(--red-ink)}
.mbx-chip.is-road{background:transparent;color:var(--mute);box-shadow:inset 0 0 0 1.5px var(--line-2)}

.mbx-ico{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--red-tint);color:var(--red);flex:0 0 auto}

/* ---------- ladder ---------- */
.mbx-ladder{min-width:0;background:var(--slate-2);border:1px solid var(--slate-line);border-radius:var(--r-panel);overflow:hidden}
.mbx-ladder-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 18px;border-bottom:1px solid var(--slate-line);font-size:13px;color:var(--on-slate-mute)}
.mbx-ladder-head b{color:#fff;font-weight:700}
.mbx-ladder-scroll{overflow-x:auto}
.mbx-ladder table{width:100%;min-width:400px;border-collapse:separate;border-spacing:3px;padding:10px 12px 12px;font-variant-numeric:tabular-nums}
.mbx-ladder th{font-weight:700;font-size:12px;color:var(--on-slate-mute);padding:4px 6px;text-align:center}
.mbx-ladder th.r{text-align:left}
.mbx-ladder td{padding:7px 4px;text-align:center;border-radius:var(--r-cell);font-size:15px;font-weight:700;color:#10131A;line-height:1.2;transition:box-shadow .3s}
.mbx-ladder td small{display:block;font-size:10.5px;font-weight:500;color:#3B4252}
.mbx-ladder td.r{text-align:left;color:#fff;background:transparent;font-weight:600;padding-left:6px;white-space:nowrap}
.mbx-ladder td.b{background:var(--back)} .mbx-ladder td.b2{background:var(--back-2)}
.mbx-ladder td.l{background:var(--lay)} .mbx-ladder td.l2{background:var(--lay-2)}
.mbx-ladder-foot{padding:11px 18px;border-top:1px solid var(--slate-line);font-size:12.5px;font-weight:500;color:var(--on-slate-mute);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}

/* ---------- home (revised: ladder is the hero, one dense list) ---------- */
.mbx-home{gap:36px}
.h-hero{background:var(--slate);color:#fff;border-radius:var(--r-frame);padding:40px 36px 36px;display:flex;flex-direction:column;gap:30px}
.h-top{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:32px;align-items:end}
.mbx-page .h-hero h1{color:#fff;font-weight:900;font-size:64px;line-height:.98;letter-spacing:-.035em;max-width:9em}
.h-intro{display:flex;flex-direction:column;gap:18px}
.h-intro p{color:#CCCCCC;font-size:17px;line-height:1.6;max-width:30em}
.h-trade{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:0;border:1px solid var(--slate-line);border-radius:var(--r-panel);overflow:hidden;background:var(--slate-2)}
.h-trade .mbx-ladder{border:0;border-radius:0;background:transparent;display:flex;flex-direction:column}
.h-trade .mbx-ladder-scroll{flex:1 1 auto;display:flex}
.h-trade .mbx-ladder table{height:100%}
.h-trade .mbx-ladder-foot{margin-top:auto}
.mbx-ladder td{padding:0;height:1px}
.mbx-ladder td button{all:unset;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;width:100%;height:100%;min-height:52px;padding:8px 4px;cursor:pointer;text-align:center;font:inherit;font-size:16px;font-weight:700;color:#10131A;line-height:1.2}
.mbx-ladder td button small{display:block;font-size:11px;font-weight:500;color:#3B4252}
.mbx-ladder td button:hover{box-shadow:inset 0 0 0 2px rgba(16,19,26,.35)}
.mbx-ladder td button:focus-visible{outline:3px solid #fff;outline-offset:-3px}
.mbx-ladder td.is-sel{box-shadow:inset 0 0 0 3px #fff}
.mbx-ladder td.r{padding:6px 10px 6px 6px}
.h-req{display:flex;flex-direction:column;gap:12px;padding:16px 18px;border-left:1px solid var(--slate-line);min-width:0}
.h-req-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.h-req-head b{font-size:15px;font-weight:700;color:#fff}
.h-req-head label{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--on-slate-mute)}
.h-req-head input{width:76px;height:34px;border-radius:var(--r-ctl);border:1px solid var(--slate-line);background:var(--slate);color:#fff;padding:0 8px;font:inherit;font-size:14px;font-variant-numeric:tabular-nums}
.h-req p{font-size:14px;color:var(--on-slate-mute);line-height:1.5}
.h-req pre{margin:0;padding:12px 14px;background:var(--slate);border-radius:var(--r-ctl);font-family:var(--code);font-size:12.5px;line-height:1.6;color:var(--on-slate);overflow-x:auto;white-space:pre;transition:opacity .18s}
.h-req pre .k{color:#F2C879} .h-req pre .v{color:#7FD1A8} .h-req pre .m{color:#FF8A92}
.h-req pre.is-fresh{opacity:.25}
.h-req .h-res{font-size:14px;color:#fff;font-weight:600}
.h-req .h-res b{font-weight:800;font-variant-numeric:tabular-nums}
.h-req-foot{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px;font-weight:600}
.mbx .h-req-foot a{color:#fff}
.mbx .h-req-foot a:hover{color:var(--on-slate)}

.h-list{display:flex;flex-direction:column;gap:14px}
.h-list-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap}
.mbx-page .h-list-head h2{margin:0}
.mbx-more{font-weight:700;font-size:15px}
.mkt{display:flex;flex-direction:column;border-top:2px solid var(--ink)}
.mkt-cols,.mkt-row{display:grid;grid-template-columns:minmax(0,1fr) 172px 172px 104px;align-items:stretch}
.mkt-cols span{padding:10px 14px;}
.mkt-cols span:first-child{padding-left:16px}
.mkt-cols span{font-size:13px;font-weight:700;color:var(--mute)}
.mkt-group{padding:18px 16px 8px;font-size:15px;font-weight:800;color:var(--ink);border-top:1px solid var(--line-2)}
.mkt-row{text-decoration:none;border-top:1px solid var(--line)}
.mbx a.mkt-row{color:var(--ink)}
.mbx a.mkt-row:hover{background:var(--panel);color:var(--ink)}
.mbx a.mkt-row:hover .mkt-name b{color:var(--red-ink)}
.mkt-name{display:flex;flex-direction:column;gap:3px;min-width:0;padding:16px 20px 16px 16px}
.mkt-name b{display:flex;align-items:center;gap:9px;font-size:16.5px;font-weight:700;line-height:1.3}
.mkt-name > span{font-size:14px;color:var(--mute);line-height:1.5;max-width:36em}
.mkt-cell{display:flex;flex-direction:column;justify-content:center;gap:1px;padding:12px 14px}
.mkt-cell.is-back{background:var(--back-2)} .mkt-cell.is-lay{background:var(--lay-2)}
.mkt-cell b{font-size:20px;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums}
.mkt-cell span{font-size:12.5px;line-height:1.35;color:#3B4252}
.mkt-status{display:flex;align-items:center;padding:12px 16px;font-size:13.5px;font-weight:700}
.mkt-status.is-live{color:var(--green)} .mkt-status.is-apply{color:var(--red-ink)}

.h-dir{display:flex;flex-wrap:wrap;gap:16px 28px;align-items:center;justify-content:space-between;padding:24px 0;border-top:1px solid var(--line-2);border-bottom:1px solid var(--line-2)}
.h-dir p{font-size:20px;font-weight:600;line-height:1.4;max-width:30em;color:var(--ink)}
.h-brands{font-size:15px;color:var(--mute);max-width:52em}
.h-brands b{color:var(--ink);font-weight:700}

/* inline icons: text size, text colour, no tiles */
.mbx-ico{display:inline-flex;width:auto;height:auto;background:none;border-radius:0;color:currentColor;flex:0 0 auto}
.mbx-ico svg{width:18px;height:18px}

/* facts attached to the component they describe */
.mbx-fact{font-size:15px;color:#30343C;max-width:44em}
.mbx-fact b{color:var(--red);font-weight:800;font-variant-numeric:tabular-nums}

/* quickstart: steps left, code fixed right */
.qs-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:36px;align-items:start}
.qs-grid .mbx-code{position:sticky;top:calc(var(--head) + 20px)}
.mbx-code pre .ln{transition:opacity .18s}
.mbx-code[data-active] pre .ln{opacity:.35}
.mbx-code[data-active="2"] pre .ln[data-step="2"],
.mbx-code[data-active="3"] pre .ln[data-step="3"],
.mbx-code[data-active="4"] pre .ln[data-step="4"]{opacity:1}

/* ---------- shared components on inner pages ---------- */
.mbx-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.mbx-card{display:flex;flex-direction:column;gap:10px;padding:22px;border:1px solid var(--line);border-radius:var(--r-panel);text-decoration:none;color:var(--ink);background:var(--panel)}
.mbx a.mbx-card{color:var(--ink)}
.mbx a.mbx-card:hover{border-color:var(--ink);color:var(--ink)}
.mbx-card p{color:var(--mute);font-size:14.5px}
.mbx-card .mbx-go{margin-top:auto;font-weight:700;font-size:14.5px;color:var(--red-ink)}

.mbx-banner{display:flex;flex-wrap:wrap;gap:20px;align-items:center;justify-content:space-between;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-panel);padding:24px 26px}
.mbx-brands{display:flex;flex-wrap:wrap;gap:8px}
.mbx-brands span{font-weight:700;font-size:14px;padding:6px 14px;border-radius:999px;background:var(--panel);border:1px solid var(--line)}

.mbx-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;max-width:44em;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-panel)}
.mbx-steps li{display:flex;gap:18px;padding:18px 22px}
.mbx-steps li + li{border-top:1px solid var(--line)}
.mbx-steps .n{display:grid;place-items:center;flex:0 0 auto;width:30px;height:30px;border-radius:50%;background:var(--red);color:#fff;font-weight:800;font-size:13px;margin-top:1px}
.mbx-steps div{display:flex;flex-direction:column;gap:4px;min-width:0} .mbx-steps p{color:var(--mute)}

.mbx-code{background:var(--slate);border-radius:var(--r-panel);overflow:hidden}
.mbx-code-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 10px 8px 12px;border-bottom:1px solid var(--slate-line)}
.mbx-code-tabs{display:flex;gap:4px}
.mbx-code-tabs button{background:transparent;border:0;border-radius:6px;color:var(--on-slate-mute);font-weight:600;font-size:13px;padding:7px 12px;cursor:pointer;min-height:36px}
.mbx-code-tabs button[aria-selected="true"]{background:var(--slate-line);color:#fff}
.mbx .mbx-copy{background:transparent;border:1px solid var(--slate-line);border-radius:6px;color:var(--on-slate);font-weight:600;font-size:13px;padding:6px 12px;cursor:pointer;min-height:36px}
.mbx .mbx-copy:hover{border-color:#8C8C8C}
.mbx-code pre{margin:0;padding:20px;overflow-x:auto;font-family:var(--code);font-size:13.5px;line-height:1.7;color:var(--on-slate);white-space:pre}
.mbx-code .c{color:#8C8C8C} .mbx-code .p{color:#FF8A92} .mbx-code .g{color:#7FD1A8} .mbx-code .s{color:#F2C879}
.mbx code.mbx-inline{font-family:var(--code);font-size:.88em;background:var(--panel);border:1px solid var(--line);padding:1px 6px;border-radius:5px;overflow-wrap:anywhere}

.mbx-callout{display:flex;gap:14px;padding:16px 18px;border-radius:var(--r-panel);background:var(--panel);border:1px solid var(--line);max-width:44em}
.mbx-callout svg{flex:0 0 auto;margin-top:3px} .mbx-callout p{font-size:15px;color:#30343C}

.mbx-tablewrap{overflow-x:auto;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-panel)}
.mbx-table{width:100%;min-width:680px;border-collapse:collapse;font-size:14.5px}
.mbx-table th,.mbx-table td{padding:14px 18px;text-align:left;vertical-align:top;border-top:1px solid var(--line)}
.mbx-table thead th{border-top:0;font-weight:700;font-size:13px;color:var(--mute);background:#F7F8FA}
.mbx-table tbody th{font-weight:700}
.mbx-table td.num,.mbx-table td.mono{font-variant-numeric:tabular-nums;font-size:14px}
.mbx-table td.mono{font-family:var(--code);font-size:13px}
.mbx-table.is-narrow{min-width:0}
.mbx-table .hl{background:#FFF6F7}
.mbx-table thead th.hl{background:var(--red);color:#fff}
.mbx-table td.hl{color:var(--red-ink);font-weight:700}
.mbx-table td b.price{font-weight:900;font-size:17px;color:var(--ink)}
.mbx-table td.hl b.price{color:var(--red-ink)}

.mbx-tiers{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.mbx-tier{display:flex;flex-direction:column;gap:14px;padding:24px;border:1px solid var(--line);border-radius:var(--r-panel);background:var(--panel)}
.mbx-tier.is-feature{border:2px solid var(--red);padding:23px}
.mbx-tier.is-dark{background:var(--slate);border-color:var(--slate);color:#fff}
.mbx-tier .t{font-weight:800;font-size:15px;color:var(--mute)}
.mbx-tier.is-feature .t{color:var(--red-ink)} .mbx-tier.is-dark .t{color:var(--on-slate-mute)}
.mbx-tier .price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.mbx-tier .price b{font-weight:900;font-size:38px;line-height:1;letter-spacing:-.02em}
.mbx-tier .price span{color:var(--mute);font-size:14px} .mbx-tier.is-dark .price span{color:var(--on-slate-mute)}
.mbx-tier ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:14.5px}
.mbx-tier ul li::marker{color:var(--red)}
.mbx-tier.is-dark ul{color:var(--on-slate)}
.mbx-tier .mbx-btn{margin-top:auto}

.mbx-filters{display:flex;gap:8px;flex-wrap:wrap}
.mbx-filters button{border:1.5px solid var(--line-2);background:var(--panel);border-radius:999px;padding:8px 16px;min-height:42px;font-size:14px;font-weight:600;cursor:pointer;color:var(--ink)}
.mbx-filters button:hover{border-color:var(--ink)}
.mbx-filters button[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.mbx-apps{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.mbx-app{display:flex;flex-direction:column;gap:12px;padding:20px;border:1px solid var(--line);border-radius:var(--r-panel);background:var(--panel)}
.mbx-app-top{display:flex;gap:12px;align-items:center}
.mbx-app-top div{display:flex;flex-direction:column;min-width:0}
.mbx-app-top b{font-weight:800;font-size:17px;line-height:1.25}
.mbx-app-top span{font-size:13px;color:var(--mute)}
.mbx-logo{flex:0 0 auto;width:46px;height:46px;border-radius:12px;background:var(--slate);color:#fff;display:grid;place-items:center;font-weight:800;font-size:15px}
.mbx-app p{color:#3A3F49;font-size:14.5px}
.mbx-app .tags{display:flex;gap:6px;flex-wrap:wrap}
.mbx-app .foot{margin-top:auto;padding-top:12px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px}
.mbx-app .foot a{font-weight:700;text-decoration:none}
.mbx-app.is-add{border:1.5px dashed var(--line-2);background:transparent}
.mbx-app.is-add .mbx-logo{background:var(--panel);color:var(--red);font-size:24px}
.mbx-empty{padding:28px;border:1.5px dashed var(--line-2);border-radius:var(--r-panel);display:flex;flex-direction:column;gap:6px;max-width:44em}
.mbx-offer{display:flex;flex-wrap:wrap;gap:18px;align-items:center;padding:24px;background:var(--panel);border:2px solid var(--red);border-radius:var(--r-panel);max-width:760px}
.mbx-offer .amt{font-weight:900;font-size:34px;line-height:1;color:var(--red-ink)}
.mbx-offer > div{display:flex;flex-direction:column;gap:6px;flex:1 1 280px;min-width:0}

.mbx-dark{background:var(--slate);color:#fff;border-radius:var(--r-panel);padding:38px 36px;display:flex;flex-direction:column;gap:16px}
.mbx-page .mbx-dark h1{color:#fff;font-weight:900;font-size:46px;line-height:1.02;letter-spacing:-.03em;max-width:13em}
.mbx-dark p{color:#CCCCCC;max-width:36em;font-size:17.5px}
.mbx-support{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));background:var(--panel);border:1px solid var(--line);border-radius:var(--r-panel);overflow:hidden}
.mbx-support div{padding:18px 20px;display:flex;flex-direction:column;gap:4px;border-left:1px solid var(--line);margin-left:-1px}
.mbx-support b{font-weight:800;color:var(--red-ink)} .mbx-support span{font-size:14px;color:var(--mute)}
.mbx-idbox{display:flex;flex-wrap:wrap;gap:16px;align-items:center;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-panel);padding:18px 20px;max-width:44em}
.mbx-idbox code{font-family:var(--code);font-size:15px;background:var(--slate);color:#fff;padding:8px 12px;border-radius:6px}
.mbx-idbox span{flex:1 1 240px;min-width:0;color:var(--mute);font-size:14.5px}

.mbx-two{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.mbx-side-b,.mbx-side-l{border-radius:var(--r-panel);padding:22px;display:flex;flex-direction:column;gap:6px}
.mbx-side-b{background:var(--back-2)} .mbx-side-l{background:var(--lay-2)}

.mbx-faq{max-width:46em;display:flex;flex-direction:column}
.mbx-page .mbx-faq h2{margin:26px 0 8px;font-size:15px;font-weight:800;color:var(--red)}
.mbx-faq details{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-ctl);padding:16px 18px;margin-bottom:8px}
.mbx-faq summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:16px;font-weight:700;font-size:16px}
.mbx-faq summary::-webkit-details-marker{display:none}
.mbx-faq summary span{color:var(--red);font-size:22px;line-height:1;transition:transform .2s}
.mbx-faq details[open] summary span{transform:rotate(45deg)}
.mbx-faq details p{margin-top:10px;color:#3A3F49}

.mbx-form{display:flex;flex-direction:column;gap:16px;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-panel);padding:26px;max-width:720px}
.mbx-form fieldset{border:0;margin:0;padding:0} .mbx-form legend{font-weight:700;margin-bottom:10px;padding:0}
.mbx-radios{display:flex;flex-wrap:wrap;gap:8px}
.mbx-radios label{display:flex;align-items:center;gap:8px;background:var(--canvas);border-radius:var(--r-ctl);padding:9px 14px;cursor:pointer;font-size:14.5px;font-weight:500}
.mbx-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.mbx-field{display:flex;flex-direction:column;gap:6px} .mbx-field label{font-size:14px;font-weight:700}
.mbx-field input,.mbx-field select,.mbx-field textarea{padding:11px 13px;border:1.5px solid var(--line-2);border-radius:var(--r-ctl);background:var(--panel);color:var(--ink);width:100%}
.mbx-contacts{display:flex;flex-direction:column;max-width:720px;background:var(--panel);border:1px solid var(--line);border-radius:var(--r-panel);padding:0 20px}
.mbx-contacts div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 0}
.mbx-contacts div + div{border-top:1px solid var(--line)}
.mbx-contacts b{user-select:all;font-weight:700}


.mbx-foot{background:var(--slate);color:var(--on-slate-mute)}
.mbx-foot-in{max-width:1440px;margin:0 auto;padding:40px 24px 32px;display:flex;flex-direction:column;gap:24px}
.mbx-foot-row{display:flex;flex-wrap:wrap;gap:32px;justify-content:space-between;align-items:flex-start}
.mbx-foot img{display:block;height:26px;width:auto}
.mbx-foot nav{display:flex;flex-wrap:wrap;gap:8px 22px;font-size:14px;font-weight:600}
.mbx-foot nav a{color:var(--on-slate);text-decoration:none} .mbx-foot nav a:hover{color:#fff}
.mbx-foot p{margin:0;font-size:12.5px;line-height:1.6;color:#8C8C8C;max-width:80em}


/* ---------- revision: panels only for things you can click ---------- */
.mbx-tablewrap{background:transparent;border:0;border-radius:0;border-top:2px solid var(--ink)}
.mbx-table thead th{background:transparent;border-bottom:1px solid var(--line-2)}
.mbx-table th,.mbx-table td{border-top-color:var(--line-2)}
.mbx-table tbody tr:first-child th,.mbx-table tbody tr:first-child td{border-top:0}
.mbx-table.is-narrow tbody tr:first-child th,.mbx-table.is-narrow tbody tr:first-child td{border-top:0}
.mbx-table .hl{background:rgba(228,34,46,.05)}
.mbx-table td b.price{font-weight:800}

.mbx-steps{background:none;border:0;border-radius:0;gap:0}
.mbx-steps li{position:relative;padding:4px 0 26px 46px;gap:0;border:0}
.mbx-steps li + li{border-top:0}
.mbx-steps li::before{content:"";position:absolute;left:13px;top:34px;bottom:4px;width:1px;background:var(--line-2)}
.mbx-steps li:last-child::before{display:none}
.mbx-steps li:last-child{padding-bottom:4px}
.mbx-steps .n{position:absolute;left:0;top:2px;width:28px;height:28px;display:grid;place-items:center;border-radius:0;background:none;color:var(--ink);font-weight:800;font-size:16px;font-variant-numeric:tabular-nums}
.mbx-steps li[tabindex]{cursor:pointer;border-radius:var(--r-ctl)}
.mbx-steps li[tabindex]:hover h3,.mbx-steps li.is-on h3,.mbx-steps li.is-on .n{color:var(--red-ink)}

.mbx-faq details{background:none;border:0;border-top:1px solid var(--line-2);border-radius:0;padding:16px 0;margin:0}
.mbx-faq details.last{border-bottom:1px solid var(--line-2)}
.mbx-form{background:none;border:0;border-radius:0;padding:0}
.mbx-radios label{background:var(--panel);border:1px solid var(--line-2);border-radius:var(--r-ctl)}
.mbx-contacts{background:none;border:0;border-radius:0;padding:0;border-top:2px solid var(--ink)}
.mbx-contacts div + div{border-top-color:var(--line-2)}
.mbx-callout{background:none;border:0;border-radius:0;padding:0}
.mbx-support{background:none;border:0;border-radius:0;border-top:2px solid var(--ink);gap:0 24px}
.mbx-support div{border-left:0;margin:0;padding:16px 0}
.mbx-idbox{background:none;border:0;border-radius:0;padding:0}
div.mbx-card{background:none;border:0;border-radius:0;padding:16px 0 0;border-top:2px solid var(--ink)}
div.mbx-card h3{display:flex;align-items:center;gap:9px}
.mbx-grid{gap:24px}
.mbx-banner{background:none;border:0;border-radius:0;padding:24px 0;border-top:1px solid var(--line-2);border-bottom:1px solid var(--line-2)}

/* radius by role: tinted back/lay blocks are cells, filters are controls */
.mbx-side-b,.mbx-side-l{border-radius:0}
.mbx-filters button{border-radius:var(--r-ctl)}
.mbx-logo{border-radius:var(--r-ctl)}
/* status words, not capsules */
.mbx-brands{gap:0;font-size:16px}
.mbx-brands span{padding:0;border:0;border-radius:0;background:none;font-weight:700}
.mbx-brands span + span::before{content:", ";font-weight:400;color:var(--mute)}
.mbx-chip,.mbx-chip.is-live,.mbx-chip.is-apply,.mbx-chip.is-road{background:none;box-shadow:none;padding:0;border-radius:0;font-size:13.5px;font-weight:700;line-height:1.4}
.mbx-chip.is-live{color:var(--green)} .mbx-chip.is-apply{color:var(--red-ink)} .mbx-chip.is-road{color:var(--mute)}
.mbx-pill,.mbx-pill.is-new{background:none;padding:0;border-radius:0;font-size:12px;font-weight:700;color:var(--mute)}
.mbx-pill.is-new{color:var(--red)}

/* one type scale: 900 is for the home hero only */
.mbx-page .mbx-dark h1{font-weight:800}
.mbx-tier .price b{font-weight:800}
.mbx-offer .amt{font-weight:800}
.mbx-page h1{font-weight:800}

/* radius by role */
.mbx-dark{border-radius:var(--r-frame)}
.mbx-code{border-radius:var(--r-panel)}
.mbx-ladder{border-radius:var(--r-panel)}

.mbx-ladder th.lg-m{display:none}

/* ---------- responsive ---------- */
@media (max-width: 1180px){
  .h-trade{grid-template-columns:1fr}
  .h-req{border-left:0;border-top:1px solid var(--slate-line)}
  .mkt-cols,.mkt-row{grid-template-columns:minmax(0,1fr) 150px 150px}
  .mkt-cols span:nth-child(4){display:none}
  .mkt-status{display:none}
  .qs-grid{grid-template-columns:1fr}
  .qs-grid .mbx-code{position:static}
}
@media (max-width: 960px){
  .mbx-main{padding:24px 16px 56px}
  .mbx-menu{display:inline-flex}
  .mbx-search,.mbx-actions a.mbx-toplink{display:none}
  .mbx-side{display:none;position:fixed;z-index:30;left:0;right:0;bottom:0;top:var(--head);height:auto;border-right:0;padding:18px 18px 40px}
  .mbx-side.is-open{display:block} .mbx-side .mbx-side-search{display:block}
  .mbx-page h1{font-size:31px}
  .h-hero{padding:26px 18px 20px;gap:22px}
  .h-top{grid-template-columns:1fr;gap:18px}
  .mbx-page .h-hero h1{font-size:44px}
  .mbx-page .mbx-dark h1{font-size:33px}
  .mkt-cols{display:none}
  .mkt-group{padding:20px 0 8px}
  .mkt-row{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"name name" "pay earn";padding-bottom:16px}
  .mbx a.mkt-row:hover{background:none;box-shadow:none}
  .mkt-name{grid-area:name;padding:16px 0 10px}
  .mkt-row .mkt-cell.is-back{grid-area:pay} .mkt-row .mkt-cell.is-lay{grid-area:earn}
  .mkt-cell::before{content:attr(data-label);font-size:12px;font-weight:700;color:#3B4252}
  .mbx-lede{font-size:17px}
  .h-dir p{font-size:18px}
}
@media (max-width: 700px){
  /* tables stack into labelled rows instead of scrolling sideways */
  .mbx-tablewrap{overflow:visible}
  .mbx-table.is-stack{min-width:0}
  .mbx-table.is-stack thead{display:none}
  .mbx-table.is-stack,.mbx-table.is-stack tbody,.mbx-table.is-stack tr,.mbx-table.is-stack th,.mbx-table.is-stack td{display:block;width:auto}
  .mbx-table.is-stack tr{padding:14px 0;border-top:1px solid var(--line-2)}
  .mbx-table.is-stack tbody tr:first-child{border-top:0}
  .mbx-table.is-stack th,.mbx-table.is-stack td{border:0;padding:3px 0;text-align:left !important;background:none}
  .mbx-table.is-stack tbody th{font-size:16px;padding-bottom:6px}
  .mbx-table.is-stack td[data-label]::before{content:attr(data-label);display:block;font-size:12px;font-weight:700;color:var(--mute);font-family:var(--font)}
  .mbx-table.is-stack td + td{margin-top:6px}
  .mbx-table.is-stack td.is-blank{display:none}
  .mbx-table.is-stack.is-compact tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 12px}
  .mbx-table.is-stack.is-compact tbody th{grid-column:1 / -1}
  .mbx-table.is-stack.is-compact td.is-blank{display:block;color:var(--mute)}
  .mbx-table.is-stack.is-compact td + td{margin-top:0}
  .mbx-table.is-narrow:not(.is-stack) th,.mbx-table.is-narrow:not(.is-stack) td{padding:12px 10px}
  /* hero ladder: best back and lay only, like a phone exchange view */
  .mbx-ladder td.b2,.mbx-ladder td.l2,.mbx-ladder th.lg-d{display:none}
  .mbx-ladder th.lg-m{display:table-cell}
  .mbx-ladder table{min-width:0}
  .mbx-ladder td button{font-size:17px;min-height:56px}
  .mbx-ladder-head{font-size:12.5px}
  .h-req pre{font-size:12px}
  .mbx-radios{flex-direction:column}
  .mbx-radios label{width:100%}
  .mbx-btns .mbx-btn{flex:1 1 auto}
}
@media (max-width: 520px){ .mbx-actions .mbx-btn-primary{display:none} .mbx-bar{gap:12px;padding:0 16px} }
@media (prefers-reduced-motion: reduce){.mbx *{transition:none !important}}


/* ---------- MVP additions ---------- */
.mbx-sec{display:flex;flex-direction:column;gap:14px;scroll-margin-top:calc(var(--head) + 24px)}
.mbx-sec > h2{margin-top:28px}
.mbx-group a.is-sub{padding-left:24px;font-size:13.5px}
.mbx-ext::after{content:" \2197";color:var(--mute);font-weight:500}
.h-partners{display:flex;flex-direction:column;gap:6px;max-width:34em}
.h-partners p.lead{font-size:20px;font-weight:600;line-height:1.4;color:var(--ink)}
.h-partners p.lead b{font-weight:800}
.h-dir .h-partners p.mbx-small{font-size:13.5px;font-weight:500;color:var(--mute)}
.mbx-consent{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:#30343C;max-width:44em}
.mbx-consent input{margin-top:4px;flex:0 0 auto;width:18px;height:18px;accent-color:var(--red)}
.mbx-legal{border-top:2px solid var(--ink);padding-top:18px;max-width:44em;color:var(--mute)}
.mbx-effective{font-size:14px;font-weight:700;color:var(--ink)}
/* === theme additions (not in the design) === */

/* "Talk to us": replaces the design's inline style="padding:10px 14px;font-size:14px". */
.mbx-btn.mbx-btn-sm{padding:10px 14px;font-size:14px}

/* Keep focused elements and anchor targets clear of the sticky header (WCAG 2.4.11, guide 11 gap 4).
   80px = var(--head) + 16px. --head is set on .mbx, so html can't read it. */
html{scroll-padding-top:80px}

/* Skip link (guide 11 gap 1): core's visually-hidden pattern, shown on focus.
   It sits outside .mbx, so it can't use the design's tokens. */
.screen-reader-text{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal !important}
.skip-link:focus{clip-path:none;height:auto;width:auto;margin:0;position:fixed;top:8px;left:8px;z-index:100;padding:12px 16px;background:#fff;color:#16181D;font:700 15px/1.2 Montserrat,Helvetica,Arial,sans-serif;text-decoration:none;border-radius:6px;outline:3px solid #E4222E;outline-offset:2px}

/* No JS: every group open, no dead toggles; on small screens the sidebar sits after the content. */
@media (scripting: none) {
	.mbx-group:not(.is-open) ul{display:block}
	.mbx-group h2 button svg{display:none}
}
@media (scripting: none) and (max-width: 960px) {
	.mbx-shell{flex-direction:column;align-items:stretch}
	.mbx-side{display:block;position:static;flex:0 0 auto;height:auto;order:1;border-right:0;border-top:1px solid var(--line)}
	.mbx .mbx-menu{display:none}
}

/* Pricing tables: replace the design's inline style="max-width:640px" (rate limits wrapper) and
   style="text-align:right" (numeric columns), guide 02. Set per table in the content blocks. */
.mbx-tablewrap.mbx-narrow{max-width:640px}
.mbx-table .is-num{text-align:right}

/* Fact-line numbers: the design's --red on --canvas is 4.06:1, below WCAG AA (4.5:1) for 15px text.
   --red-ink (the design's darker red) gives 5.91:1. Approved deviation (Mike, 2026-11-18). */
.mbx .mbx-fact b{color:var(--red-ink)}

/* Contact form: Fluent Forms' markup (decision 2) in the design's .mbx-form look. The field containers
   and the button carry the design's classes (.mbx-field, .mbx-btn) from the form definition; these rules
   cover what Fluent structures differently: the grid, the radios, the consent box, help and errors. */
.mbx-form-wrap{max-width:720px}
.mbx-form-wrap fieldset{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px} /* Fluent wraps every field in one fieldset. */
.mbx-form-wrap .ff-el-group.mbx-intent{margin-bottom:2px} .mbx-form-wrap .mbx-full:not(.mbx-intent){margin-top:2px} /* full rows sit 16px apart, as in .mbx-form */
.mbx-form-wrap .mbx-full,.mbx-form-wrap .ff_submit_btn_wrapper{grid-column:1/-1}
.mbx-form-wrap .ff-el-group,.mbx-form-wrap .ff-el-form-check{margin:0}
.mbx-form-wrap .mbx-intent .ff-el-input--label{margin:0}
.mbx-form-wrap .mbx-intent .ff-el-input--label label{display:block;font-weight:700;margin-bottom:10px} /* = the design's legend */
.mbx-form-wrap .mbx-intent .ff-el-input--content{display:flex;flex-wrap:wrap;gap:8px}
.mbx-form-wrap .mbx-intent .ff-el-form-check-label{display:flex;align-items:center;gap:8px;background:var(--panel);border:1px solid var(--line-2);border-radius:var(--r-ctl);padding:9px 14px;cursor:pointer;font-size:14.5px;font-weight:500}
.mbx-form-wrap .mbx-field .ff-el-input--label,.mbx-form-wrap .mbx-field .ff-el-input--content{display:contents} /* label, control and hint become the design's .mbx-field flex items */
.mbx-form-wrap .ff-el-group::before,.mbx-form-wrap .ff-el-group::after{display:none} /* Fluent's clearfix would add flex gaps */
.mbx-form-wrap .ff-el-tc label.ff_tc_label{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:#30343C;max-width:44em} /* = .mbx-consent; beats Fluent's table-row */
.mbx-form-wrap .ff-el-tc label.ff_tc_label>span{display:contents} /* the checkbox is a flex item, as in .mbx-consent */
.mbx-form-wrap .ff-el-tc label.ff_tc_label>div{display:block;padding:0}
.mbx-form-wrap .ff-el-tc input{margin:4px 3px 3px 4px;flex:0 0 auto;width:18px;height:18px;accent-color:var(--red)}
.mbx-form-wrap .ff-el-form-check-label .ff-el-form-check-input{position:static;vertical-align:baseline} /* undo Fluent's nudge */
.mbx-form-wrap .mbx-intent .ff-el-form-check-label input{margin:3px 3px 0 5px} /* the browser default the design uses */
.mbx-form-wrap .ff-el-help-message{margin:0;font-size:13px;font-style:normal;color:var(--mute)}
.mbx-form-wrap .error,.mbx-form-wrap .text-danger{color:var(--red-ink);font-size:13.5px;font-weight:600}
.mbx-form-wrap .mbx-btn{justify-self:start} /* Replaces the design's inline style="align-self:flex-start". */
/* Fluent submits through AJAX: without JS the form would swallow a message, so the <noscript> line shows instead. */
@media (scripting: none){.mbx-form-wrap{display:none}}
@media (max-width: 700px){
	.mbx-form-wrap .mbx-intent .ff-el-input--content{flex-direction:column}
	.mbx-form-wrap .mbx-intent .ff-el-form-check,.mbx-form-wrap .mbx-intent .ff-el-form-check-label{width:100%}
}
/* Contact list name: replaces the design's inline style="font-weight:600". */
.mbx-contact-name{font-weight:600}

/* === end theme additions === */
