/* ---------- Rackets panel (includes/head.php), proposal B ----------
   Drops from the sticky black bar on the same black field, a chalk hairline between them.
   Rackets enter as small tilted cut-outs; names take the marker underline on hover, like the nav. */

.mm-trigger {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

/* Apparel has no page of its own: the label itself opens the panel, styled as a nav link. */
.mm-trigger__label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    border: 0;
    background: none;
    color: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.mm-trigger__label .br {
    position: absolute;
    left: -6%;
    width: calc(100% - 14px);
    bottom: -4px;
    height: 9px;
    stroke-width: 6;
}

.mm-trigger__label .ico {
    width: 15px;
    height: 15px;
    stroke-width: 3;
    transition: transform .3s var(--ease);
}

.mm-trigger__label[aria-expanded="true"] .ico {
    transform: rotate(180deg);
}

.js .mm-trigger__label:hover .br use,
.js .mm-trigger__label[aria-expanded="true"] .br use,
.js .mm-trigger__label[aria-current="page"] .br use {
    transition: stroke-dashoffset 500ms var(--ease);
    stroke-dashoffset: 0;
}

.mm-trigger__btn {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: none;
    color: inherit;
    cursor: pointer;
    transition: background-color .2s;
}

.mm-trigger__btn:hover {
    background: rgba(242, 240, 236, .1);
}

.mm-trigger__btn .ico {
    width: 15px;
    height: 15px;
    stroke-width: 3;
    transition: transform .3s var(--ease);
}

.mm-trigger__btn[aria-expanded="true"] .ico {
    transform: rotate(180deg);
}

.mm {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--holo);
    box-shadow: 0 -1px 0 var(--ink-line) inset, 0 1px 0 var(--ink-line);
    animation: mm-in .45s var(--ease);
}

/* Dim the page under the panel so the black on black reads as a layer, not a new section. */
.mm::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 100vh;
    background: rgba(12, 12, 12, .72);
    pointer-events: none;
}

@keyframes mm-in {
    from {
        clip-path: inset(0 0 100% 0);
    }
    to {
        clip-path: inset(0 0 -100vh 0);
    }
}

.mm__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr) minmax(0, .9fr);
    gap: clamp(28px, 4vw, 72px);
    padding-top: 40px;
    padding-bottom: 48px;
}

.mm__title {
    margin: 0 0 18px;
    font-size: .875rem;
    font-weight: 700;
    color: var(--ink-2);
}

.mm ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mm a {
    text-decoration: none;
}

.mm__lines a {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 4px 0;
}

.mm__lines img {
    flex: none;
    width: 80px;
    height: 80px;
    padding: 8px;
    object-fit: contain;
    background: var(--plate);
}

.mm__lines span,
.mm__styles a {
    display: grid;
    gap: 6px;
    font-size: .9375rem;
    color: var(--ink-2);
}

.mm__lines b,
.mm__styles b {
    position: relative;
    justify-self: start;
    color: var(--ink);
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 800;
    font-family: var(--fd);
    font-variation-settings: var(--fd-var);
    line-height: .95;
    letter-spacing: 0;
}

.mm b .br {
    position: absolute;
    left: -4%;
    width: 108%;
    bottom: -.2em;
    height: .3em;
    stroke-width: 6;
}

.mm__styles a {
    padding: 8px 0 12px;
    max-width: 40ch;
}

/* Racket plate as in the product cards: the cut-out tilts on its plate and lifts on hover. */
.mm__lines img {
    transition: padding .5s var(--ease);
}

.mm__lines a:hover img,
.mm__lines a:focus-visible img {
    padding: 4px;
}

.js .mm a:hover b .br use,
.js .mm a:focus-visible b .br use {
    transition: stroke-dashoffset 500ms var(--ease);
    stroke-dashoffset: 0;
}

.mm__actions {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 18px;
}

.mm__note {
    margin: 0 0 -6px;
    font-size: 1.5rem;
    transform: rotate(-4deg);
    transform-origin: left;
}

/* Closing row of every panel: the full category, quiet but always in the same place. */
.mm__foot {
    padding-top: 18px;
    padding-bottom: 22px;
    border-top: 1px solid var(--ink-line);
}

.mm__foot a {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    font-weight: 700;
    text-decoration: none;
}

.mm__foot span {
    color: var(--accent);
    font-family: var(--fd);
    font-variation-settings: var(--fd-var);
    font-weight: 800;
}

.mm__foot .ico {
    transition: translate .3s var(--ease);
}

.mm__foot a:hover .ico {
    translate: 4px 0;
}

.mm__foot a:hover {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: .25em;
}

/* Apparel: three photographs on square plates, then the season links. */
.mm--apparel .mm__inner {
    grid-template-columns: minmax(0, 2.4fr) minmax(0, .9fr);
}

.mm__apparel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px) !important;
}

.mm__apparel a {
    display: grid;
    gap: 4px;
    color: var(--ink-2);
    font-size: .9375rem;
}

.mm__photo {
    display: block;
    aspect-ratio: 4 / 3;
    margin-bottom: 10px;
    overflow: hidden;
    background: var(--paper);
}

.mm__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease);
}

.mm__apparel a:hover img,
.mm__apparel a:focus-visible img {
    transform: scale(1.05);
}

/* Accessories: four product cut-outs on square plates. */
.mm--acc .mm__apparel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mm--acc .mm__photo {
    aspect-ratio: 1;
    background: var(--plate);
}

.mm--acc .mm__photo img {
    object-fit: contain;
    padding: 14%;
}

.mm__apparel b {
    position: relative;
    justify-self: start;
    color: var(--ink);
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 800;
    font-family: var(--fd);
    font-variation-settings: var(--fd-var);
    line-height: .95;
    letter-spacing: 0;
}

@media (max-width: 1080px) {
    .mm {
        display: none;
    }
}

/* ---------- Drawer: rackets accordion ---------- */

.drawer nav {
    /* min-height 0 lets the flex item shrink, so the open accordion scrolls inside the drawer. */
    min-height: 0;
    overflow-y: auto;
}

.drawer__sub summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    font-size: clamp(2.4rem, 11vw, 3.6rem);
    font-weight: 800;
    font-family: var(--fd);
    font-variation-settings: var(--fd-var);
    line-height: 1;
    letter-spacing: 0;
    list-style: none;
    cursor: pointer;
}

.drawer__sub summary::-webkit-details-marker {
    display: none;
}

.drawer__sub summary .ico {
    width: .6em;
    height: .6em;
    stroke-width: 3;
    transition: transform .3s var(--ease);
}

.drawer__sub[open] summary .ico {
    transform: rotate(45deg);
}

.drawer__sublinks {
    display: grid;
    padding: 6px 0 16px;
}

.drawer nav .drawer__sublinks a {
    padding: 8px 0;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--f);
    font-variation-settings: "opsz" 14;
    letter-spacing: 0;
}

@media (prefers-reduced-motion: reduce) {
    .mm {
        animation: none;
    }
}
