/* The three equipment detail pages share the site's reading surfaces. */
.mp-site .mp-equipment-page {
    --mp-equipment-surface: #fafaf7;
    --mp-line: #c8cac3;
    --color-text: var(--mp-ink);
    --color-text-muted: var(--mp-muted);
    --card-bg: var(--mp-equipment-surface);
    --card-border: var(--mp-line);
    --zzz-text-primary: var(--mp-ink);
    --zzz-text-secondary: var(--mp-muted);
    max-width: 900px;
    margin-inline: auto;
    padding: 24px 0 40px;
    color: var(--mp-ink);
    font-size: 16px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}
.mp-equipment-page > .zzz-breadcrumb { margin-bottom: 20px; }
.mp-site .mp-equipment-page .zzz-section {
    min-width: 0;
    margin: 0 0 36px;
    padding: 24px;
    background: var(--mp-equipment-surface);
    border: 1px solid var(--mp-line);
    border-radius: 12px;
    box-shadow: none;
}
.mp-site .mp-equipment-page .zzz-section:last-child { margin-bottom: 0; }
.mp-site .mp-equipment-page .zzz-section__heading {
    margin: 0 0 24px;
    padding: 0 0 14px;
    border: 0;
    border-bottom: 1px solid var(--mp-line);
    color: var(--mp-ink);
    background: none;
    font-size: 23px;
    line-height: 1.5;
    font-family: inherit;
    clip-path: none;
}
.mp-equipment-page .zzz-section__heading::before,
.mp-equipment-page .zzz-section__heading::after { display: none; }
.mp-site .mp-equipment-page .zzz-section__content { min-width: 0; padding: 0; }
.mp-equipment-page :is(.zzz-we-description__text, .zzz-bangboo-description__text, .zzz-review-text) {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    color: var(--mp-ink);
}

/* Page headings sit above the overview, with each item's own name inside it. */
.mp-equipment-page .zzz-motif-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
}
.mp-equipment-page .zzz-motif-card > :is(.zzz-wengine-icon, img) {
    width: 160px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.mp-equipment-page .zzz-motif-card__body { min-width: 0; }
.mp-equipment-page .zzz-motif-card__body:only-child { grid-column: 1 / -1; }
.mp-equipment-page .zzz-seo-h1-band { background: none; }
.mp-equipment-page .zzz-seo-h1-band .zzz-container { padding: 0; }
.mp-equipment-page :is(.zzz-seo-h1, .zzz-motif-card__name) {
    margin: 0;
    color: var(--mp-ink);
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 800;
    line-height: 1.5;
    text-align: left;
    text-wrap: balance;
    letter-spacing: -.025em;
}
.mp-equipment-page > :is(.zzz-seo-h1-band, .zzz-seo-h1) { margin-bottom: 24px; }
.mp-equipment-page > .zzz-seo-h1-band .zzz-seo-h1,
.mp-equipment-page > .zzz-seo-h1 { font-size: 20px; }
.mp-equipment-page.zzz-we-page .zzz-motif-card > .zzz-wengine-icon { align-self: center; }
.mp-equipment-page .zzz-we-hero__effect { grid-column: 1 / -1; min-width: 0; }
.mp-equipment-page .zzz-we-hero__motif { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.mp-equipment-page .zzz-we-hero__motif-label { color: var(--mp-muted); font-size: 14px; }
@media (min-width: 701px) {
    .mp-equipment-page.zzz-we-page .zzz-motif-card { grid-template-columns: 160px minmax(0, 1fr) 140px; column-gap: 24px; }
    .mp-equipment-page.zzz-we-page .zzz-motif-card > .zzz-we-hero__motif { grid-column: 3; grid-row: 1; align-self: center; flex-direction: column; gap: 8px; margin: 0; text-align: center; }
    .mp-equipment-page.zzz-we-page .zzz-we-hero__motif-label { font-size: 13px; line-height: 1.6; }
    .mp-equipment-page.zzz-we-page .zzz-motif-card:not(:has(> .zzz-we-hero__motif)) { grid-template-columns: 160px minmax(0, 1fr); }
}
@media (max-width: 700px) {
    .mp-equipment-page.zzz-we-page .zzz-motif-card > .zzz-we-hero__motif { grid-column: 1; grid-row: auto; margin: 0; gap: 16px; flex-direction: row; }
}
.mp-equipment-page :is(.zzz-we-hero__name-en, .zzz-disc-hero__name-en, .zzz-bangboo-hero__name-en) {
    margin: 6px 0 20px;
    color: var(--mp-muted);
    font-size: 14px;
    line-height: 1.6;
}
.mp-equipment-page .zzz-motif-card__stats { margin: 20px 0; font-size: 15px; }
.mp-equipment-page.zzz-we-page .zzz-motif-card__stats { margin-bottom: 0; }
.mp-equipment-page .zzz-motif-card__stat-row { padding-block: 7px; }
.mp-equipment-page .zzz-motif-card__stat-row dt { color: var(--mp-muted); font-size: 14px; }
.mp-equipment-page .zzz-motif-card__stat-row dd { margin: 0; font-weight: 700; }
.mp-equipment-page .zzz-motif-card__max-label { color: var(--mp-muted); font-size: 13px; }
.mp-equipment-page .zzz-motif-card__role {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-block: 14px;
    border-top: 1px solid var(--mp-line);
    font-size: 14px;
}
.mp-equipment-page .zzz-motif-card__role img { width: 24px; height: 24px; flex-shrink: 0; }
.mp-equipment-page .zzz-motif-card__effect { margin-top: 8px; }
.mp-equipment-page .zzz-motif-card__effect-label { color: var(--mp-muted); font-size: 14px; }
.mp-equipment-page .zzz-motif-card__effect p { margin: 12px 0 0; }
.mp-equipment-page .zzz-disc-effects__item { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--mp-line); }
.mp-equipment-page .zzz-disc-effects__label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--mp-accent); }
.mp-equipment-page .zzz-disc-hero__flavor { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--mp-line); }
.mp-equipment-page .zzz-we-acquisition__list { margin: 0; }
.mp-equipment-page .zzz-we-acquisition__row { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 16px; padding-block: 12px; }
.mp-equipment-page .zzz-we-acquisition__row + .zzz-we-acquisition__row { border-top: 1px solid var(--mp-line); }
.mp-equipment-page .zzz-we-acquisition__row dt { color: var(--mp-muted); }
.mp-equipment-page .zzz-we-acquisition__row dd { margin: 0; }

/* Recommendation rows use the shared character component unchanged. */
.mp-equipment-page .zzz-we-recs__item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 24px;
    padding-block: 20px;
}
.mp-equipment-page .zzz-we-recs__agent { grid-column: 1; grid-row: 1 / span 2; text-align: center; }
.mp-equipment-page .zzz-we-recs__priority { display: block; margin-top: 6px; }
.mp-equipment-page :is(.zzz-we-recs__star, .zzz-disc-recs__star) { color: #955918; font-size: 16px; }
.mp-equipment-page .zzz-we-recs__note { min-width: 0; font-size: inherit; line-height: inherit; }
.mp-equipment-page :is(.zzz-we-recs__note p, .zzz-we-recs__note ul) { margin: 0 0 12px; }
.mp-equipment-page .zzz-we-recs__item + .zzz-we-recs__item,
.mp-equipment-page .zzz-we-recs__list > .zzz-card-flip + *,
.mp-equipment-page .zzz-we-recs__item + .zzz-card-flip { border-top: 1px solid var(--mp-line); }
.mp-equipment-page .zzz-card-flip { background: none; box-shadow: none; border: 0; border-radius: 0; }
.mp-equipment-page .zzz-card-flip__hint { grid-column: 2; }
.mp-equipment-page .zzz-card-flip__back { background: var(--mp-equipment-surface); border-color: var(--mp-line); border-radius: 12px; }
.mp-equipment-page .zzz-card-flip__back-body { color: var(--mp-ink); font-size: inherit; line-height: inherit; }
.mp-equipment-page :is(.zzz-card-flip__hint, .zzz-card-flip__back-header) { color: var(--mp-accent); }
.mp-equipment-page .zzz-card-flip__back-footer { color: var(--mp-muted); font-size: 13px; }
.mp-equipment-page .zzz-disc-recs__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mp-equipment-page .zzz-disc-recs__agent { display: flex; align-items: center; gap: 14px; }
.mp-equipment-page .zzz-disc-recs__meta { display: flex; flex-direction: column; gap: 8px; min-width: 0; line-height: 1.6; }
.mp-equipment-page .zzz-disc-recs__pieces { font-size: 14px; font-weight: 700; }
.mp-equipment-page .zzz-disc-recs__priority { white-space: nowrap; }

/* Flat related links retain complete names, including on narrow phones. */
.mp-equipment-page :is(.zzz-we-related__grid, .zzz-disc-others__grid, .zzz-bangboo-others__grid) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}
.mp-equipment-page :is(.zzz-we-related__item, .zzz-disc-others__item, .zzz-bangboo-others__item) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px 8px;
    border-radius: 12px;
    text-decoration: none;
}
.mp-equipment-page :is(.zzz-we-related__item, .zzz-disc-others__item, .zzz-bangboo-others__item):hover { background: #eeeee7; }
.mp-equipment-page :is(.zzz-we-related__name, .zzz-disc-others__name, .zzz-bangboo-others__name) {
    color: var(--mp-ink);
    font-size: 14px;
    line-height: 1.65;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}
.mp-equipment-page :is(.zzz-we-related__item .zzz-wengine-icon, .zzz-disc-others__icon, .zzz-bangboo-others__icon) { width: 64px; height: auto; }

.mp-equipment-page .zzz-bangboo-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.mp-equipment-page .zzz-bangboo-hero__ability { border-top: 1px solid var(--mp-line); padding-top: 16px; }
.mp-equipment-page .zzz-bangboo-hero__ability-label { display: block; margin-bottom: 8px; color: var(--mp-accent); font-weight: 700; }
.mp-equipment-page .zzz-bangboo-skill + .zzz-bangboo-skill { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--mp-line); }
.mp-equipment-page .zzz-bangboo-skill__header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.mp-equipment-page .zzz-bangboo-skill__name { margin: 0; color: var(--mp-ink); font-size: 19px; line-height: 1.6; }
.mp-equipment-page .zzz-bangboo-skill__type { color: var(--mp-accent); font-size: 14px; font-weight: 700; }
.mp-equipment-page .zzz-bangboo-skill__desc p { margin: 0 0 12px; }
.mp-equipment-page .zzz-bangboo-skill__desc span[style*="color"] { color: inherit !important; }

/* Scrollable tables keep their row labels visible and support the keyboard. */
.mp-equipment-page :is(.zzz-bangboo-skill__scaling, .zzz-table-scroll) {
    max-width: 100%;
    margin-top: 16px;
    overflow-x: auto;
    scrollbar-color: #888b83 var(--mp-equipment-surface);
}
.mp-equipment-page .mp-equipment-scroll-hint { margin: 16px 0 0; font-size: 13px; color: var(--mp-muted); }
.mp-equipment-page .zzz-table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; font-size: 14px; line-height: 1.6; }
.mp-equipment-page .zzz-table :is(th, td) { padding: 12px; border-bottom: 1px solid var(--mp-line); text-align: right; background: var(--mp-equipment-surface); }
.mp-equipment-page .zzz-table th { color: var(--mp-ink); font-weight: 600; }
.mp-equipment-page .zzz-table thead th { background: #eeeee7; }
.mp-equipment-page .zzz-table--stats th { width: 50%; text-align: left; }
.mp-equipment-page .zzz-table--stats td { font-size: 17px; font-weight: 700; }
.mp-equipment-page :is(.zzz-table--scaling, .zzz-table--level-stats) { min-width: 700px; white-space: nowrap; }
.mp-equipment-page :is(.zzz-table--scaling, .zzz-table--level-stats) th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    border-right: 1px solid var(--mp-line);
    text-align: left;
}
.mp-equipment-page .zzz-table--scaling th:first-child { min-width: 140px; max-width: 180px; white-space: normal; }
.mp-equipment-page :is(.zzz-table--scaling, .zzz-table--level-stats) thead th:first-child { z-index: 2; }

@media (max-width: 900px) {
    .mp-equipment-page .zzz-disc-recs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .mp-site .mp-equipment-page { padding-block: 20px 28px; font-size: 15px; }
    .mp-site .mp-equipment-page .zzz-section { padding: 18px; margin-bottom: 28px; }
    .mp-site .mp-equipment-page .zzz-section__heading { font-size: 21px; margin-bottom: 20px; }
    .mp-equipment-page .zzz-motif-card { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .mp-equipment-page .zzz-motif-card > :is(.zzz-wengine-icon, img) { width: 128px; margin-inline: auto; }
    .mp-equipment-page .zzz-we-recs__item { column-gap: 16px; }
    .mp-equipment-page .zzz-disc-recs__agent { flex-direction: column; align-items: flex-start; gap: 8px; }
    .mp-equipment-page .zzz-disc-recs__meta { gap: 4px; }
    .mp-equipment-page :is(.zzz-we-related__grid, .zzz-disc-others__grid, .zzz-bangboo-others__grid) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .mp-equipment-page :is(.zzz-we-related__item, .zzz-disc-others__item, .zzz-bangboo-others__item) { padding-inline: 0; }
    .mp-equipment-page .zzz-we-acquisition__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 360px) {
    .mp-site .mp-equipment-page .zzz-section { padding-inline: 14px; }
    .mp-equipment-page .zzz-we-recs__item { grid-template-columns: minmax(0, 1fr); }
    .mp-equipment-page .zzz-we-recs__agent { grid-row: auto; text-align: left; margin-bottom: 14px; }
    .mp-equipment-page .zzz-card-flip__hint { grid-column: 1; }
}
