/* MASTER-PACK 0.7.55 — homepage catalogue discovery layer.
 * Keeps the approved seven-section homepage visually focused while making the
 * complete public catalogue reachable from the selected root.
 */

.mp-discovery-trigger {
    position: fixed;
    z-index: 115;
    top: 15px;
    right: clamp(18px, 4vw, 64px);
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    color: #171a1d;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(21,23,25,.16);
    border-radius: 999px;
    box-shadow: 0 9px 24px rgba(15,22,28,.08);
    cursor: pointer;
    font-size: 13px;
    font-weight: 760;
    letter-spacing: .01em;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.mp-discovery-trigger:hover {
    border-color: rgba(21,23,25,.36);
    box-shadow: 0 12px 30px rgba(15,22,28,.13);
    transform: translateY(-1px);
}

.mp-discovery-trigger:focus-visible,
.mp-discovery-close:focus-visible,
.mp-discovery-shortcuts a:focus-visible,
.mp-discovery-group a:focus-visible,
.mp-section-discovery-button:focus-visible {
    outline: 3px solid rgba(216,90,52,.35);
    outline-offset: 3px;
}

.mp-discovery-trigger.is-in-header {
    position: static;
    z-index: auto;
    flex: 0 0 auto;
    min-height: 40px;
    margin-left: auto;
    padding-inline: 14px;
    box-shadow: none;
}

.mp-discovery-trigger.is-in-header:hover {
    box-shadow: none;
}

.mp-discovery-trigger-icon {
    display: grid;
    width: 14px;
    gap: 3px;
}

.mp-discovery-trigger-icon span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    border-radius: 999px;
}

.mp-discovery-trigger-icon span:nth-child(2) {
    width: 72%;
}

.mp-discovery-shell {
    position: fixed;
    z-index: 1300;
    inset: 0;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity .24s ease, visibility 0s linear .24s;
}

.mp-discovery-shell.is-open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transition-delay: 0s;
}

.mp-discovery-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
    background: rgba(10,15,19,.52);
    border: 0;
    backdrop-filter: blur(8px);
    cursor: default;
}

.mp-discovery-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(1120px, 88vw);
    height: 100dvh;
    overflow: auto;
    overscroll-behavior: contain;
    padding: clamp(28px, 4vw, 58px) clamp(24px, 4vw, 58px) 40px;
    color: #171a1d;
    background:
        linear-gradient(180deg, rgba(255,255,255,.995), rgba(248,248,246,.995));
    box-shadow: -28px 0 80px rgba(6,12,16,.22);
    transform: translate3d(48px,0,0);
    opacity: .3;
    transition: transform .28s cubic-bezier(.22,.74,.24,1), opacity .22s ease;
    -webkit-overflow-scrolling: touch;
}

.mp-discovery-shell.is-open .mp-discovery-panel {
    transform: translate3d(0,0,0);
    opacity: 1;
}

.mp-discovery-head {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 28px;
    align-items: start;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(21,23,25,.12);
}

.mp-discovery-kicker {
    margin: 0 0 12px;
    color: #d85a34;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.mp-discovery-head h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 540;
    line-height: .98;
    letter-spacing: -.045em;
}

.mp-discovery-head p:not(.mp-discovery-kicker) {
    max-width: 680px;
    margin: 16px 0 0;
    color: #656a70;
    font-size: 15px;
    line-height: 1.55;
}

.mp-discovery-close {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    padding: 0;
    color: #171a1d;
    background: #f0f0ed;
    border: 1px solid rgba(21,23,25,.12);
    border-radius: 50%;
    cursor: pointer;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    transition: transform .2s ease, background .2s ease;
}

.mp-discovery-close:hover {
    background: #e7e7e3;
    transform: rotate(4deg);
}

.mp-discovery-tools {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 24px 0 4px;
}

.mp-discovery-search {
    position: relative;
    display: flex;
    align-items: center;
}

.mp-discovery-search svg {
    position: absolute;
    left: 16px;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: #71767b;
    stroke-width: 1.7;
    stroke-linecap: round;
    pointer-events: none;
}

.mp-discovery-search input {
    width: 100%;
    height: 50px;
    padding: 0 18px 0 47px;
    color: #171a1d;
    background: #fff;
    border: 1px solid rgba(21,23,25,.14);
    border-radius: 2px;
    outline: 0;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.mp-discovery-search input:focus {
    border-color: rgba(216,90,52,.72);
    box-shadow: 0 0 0 3px rgba(216,90,52,.12);
}

.mp-discovery-shortcuts {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 14px;
}

.mp-discovery-shortcuts a {
    color: #35393d;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(21,23,25,.28);
}

.mp-discovery-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 20px;
    padding: 24px 0 34px;
}

.mp-discovery-group {
    min-width: 0;
    padding: 22px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(21,23,25,.11);
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.mp-discovery-group.is-focus-group {
    border-color: rgba(216,90,52,.5);
    box-shadow: 0 16px 40px rgba(35,37,39,.08);
    transform: translateY(-2px);
}

.mp-discovery-group-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.mp-discovery-group-head p {
    margin: 0 0 5px;
    color: #8a8e92;
    font-size: 10px;
    font-weight: 780;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.mp-discovery-group-head h3 {
    margin: 0;
    font-size: clamp(20px, 2vw, 27px);
    font-weight: 610;
    letter-spacing: -.025em;
}

.mp-discovery-group-head > span {
    display: grid;
    min-width: 34px;
    height: 28px;
    place-items: center;
    padding: 0 8px;
    color: #5e6267;
    background: #f0f0ed;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 780;
}

.mp-discovery-group ul {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mp-discovery-group li[hidden] {
    display: none;
}

.mp-discovery-group a {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 43px;
    padding: 9px 0;
    color: #25292c;
    border-bottom: 1px solid rgba(21,23,25,.08);
    font-size: 13px;
    font-weight: 620;
    line-height: 1.35;
    text-decoration: none;
    transition: color .17s ease, padding-left .17s ease;
}

.mp-discovery-group li:last-child a {
    border-bottom: 0;
}

.mp-discovery-group a:hover {
    color: #d85a34;
    padding-left: 5px;
}

.mp-discovery-group a > span:last-child {
    color: #a6aaad;
    font-size: 14px;
    transition: color .17s ease, transform .17s ease;
}

.mp-discovery-group a:hover > span:last-child {
    color: #d85a34;
    transform: translate(2px,-2px);
}

.mp-discovery-group[hidden] {
    display: none;
}

.mp-discovery-empty {
    margin: 10px 0 34px;
    padding: 22px;
    color: #656a70;
    background: #f1f1ee;
    border: 1px solid rgba(21,23,25,.1);
}

.mp-discovery-footer {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 28px;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(21,23,25,.12);
}

.mp-discovery-footer p {
    max-width: 690px;
    margin: 0;
    color: #62676c;
    font-size: 14px;
    line-height: 1.55;
}

.mp-discovery-footer a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    color: #fff;
    background: #1c242b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 760;
    transition: background .2s ease, transform .2s ease;
}

.mp-discovery-footer a:hover {
    background: #d85a34;
    transform: translateY(-1px);
}

.mp-section-discovery-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 8px 0 6px;
    color: #24272a;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(21,23,25,.34);
    cursor: pointer;
    font-size: 13px;
    font-weight: 760;
    line-height: 1.2;
    text-align: left;
    transition: color .18s ease, border-color .18s ease, gap .18s ease;
}

.mp-section-discovery-button:hover {
    gap: 14px;
    color: #d85a34;
    border-color: #d85a34;
}

.mp-discovery-body-locked {
    overflow: hidden !important;
}

@media (min-width: 1101px) {
    .mp-prototype-1 .mp-header .mp-discovery-trigger.is-in-header {
        order: 2;
        margin-left: 0;
    }

    .mp-prototype-1 .mp-header .mp-main-nav {
        order: 1;
        margin-left: auto;
    }
}

@media (max-width: 1100px) {
    .mp-discovery-trigger.is-in-header {
        min-height: 40px;
        margin-left: auto;
        margin-right: 4px;
    }

    .mp-discovery-panel {
        width: min(900px, 94vw);
    }

    .mp-discovery-tools {
        grid-template-columns: 1fr;
    }

    .mp-discovery-shortcuts {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .mp-discovery-trigger {
        top: 12px;
        right: 68px;
        min-height: 40px;
        padding-inline: 12px;
    }

    .mp-discovery-trigger.is-in-header {
        position: static;
        min-width: 40px;
        padding-inline: 10px;
    }

    .mp-discovery-trigger.is-in-header > span:last-child {
        display: none;
    }

    .mp-discovery-panel {
        width: 100vw;
        padding: 24px 18px 28px;
        box-shadow: none;
        transform: translate3d(0,24px,0);
    }

    .mp-discovery-head {
        gap: 18px;
        padding-bottom: 20px;
    }

    .mp-discovery-head h2 {
        font-size: clamp(33px, 10vw, 46px);
    }

    .mp-discovery-head p:not(.mp-discovery-kicker) {
        font-size: 14px;
    }

    .mp-discovery-close {
        width: 42px;
        height: 42px;
    }

    .mp-discovery-tools {
        padding-top: 18px;
    }

    .mp-discovery-shortcuts {
        gap: 10px 16px;
    }

    .mp-discovery-groups {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-top: 18px;
    }

    .mp-discovery-group {
        padding: 18px;
    }

    .mp-discovery-group-head h3 {
        font-size: 23px;
    }

    .mp-discovery-group a {
        min-height: 46px;
        font-size: 13.5px;
    }

    .mp-discovery-footer {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mp-discovery-footer a {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mp-discovery-shell,
    .mp-discovery-panel,
    .mp-discovery-trigger,
    .mp-discovery-group,
    .mp-discovery-group a,
    .mp-discovery-group a > span:last-child,
    .mp-section-discovery-button,
    .mp-discovery-close,
    .mp-discovery-footer a {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
