/* ==========================================================================
   Trading.hk marketplace
   Loaded after research.css and built on its tokens (--ink, --muted, --dim,
   --mint, --line ...). Every selector is namespaced .mp-* so nothing here can
   leak into the report library or the subscription pages.
   ========================================================================== */

.mp {
    --mp-ink: var(--ink, #172d49);
    --mp-text: var(--muted, #4c5e73);
    --mp-dim: var(--dim, #596b7f);
    --mp-brand: var(--mint, #2058a0);
    --mp-brand-deep: var(--mint-dark, #163f76);
    --mp-surface: var(--surface, #ffffff);
    --mp-base: var(--base, #f7f9fc);
    --mp-raised: var(--raised, #edf2f8);
    --mp-line: var(--line, #d8e1ec);
    --mp-line-strong: #94abc5;
    --mp-field-line: #7f96b2;
    --mp-tint: #e8f0fb;
    --mp-tint-line: #cfdcee;
    --mp-radius: 10px;
    --mp-track: -.035em;
    color: var(--mp-ink);
    --mp-category: #245bdb;
    --mp-category-tint: #e7eeff;
    --mp-category-line: #b4c9fa;
}

/* Product-type identity stays consistent across discovery, cards and detail. */
[data-product-type="datasets"] {
    --mp-category: #087d72;
    --mp-category-tint: #def5ee;
    --mp-category-line: #a4d8cb;
}

[data-product-type="algorithms"] {
    --mp-category: #6c3ac7;
    --mp-category-tint: #eee5ff;
    --mp-category-line: #d1bdf2;
}

[data-product-type="ai-agent-skill-packs"] {
    --mp-category: #965700;
    --mp-category-tint: #fff0ca;
    --mp-category-line: #e9c777;
}

[data-product-type="courses"] {
    --mp-category: #b74435;
    --mp-category-tint: #ffe7df;
    --mp-category-line: #efb5a5;
}

/* CJK headings read better without negative tracking. */
.mp:lang(zh),
.mp:lang(ja),
.mp:lang(ko) {
    --mp-track: 0;
}

.mp-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.mp-muted {
    color: var(--mp-dim);
}

/* --------------------------------------------------------------------------
   Type tile: the icon stamp that identifies a product type everywhere.
   -------------------------------------------------------------------------- */
.mp-tile {
    flex: none;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--mp-tint-line);
    border-radius: 10px;
    background: var(--mp-tint);
    color: var(--mp-brand);
    transition: background-color .2s, border-color .2s, color .2s;
}

.mp-tile svg {
    width: 24px;
    height: 24px;
}

.mp-tile-sm {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.mp-tile-sm svg {
    width: 18px;
    height: 18px;
}

/* --------------------------------------------------------------------------
   Price: currency and cents step back so the amount reads first.
   -------------------------------------------------------------------------- */
.mp-price {
    display: inline-flex;
    align-items: baseline;
    font-size: 24px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: var(--mp-ink);
    white-space: nowrap;
}

.mp-price-visual {
    display: inline-flex;
    align-items: baseline;
}

.mp-price-cur {
    margin-right: .2em;
    font-size: .58em;
    font-weight: 600;
    color: var(--mp-text);
}

.mp-price-whole {
    font-weight: 600;
    letter-spacing: -.03em;
}

.mp-price-dec {
    font-size: .58em;
    font-weight: 600;
    color: var(--mp-text);
}

.mp-price-lg {
    font-size: 46px;
}

.mp-price-sm {
    font-size: 18px;
}

/* --------------------------------------------------------------------------
   Notices and flash messages
   -------------------------------------------------------------------------- */
.mp-flash {
    display: grid;
    gap: 12px;
    padding-top: 28px;
}

.mp-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 18px;
    border: 1px solid;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.65;
}

.mp-notice > svg {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.mp-notice p,
.mp-notice ul {
    margin: 0;
    line-height: inherit;
}

.mp-notice ul {
    padding-left: 18px;
}

.mp-notice strong {
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
}

.mp-notice-info {
    background: #eef4fc;
    border-color: #c4d6ec;
    color: #234a7a;
}

.mp-notice-ok {
    background: #eaf6ef;
    border-color: #b9dcc8;
    color: #1b5e3d;
}

.mp-notice-warn {
    background: #fff9eb;
    border-color: #d5b574;
    color: #72511a;
}

.mp-notice-danger {
    background: #fdf0f2;
    border-color: #e5b4bd;
    color: #8a2433;
}

.mp-banner {
    padding-top: 28px;
}

/* --------------------------------------------------------------------------
   Catalogue hero
   -------------------------------------------------------------------------- */
.mp-hero {
    background: #eaf1ff;
    border-bottom: 1px solid #c4d4fa;
}

.mp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
    padding-block: 44px;
}

.mp-hero h1 {
    max-width: 13em;
    margin: 0 0 22px;
    font-size: clamp(34px, 4.2vw, 56px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: var(--mp-track);
    color: #163d91;
}

.mp-lede {
    max-width: 36em;
    margin: 0 0 30px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--mp-text);
}

.mp-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 40px 0 0;
    padding: 0;
    border-top: 1px solid var(--mp-line);
}

.mp-facts > div {
    padding: 20px 20px 0 0;
}

.mp-facts > div + div {
    padding-left: 20px;
    border-left: 1px solid var(--mp-line);
}

.mp-facts dt {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--mp-ink);
}

.mp-facts dd {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: var(--mp-text);
}

.mp-panel-title {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--mp-ink);
}

/* --------------------------------------------------------------------------
   Type cards (catalogue hero and homepage)
   -------------------------------------------------------------------------- */
.mp-types {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mp-hero-types .mp-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mp-hero-types .mp-type {
    flex-direction: column;
    gap: 10px;
}

.mp-hero-types .mp-type-arrow {
    display: none;
}

@media (max-width: 640px) {
    .mp-hero-types .mp-type-desc {
        display: none;
    }

    .mp-hero-types .mp-type {
        padding: 14px;
    }

    .mp-hero-types .mp-type-name {
        font-size: 14px;
    }
}

.mp-types > li {
    display: flex;
    min-width: 0;
}

.mp-type {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--mp-category-line);
    border-top: 4px solid var(--mp-category);
    border-radius: var(--mp-radius);
    background: var(--mp-category-tint);
    color: inherit;
    text-decoration: none;
    transition: border-color .2s, background-color .2s;
}

.mp-type:hover {
    border-color: var(--mp-category);
}

.mp-type.is-selected {
    border-color: var(--mp-category);
    background: var(--mp-category-tint);
    box-shadow: inset 0 0 0 2px var(--mp-category);
}

.mp-type .mp-tile {
    border-color: transparent;
    background: var(--mp-category);
    color: #ffffff;
}

.mp-type:hover .mp-tile,
.mp-type.is-selected .mp-tile {
    border-color: var(--mp-category);
    background: #ffffff;
    color: var(--mp-category);
}


.mp-type-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.mp-type-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--mp-ink);
    overflow-wrap: anywhere;
}

.mp-type-desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 13px;
    line-height: 1.6;
    color: var(--mp-text);
}

.mp-type-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    margin-top: 2px;
}

.mp-type-count {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--mp-dim);
}

.mp-type-count.has-items {
    font-weight: 600;
    color: var(--mp-category);
}

.mp-type-flag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--mp-category);
}

.mp-type-flag svg {
    width: 13px;
    height: 13px;
}

.mp-type-arrow {
    flex: none;
    align-self: center;
    margin-left: auto;
    color: var(--mp-dim);
    transition: color .2s;
}

.mp-type-arrow svg {
    width: 18px;
    height: 18px;
}

.mp-type:hover .mp-type-arrow,
.mp-type.is-selected .mp-type-arrow {
    color: var(--mp-category);
}

/* --------------------------------------------------------------------------
   Catalogue: heading, filters, results, grid
   -------------------------------------------------------------------------- */
.mp-catalogue {
    padding-block: 56px 16px;
}

.mp-section-head {
    margin-bottom: 24px;
}

.mp-section-head h2 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: var(--mp-track);
}

.mp-section-head p {
    max-width: 60ch;
    margin: 0;
    font-size: 14.5px;
    color: var(--mp-text);
}

.mp-filters {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
    padding: 20px;
    border: 1px solid var(--mp-line);
    border-radius: var(--mp-radius);
    background: var(--mp-surface);
}

.mp-field {
    min-width: 0;
}

.mp-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--mp-ink);
}

.mp-control {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--mp-field-line);
    border-radius: 6px;
    background-color: var(--mp-surface);
    color: var(--mp-ink);
    font: inherit;
    font-size: 14px;
}

.mp-control::placeholder {
    color: var(--mp-dim);
    opacity: 1;
}

.mp-control:focus-visible {
    border-color: var(--mp-brand);
    outline: 2px solid var(--mp-brand);
    outline-offset: 1px;
}

select.mp-control {
    padding-right: 38px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23596b7f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.mp-search {
    position: relative;
}

.mp-search > svg {
    position: absolute;
    top: 50%;
    left: 13px;
    width: 17px;
    height: 17px;
    margin-top: -8.5px;
    color: var(--mp-dim);
    pointer-events: none;
}

.mp-search .mp-control {
    padding-left: 40px;
}

.mp-filters .research-button {
    min-height: 46px;
}

.mp-results {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 22px 0 18px;
    font-size: 13.5px;
    color: var(--mp-text);
}

.mp-results p {
    margin: 0;
}

.mp-results a {
    flex: none;
    font-weight: 600;
    color: var(--mp-brand);
    text-underline-offset: 4px;
}

.mp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mp-grid > li {
    display: flex;
    min-width: 0;
}

.mp-grid > li > .mp-card {
    flex: 1;
}

/* --------------------------------------------------------------------------
   Product card: a spec label, not a banner.
   -------------------------------------------------------------------------- */
.mp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--mp-line);
    border-top: 4px solid var(--mp-category);
    border-radius: var(--mp-radius);
    background: var(--mp-surface);
    transition: border-color .2s;
}

.mp-card:hover {
    border-color: var(--mp-line-strong);
}

.mp-card:has(a:focus-visible) {
    border-color: var(--mp-brand);
    box-shadow: 0 0 0 1px var(--mp-brand);
}

.mp-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.mp-card-head .mp-tile {
    border-color: var(--mp-category-line);
    background: var(--mp-category-tint);
    color: var(--mp-category);
}

.mp-card-type {
    font-size: 13px;
    font-weight: 600;
    color: var(--mp-category);
}

.mp-card-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

.mp-card-title a {
    color: var(--mp-ink);
    text-decoration: none;
}

.mp-card-title a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.mp-card:hover .mp-card-title a {
    color: var(--mp-brand);
}

.mp-card-summary {
    flex: 1;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--mp-text);
}

.mp-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 18px;
    overflow: hidden;
    border: 1px solid var(--mp-line);
    border-radius: 6px;
    background: var(--mp-base);
}

.mp-specs > div {
    min-width: 0;
    padding: 10px 12px;
}

.mp-specs > div + div {
    border-left: 1px solid var(--mp-line);
}

.mp-specs > div:only-child {
    grid-column: 1 / -1;
}

.mp-specs dt {
    margin: 0 0 3px;
    font-size: 11.5px;
    color: var(--mp-dim);
}

.mp-specs dd {
    margin: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    color: var(--mp-ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--mp-line);
}

.mp-card-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mp-brand);
}

.mp-card-more svg {
    width: 15px;
    height: 15px;
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */
.mp-empty {
    padding: 68px 24px;
    border: 1px solid var(--mp-line);
    border-radius: var(--mp-radius);
    background: var(--mp-surface);
    text-align: center;
}

.mp-empty > svg {
    width: 38px;
    height: 38px;
    margin: 0 auto 20px;
    color: var(--mp-brand);
}

.mp-empty h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.mp-empty p {
    max-width: 46ch;
    margin: 14px auto 26px;
    font-size: 14.5px;
    color: var(--mp-text);
}

.mp-empty .research-actions {
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.mp-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 34px;
}

.mp-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--mp-line);
    border-radius: 6px;
    background: var(--mp-surface);
    font-size: 14px;
    font-weight: 500;
    color: var(--mp-text);
    text-decoration: none;
}

.mp-page svg {
    width: 16px;
    height: 16px;
}

a.mp-page:hover {
    border-color: var(--mp-brand);
    color: var(--mp-brand);
}

.mp-page.is-current {
    border-color: var(--mp-brand);
    background: var(--mp-brand);
    font-weight: 600;
    color: #ffffff;
}

.mp-page.is-disabled {
    background: var(--mp-base);
    color: #8493a6;
}

.mp-page.is-gap {
    min-width: 24px;
    padding: 0;
    border-color: transparent;
    background: transparent;
}

/* --------------------------------------------------------------------------
   Bridge back to reports (bottom of the catalogue)
   -------------------------------------------------------------------------- */
.mp-bridge-wrap {
    padding-block: 40px 72px;
}

.mp-bridge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 34px 40px;
    border: 1px solid #bfd0e5;
    border-radius: 8px;
    background: #e9f0fa;
}

.mp-bridge h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.mp-bridge p {
    max-width: 56ch;
    margin: 0;
    font-size: 14px;
    color: var(--mp-text);
}

.mp-bridge .research-actions {
    flex: none;
}

/* --------------------------------------------------------------------------
   Product detail
   -------------------------------------------------------------------------- */
.mp-detail-head {
    padding: 36px 0 46px;
    border-bottom: 1px solid var(--mp-line);
    background: var(--mp-category-tint);
}

.mp-back {
    margin-bottom: 26px;
}

.mp-type-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 4px 14px 4px 4px;
    border: 1px solid var(--mp-line);
    border-radius: 999px;
    background: var(--mp-base);
    font-size: 13px;
    font-weight: 600;
    color: var(--mp-ink);
    text-decoration: none;
    transition: border-color .2s, color .2s;
}

.mp-type-chip:hover {
    border-color: var(--mp-brand);
    color: var(--mp-brand);
}

.mp-type-chip .mp-tile {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.mp-type-chip .mp-tile svg {
    width: 16px;
    height: 16px;
}

.mp-detail-head h1 {
    max-width: 20em;
    margin: 0 0 16px;
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: var(--mp-track);
    overflow-wrap: anywhere;
}

.mp-detail-summary {
    max-width: 46em;
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    color: var(--mp-text);
}

.mp-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 36px;
    align-items: start;
    padding-block: 40px 80px;
}

.mp-doc {
    border: 1px solid var(--mp-line);
    border-radius: var(--mp-radius);
    background: var(--mp-surface);
}

.mp-doc-section {
    padding: 32px 36px;
}

.mp-doc-section + .mp-doc-section {
    border-top: 1px solid var(--mp-line);
}

.mp-doc h2 {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.mp-prose p {
    margin: 0 0 16px;
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--mp-text);
    overflow-wrap: anywhere;
}

.mp-prose p:last-child {
    margin-bottom: 0;
}

.mp-spec-list {
    margin: 0;
}

.mp-spec-row {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 20px;
    padding: 13px 0;
    border-top: 1px solid var(--mp-line);
    font-size: 14.5px;
}

.mp-spec-row:first-child {
    padding-top: 0;
    border-top: 0;
}

.mp-spec-row:last-child {
    padding-bottom: 0;
}

.mp-spec-row dt {
    color: var(--mp-dim);
}

.mp-spec-row dd {
    margin: 0;
    font-weight: 600;
    color: var(--mp-ink);
    overflow-wrap: anywhere;
}

.mp-spec-row dd.is-empty {
    font-weight: 400;
    color: var(--mp-dim);
}

.mp-included {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mp-included li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--mp-text);
}

.mp-included svg {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--mp-brand);
}

.mp-included li.is-pending svg {
    color: var(--mp-dim);
}

.mp-license {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--mp-text);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.mp-license a,
.mp-buy-hint a {
    font-weight: 600;
    color: var(--mp-brand);
    text-underline-offset: 3px;
}

.mp-detail-note {
    margin-top: 22px;
}

/* Purchase panel */
.mp-buy {
    position: sticky;
    top: 108px;
    padding: 28px;
    border: 1px solid var(--mp-line);
    border-radius: var(--mp-radius);
    background: var(--mp-surface);
}

.mp-buy-price {
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--mp-line);
}

.mp-buy-price p {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--mp-dim);
}

.mp-buy .research-button {
    width: 100%;
}

.mp-buy .mp-notice {
    margin-bottom: 16px;
}

.mp-buy-hint {
    margin: 14px 0 0;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--mp-text);
}

.mp-buy-sub {
    margin: 12px 0 0;
}

.mp-buy-points {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--mp-line);
    list-style: none;
}

.mp-buy-points li {
    display: flex;
    gap: 10px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--mp-text);
}

.mp-buy-points svg {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    color: var(--mp-brand);
}

.mp .research-button[disabled],
.mp .research-button[disabled]:hover {
    border-color: var(--mp-line);
    background: var(--mp-raised);
    color: var(--mp-dim);
    cursor: not-allowed;
}

.mp .research-button[aria-busy="true"] {
    cursor: progress;
}

/* --------------------------------------------------------------------------
   Account pages (purchases)
   -------------------------------------------------------------------------- */
.mp-page-head {
    padding: 52px 0 38px;
    border-bottom: 1px solid var(--mp-line);
    background: var(--mp-surface);
}

.mp-page-head h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: var(--mp-track);
}

.mp-page-head p {
    max-width: 46em;
    margin: 0 0 18px;
    font-size: 15.5px;
    color: var(--mp-text);
}

.mp-purchases {
    padding-block: 36px 80px;
}

.mp-catalogue .mp-flash,
.mp-purchases .mp-flash {
    padding-top: 0;
    margin-bottom: 24px;
}

.mp-orders-wrap {
    overflow: hidden;
    border: 1px solid var(--mp-line);
    border-radius: var(--mp-radius);
    background: var(--mp-surface);
}

.mp-orders {
    width: 100%;
    border-collapse: collapse;
}

.mp-orders th {
    padding: 14px 20px;
    border-bottom: 1px solid var(--mp-line);
    background: var(--mp-base);
    font-size: 12.5px;
    font-weight: 600;
    text-align: left;
    color: var(--mp-dim);
}

.mp-orders td {
    padding: 18px 20px;
    border-top: 1px solid var(--mp-line);
    font-size: 14px;
    vertical-align: middle;
    color: var(--mp-text);
}

.mp-orders tbody tr:first-child td {
    border-top: 0;
}

.mp-order-product {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.mp-order-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mp-order-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--mp-ink);
    text-decoration: none;
    overflow-wrap: anywhere;
}

a.mp-order-title:hover {
    color: var(--mp-brand);
}

.mp-order-meta {
    font-size: 12.5px;
    color: var(--mp-dim);
}

.mp-order-spec {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    font-size: 13px;
}

.mp-order-spec div {
    display: flex;
    gap: 8px;
}

.mp-order-spec dt {
    color: var(--mp-dim);
}

.mp-order-spec dd {
    margin: 0;
    font-weight: 600;
    color: var(--mp-ink);
}

.mp-order-when {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mp-order-action {
    text-align: right;
}

.mp-order-action .research-button {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 13px;
}

.mp-hero-grid > :only-child {
    grid-column: 1 / -1;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
    .mp-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
    }

    .mp-hero h1 {
        max-width: 16em;
    }

    .mp-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mp-filters .mp-search-field {
        grid-column: 1 / -1;
    }

    .mp-filters .research-button {
        grid-column: 1 / -1;
    }

    .mp-detail-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .mp-buy {
        position: static;
        order: -1;
    }

    .mp-bridge {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
}

@media (max-width: 760px) {
    .mp-orders,
    .mp-orders tbody,
    .mp-orders tr,
    .mp-orders td {
        display: block;
    }

    .mp-orders thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .mp-orders tr {
        padding: 18px;
        border-top: 1px solid var(--mp-line);
    }

    .mp-orders tbody tr:first-child {
        border-top: 0;
    }

    .mp-orders td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        padding: 7px 0;
        border: 0;
    }

    .mp-orders td::before {
        content: attr(data-label);
        flex: none;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--mp-dim);
    }

    .mp-orders td.mp-order-cell-product {
        display: block;
        padding-bottom: 12px;
    }

    .mp-orders td.mp-order-cell-product::before {
        display: none;
    }

    .mp-orders td.mp-order-action {
        display: block;
        padding-top: 12px;
    }

    .mp-orders td.mp-order-action::before {
        display: none;
    }

    .mp-order-action .research-button {
        width: 100%;
    }

    .mp-order-spec {
        align-items: flex-end;
    }

    .mp-order-when {
        align-items: flex-end;
    }
}

@media (max-width: 640px) {
    .mp-hero-grid {
        padding-block: 44px 48px;
    }

    .mp-lede {
        font-size: 16px;
    }

    .mp-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .mp-facts > div,
    .mp-facts > div + div {
        padding: 16px 0 0;
        border-left: 0;
    }

    .mp-catalogue {
        padding-top: 40px;
    }

    .mp-filters {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px;
    }

    .mp-results {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .mp-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mp-doc-section {
        padding: 24px 20px;
    }

    .mp-spec-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .mp-buy {
        padding: 22px 20px;
    }

    .mp-detail-summary {
        font-size: 16px;
    }

    .mp-bridge {
        padding: 26px 22px;
    }

    .mp-page-head {
        padding: 38px 0 30px;
    }
}
