.mbs {
    --mbs-navy: #102d4e;
    --mbs-ink: #182f43;
    --mbs-muted: #486070;
    --mbs-line: #cddfe5;
    width: 100%;
    min-width: 0;
    max-width: 1240px;
    margin-inline: auto;
    color: var(--mbs-ink);
    font-family: inherit;
    text-align: start;
    box-sizing: border-box;
}
.mbs *, .mbs *::before, .mbs *::after { box-sizing: border-box; }
.mbs h2, .mbs h3, .mbs p, .mbs picture { margin: 0; padding: 0; }
.mbs h2, .mbs h3 { color: var(--mbs-navy); font-family: inherit; text-transform: none; }
.mbs a, .mbs a:visited { color: var(--mbs-ink); text-decoration: none; }
.mbs a:focus-visible, .mbs summary:focus-visible { outline: 3px solid #005990; outline-offset: 3px; }
.mbs .mbs-id-legal       { --brand: #8d6216; --tint: #fff2d2; }
.mbs .mbs-id-care        { --brand: #00826f; --tint: #d9f5ee; }
.mbs .mbs-id-studios     { --brand: #155988; --tint: #d9eafa; }
.mbs .mbs-id-logistics   { --brand: #427536; --tint: #e4f3e2; }
.mbs .mbs-id-hr          { --brand: #006f7d; --tint: #d7eff1; }
.mbs .mbs-id-kemitt      { --brand: #1458a0; --tint: #dcecfb; }
.mbs .mbs-id-dentalbay   { --brand: #146ea2; --tint: #d7f1ff; }
.mbs .mbs-id-leominor    { --brand: #4b7610; --tint: #edf5cf; }
.mbs .mbs-id-medbay_shop { --brand: #18557d; --tint: #deeff5; }
.mbs .mbs-id-revive      { --brand: #297057; --tint: #e1f2e9; }

/* The shop homepage keeps a short group introduction and eight direct destinations. */
.mbs.mbs-compact {
    margin-block: clamp(17px, 2.5vw, 32px);
    padding: clamp(14px, 2.25vw, 29px);
    border: 1px solid #c4dfe7;
    border-radius: 17px;
    background: linear-gradient(115deg, #edf7fb, #f6fcfa 76%, #e7f5ee);
}
.mbs .mbs-compact-head, .mbs .mbs-intro-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 22px;
}
.mbs .mbs-compact-head { margin-block-end: 15px; flex-wrap: wrap; }
.mbs .mbs-compact-head h2 { font-weight: 800; font-size: clamp(22px, 2.45vw, 34px); line-height: 1.2; }
.mbs .mbs-compact-head p { color: var(--mbs-muted); font-size: 14px; line-height: 1.55; margin-block-start: 4px; }
.mbs a.mbs-directory-link, .mbs a.mbs-shop-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    border-radius: 7px;
}
.mbs a.mbs-directory-link { color: #0c5363; text-decoration: underline; text-underline-offset: 4px; }
.mbs .mbs-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px; }
.mbs .mbs-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    padding: 10px 5px 11px;
    border: 1px solid #d5e3e7;
    border-block-end: 3px solid var(--brand);
    border-radius: 10px;
    background: linear-gradient(155deg, white 54%, var(--tint));
    text-align: center;
}
.mbs .mbs-symbol { display: block; flex-shrink: 0; width: 46px; height: 46px; object-fit: contain; border-radius: 8px; }
.mbs .mbs-tile-name { min-width: 0; color: var(--mbs-navy); font-size: 13px; font-weight: 750; line-height: 1.32; overflow-wrap: anywhere; }
.mbs a.mbs-tile:hover, .mbs a.mbs-card:hover { border-color: var(--brand); box-shadow: 0 4px 12px rgba(23,59,80,.12); }

/* Directory artwork, labels and calls to action remain independent, including in RTL. */
.mbs.mbs-directory { margin-block: 16px 42px; padding-inline: 12px; }
.mbs .mbs-intro {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #c6dce6;
    background: linear-gradient(125deg, #e8f4fa, #f3fbfa);
}
.mbs .mbs-intro picture, .mbs .mbs-masthead { display: block; width: 100%; }
.mbs .mbs-masthead { height: auto; }
.mbs .mbs-intro-copy { padding: 17px clamp(15px, 2.5vw, 30px); }
.mbs .mbs-intro-copy p { max-width: 64ch; font-size: clamp(15px, 1.4vw, 18px); color: #233f52; line-height: 1.55; }
.mbs a.mbs-shop-link { flex: 0 0 auto; background: #123d55; color: white; padding: 10px 16px; }
.mbs a.mbs-shop-link:hover { background: #095765; }
.mbs .mbs-group { margin-block-start: clamp(23px, 3.5vw, 41px); }
.mbs .mbs-group > h2 { margin-block-end: 14px; line-height: 1.2; font-size: clamp(20px, 2.2vw, 29px); font-weight: 800; }
.mbs .mbs-cards { display: grid; gap: clamp(9px, 1.3vw, 16px); }
.mbs .mbs-services { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mbs .mbs-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mbs .mbs-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mbs .mbs-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--mbs-line);
    border-radius: 13px;
    background: white;
}
.mbs .mbs-art { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 110px; padding: 15px; background: linear-gradient(115deg, white, var(--tint)); }
.mbs .mbs-art::before { content: ''; position: absolute; z-index: -1; inset: 0; border-block-end: 3px solid var(--brand); }
.mbs .mbs-scene {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    z-index: -2;
    width: 65%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mask-image: linear-gradient(to right, transparent, #000 31%);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 31%);
}
.mbs[dir="rtl"] .mbs-scene { mask-image: linear-gradient(to left, transparent, #000 31%); -webkit-mask-image: linear-gradient(to left, transparent, #000 31%); }
.mbs .mbs-symbol-frame { display: inline-flex; border: 1px solid #ffffffdd; border-radius: 12px; box-shadow: 0 2px 8px #16394d1a; overflow: hidden; }
.mbs .mbs-symbol-frame .mbs-symbol { width: 63px; height: 63px; border-radius: 0; }
.mbs .mbs-card-copy { flex: 1; padding: 13px clamp(10px, 1.3vw, 17px) 11px; }
.mbs .mbs-card h3 { font-size: clamp(16px, 1.25vw, 18px); font-weight: 800; line-height: 1.3; margin-block-end: 6px; }
.mbs .mbs-card p { color: var(--mbs-muted); font-size: 14px; line-height: 1.48; }
.mbs .mbs-action, .mbs .mbs-status { margin: 0 clamp(10px, 1.3vw, 17px); padding-block: 9px 12px; border-block-start: 1px solid #e3eced; line-height: 1.4; font-size: 13px; }
.mbs .mbs-action { display: flex; justify-content: space-between; gap: 5px; align-items: center; font-weight: 750; color: var(--brand); }
.mbs .mbs-status { color: var(--mbs-muted); }
.mbs .mbs-more .mbs-card { display: grid; grid-template-columns: auto 1fr; }
.mbs .mbs-more .mbs-art { grid-row: span 2; padding: 12px; min-height: 0; }
.mbs .mbs-more .mbs-art::before { border-block-end: 0; border-inline-start: 3px solid var(--brand); }
.mbs .mbs-more .mbs-card-copy { padding-block-end: 9px; }
.mbs .mbs-wellness-icon { display: grid; place-items: center; width: 63px; height: 63px; background: #e8f5ec; }
.mbs .mbs-wellness-icon i { position: relative; display: block; width: 33px; height: 25px; border: 2px solid #287553; border-radius: 26px 0 26px 0; transform: rotate(-14deg); }
.mbs .mbs-wellness-icon i::after { content: ''; position: absolute; top: 10px; left: 2px; width: 24px; height: 2px; transform: rotate(-29deg); background: #287553; }
.mbs .mbs-chart, .mbs .mbs-back { margin-block-start: 22px; font-size: 14px; }
.mbs .mbs-chart summary { cursor: pointer; font-weight: 700; color: #13576e; }
.mbs .mbs-chart img { display: block; max-width: 100%; height: auto; margin: 12px auto; }
.mbs .mbs-back a { color: #13576e; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 990px) {
    .mbs .mbs-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .mbs .mbs-tile { align-items: center; justify-content: flex-start; flex-direction: row; gap: 7px; text-align: start; padding: 8px; border-block-end: 1px solid #d5e3e7; border-inline-start: 3px solid var(--brand); }
    .mbs .mbs-services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .mbs .mbs-tiles, .mbs .mbs-services, .mbs .mbs-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mbs .mbs-compact-head { gap: 2px; }
    .mbs .mbs-intro-copy { align-items: flex-start; flex-direction: column; }
    .mbs .mbs-more { grid-template-columns: minmax(0, 1fr); }
    .mbs .mbs-art { min-height: 97px; padding: 10px; }
    .mbs .mbs-symbol-frame .mbs-symbol { width: 52px; height: 52px; }
}
@media (max-width: 620px) {
    .mbs.mbs-directory { padding-inline: 4px; }
    .mbs .mbs-intro picture { background: #e8f4fa; }
    .mbs .mbs-intro .mbs-masthead { display: block; width: 100%; max-height: 131px; object-fit: contain; }
    .mbs .mbs-intro-copy { gap: 11px; padding: 14px; }
    .mbs .mbs-tile-name { font-size: 12.75px; }
    .mbs .mbs-tile .mbs-symbol { width: 38px; height: 38px; }
    .mbs .mbs-card-copy { padding-top: 10px; }
}
@media (max-width: 360px) {
    .mbs.mbs-compact { padding: 11px; }
    .mbs .mbs-tiles { gap: 5px; }
    .mbs .mbs-tile { gap: 5px; padding: 6px; }
    .mbs .mbs-tile .mbs-symbol { width: 32px; height: 32px; }
    .mbs .mbs-art { min-height: 84px; }
    .mbs .mbs-action, .mbs .mbs-card p { font-size: 12.5px; }
}
