#bannerID{
    /*width:100%;*/
    width: 85%;
    margin: 20px auto;
}
.detail-container{
    width: 100%;
    position: relative;
    text-align: right;
    border-radius: 20px;
    box-shadow: #000;
    background-color: rgba(0, 0, 0, .85);
    background-image: linear-gradient(60deg, #410d0d, 50%, #fff 70%);
    box-shadow: 0px 7px 18px -8px rgba(0, 0, 0, 0.78);
}
.nameEng{
   color: white;
   text-align: left;
   position: absolute;
   bottom: 10px;
   max-width: 400px;
   padding: 20px;
}
.schoolLogo{
    width:20%;
    position: relative;
    padding: 2%;
    z-index: 0;
}
.schoolInfo{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
    border-radius: 20px;
    box-shadow: #000;
    background-color: white;
    box-shadow: 0px 7px 18px -8px rgba(0, 0, 0, 0.78);
}
.schoolInfo-title{
    width: 100%;
    height: 200px;
    display: flex;
    text-align: left;
    padding: 2%;
}
.schoolTitle{
    width: 60%;
    height: 200px;
    line-height: 120%;
    font-size: 120%;
    font-weight: 700;
}
.schoolTitle-info{
    font-size: 70%;
    font-weight: normal;
}
.schoolTitle-info p{
    color: #999;
}
.schoolLogo2{
    width: 40%;
    text-align: right;
}
.schoolLogo2 img{
    max-width: 85%;
    max-height: 95%;
    padding: 5%;

}
.schoolTags{
    width: 100%;
    padding: 2%;
}
.schoolTagLine{
    display: flex;
    width: 400px;
    margin-bottom: 1%;
    flex-direction: row;
    justify-content: space-between;
}
.siBrandFest{
    margin-right: 20px;
}
.brandTag1{
    background-color: #8b0000;
    color: white;
    border-radius: 15px 0px 0px 15px;
    padding: 0px 5px;
    border: 1px solid #8b0000;
}
.brandTag2{
    border: 1px solid #8b0000;
    border-radius: 0px 15px 15px 0;
    cursor: pointer;
}
.siTags{
    background-color: #eee;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 80%;
}
.schoolRanking{
    text-align: left;
}
.siRankingTag{
    margin: 1%;
    float: left;
}
.siRankingKL{
    font-weight: 700;
    background-color: #fda1a4;
    vertical-align: middle;
    margin: 0 auto;
    display: inline-block;
}
.siRanking{
    width: 320px;
    font-weight: 500;
    color: #c97838;
    vertical-align: middle;
    background-color: #fee3e3;
    display: inline-block;

}
.schoolDetail{
    width: 85%;
    margin-top: 20px;
    text-align: left;
    background-color: white;
    border-radius: 50px;
    margin-left: 7.5%;
}
.detailNav{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding: 0 100px;
}
.detailNavFixed{
    width: 85%;
    position: fixed;
    background-color: white;
    top: 60px;
    padding: 0 100px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}
.detailNavBtn{
    width: 33.3%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 120%;
    font-weight: 700;
    cursor: pointer;
}



.detailNavBtn:hover{
    background-color: #8b0000;
    color: white;
}

.detailNavBtnSelected{
    background-color: #8b0000;
    color: white;
}
.detailsection{
    padding: 20px;
    width:90%;
    margin: 0 auto;
}
.detailTitle{
    font-size: 100%;
    font-weight: 600;
    color:#8b0000;
}
.siProgram{
    border-bottom: 1px solid #ccc;
    padding: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.siProgramTitle {
    font-size: 100%;
    font-weight: 500;
}
.siProgramButton {
    vertical-align: middle;
    font-size: 100%;
    font-weight: 500;
    background-color: white;
    color: #8b0000;
    border-radius: 50px;
    padding: 0.5rem 2.5rem 0.5rem 2.5rem;
    margin: 1.5rem 1rem 1rem 1rem;
    border: 1px solid #8b0000
}
.siProgramButton:hover{
    color: white;
    background-color: #8b0000;
}
.siSchoolGrad{
    display:flex;
}
.siSchoolGrad span{
    line-height: 45px;
}
.siSchoolGradTag{
    font-size: 18px;
    vertical-align: middle;
    padding: 10px 0;
    margin-left: 30px;
    font-weight: 400;
    color: black;
}
.siNewsTitle{
    display:block;
    margin:10px 0;
    font-size:16px;
    font-weight:600;
}
.siNewsArticle{
    display: flex;
    /*border-bottom: 1px solid #ccc;*/
    margin: 10px 0;
    padding: 10px 0;
    text-decoration: underline;
}
.siNewsArticle:hover{
    color:#8b0000;
}
.articleLeft{
    margin-right:20px;
    display:none;
}
.phone{
    display: flex;
    flex: 2;
    flex-direction: column;
    align-items: center;
    font-size: 15px;
}
@media only screen and (max-width: 600px) {
    #bannerID{
        margin: 70px auto 20px;
    }
}

.school-detail-page {
    background: #f3f4f6 !important;
    border-bottom: 0 !important;
    margin-top: 60px !important;
    padding: 12px 0 36px !important;
    text-align: left !important;
}

.school-detail-cards {
    width: min(1152px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 18px;
    color: #111827;
}

@media only screen and (min-width: 992px) {
    html[lang^="zh"] .school-detail-cards {
        width: min(80%, 1152px);
    }
}

.school-detail-return-bar {
    margin: 0 0 -4px;
}

.rankings-return-button {
    display: inline-flex;
    align-items: center;
    color: #526070;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    text-decoration: none;
}

.rankings-return-button:hover {
    color: #991b1b;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.school-detail-card {
    background: #fff;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    box-sizing: border-box;
    padding: 24px 28px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    text-align: left;
    width: 100%;
}

.school-detail-identity-card {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) max-content;
    gap: 24px;
    align-items: center;
    align-self: start;
    text-align: left;
}

.school-detail-identity-main {
    min-width: 0;
}

.school-detail-identity-actions {
    align-self: end;
    justify-self: end;
}

.school-detail-identity-actions .school-detail-bottom-actions {
    grid-template-columns: repeat(2, max-content);
    gap: 8px;
    padding: 0;
}

.school-detail-identity-actions .school-detail-action {
    min-width: 112px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
}

.school-detail-logo-shell {
    width: 128px;
    height: 128px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.school-detail-logo-shell picture {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.school-detail-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-sizing: border-box;
    padding: 6px;
    transform: scale(1.08);
    transform-origin: center;
}

.school-detail-title {
    margin: 0;
    text-align: left !important;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0;
    color: #111827;
}

.school-detail-en {
    margin-top: 6px;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.school-detail-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.school-detail-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #374151;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
}

.school-detail-updated {
    margin-top: 12px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.school-detail-updated span {
    color: #4b5563;
}

.school-detail-card-title {
    margin: 0 0 16px;
    text-align: left !important;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 800;
    color: #111827;
}

.school-rating-table {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.school-rating-description-list {
    display: grid;
}

.school-rating-description {
    margin: 0;
    padding: 12px 0;
    border-top: 1px solid #eef1f4;
    color: #111827;
    font-size: 15px;
    line-height: 1.65;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.school-detail-page .school-rating-description--highlighted {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 80px minmax(220px, 1fr);
    gap: 12px;
    align-items: start;
}

.school-detail-page .school-rating-description-title {
    min-width: 0;
}

.school-detail-page .school-rating-description-tags {
    display: contents;
}

.school-detail-page .school-rating-description-result {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff1f2;
    color: #991b1b;
    line-height: 1.3;
    font-weight: 700;
    white-space: nowrap;
}

.school-detail-page .school-rating-description-result--value {
    grid-column: 2;
    justify-self: start;
}

.school-detail-page .school-rating-description-result--rank {
    grid-column: 3;
    justify-self: start;
}

.school-rating-description:first-child {
    border-top: 0;
    padding-top: 0;
}

.school-rating-description:last-child {
    padding-bottom: 0;
}

.school-rating-row {
    display: grid;
    grid-template-columns: minmax(520px, 1fr) 180px minmax(240px, 1fr);
    column-gap: 24px;
    align-items: center;
    min-height: 48px;
    border-top: 1px solid #e5e7eb;
    text-align: left;
}

.school-rating-row:first-child {
    border-top: 0;
}

.school-rating-cell {
    min-width: 0;
    padding: 10px 14px;
}

.school-rating-title {
    color: #111827;
    text-align: left !important;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    overflow-wrap: normal;
    white-space: nowrap;
}

.school-rating-cell--value {
    display: flex;
    justify-content: center;
}

.school-rating-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff1f2;
    color: #991b1b;
    font-size: 18px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

.school-rating-rank {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    white-space: nowrap;
}

.school-profile-intro {
    margin: 0 0 24px;
    color: #111827;
    font-size: 16px;
    line-height: 1.85;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.school-profile-grid {
    display: grid;
    text-align: left;
}

.school-profile-facts {
    display: grid;
    gap: 24px;
}

.school-profile-fact {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 36px;
    align-items: baseline;
}

.school-profile-fact-label {
    color: #991b1b;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 800;
    white-space: nowrap;
}

.school-profile-fact-values {
    color: #111827;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 34px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.school-profile-fact-values > span {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.school-profile-fact-values--empty {
    color: #9ca3af;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.school-profile-verified {
    margin-top: 22px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.school-news-list {
    display: grid;
    border-top: 1px solid #eef1f4;
}

.school-news-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-height: 46px;
    padding: 10px 0;
    border-bottom: 1px solid #eef1f4;
    color: #111827;
    text-decoration: none;
}

.school-news-row:hover .school-news-title {
    color: #991b1b;
}

.school-news-date {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
}

.school-news-title {
    color: #111827;
    text-align: left !important;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.school-detail-empty {
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    color: #6b7280;
    background: #fafafa;
    padding: 18px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.school-detail-bottom-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 2px 0 6px;
}

.school-detail-cta-slogan {
    margin: 0 0 10px;
    color: #111827;
    text-align: center;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;
}

.school-detail-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 28px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.school-detail-action:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.school-detail-action--match {
    background: #1fb845;
}

.school-detail-action--consult {
    background: #991b1b;
}

@media only screen and (min-width: 601px) {
    .school-detail-identity-actions .school-detail-bottom-actions {
        grid-template-columns: max-content;
    }

    .school-detail-identity-actions .school-detail-action--consult {
        display: none;
    }
}

@media only screen and (max-width: 800px) {
    .school-detail-identity-card {
        grid-template-columns: 128px minmax(0, 1fr) 96px;
        align-items: start;
        justify-items: start;
    }

    .school-detail-logo-shell,
    .school-detail-identity-main {
        align-self: start;
        justify-self: start;
    }

    .school-detail-identity-actions {
        align-self: end;
        justify-self: end;
        width: 96px;
    }

    .school-detail-identity-actions .school-detail-bottom-actions {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .school-detail-identity-actions .school-detail-action {
        width: 100%;
        min-width: 0;
        min-height: 40px;
        padding: 0 6px;
        font-size: 12px;
        line-height: 1.15;
        white-space: normal;
    }
}

@media only screen and (max-width: 600px) {
    .school-detail-page {
        display: block !important;
        float: none !important;
        width: 100% !important;
        margin-top: 0 !important;
        padding: 74px 0 calc(102px + env(safe-area-inset-bottom)) !important;
        box-sizing: border-box;
    }

    .school-detail-page ~ #bottomMenuPC {
        margin-bottom: calc(92px + env(safe-area-inset-bottom));
    }

    .school-detail-cards {
        width: calc(100% - 32px);
        max-width: 520px;
        gap: 10px;
        box-sizing: border-box;
    }

    .school-detail-return-bar {
        margin: 0 0 -2px;
    }

    .rankings-return-button {
        font-size: 13px;
    }

    .school-detail-card {
        padding: 12px;
        box-sizing: border-box;
    }

    .school-detail-identity-card {
        grid-template-columns: clamp(72px, 22vw, 88px) minmax(0, 1fr);
        gap: 12px;
        align-items: start;
    }

    .school-detail-logo-shell {
        width: clamp(72px, 22vw, 88px);
        height: clamp(72px, 22vw, 88px);
        align-self: start;
        justify-self: start;
    }

    .school-detail-logo {
        padding: 4px;
    }

    .school-detail-identity-actions {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 100;
        width: 100%;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
        background: #fff;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -1px 0 rgba(0, 0, 0, .06), 0 -8px 24px rgba(0, 0, 0, .10);
        box-sizing: border-box;
        transform: none;
    }

    .school-detail-identity-actions .school-detail-bottom-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        padding: 0;
    }

    .school-detail-identity-actions .school-detail-action {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 0 12px;
        font-size: 14px;
        line-height: 1;
        white-space: nowrap;
    }

    .school-detail-title {
        font-size: 19px;
        line-height: 1.28;
    }

    .school-detail-en {
        margin-top: 4px;
        font-size: 12px;
        line-height: 1.4;
    }

    .school-detail-chip-row {
        gap: 5px;
        margin-top: 8px;
    }

    .school-detail-chip {
        min-height: 22px;
        padding: 0 7px;
        font-size: 11px;
    }

    .school-detail-updated {
        margin-top: 8px;
        font-size: 11px;
    }

    .school-detail-card-title {
        margin-bottom: 10px;
        font-size: 16px;
    }

    .school-rating-description {
        padding: 9px 0;
        font-size: 13px;
        line-height: 1.6;
    }

    .school-detail-page .school-rating-description--highlighted {
        grid-template-columns: minmax(0, 1fr) 66px minmax(94px, 40%);
        gap: 6px;
    }

    .school-detail-page .school-rating-description-result--rank {
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .school-rating-table {
        border-radius: 6px;
    }

    .school-rating-row {
        grid-template-columns: minmax(112px, 1fr) max-content max-content;
        column-gap: 8px;
        min-height: 38px;
    }

    .school-rating-cell {
        padding: 7px 6px;
    }

    .school-rating-title {
        font-size: 12px;
        line-height: 1.35;
        overflow: visible;
        white-space: normal;
    }

    .school-rating-value {
        min-width: 38px;
        padding: 3px 6px;
        font-size: 13px;
    }

    .school-rating-rank {
        font-size: 11px;
        line-height: 1.3;
        white-space: nowrap;
    }

    .school-profile-intro {
        margin-bottom: 14px;
        font-size: 13px;
        line-height: 1.75;
    }

    .school-profile-grid {
        grid-template-columns: 1fr;
    }

    .school-profile-facts {
        gap: 12px;
    }

    .school-profile-fact {
        column-gap: 12px;
    }

    .school-profile-fact-label {
        font-size: 13px;
    }

    .school-profile-fact-values {
        gap: 4px 14px;
        font-size: 13px;
    }

    .school-profile-fact-values--empty {
        font-size: 12px;
    }

    .school-news-row {
        grid-template-columns: 64px minmax(0, 1fr);
        column-gap: 8px;
        row-gap: 4px;
        align-items: start;
        min-height: 0;
        padding: 8px 0;
    }

    .school-news-date {
        font-size: 11px;
    }

    .school-news-title {
        font-size: 13px;
        line-height: 1.4;
    }

    .school-detail-empty {
        padding: 12px;
        font-size: 12px;
    }

    .school-detail-bottom-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 0 0 2px;
    }

    .school-detail-action {
        min-width: 0;
        min-height: 42px;
        padding: 0 12px;
        font-size: 14px;
    }
}

@media only screen and (max-width: 360px) {
    .school-detail-cards {
        width: calc(100% - 20px);
    }

    .school-detail-card {
        padding: 10px;
    }

    .school-detail-identity-card {
        grid-template-columns: clamp(64px, 21vw, 76px) minmax(0, 1fr);
        gap: 10px;
        align-items: start;
    }

    .school-detail-logo-shell {
        width: clamp(64px, 21vw, 76px);
        height: clamp(64px, 21vw, 76px);
        align-self: start;
        justify-self: start;
    }

    .school-detail-title {
        font-size: 17px;
    }

    .school-detail-card-title {
        font-size: 15px;
    }

    .school-detail-action {
        font-size: 13px;
    }
}

/* 2026 layout polish: school detail main column + conversion sidebar. */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.school-detail-page {
    background: #f5f6f8 !important;
}

.school-detail-cards {
    gap: 20px;
}

.school-detail-card {
    border: 0;
    border-radius: 8px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, .06),
        0 1px 2px -1px rgba(0, 0, 0, .08),
        0 12px 28px rgba(15, 23, 42, .05);
}

.school-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}

.school-detail-main-column,
.school-detail-sidebar {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.school-detail-main-column {
    grid-column: 1;
    grid-row: 1;
}

/* Kindergarten-detail visual alignment, isolated from shared article cards. */
body.school-detail-body {
    --school-detail-accent: #991b1b;
    --school-detail-accent-strong: #7f1d1d;
    --school-detail-ink: #17191d;
    --school-detail-muted: #68707d;
    --school-detail-page-bg: #f5f4f1;
    --school-detail-surface: #fff;
    --school-detail-soft: #f7f7f6;
    --school-detail-divider: #e8e7e3;
    --school-detail-shadow:
        0 0 0 1px rgba(0, 0, 0, .055),
        0 1px 2px -1px rgba(0, 0, 0, .06),
        0 12px 32px -22px rgba(36, 28, 24, .24);
    margin: 0;
    background: var(--school-detail-page-bg) !important;
}

body.school-detail-body .school-detail-top-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 20;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--school-detail-ink);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 10px 24px rgba(68, 52, 35, .16);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, color .18s ease, visibility 0s linear .18s;
    touch-action: manipulation;
}

body.school-detail-body .school-detail-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
}

body.school-detail-body .school-detail-top-button:focus-visible {
    outline: 2px solid var(--school-detail-accent);
    outline-offset: 3px;
}

.school-detail-body .school-detail-page .school-detail-title:focus-visible {
    outline: 2px solid var(--school-detail-accent);
    outline-offset: 3px;
}

body.school-detail-body .school-detail-top-button:active {
    transform: scale(.96);
}

@media (hover: hover) and (pointer: fine) {
    body.school-detail-body .school-detail-top-button:hover {
        color: var(--school-detail-accent);
    }
}

.school-detail-body .school-detail-page {
    margin-top: 0 !important;
    padding: 92px 0 72px !important;
    background: var(--school-detail-page-bg) !important;
    color: var(--school-detail-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.school-detail-body .school-detail-page .school-detail-cards {
    width: min(1080px, calc(100% - 48px));
    gap: 24px;
    color: var(--school-detail-ink);
}

.school-detail-body .school-detail-page .school-detail-identity-shell {
    position: relative;
    display: grid;
    gap: 18px;
}

.school-detail-body .school-detail-page .school-detail-return-bar {
    margin: 0;
}

@media only screen and (min-width: 1280px) {
    .school-detail-body .school-detail-page .school-detail-identity-shell {
        display: block;
    }

    .school-detail-body .school-detail-page .school-detail-return-bar {
        position: absolute;
        z-index: 2;
        top: 0;
        right: calc(100% + 16px);
        width: max-content;
    }
}

.school-detail-body .school-detail-page .rankings-return-button {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .74);
    box-shadow: var(--school-detail-shadow);
    color: #32353b;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 650;
    text-decoration: none;
    transition-property: transform, box-shadow, background-color, color;
    transition-duration: 150ms;
    transition-timing-function: ease-out;
}

.school-detail-body .school-detail-page .rankings-return-button:hover {
    background: #fff;
    color: var(--school-detail-accent);
    text-decoration: none;
}

.school-detail-body .school-detail-page .rankings-return-button:active,
.school-detail-body .school-detail-page .school-detail-action:active {
    transform: scale(.96);
}

.school-detail-body .school-detail-page .rankings-return-button:focus-visible,
.school-detail-body .school-detail-page .school-detail-action:focus-visible,
.school-detail-body .school-detail-page .school-news-row:focus-visible {
    outline: 3px solid rgba(153, 27, 27, .28);
    outline-offset: 3px;
}

.school-detail-body .school-detail-page .school-detail-layout,
.school-detail-body .school-detail-page .school-detail-main-column {
    gap: 24px;
}

.school-detail-body .school-detail-page .school-detail-card {
    padding: 30px 32px;
    border: 0;
    border-radius: 22px;
    background: var(--school-detail-surface);
    box-shadow: var(--school-detail-shadow);
}

.school-detail-body .school-detail-page .school-detail-identity-card {
    grid-template-columns: 128px minmax(0, 1fr) auto;
    gap: 28px;
    min-height: 204px;
    align-items: center;
    padding: 34px;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 4%, rgba(153, 27, 27, .09), transparent 30%),
        var(--school-detail-surface);
}

.school-detail-body .school-detail-page .school-detail-logo-shell {
    width: 120px;
    height: 120px;
    padding: 8px;
    border: 0;
    border-radius: 22px;
    background: #f2f1ee;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .045);
    outline: 0;
}

.school-detail-body .school-detail-page .school-detail-logo-shell picture,
.school-detail-body .school-detail-page .school-detail-logo {
    width: 104px;
    height: 104px;
}

.school-detail-body .school-detail-page .school-detail-logo {
    padding: 0;
    border-radius: 15px;
    background: #fff;
    object-fit: contain;
    outline: 1px solid rgba(0, 0, 0, .1);
    outline-offset: -1px;
    transform: none;
}

.school-detail-body .school-detail-page .school-detail-title {
    max-width: 700px;
    color: var(--school-detail-ink);
    font-size: clamp(26px, 3.2vw, 38px);
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -.025em;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

html[lang="en"] .school-detail-body .school-detail-page .school-detail-title {
    font-size: clamp(24px, 2.7vw, 34px);
    line-height: 1.22;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.school-detail-body .school-detail-page .school-detail-en {
    margin-top: 9px;
    color: #4f5661;
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: wrap;
}

.school-detail-body .school-detail-page .school-detail-chip-row {
    gap: 8px;
    margin-top: 18px;
}

.school-detail-body .school-detail-page .school-detail-chip {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 10px;
    background: var(--school-detail-soft);
    color: var(--school-detail-muted);
    font-size: 12px;
    line-height: 1;
    font-weight: 650;
}

.school-detail-body .school-detail-page .school-detail-updated {
    margin-top: 12px;
    color: var(--school-detail-muted);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.school-detail-body .school-detail-page .school-detail-updated span {
    color: inherit;
}

.school-detail-body .school-detail-page .school-detail-identity-actions {
    align-self: end;
}

.school-detail-body .school-detail-page .school-detail-identity-actions .school-detail-action,
.school-detail-body .school-detail-page .school-detail-action {
    min-width: 0;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1;
    font-weight: 720;
    transition-property: transform, box-shadow, background-color, color;
    transition-duration: 150ms;
    transition-timing-function: ease-out;
}

.school-detail-body .school-detail-page .school-detail-action--match {
    background: var(--school-detail-accent);
    color: #fff;
    box-shadow: 0 8px 18px -10px rgba(153, 27, 27, .72);
}

.school-detail-body .school-detail-page .school-detail-action--match:hover {
    background: var(--school-detail-accent-strong);
    color: #fff;
    box-shadow: 0 10px 22px -10px rgba(127, 29, 29, .78);
    transform: none;
}

.school-detail-body .school-detail-page .school-detail-action--consult {
    background: #f0efec;
    color: #34383e;
    box-shadow: none;
}

.school-detail-body .school-detail-page .school-detail-action--consult:hover {
    background: #e8e6e1;
    color: #34383e;
    transform: none;
}

.school-detail-body .school-detail-page .school-detail-card-title {
    margin: 0 0 20px;
    color: var(--school-detail-ink);
    font-size: 23px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -.02em;
}

.school-detail-body .school-detail-page .school-rating-description-list {
    display: grid;
    border-top: 1px solid var(--school-detail-divider);
}

.school-detail-body .school-detail-page .school-rating-description {
    margin: 0;
    padding: 18px 0;
    border-top: 0;
    border-bottom: 1px solid var(--school-detail-divider);
    color: #3e444d;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 650;
}

.school-detail-body .school-detail-page .school-rating-description:first-child,
.school-detail-body .school-detail-page .school-rating-description:last-child {
    padding: 18px 0;
}

.school-detail-body .school-detail-page .school-rating-description--highlighted {
    grid-template-columns: minmax(0, 1fr) 112px 220px;
    gap: 12px 24px;
    align-items: center;
}

.school-detail-body .school-detail-page .school-rating-description-title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.school-detail-body .school-detail-page .school-rating-description-result {
    min-width: 0;
    min-height: 36px;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--school-detail-soft);
    color: var(--school-detail-accent);
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.school-detail-body .school-detail-page .school-profile-intro {
    margin: 0 0 24px;
    color: #40464f;
    font-size: 16px;
    line-height: 1.95;
    font-weight: 400;
}

.school-detail-body .school-detail-page .school-profile-facts {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--school-detail-divider);
}

.school-detail-body .school-detail-page .school-profile-fact {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    align-items: baseline;
    min-width: 0;
    padding: 17px 0;
    border-top: 0;
    border-bottom: 1px solid var(--school-detail-divider);
}

.school-detail-body .school-detail-page .school-profile-fact:first-child,
.school-detail-body .school-detail-page .school-profile-fact:last-child {
    padding: 17px 0;
}

html[lang="en"] .school-detail-body .school-detail-page .school-profile-fact {
    grid-template-columns: 200px minmax(0, 1fr);
}

.school-detail-body .school-detail-page .school-profile-fact-label,
.school-detail-body .school-detail-page .school-profile-fact-values {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.school-detail-body .school-detail-page .school-profile-fact-label {
    color: var(--school-detail-muted);
    font-weight: 400;
    text-align: left;
    white-space: normal;
}

.school-detail-body .school-detail-page .school-profile-fact-values {
    gap: 5px 18px;
    color: #292d33;
    font-weight: 650;
}

.school-detail-body .school-detail-page .school-profile-fact-values--empty {
    color: var(--school-detail-muted);
    font-size: 14px;
    font-weight: 400;
}

.school-detail-body .school-detail-page .school-profile-fact--fees .school-profile-fact-values {
    color: #292d33;
}

.school-detail-body .school-detail-page .school-profile-official-link,
.school-detail-body .school-detail-page .school-profile-official-link:hover,
.school-detail-body .school-detail-page .school-profile-official-link:focus-visible {
    color: #292d33;
}

.school-detail-body .school-detail-page .school-profile-verified {
    margin-top: 18px;
    color: var(--school-detail-muted);
    font-size: 12px;
    line-height: 1.55;
    font-variant-numeric: tabular-nums;
}

.school-detail-body .school-detail-page .school-news-list {
    border-top: 1px solid var(--school-detail-divider);
}

.school-detail-body .school-detail-page .school-news-row {
    min-height: 0;
    padding: 18px 0;
    border-bottom: 1px solid var(--school-detail-divider);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition-property: color;
    transition-duration: 150ms;
    transition-timing-function: ease-out;
}

.school-detail-body .school-detail-page .school-news-row:hover {
    background: transparent;
    color: var(--school-detail-accent);
    box-shadow: none;
    transform: none;
}

.school-detail-body .school-detail-page .school-news-date {
    color: var(--school-detail-muted);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.school-detail-body .school-detail-page .school-news-title {
    color: #292d33;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 700;
}

.school-detail-body .school-detail-page .school-news-row:hover .school-news-title {
    color: var(--school-detail-accent);
}

.school-detail-body .school-detail-page .school-detail-empty {
    margin: 0;
    padding: 20px 0 4px;
    border: 0;
    border-top: 1px solid var(--school-detail-divider);
    border-radius: 0;
    background: transparent;
    color: var(--school-detail-muted);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
}

@media only screen and (max-width: 860px) {
    .school-detail-body .school-detail-page .school-detail-identity-card {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 22px;
        min-height: 0;
        padding: 28px;
    }

    .school-detail-body .school-detail-page .school-detail-logo-shell {
        width: 96px;
        height: 96px;
        border-radius: 20px;
    }

    .school-detail-body .school-detail-page .school-detail-logo-shell picture,
    .school-detail-body .school-detail-page .school-detail-logo {
        width: 80px;
        height: 80px;
    }

    .school-detail-body .school-detail-page .school-detail-identity-actions {
        grid-column: 1 / -1;
        justify-self: stretch;
        width: 100%;
    }

    .school-detail-body .school-detail-page .school-detail-identity-actions .school-detail-action {
        width: 100%;
    }
}

@media only screen and (max-width: 600px) {
    body.school-detail-body {
        padding-bottom: calc(82px + env(safe-area-inset-bottom));
    }

    .school-detail-body .school-detail-page {
        padding: 82px 0 calc(102px + env(safe-area-inset-bottom)) !important;
    }

    .school-detail-body .school-detail-page .school-detail-cards {
        width: calc(100% - 24px);
        max-width: 520px;
        gap: 16px;
    }

    .school-detail-body .school-detail-page .school-detail-return-bar {
        margin: 0;
    }

    .school-detail-body .school-detail-page .school-detail-identity-shell {
        gap: 12px;
    }

    .school-detail-body .school-detail-page .rankings-return-button {
        min-height: 44px;
        font-size: 13px;
    }

    .school-detail-body .school-detail-page .school-detail-card {
        padding: 23px 14px;
        border-radius: 18px;
    }

    .school-detail-body .school-detail-page .school-detail-layout,
    .school-detail-body .school-detail-page .school-detail-main-column {
        gap: 16px;
    }

    .school-detail-body .school-detail-page .school-detail-identity-card {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 15px;
        padding: 20px 18px;
        border-radius: 19px;
    }

    .school-detail-body .school-detail-page .school-detail-logo-shell {
        width: 68px;
        height: 68px;
        padding: 5px;
        border-radius: 17px;
    }

    .school-detail-body .school-detail-page .school-detail-logo-shell picture,
    .school-detail-body .school-detail-page .school-detail-logo {
        width: 58px;
        height: 58px;
    }

    .school-detail-body .school-detail-page .school-detail-logo {
        border-radius: 12px;
    }

    .school-detail-body .school-detail-page .school-detail-title {
        font-size: clamp(20px, 5.8vw, 25px);
        line-height: 1.18;
        letter-spacing: -.018em;
    }

    html[lang="en"] .school-detail-body .school-detail-page .school-detail-title {
        font-size: clamp(19px, 5.2vw, 23px);
        line-height: 1.24;
    }

    .school-detail-body .school-detail-page .school-detail-en {
        margin-top: 6px;
        font-size: 13px;
    }

    .school-detail-body .school-detail-page .school-detail-chip-row {
        gap: 5px;
        margin-top: 12px;
    }

    .school-detail-body .school-detail-page .school-detail-chip {
        min-height: 24px;
        padding: 0 8px;
        border-radius: 8px;
        font-size: 11px;
    }

    .school-detail-body .school-detail-page .school-detail-updated {
        margin-top: 10px;
        font-size: 11px;
    }

    .school-detail-body .school-detail-page .school-detail-identity-actions {
        position: fixed;
        z-index: 1000;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        width: 100%;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        border-radius: 0;
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 -1px 0 rgba(0, 0, 0, .06), 0 -12px 32px rgba(0, 0, 0, .10);
        backdrop-filter: blur(16px);
    }

    .school-detail-body .school-detail-page .school-detail-identity-actions .school-detail-bottom-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        padding: 0;
    }

    .school-detail-body .school-detail-page .school-detail-identity-actions .school-detail-action {
        min-height: 48px;
        padding: 0 12px;
        font-size: 14px;
        white-space: nowrap;
    }

    .school-detail-body .school-detail-page .school-detail-card-title {
        margin-bottom: 17px;
        font-size: 21px;
    }

    .school-detail-body .school-detail-page .school-rating-description {
        padding: 16px 0;
        font-size: 14px;
        line-height: 1.6;
    }

    .school-detail-body .school-detail-page .school-rating-description:first-child,
    .school-detail-body .school-detail-page .school-rating-description:last-child {
        padding: 16px 0;
    }

    .school-detail-body .school-detail-page .school-rating-description--highlighted {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        align-items: start;
    }

    .school-detail-body .school-detail-page .school-rating-description-title {
        grid-column: 1 / -1;
    }

    .school-detail-body .school-detail-page .school-rating-description-tags {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: flex-start;
        grid-column: 1 / -1;
        gap: 8px;
        width: auto;
        max-width: 100%;
    }

    .school-detail-body .school-detail-page .school-rating-description-result--value,
    .school-detail-body .school-detail-page .school-rating-description-result--rank {
        grid-column: auto;
        justify-self: start;
        width: auto;
        flex: 0 1 auto;
    }

    .school-detail-body .school-detail-page .school-rating-description-result {
        min-height: 34px;
        padding: 0 8px;
        font-size: 14px;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    body.school-detail-body .school-detail-top-button {
        right: calc(16px + env(safe-area-inset-right));
        bottom: calc(86px + env(safe-area-inset-bottom));
        z-index: 1001;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .school-detail-body .school-detail-page .school-profile-intro {
        margin-bottom: 20px;
        font-size: 15px;
        line-height: 1.85;
    }

    .school-detail-body .school-detail-page .school-profile-fact,
    html[lang="en"] .school-detail-body .school-detail-page .school-profile-fact {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 14px;
        padding: 15px 0;
    }

    .school-detail-body .school-detail-page .school-profile-fact:first-child,
    .school-detail-body .school-detail-page .school-profile-fact:last-child {
        padding: 15px 0;
    }

    .school-detail-body .school-detail-page .school-profile-fact-label,
    .school-detail-body .school-detail-page .school-profile-fact-values {
        font-size: 14px;
        line-height: 1.6;
    }

    .school-detail-body .school-detail-page .school-news-row {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 10px;
        padding: 16px 0;
    }

    .school-detail-body .school-detail-page .school-news-date {
        font-size: 12px;
    }

    .school-detail-body .school-detail-page .school-news-title {
        font-size: 15px;
        line-height: 1.55;
    }
}

@media (prefers-reduced-motion: reduce) {
    .school-detail-body .school-detail-page .rankings-return-button,
    .school-detail-body .school-detail-page .school-detail-action,
    .school-detail-body .school-detail-page .school-news-row,
    body.school-detail-body .school-detail-top-button {
        transition-duration: 0ms;
    }

    body.school-detail-body .school-detail-top-button {
        transform: none;
    }
}

.school-detail-sidebar {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    position: sticky;
    top: 84px;
}

.school-detail-logo-shell,
.school-detail-logo {
    outline: 1px solid rgba(0, 0, 0, .1);
    outline-offset: -1px;
}

.school-profile-facts {
    grid-template-columns: 1fr;
    gap: 0;
}

.school-profile-fact {
    display: grid;
    grid-template-columns: minmax(88px, max-content) minmax(0, 1fr);
    column-gap: 36px;
    align-items: baseline;
    min-width: 0;
    padding: 14px 0;
    border-top: 1px solid #eef1f4;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

@media only screen and (min-width: 901px) {
    html[lang="en"] .school-profile-fact {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

.school-profile-fact:first-child {
    border-top: 0;
    padding-top: 0;
}

.school-profile-fact:last-child {
    padding-bottom: 0;
}

.school-profile-fact-label {
    font-size: 14px;
    line-height: 1.3;
}

.school-profile-fact-values {
    gap: 6px 18px;
    font-size: 16px;
    line-height: 1.45;
}

.school-detail-cta-card {
    padding: 18px;
}

.school-detail-sidebar .school-detail-bottom-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
}

.school-detail-sidebar .school-detail-action,
.article-conversion-cta .school-detail-action {
    min-width: 0;
    width: 100%;
}

.school-detail-action {
    box-sizing: border-box;
    transition-property: transform, box-shadow, background-color;
    transition-duration: 160ms;
    transition-timing-function: ease-out;
}

.school-detail-action:active {
    transform: scale(.96);
}

.school-detail-sidebar .school-rating-table,
.article-sidebar .school-rating-table {
    overflow: visible;
}

.school-detail-sidebar .school-rating-row {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 4px 10px;
    align-items: start;
    padding: 10px 0;
}

.school-detail-sidebar .school-rating-cell {
    padding: 0;
}

.school-detail-sidebar .school-rating-title,
.article-sidebar .school-rating-title {
    font-size: 14px;
    line-height: 1.38;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.school-detail-sidebar .school-rating-value,
.article-sidebar .school-rating-value {
    min-width: 0;
    font-size: 14px;
    padding: 4px 9px;
}

.school-detail-sidebar .school-rating-rank {
    grid-column: 1 / -1;
    font-size: 13px;
    white-space: normal;
}

.school-news-row {
    border-bottom: 0;
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06);
    transition-property: background-color, transform, box-shadow;
    transition-duration: 160ms;
    transition-timing-function: ease-out;
}

.school-news-row:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(153, 27, 27, .16);
}

@media only screen and (max-width: 900px) {
    .school-detail-layout {
        grid-template-columns: 1fr;
    }

    .school-detail-main-column,
    .school-detail-sidebar {
        grid-column: 1;
        position: static;
    }

    .school-detail-main-column {
        grid-row: 1;
        gap: 10px;
    }

    .school-detail-sidebar {
        grid-row: 2;
        gap: 10px;
    }

    .school-profile-facts {
        grid-template-columns: 1fr;
    }

    .school-detail-sidebar .school-detail-bottom-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 600px) {
    .school-detail-cards {
        gap: 10px;
    }

    .school-detail-page .school-rating-description,
    .school-detail-page .school-profile-intro,
    .school-detail-page .school-profile-fact-values,
    .school-detail-page .school-news-title {
        text-wrap: wrap;
    }

    .school-profile-fact {
        grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
        column-gap: 12px;
        padding: 10px 0;
    }

    .school-profile-fact-label,
    .school-profile-fact-values {
        font-size: 13px;
    }

    .school-profile-fact-label {
        white-space: normal;
    }

    .school-detail-cta-card {
        padding: 12px;
    }

    .school-detail-sidebar .school-rating-row {
        grid-template-columns: minmax(0, 1fr) max-content max-content;
        gap: 8px;
    }

    .school-detail-sidebar .school-rating-rank {
        grid-column: auto;
        font-size: 11px;
        white-space: nowrap;
    }
}

/* Keep school detail content full width after moving CTAs into the identity card. */
.school-detail-layout {
    grid-template-columns: minmax(0, 1fr);
}

.school-detail-main-column {
    grid-column: 1;
    grid-row: 1;
}
