/* ===== M37 & M78 share page ===== */
body.page-inner {
    background: #ffffff;
}

.m37m38-hero {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
    color: var(--text-primary);
    background: linear-gradient(180deg, #EDF1FB 0%, #FAFCFD 100%);
}

.m37m38-hero .hero-shell {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    width: 100%;
}

.m37m38-hero .hero-stage {
    position: relative;
    width: 100%;
    max-width: var(--hero-max-width);
    aspect-ratio: 1920 / 860;
    margin: 0 auto;
}

.m37m38-hero .hero-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.m37m38-hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #EDF1FB 0%, #FAFCFD 100%);
}

.m37m38-hero .hero-bg-image {
    display: block;
    width: 100%;
    height: 100%;
}

/* ===== left copy ===== */
.m37m38-hero .hero-copy {
    position: absolute;
    left: calc(160 * var(--rpx-50));
    top: calc(206 * var(--rpx-50));
    z-index: 2;
    width: calc(680 * var(--rpx-50));
}

.m37m38-hero .hero-title {
    margin: 0;
    font-size: calc(58 * var(--fpx-50));
    font-weight: 600;
    line-height: calc(68 / 58);
}

.m37m38-hero .hero-lead {
    margin: calc(26 * var(--rpx-50)) 0 0;
    font-size: calc(24 * var(--fpx));
    font-weight: 600;
    line-height: calc(36 / 24);
}

.m37m38-hero .hero-accent {
    color: var(--brand-red);
}

.m37m38-hero .hero-body {
    margin-top: calc(27 * var(--rpx-50));
    font-size: calc(18 * var(--fpx));
    font-weight: 400;
    line-height: calc(30 / 18);
}

.m37m38-hero .hero-body p {
    margin: 0;
}

/* ===== right markers on chess visual ===== */
.m37m38-hero .hero-markers {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.m37m38-hero .hero-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
}

.m37m38-hero .hero-marker-name {
    font-size: calc(32 * var(--fpx-50));
    font-weight: 600;
    line-height: calc(48 / 32);
}

.m37m38-hero .hero-marker-label {
    font-size: calc(18 * var(--fpx));
    font-weight: 400;
    line-height: calc(26 / 18);
}

.m37m38-hero .hero-marker--m78 {
    left: calc(1053 * var(--rpx-50));
    top: calc(115 * var(--rpx-50));
}

.m37m38-hero .hero-marker--m78 .hero-marker-label {
    margin-top: calc(-9 * var(--rpx-50));
}

.m37m38-hero .hero-marker--m37 {
    left: calc(1460 * var(--rpx-50));
    top: calc(218 * var(--rpx-50));
}

.m37m38-hero .hero-marker--m37 .hero-marker-label {
    margin-top: calc(-9 * var(--rpx-50));
}

/* ===== news list ===== */
.m37m38-news {
    position: relative;
    z-index: 2;
    margin-top: calc(-80 * var(--rpx));
    padding: 0 0 calc(100 * var(--rpx));
    background: transparent;
}

.m37m38-news .wrapper {
    container-type: inline-size;
    --news-rpx: calc(100cqw / 1600);
}

.m37m38-news .news-toolbar {
    margin-bottom: calc(42 * var(--rpx));
}

.m37m38-news .news-empty {
    margin: 0;
    padding: calc(48 * var(--rpx)) 0 calc(64 * var(--rpx));
    font-size: calc(16 * var(--fpx));
    line-height: calc(24 / 16);
    text-align: center;
    color: rgba(0, 0, 0, 0.45);
}

.m37m38-news .news-list {
    display: flex;
    flex-direction: column;
}

.m37m38-news .news-item {
    position: relative;
    display: block;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
}

.m37m38-news .news-item:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.m37m38-news .news-item:hover,
.m37m38-news .news-item:focus-within {
    background: #FAFCFD;
}

.m37m38-news .news-item-inner {
    position: relative;
    display: grid;
    grid-template-columns:
        calc(140 * var(--news-rpx))
        minmax(0, calc(340 * var(--news-rpx)))
        calc(480 * var(--news-rpx))
        minmax(0, calc(420 * var(--news-rpx)));
    grid-template-rows: auto;
    column-gap: calc(72 * var(--news-rpx));
    align-items: start;
    min-height: calc(320 * var(--news-rpx));
    padding:
        calc(42 * var(--news-rpx))
        0
        calc(40 * var(--news-rpx));
}

.m37m38-news .news-item:hover .news-title,
.m37m38-news .news-item:focus-within .news-title {
    color: var(--brand-red);
}

.m37m38-news .news-date {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: calc(8 * var(--news-rpx));
    padding-top: calc(8 * var(--news-rpx));
}

.m37m38-news .news-day {
    font-size: calc(48 * var(--fpx-50));
    font-weight: 400;
    line-height: 1;
    color: #E42F3B;
}

.m37m38-news .news-month {
    font-size: calc(14 * var(--fpx));
    line-height: calc(21 / 14);
    color: #E42F3B;
}

.m37m38-news .news-main {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    min-width: 0;
}

.m37m38-news .news-title {
    margin: 0;
    font-size: calc(32 * var(--fpx-50));
    font-weight: 600;
    line-height: calc(48 / 32);
    transition: color 0.2s ease;
}

.m37m38-news .news-thumb {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    overflow: hidden;
}

.m37m38-news .news-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 480 / 320;
    object-fit: cover;
}

.m37m38-news .news-aside {
    grid-column: 4;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: calc(16 * var(--news-rpx));
    min-width: 0;
    padding-top: calc(8 * var(--news-rpx));
}

.m37m38-news .news-summary {
    margin: 0;
    font-size: calc(16 * var(--fpx));
    font-weight: 400;
    line-height: calc(30 / 16);
    text-align: left;
    color: #666666;
}

.m37m38-news .news-signoff {
    display: block;
    font-size: calc(16 * var(--fpx));
    font-weight: 400;
    line-height: calc(30 / 16);
    color: #666666;
    text-align: right;
}

.m37m38-news .news-more {
    display: flex;
    justify-content: center;
    margin-top: calc(48 * var(--news-rpx));
}

.m37m38-news .news-more[hidden] {
    display: none !important;
}

.m37m38-news .news-more__reveal {
    width: calc(200 * var(--news-rpx));
}

.m37m38-news .news-more .btn-ctn {
    margin: 0;
}

.m37m38-news .news-more-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    width: calc(200 * var(--news-rpx));
    height: calc(60 * var(--news-rpx));
    padding: 0 calc(30 * var(--news-rpx));
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: calc(300 * var(--news-rpx));
    background: var(--brand-red);
    color: #F8F8F8;
    font-size: calc(16 * var(--fpx));
    font-weight: 400;
    line-height: calc(24 / 16);
    white-space: nowrap;
    cursor: pointer;
    transition: filter 0.2s;
}

.m37m38-news .news-more-btn:hover {
    filter: brightness(1.06);
}

.m37m38-news .news-more-btn .text {
    flex: 0 0 auto;
}

.m37m38-news .news-more-icon {
    position: absolute;
    right: calc(10 * var(--news-rpx));
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(40 * var(--news-rpx));
    height: calc(40 * var(--news-rpx));
    border-radius: 50%;
    background: #FFFFFF;
    margin-top: calc(-20 * var(--news-rpx));
}

.m37m38-news .news-more-icon img {
    display: block;
    width: calc(11.0625 * var(--news-rpx));
    height: calc(11.0303 * var(--news-rpx));
    object-fit: contain;
}

/* ===== @828 mobile ===== */
@media (max-width: 828px) {
    .m37m38-hero {
        background: none;
    }

    .m37m38-hero .hero-stage {
        display: flex;
        flex-direction: column;
        aspect-ratio: unset;
        min-height: 0;
        padding-bottom: calc(40 * var(--rpx));
    }

    .m37m38-hero .hero-visual {
        position: relative;
        flex-shrink: 0;
        width: 100%;
        height: calc(800 * var(--rpx));
        overflow: hidden;
    }

    .m37m38-hero .hero-visual::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        height: 40%;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
        pointer-events: none;
    }

    .m37m38-hero .hero-bg {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        overflow: hidden;
        background: none;
    }

    .m37m38-hero .hero-bg-image {
        display: block;
        flex-shrink: 0;
        width: auto;
        height: calc(800 * var(--rpx));
        max-width: none;
        margin-left: calc(-780 * var(--rpx));
    }

    .m37m38-hero .hero-markers {
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
    }

    .m37m38-hero .hero-marker {
        position: absolute;
    }

    .m37m38-hero .hero-marker--m78 {
        left: calc(198 * var(--rpx));
        top: calc(107 * var(--rpx));
    }

    .m37m38-hero .hero-marker--m37 {
        left: calc(576 * var(--rpx));
        top: calc(203 * var(--rpx));
    }

    .m37m38-hero .hero-marker-name {
        font-size: calc(22 * var(--fpx));
        line-height: calc(32 / 22);
    }

    .m37m38-hero .hero-marker-label {
        font-size: calc(12 * var(--fpx));
        line-height: calc(16 / 12);
        letter-spacing: 0.04em;
    }

    .m37m38-hero .hero-marker--m78 .hero-marker-label,
    .m37m38-hero .hero-marker--m37 .hero-marker-label {
        margin-top: calc(-2 * var(--rpx));
    }

    .m37m38-hero .hero-copy {
        position: relative;
        z-index: 2;
        left: auto;
        top: auto;
        width: auto;
        max-width: none;
        margin-top: calc(-120 * var(--rpx));
        padding: 0 calc(30 * var(--rpx)) 0;
    }

    .m37m38-hero .hero-title {
        font-size: calc(36 * var(--fpx));
    }

    .m37m38-hero .hero-lead {
        margin-top: calc(16 * var(--rpx));
        font-size: calc(18 * var(--fpx));
    }

    .m37m38-hero .hero-body {
        margin-top: calc(16 * var(--rpx));
        font-size: calc(15 * var(--fpx));
        line-height: calc(26 / 15);
    }

    .m37m38-news {
        margin-top: 0;
        padding-top: calc(48 * var(--rpx));
    }

    .m37m38-news .news-item-inner {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        row-gap: calc(12 * var(--rpx));
        min-height: 0;
        padding: calc(28 * var(--rpx)) 0;
    }

    .m37m38-news .news-date {
        grid-column: 1;
        grid-row: 1;
        flex-direction: row;
        align-items: baseline;
        gap: calc(8 * var(--rpx));
        padding-top: 0;
    }

    .m37m38-news .news-main {
        grid-column: 1;
        grid-row: 2;
    }

    .m37m38-news .news-aside {
        grid-column: 1;
        grid-row: 3;
        align-items: stretch;
        justify-content: flex-start;
        gap: calc(10 * var(--rpx));
        padding-top: 0;
    }

    .m37m38-news .news-thumb {
        grid-column: 1;
        grid-row: 4;
    }

    .m37m38-news .news-day {
        font-size: calc(32 * var(--fpx));
    }

    .m37m38-news .news-title {
        font-size: calc(22 * var(--fpx));
        line-height: calc(32 / 22);
    }

    .m37m38-news .news-summary {
        font-size: calc(14 * var(--fpx));
        line-height: calc(21 / 14);
        color: rgba(0, 0, 0, 0.45);
        text-align: left;
    }

    .m37m38-news .news-signoff {
        font-size: calc(14 * var(--fpx));
        line-height: calc(21 / 14);
        color: rgba(0, 0, 0, 0.45);
        text-align: right;
    }

    .m37m38-news .news-more-btn {
        width: auto;
        min-width: calc(200 * var(--rpx));
    }
}

