body.mg-catalog-profile::before { content: none; }
.mg-catalog-profile .ss-main, .mg-catalog-profile .profile-toolbar {
    width: min(1120px, calc(100% - 64px)); margin-inline: auto; max-width: none;
}
.mg-catalog-profile .ss-main { padding: 0 0 48px; font-size: 14px; line-height: 1.55; }
.mg-catalog-profile .profile-toolbar { min-height: 48px; }
.catalog-utility, .catalog-utility nav, .catalog-preferences, .catalog-heading {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
}
.catalog-utility { justify-content: space-between; padding: 10px 0; min-height: 40px; }
.catalog-utility nav { margin: 0; padding: 0; }
.catalog-utility nav, .catalog-preferences { font-size: 12px; color: var(--muted); }
.catalog-utility nav a, .brand-tabs a { text-decoration: none; }
.catalog-preferences select, .catalog-preferences button { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; max-width: 170px; }
.catalog-preferences button { cursor: pointer; }
.catalog-banner .brand-copy { width: 56%; }
.catalog-banner .brand-name { flex-wrap: wrap; }
.catalog-banner .brand-name h1 { overflow-wrap: anywhere; }
.catalog-mark { display: grid; place-items: center; flex: none; width: 86px; height: 44px; padding: 7px 9px; border-radius: 6px; background: #f7f4f7; color: #43223b; }
.catalog-mark img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.mg-trading-page .catalog-mark { background: #352d39; color: #ffafd8; }
.catalog-mark:has(img[src*="the5ers"]), .catalog-mark:has(img[src*="fundingpips"]), .catalog-mark:has(img[src*="funded-trading-plus"]), .mg-tools-page .catalog-mark:has(img) { background: #f7f4f7; }
.catalog-mark:has(img[src*="chartprime"]) { background: #211d25; }
.catalog-workstation { position: absolute; inset: 0 0 0 auto; height: 100%; width: 52%; object-fit: cover; object-position: right 55%; mask-image: linear-gradient(90deg, transparent, #000 28%); }
.catalog-lineup { position: absolute; inset: 10px 14px 10px 57%; display: flex; gap: 8px; justify-content: flex-end; align-items: start; padding-top: 18px; }
.catalog-lineup a { min-width: 0; flex: 1; max-width: 136px; color: #f5eff5; text-align: center; text-decoration: none; }
.catalog-lineup img { display: block; width: 100%; height: 80px; object-fit: contain; background: #f8f6f7; border-radius: 6px; }
.catalog-lineup span { display: block; margin-top: 6px; font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
.mg-catalog-profile .brand-tabs { gap: 22px; margin: 4px 0 18px; }
.mg-catalog-profile .brand-tabs a { text-decoration: none; flex: none; }
.mg-catalog-profile .brand-tabs a:hover, .catalog-link:hover { color: var(--pink-ink); text-decoration: underline; }
.catalog-heading { justify-content: space-between; margin-bottom: 12px; }
.catalog-heading h2 { flex: 1 1 auto; }
.catalog-link { border: 0; padding: 0; background: none; text-decoration: none; font: inherit; font-weight: 650; color: var(--pink-ink); cursor: pointer; }
.catalog-section, .catalog-panel, .catalog-columns, .mg-catalog-profile .tr-surface { margin: 0 0 16px; min-width: 0; }
.catalog-panel, .mg-catalog-profile .tr-surface, .catalog-product {
    border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: none;
}
.catalog-panel, .mg-catalog-profile .tr-surface { padding: 20px; overflow-wrap: anywhere; }
.catalog-section h2, .catalog-panel h2, .mg-catalog-profile .tr-surface h2 { margin: 0; color: var(--heading); font-size: clamp(19px,2vw,25px); letter-spacing: -.035em; line-height: 1.2; }
.catalog-panel h3, .catalog-product h3 { margin: 12px 0 5px; font-size: 16px; line-height: 1.3; color: var(--heading); }
.catalog-panel p, .catalog-product-copy p { margin: 7px 0 12px; }
.catalog-panel ul { padding-inline-start: 20px; }
.catalog-panel li + li { margin-top: 6px; }
.catalog-panel details, .catalog-product details { border-top: 1px solid var(--line); padding: 9px 0; }
.catalog-panel summary, .catalog-product summary { cursor: pointer; font-weight: 610; color: var(--heading); }
.catalog-columns { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(0,1fr); align-items: start; gap: 14px; }
.catalog-columns > *, .catalog-side > :last-child { min-width: 0; margin-bottom: 0; }
.catalog-facts { margin: 9px 0 15px; }
.catalog-facts > div { border-top: 1px solid var(--line); padding: 7px 0; display: flex; justify-content: space-between; gap: 12px; }
.catalog-facts dt { color: var(--muted); }
.catalog-facts dd { text-align: end; margin: 0; font-weight: 600; }
.catalog-table { overflow-x: auto; }

/* Give the comparison copy and its first column a shared reading edge. */
.mg-catalog-profile section#comparison.catalog-panel {
    --comparison-gutter: clamp(16px, 2.3vw, 28px);
    padding: var(--comparison-gutter);
}
.mg-catalog-profile #comparison .catalog-table { margin-block-start: 14px; }
.mg-catalog-profile #comparison .catalog-table table { min-width: 36rem; }
.mg-catalog-profile #comparison .catalog-table :is(th,td) { overflow-wrap: normal; word-break: normal; }
.mg-catalog-profile #comparison .catalog-table tr > :first-child {
    min-width: 8.5em; padding-inline-start: 0;
}
.mg-catalog-profile #comparison .catalog-table tbody tr:last-child > * { border-bottom: 0; }

.catalog-table table { width: 100%; min-width: 450px; border-collapse: collapse; font-size: 13px; }
.catalog-table :is(th,td) { text-align: start; padding: 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
.catalog-product-grid, .catalog-rules { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.catalog-product { overflow: hidden; min-width: 0; overflow-wrap: anywhere; }
.catalog-product .catalog-photo { position: relative; padding: 8px; height: 118px; background: #f5f3f5; border-bottom: 1px solid var(--line); }
.catalog-product .catalog-photo > img { display: block; position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; filter: none; mix-blend-mode: multiply; }
.catalog-product .catalog-photo > img.catalog-wordmark { inset-inline: 15%; width: 70%; mix-blend-mode: normal; }
.catalog-photo:has(.catalog-wordmark) { background: #211d25; }
.catalog-photo [data-product-save] { position: absolute; top: 7px; right: 7px; }
.catalog-product-copy { padding: 12px 14px; }
.catalog-product-copy h3 { margin-top: 0; font-size: 18px; }
.catalog-product-copy .mg-product-buy { margin: 8px 0; }
.catalog-product-copy .mg-product-buy small { display: none; }
.catalog-product-copy .primary, .mg-catalog-profile .ss-main .primary { font-size: 13px; padding: 8px 12px; min-height: 0; border-radius: 6px; }
.catalog-rules { margin-top: 15px; }
.catalog-rules > article { padding-inline-end: 12px; }
.catalog-rules > article + article { border-inline-start: 1px solid var(--line); padding-inline-start: 14px; }
.mg-catalog-profile .tr-plan-tabs { gap: 8px; flex-wrap: wrap; }
.mg-catalog-profile .tr-plan-tabs button { border-radius: 6px; text-align: start; }
.mg-catalog-profile .tr-plan-tabs button[aria-pressed=true] { background: color-mix(in srgb,var(--pink) 12%,var(--surface)); color: var(--pink-ink); border-color: var(--pink-ink); }
.mg-catalog-profile .tr-plan-inner { padding: 14px; background: var(--card); }
.mg-catalog-profile .tr-plan-footer, .mg-catalog-profile .tr-account-sizes { flex-wrap: wrap; min-width: 0; }
.mg-catalog-profile .review-source { background: var(--card); }
.mg-catalog-profile h3[id], .mg-catalog-profile section[id] { scroll-margin-top: 8px; }
@media(max-width:800px) {
    .mg-catalog-profile .ss-main, .mg-catalog-profile .profile-toolbar { width: calc(100% - 32px); }
    .catalog-columns { grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); }
    .catalog-panel, .mg-catalog-profile .tr-surface { padding: 14px; }
    .catalog-product-copy { padding: 11px; }
}
@media(max-width:680px) {
    .catalog-banner .brand-copy { width: auto; padding-bottom: 5px; }
    .catalog-workstation { display: block; position: relative; width: 100%; height: 90px; object-position: right 56%; mask-image: linear-gradient(180deg, transparent, #000 26%); }
    .catalog-lineup { position: relative; inset: auto; margin: 8px 14px 12px; padding-top: 0; justify-content: center; }
    .catalog-lineup img { height: 58px; }
    .catalog-mark { width: 68px; height: 36px; }
    .catalog-columns, .catalog-rules { grid-template-columns: minmax(0,1fr); }
    .catalog-rules > article + article { padding-inline-start: 0; border: 0; border-top: 1px solid var(--line); }
    .catalog-preferences { gap: 5px; }.catalog-preferences select { max-width: 132px; }
}
@media(max-width:640px) {
    .catalog-product-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(83%,315px); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; }
    .catalog-product { scroll-snap-align: start; }
    .catalog-heading h2 { flex-basis: 100%; }
}
