/* ── Instruments Listing ── */

.instrument-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.instrument-card:hover {
    transform: translateY(-4px);
}

.instrument-card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.instrument-card-body {
    padding: 0.75rem 0;
    text-align: center;
}

.instrument-card-family {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 0.25rem;
}

.instrument-card-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* ── PDP ── */

.instrument-hero {
    background: #f8f8f8;
}

.instrument-family-name {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.instrument-price {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1rem 0;
}

/* Configurator */

.configurator-model-name {
    font-size: 1.125rem;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Specs */

.spec-header {
    font-size: 1.125rem;
    font-weight: 600;
}

.spec-subheader {
    font-size: 0.875rem;
}

.spec-list dt {
    font-weight: 600;
    font-size: 0.875rem;
}

.spec-list dd {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Color swatches */

.color-swatch-btn {
    min-width: 4rem;
    font-size: 0.8125rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.color-swatch-btn.active,
.color-swatch-btn:focus {
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
    font-weight: 600;
}

/* Build image */

.instrument-build-image {
    text-align: center;
}

.instrument-build-image img {
    max-width: 100%;
    height: auto;
}

/* Slides */

.slides-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.slide-item {
    flex: 0 0 auto;
    max-width: 300px;
}

.slide-caption {
    font-size: 0.875rem;
    color: #666;
}

/* Highlights */

.highlight-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.highlight-image {
    max-width: 100%;
    border-radius: 4px;
}

.highlight-header {
    font-size: 1.125rem;
    font-weight: 600;
}

.highlight-description {
    font-size: 0.9375rem;
    color: #444;
}

.highlight-video iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    border-radius: 4px;
}

/* Section headings */

.section-heading {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Building Section */

.building-section {
    background: #1a1a1a;
    color: #fff;
}

.building-slides {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.building-slide-image img {
    display: block;
    border-radius: 4px;
}

.building-slide-header {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.building-slide-description {
    font-size: 0.9375rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   Guitars / Basses / family / archive listings (legacy www instruments list,
   docs/plans/2026-11-03-mm-www-migration.md).
   ========================================================================== */

.mm-instruments {
    /* Legacy www set these headers in Gotham Cond Bold; the stand-in is a
       condensed face every platform ships (Avenir Next Condensed on Apple,
       Bahnschrift on Windows, Roboto Condensed on Android). */
    --mm-header-cond: "Avenir Next Condensed", Bahnschrift, "Roboto Condensed", "Arial Narrow", sans-serif-condensed, sans-serif;
    color: var(--pdp-ink, #17171c);
    overflow-x: clip;
}

.mm-instruments__header {
    position: relative;
    display: grid;
    background: #000000;
}

.mm-instruments__header-image {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.9;
}

/* Legacy www's title: big, bold, condensed, low on the photo. Phones center
   it; wider screens set it 15% in from the right (guitars) or left (basses). */
.mm-instruments__title {
    position: absolute;
    inset: auto 18px 10% 18px;
    margin: 0;
    color: #ffffff;
    font-family: var(--mm-header-cond);
    font-size: clamp(2rem, 1.2rem + 3.6vw, 5rem);
    font-stretch: condensed;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .mm-instruments__title {
        inset: auto auto 14% 15%;
        max-width: 70%;
        text-align: left;
    }

    .mm-instruments__header--right .mm-instruments__title {
        inset: auto 15% 14% auto;
        text-align: right;
    }
}

.mm-instruments__header--plain {
    padding: clamp(3rem, 8vw, 5rem) 18px;
}

.mm-instruments__header--plain .mm-instruments__title {
    position: static;
    max-width: none;
    text-align: center;
}

.mm-instruments__highlights {
    display: grid;
    gap: 1.5rem clamp(1.5rem, 3vw, 3rem);
    max-width: 1720px;
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 4rem) clamp(18px, 4vw, 4rem) 0;
    list-style: none;
}

@media (min-width: 768px) {
    .mm-instruments__highlights {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.mm-instruments__highlight img {
    display: block;
    width: 100%;
    height: auto;
}

.mm-instruments__highlight-text {
    margin: 1rem 0 0;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

/* Wider than the page column: legacy ran these full bleed, two to a row.
   Big monitors get the room back without going edge to edge. */
.mm-instruments__grid {
    display: grid;
    gap: clamp(2.5rem, 4vw, 4.5rem) clamp(2rem, 5vw, 6rem);
    max-width: 1720px;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 5rem) clamp(18px, 4vw, 4rem);
    list-style: none;
}

@media (min-width: 576px) {
    .mm-instruments__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.mm-instruments__tile-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: inherit;
    text-align: center;
    text-decoration: none;
}

.mm-instruments__tile-image {
    width: 100%;
    height: auto;
    /* One frame for instrument and BFR photos, so a row's buttons line up. */
    aspect-ratio: 1500 / 550;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.mm-instruments__tile-link:hover .mm-instruments__tile-image {
    transform: scale(1.02);
}

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

/* One width for every label in the grid (the old 250px floor let long names
   run wider than their neighbors), a step smaller, tracked a little wider. */
.mm-instruments__tile-name {
    min-width: min(17.5rem, 100%);
    padding: 0.625rem 1.25rem;
    border: 1px solid currentColor;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mm-instruments__tile-link:hover .mm-instruments__tile-name,
.mm-instruments__tile-link:focus-visible .mm-instruments__tile-name {
    background: #17171c;
    color: #ffffff;
}

.mm-instruments__tile-link:focus-visible {
    outline: 2px solid #17171c;
    outline-offset: 4px;
}

.mm-instruments__tile-count {
    margin-top: -0.375rem;
    color: var(--pdp-ink-2, #4e4e58);
    font-size: 0.875rem;
}

.mm-instruments__empty,
.mm-instruments__archive-link {
    margin: 0 auto 2rem;
    padding: 0 18px;
    text-align: center;
}

.mm-instruments__archive-link a {
    color: var(--brand-link);
}

/* The "made in California" copy that closes every list. Legacy printed it as
   one centered column, 4–8 headed sections deep, which read as a wall
   (Jesse, 2026-11-04). It is cut at its <h3>s (App\Support\Blocks\HtmlSections)
   into chapters: heading beside the copy on wide screens, above it on phones,
   each showing its first paragraph with the rest behind "Read more". */
.mm-instruments__about {
    max-width: 60rem;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4.5rem) 18px;
}

.mm-instruments__about-header {
    margin-bottom: clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.mm-instruments__bear {
    width: auto;
    height: 80px;
    margin-bottom: 1rem;
}

/* The instrument page's band-heading size (instrument-detail.css). */
.mm-instruments__about-heading {
    margin: 0;
    font-size: clamp(1.375rem, 1.05rem + 1.1vw, 1.875rem);
    font-weight: 700;
    line-height: 1.2;
}

/* Ink-2 on the white page, 8.1:1. */
.mm-instruments__about-subheading {
    margin: 0.25rem 0 0;
    color: var(--pdp-ink-2, #4e4e58);
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Copy with no <h3> to cut at (an edit, a translation) and any intro before
   the first one: a single readable column, ~70 characters a line. */
.mm-instruments__about-copy {
    max-width: 36rem;
    margin-inline: auto;
    color: var(--pdp-ink-2, #4e4e58);
    line-height: 1.65;
}

.mm-instruments__about-copy h3 {
    margin: 1.5rem 0 0.5rem;
    color: var(--pdp-ink, #17171c);
    font-size: 1.125rem;
    font-weight: 700;
}

.mm-instruments__about-copy + .mm-instruments__about-sections {
    margin-top: clamp(2rem, 4vw, 3rem);
}

.mm-instruments__about-sections {
    border-top: 1px solid var(--pdp-line, #e4e4ea);
}

.mm-instruments__about-section {
    display: grid;
    gap: 1rem clamp(2rem, 5vw, 4.5rem);
    padding-block: clamp(1.75rem, 4vw, 2.75rem);
    border-bottom: 1px solid var(--pdp-line, #e4e4ea);
}

@media (min-width: 992px) {
    .mm-instruments__about-section {
        grid-template-columns: minmax(0, 17rem) minmax(0, 34rem);
        justify-content: center;
        align-items: start;
    }
}

/* The list's condensed header face, with a short gold rule over it (gold as
   a mark, never as text). */
.mm-instruments__about-section-heading {
    margin: 0;
    color: var(--pdp-ink, #17171c);
    font-family: var(--mm-header-cond);
    font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
    font-stretch: condensed;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.15;
    text-transform: uppercase;
    overflow-wrap: break-word;
}

.mm-instruments__about-section-heading::before {
    content: "";
    display: block;
    width: 2.5rem;
    height: 3px;
    margin-bottom: 0.875rem;
    background: var(--brand-primary, #c8a84e);
}

/* ~70 characters a line at 17px (measured: 68ch let the system face run
   to 88), the comfortable measure. */
.mm-instruments__about-section-body {
    max-width: 34rem;
    color: var(--pdp-ink-2, #4e4e58);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.mm-instruments__about-section-body p {
    margin: 0 0 1rem;
}

.mm-instruments__about-section-body > p:last-child,
.mm-instruments__about-more-body > p:last-child {
    margin-bottom: 0;
}

.mm-instruments__about-section-body h4 {
    margin: 1.75rem 0 0.375rem;
    color: var(--pdp-ink, #17171c);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.35;
    text-transform: uppercase;
}

.mm-instruments__about-section-body > h4:first-child {
    margin-top: 0;
}

.mm-instruments__about-more-body {
    padding-top: 0.75rem;
}

/* "Read more", in the list's square idiom: an outlined plus that turns to a
   minus, 44px tall. Ink on white, 18:1, label and icon alike. */
.mm-instruments__about-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 44px;
    padding: 0.25rem 0.5rem 0.25rem 0;
    color: var(--pdp-ink, #17171c);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
    list-style: none;
    cursor: pointer;
}

.mm-instruments__about-toggle::-webkit-details-marker {
    display: none;
}

.mm-instruments__about-toggle::before {
    content: "";
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid currentColor;
    background:
        linear-gradient(currentColor, currentColor) center / 0.625rem 2px no-repeat,
        linear-gradient(currentColor, currentColor) center / 2px 0.625rem no-repeat;
}

.mm-instruments__about-more[open] > .mm-instruments__about-toggle::before {
    background: linear-gradient(currentColor, currentColor) center / 0.625rem 2px no-repeat;
}

.mm-instruments__about-toggle:hover > span {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.mm-instruments__about-toggle:focus-visible {
    outline: 2px solid var(--pdp-ink, #17171c);
    outline-offset: 2px;
}

.mm-instruments__about-more[open] > .mm-instruments__about-toggle > .mm-instruments__about-toggle-more,
.mm-instruments__about-more:not([open]) > .mm-instruments__about-toggle > .mm-instruments__about-toggle-less {
    display: none;
}

/* Family pages carry the instrument page's story and videos; these are the
   same spacing and "Show N more videos" button as instrument-detail.css,
   which this page doesn't load. */
.mm-instruments .mm-instrument__videos {
    padding: clamp(2.75rem, 5.5vw, 4.5rem) 18px;
}

.mm-instruments .pdp-videos__more {
    min-height: 44px;
    margin-top: 2rem;
    padding: 0.625rem 1.5rem;
    border: 2px solid #17171c;
    border-radius: 0;
    background: transparent;
    color: #17171c;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

.mm-instruments .pdp-videos__more:hover,
.mm-instruments .pdp-videos__more:focus-visible {
    border-color: #17171c;
    background: #17171c;
    color: #ffffff;
}

.mm-instruments .pdp-videos__more:focus-visible {
    outline: 2px solid #17171c;
    outline-offset: 3px;
}
