@import url('/ui/disclosure-motion.css');
.school-profile-card{--school-profile-color:var(--cike-primary);display:flex;flex-direction:column;overflow:hidden}
.school-profile-card .map-building-card-head{align-items:center;flex:0 0 auto}
.school-profile-brand{min-width:0;display:flex;align-items:center;gap:12px}
.school-profile-lockup{display:flex;align-items:center;gap:8px;width:min(205px,100%);min-width:0}.school-profile-emblem{display:block;flex:0 0 27%;width:27%;height:auto}.school-profile-brand-names{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}.school-profile-brand-names img{display:block;width:100%;height:auto}
.school-profile-wordmark{color:var(--school-profile-color)}
.school-profile-wordmark h2{font-size:23px;line-height:1.15;margin:0}
.school-profile-wordmark span{font-size:11px;letter-spacing:.03em}
.school-profile-content{min-height:0;overflow:auto;overscroll-behavior:contain;font-size:13px;line-height:1.65;color:var(--cike-text)}
.school-profile-content p{margin:8px 0 10px}
.school-profile-content h4{font-size:14px;margin:14px 0 5px;color:var(--cike-text)}
.school-profile-intro{font-size:14px}
.school-profile-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:10px 0;border-bottom:1px solid var(--cike-line)}
.school-profile-facts>div{display:flex;align-items:baseline;gap:7px;min-width:0}.school-profile-fact-label{flex:none;white-space:nowrap}.school-profile-fact-value{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 7px;min-width:0}.school-profile-anniversary{white-space:nowrap}
.school-profile-facts span,.school-profile-campus summary div span{font-size:12px;color:var(--cike-muted)}
.school-profile-facts strong{font-size:19px;color:var(--school-profile-color)}
.school-profile-campus{border-bottom:1px solid var(--cike-line)}
.school-profile-campus summary{display:flex;align-items:center;justify-content:space-between;padding:8px 0;cursor:pointer;list-style:none}
.school-profile-campus summary::-webkit-details-marker{display:none}
.school-profile-campus summary div{display:grid;gap:1px}
.school-profile-chevron{color:var(--cike-muted);font-size:18px}
.school-profile-campus[open] .school-profile-chevron{transform:rotate(180deg)}
.school-profile-campus-body{padding:0 0 10px}
.school-profile-content a{color:var(--school-profile-color);text-decoration:none;font-weight:600}
.school-profile-links{display:grid;gap:8px}
@media(min-width:900px){
  .map-app{--school-profile-left:14px;--school-profile-width:350px;--school-profile-gap:14px}
  .map-app .school-profile-card{left:var(--school-profile-left);top:86px;bottom:6px;width:var(--school-profile-width);height:auto;max-height:none;overflow:hidden}
  .map-app.has-school-profile #course-sheet{
    --school-profile-sheet-left:var(--map-school-profile-avoid-left,calc(var(--school-profile-left) + var(--school-profile-width) + var(--school-profile-gap)));
    left:var(--school-profile-sheet-left)!important;
    width:min(430px,calc(100% - var(--school-profile-sheet-left) - 14px))!important
  }
}
@media(max-width:899px){.has-school-profile .course-sheet{display:none!important}.school-profile-card{max-height:calc(100dvh - 76px)}}
.school-profile-page{max-width:760px;margin:0 auto;padding:24px 20px 60px;color:var(--cike-text)}
.school-profile-page .school-profile-brand{margin:26px 0 18px}
.school-profile-page .school-profile-lockup{width:min(260px,100%);gap:10px}
.school-profile-page .school-profile-content{font-size:16px;overflow:visible}
.school-profile-page .school-profile-content h4{font-size:19px;margin-top:26px}
.school-profile-page .school-profile-intro{font-size:17px}


.school-profile-official-map{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;margin-top:5px}
.school-profile-map-version{display:block;color:var(--cike-muted);font-size:11px}



.school-profile-links{display:flex;flex-wrap:wrap;column-gap:18px;row-gap:6px;align-items:baseline}
.school-profile-links a{white-space:nowrap}
.school-profile-lockup[data-school=tsinghua]{width:min(235px,100%);gap:10px}
.school-profile-lockup[data-school=tsinghua] .school-profile-emblem{flex-basis:31%;width:31%}
.school-profile-page .school-profile-brand{display:flex;align-items:center;gap:clamp(12px,3vw,24px);flex-wrap:nowrap}
.school-profile-page .school-profile-lockup:has(+.school-profile-signature){width:min(222px,44%);gap:9px;flex-shrink:0}
.school-profile-signature{display:block;width:216px;max-width:100%;min-width:0;height:auto;flex:0 1 216px;margin-left:auto;fill:var(--school-profile-color);overflow:hidden;font-family:inherit}
.school-profile-facts .school-profile-fact-motto strong{font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.school-profile-campus-links{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:baseline}
.school-profile-campus-links .school-profile-official-map{margin:0;gap:6px}
@media(max-width:540px){.school-profile-page .school-profile-brand{gap:12px;align-items:center}.school-profile-page .school-profile-lockup:has(+.school-profile-signature){width:min(170px,43%);gap:5px}.school-profile-signature{flex-shrink:1}.school-profile-facts .school-profile-fact-motto strong{font-size:15px}}

@media(max-width:540px){.school-profile-facts{gap:8px}.school-profile-facts>div,.school-profile-fact-value{gap:4px}.school-profile-facts .school-profile-fact-label{font-size:11px}.school-profile-facts .school-profile-anniversary{font-size:10px}.school-profile-facts strong{font-size:15px;white-space:nowrap}.school-profile-facts .school-profile-fact-motto strong{font-size:13px;white-space:normal;overflow-wrap:normal}}

.school-profile-page .school-profile-wordmark:has(+.school-profile-signature){flex:0 1 222px;min-width:0}.school-profile-page .school-profile-wordmark h2{font-size:22px}.school-profile-page .school-profile-wordmark span{font-size:12px}@media(max-width:540px){.school-profile-page .school-profile-wordmark:has(+.school-profile-signature){flex:0 0 43%}.school-profile-page .school-profile-wordmark h2{font-size:17px}.school-profile-page .school-profile-wordmark span{font-size:10px}}


.school-profile-card .school-profile-brand{flex:1;gap:9px;min-width:0}.school-profile-card .school-profile-lockup:has(+.school-profile-signature){width:48%;flex:0 0 48%;gap:5px}.school-profile-card .school-profile-signature{flex:0 1 33%;width:33%;max-width:216px;opacity:.7}.school-profile-card .map-building-card-close{flex:none}.school-profile-name-text{font-size:16px;line-height:1.15;color:var(--school-profile-color)}.school-profile-name-en-text{font-size:10px;line-height:1.25;color:var(--school-profile-color)}

.school-profile-map-preview{display:block;margin-top:8px}.school-profile-map-preview img{display:block;width:100%;height:auto;max-height:340px;object-fit:contain;border:1px solid var(--cike-line);border-radius:8px;background:#fff}

/* Keep the founding date and anniversary together; let the motto use the remaining space. */
.school-profile-card .school-profile-facts{grid-template-columns:max-content minmax(0,1fr);gap:10px;container-type:inline-size}
.school-profile-card .school-profile-facts:not(:has(.school-profile-fact-motto)){grid-template-columns:1fr}
.school-profile-card .school-profile-fact-founded,.school-profile-card .school-profile-fact-founded .school-profile-fact-value{gap:4px}
.school-profile-card .school-profile-fact-founded .school-profile-fact-value{flex-wrap:nowrap}

@container (max-width:320px){.school-profile-card .school-profile-fact-founded strong{font-size:15px}.school-profile-card .school-profile-fact-founded .school-profile-fact-label{font-size:11px}.school-profile-card .school-profile-anniversary{font-size:10px}.school-profile-card .school-profile-fact-motto strong{font-size:13px}}
