/* Public directory below the opening school finder. */
.pd-directory, .pd-footer, .pd-tools {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: #1f2933;
}
:is(.pd-directory,.pd-footer,.pd-tools) *,
:is(.pd-directory,.pd-footer,.pd-tools) *::before,
:is(.pd-directory,.pd-footer,.pd-tools) *::after { box-sizing: border-box; }
:is(.pd-directory,.pd-footer,.pd-tools) a { color: inherit; text-decoration: none; }
:is(.pd-directory,.pd-footer,.pd-tools) :is(a,button,summary):focus-visible {
  outline: 2px solid #0075d6;
  outline-offset: 3px;
}
.pd-directory { margin: 25px auto 0; padding: 0 0 100px; width: min(1180px, calc(100% - 40px)); }
.pd-grid { display: grid; grid-template-columns: minmax(0, 880fr) minmax(0, 280fr); gap: 25px 20px; align-items: start; }
.pd-main-sections { display: grid; gap: 18px; min-width: 0; align-content: start; }
.pd-section { min-width: 0; scroll-margin-top: 18px; margin: 0; padding: 0; border: 0; }
.pd-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 25px 0 30px; }
.pd-heading h2 { margin: 0; padding: 0; font-size: 24px; line-height: 1; font-weight: 500; letter-spacing: 0; color: #1f2933; }
.pd-heading a { font-size: 14px; line-height: 20px; color: #747e86; white-space: nowrap; }
.pd-heading a span { margin-left: 3px; font-family: Arial, sans-serif; font-size: 15px; }
.pd-directory a:hover, .pd-directory .pd-school:hover :is(.pd-cn,.pd-en) { color: #0c83fa; }
.pd-countries { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.pd-country-cover { position: relative; display: grid; place-items: center; height: 100px; overflow: hidden; background: #677681; }
.pd-country-cover img, .pd-news-cover img, .pd-service > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-country-cover span { position: relative; color: white; font-size: 18px; font-weight: 700; }
.pd-country-cover img, .pd-news-cover img { transition: transform .3s ease; }
.pd-country-cover:hover img, .pd-news-cover:hover img { transform: scale(1.05); }
.pd-school { display: flex; align-items: center; width: 100%; height: 60px; min-width: 0; gap: 7px; }
.pd-country .pd-school { margin-top: 15px; }
.pd-emblem { width: 60px; height: 60px; flex: 0 0 60px; border: 4px solid #e4e5e6; border-radius: 50%; padding: 5px; background: #fff; display: grid; place-items: center; }
.pd-emblem img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.pd-school-text { min-width: 0; display: grid; gap: 10px; }
.pd-cn, .pd-en { line-height: 1.12; display: block; min-width: 0; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.pd-cn { font-size: 16px; color: #1f2933; }
.pd-en { font: 14px/1.1 Arial, sans-serif; color: #838e98; }
.pd-ranking-list { display: grid; gap: 10px; }
.pd-directory a.pd-rank { display: flex; justify-content: center; align-items: center; text-align: center; width: 100%; min-height: 74px; padding: 6px 3px; color: white; font-size: 16px; font-weight: 700; line-height: 22px; }
.pd-rank:nth-child(1) { background: linear-gradient(#6cd198,#51d3d5); }
.pd-rank:nth-child(2) { background: linear-gradient(#51d3d5,#4abae5); }
.pd-rank:nth-child(3) { background: linear-gradient(#4abae5,#509aee); }
.pd-rank:nth-child(4) { background: linear-gradient(#509aee,#8695f1); }
.pd-rank:hover { filter: brightness(.95); }
.pd-services { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.pd-service { position: relative; height: 212px; display: block; overflow: hidden; background: #dce5f1; }
.pd-get { position: absolute; right: 0; top: 12px; width: 80px; height: 36px; display: flex; align-items: center; justify-content: center; gap: 3px; border-radius: 18px 0 0 18px; background: linear-gradient(135deg,#ff553b,#ff2768); font-size: 10px; color: #fff; }
.pd-get span { letter-spacing: -2px; font-size: 9px; }
.pd-service-name { position: absolute; bottom: 0; width: 100%; display: grid; justify-items: center; padding: 12px; background: rgb(255 255 255 / 80%); backdrop-filter: blur(5px); color: #26343f; border-radius: 8px 8px 0 0; }
.pd-service-name > span { width: 85%; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; font-size: 14px; font-weight: 600; line-height: 21px; }
.pd-art-schools { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px 20px; }
.pd-directory .pd-news-cover {
  display: block; padding: 7px 0 13px; border-bottom: 1px solid #dce2df;
  color: #1f2933;
}
.pd-directory .pd-news-cover[hidden] { display: none; }
.pd-news-cover small, .pd-news-list small { display: block; color: #526663; font-size: 12px; line-height: 1.5; }
.pd-news-cover strong { display: block; margin-top: 7px; font-size: 21px; line-height: 1.45; }
.pd-news-list { margin: 0; padding: 0; list-style: none; }
.pd-news-list li { margin: 0; padding: 10px 1px; border-bottom: 1px solid #d7e2df; }
.pd-news-list a { display: block; font-size: 15px; line-height: 1.5; font-weight: 600; }
.pd-news-list small { margin-top: 3px; }
.pd-news-status { font-size: 14px; color: #556a67; }
.pd-footer { background: #303133; padding: 30px 0 20px; color: #a3a8ac; font-size: 14px; line-height: 1.5; }
.pd-foot-inner { width: min(1180px, calc(100% - 40px)); margin: auto; }
.pd-foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin-bottom: 30px; }
.pd-foot-row a + a { border-left: 1px solid #676a6c; }
.pd-foot-row a { line-height: 1; padding: 0 15px; }
.pd-foot-row > :first-child { padding-left: 0; }
.pd-foot-meta { display: flex; flex-wrap: wrap; gap: 7px 26px; padding-bottom: 20px; border-bottom: 1px solid #48494b; }
.pd-foot-legal { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; padding-top: 16px; }
.pd-foot-legal button { background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.pd-footer :is(a,button):hover { color: #a7dcff; }
.pd-tools { position: fixed; right: max(8px, calc((100% - 1180px) / 2 - 62px)); bottom: 26px; z-index: 5; display: grid; width: 40px; background: #fff; }
.pd-tool, .pd-tool-qr summary { position: relative; margin: 0; padding: 0; border: 0; outline-offset: -2px; display: grid; place-items: center; width: 40px; height: 44px; background: #fff; color: #91969a; cursor: pointer; font: inherit; list-style: none; }
.pd-tool img { object-fit: contain; }
.pd-tool-qr summary::-webkit-details-marker { display: none; }
.pd-tool-qr { position: relative; }
.pd-tip { pointer-events: none; display: none; position: absolute; right: 46px; top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 4px 8px; background: #303133; color: white; font-size: 12px; }
.pd-tool:hover .pd-tip, .pd-tool:focus-visible .pd-tip, .pd-tool-qr:not([open]) summary:is(:hover,:focus-visible) .pd-tip { display: block; }
.pd-ico { display: inline-block; flex: none; color: #909396; position: relative; }
.pd-chat { width: 22px; height: 16px; border: 2px solid currentColor; border-radius: 60% 60% 45%; transform: translate(-2px,-2px); }
.pd-chat::before { content: "••"; position: absolute; top: -7px; left: 3px; font-size: 13px; letter-spacing: 2px; }
.pd-chat::after { content: "••"; position: absolute; right: -7px; bottom: -6px; border: 2px solid currentColor; border-radius: 60%; background: white; font: 10px/6px Arial; width: 15px; height: 12px; }
.pd-qr { width: 21px; height: 21px; border: 2px solid currentColor; background: conic-gradient(currentColor 25%,transparent 0 50%,currentColor 0 75%,transparent 0) 0 / 7px 7px; }
.pd-handset { font-size: 25px; line-height: 1; }
.pd-tool.pd-top { height: 40px; background: #dbdbdb; color: white; font: 700 29px/1 Arial; }
.pd-qr-card { padding: 8px; background: white; box-shadow: 0 2px 12px #17253229; position: absolute; right: 44px; bottom: 0; width: 132px; text-align: center; color: #394650; font-size: 12px; }
.pd-qr-card img { display: block; margin: 0 auto 4px; }
@media(max-width: 1290px) { .pd-tools { display: none; } }
@media(min-width: 801px) and (max-width: 1199px) {
  .pd-directory, .pd-foot-inner { width: min(1000px,calc(100% - 40px)); }
  .pd-grid { grid-template-columns: minmax(0,700fr) minmax(0,280fr); }
}
@media(max-width: 800px) {
  .pd-directory, .pd-foot-inner { width: calc(100% - 32px); }
  .pd-directory { margin-top: 12px; padding-bottom: 42px; }
  .pd-grid { grid-template-columns: minmax(0,1fr); gap: 7px; }
  .pd-main-sections { gap: 7px; }
  .pd-heading { padding: 22px 0 16px; }
  .pd-heading h2 { font-size: 21px; }
  .pd-countries, .pd-art-schools { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 12px; }
  .pd-ranking-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .pd-directory a.pd-rank { min-height: 61px; font-size: 14px; line-height: 19px; padding-inline: 8px; }
  .pd-services { gap: 8px; }
  .pd-service { height: auto; aspect-ratio: 1.25; }
  .pd-country-cover { height: 82px; }
  .pd-school { height: 48px; gap: 6px; }
  .pd-emblem { width: 44px; height: 44px; flex-basis: 44px; padding: 3px; border-width: 2px; }
  .pd-cn { font-size: 14px; }
  .pd-en { font-size: 12px; }
  .pd-school-text { gap: 5px; }
  .pd-service-name { padding: 6px; }
  .pd-service-name > span { width: 100%; font-size: 12px; }
  .pd-get { width: 60px; height: 25px; top: 5px; }
  .pd-foot-row { gap: 12px 0; margin-bottom: 22px; }
  .pd-foot-row a { padding-inline: 8px; }
}
@media(max-width: 520px) {
  .pd-services { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .pd-service { flex: 0 0 74%; scroll-snap-align: start; height: auto; aspect-ratio: 286/212; }
}
@media(prefers-reduced-motion: reduce) {
  .pd-country-cover img, .pd-news-cover img { transition: none; }
  .pd-country-cover:hover img, .pd-news-cover:hover img { transform: none; }
}

 .pd-school { border-bottom:1px solid #e5ecee; }
@media(max-width:650px) { .pd-footer { padding-bottom:60px; } }
/* The login target stays still while the mascot floats inside it. */
.tiger-login {
  --tiger-size: 56px;
  position: fixed;
  z-index: 8;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
}
.tiger-login button {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--tiger-size);
  height: var(--tiger-size);
  padding: 0;
  color: #153d40;
  border: 1px solid #c8dad7;
  border-radius: 50%;
  background: #fffefa;
  box-shadow: 0 3px 12px #193d431c;
  cursor: pointer;
  touch-action: manipulation;
}
.tiger-login img {
  display: block;
  width: 64%;
  height: 88%;
  object-fit: cover;
  object-position: 52% center;
  mix-blend-mode: multiply;
  transform-origin: 50% 74%;
  pointer-events: none;
}
.tiger-login button:focus-visible {
  outline: 2px solid #0f6f70;
  outline-offset: 3px;
}
.tiger-login span {
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  transform: translateY(-50%);
  display: none;
  padding: 6px 10px;
  border-radius: 6px;
  background: #173e41;
  color: white;
  font: 600 13px/1.35 system-ui, sans-serif;
  white-space: nowrap;
  pointer-events: none;
}
.tiger-login button:focus-visible span { display: block; }
@media (hover: hover) and (pointer: fine) {
  .tiger-login button:hover span { display: block; }
  .tiger-login button:hover { border-color: #71a7a4; }
}
@media (prefers-reduced-motion: no-preference) {
  .tiger-login img { animation: tiger-hover 3.4s ease-in-out infinite; }
  @keyframes tiger-hover {
    0%, 100% { transform: translateY(1px) rotate(-2deg); }
    50% { transform: translateY(-3px) rotate(2deg); }
  }
}
body:has(dialog[open]) .tiger-login { visibility: hidden; }
body:has(dialog[open]) .tiger-login img { animation-play-state: paused; }
@media (max-width: 650px) {
  .tiger-login {
    --tiger-size: 48px;
    bottom: max(12px, env(safe-area-inset-bottom));
    right: max(10px, env(safe-area-inset-right));
  }
}
/* Compact country directories and ranking titles */
.pd-directory { margin-top:14px; }
.pd-directory .pd-heading { align-items:baseline; padding:17px 0 14px; }
.pd-directory .pd-heading h2 { color:#203d34; font-weight:650; font-size:clamp(18px,1.65vw,23px); line-height:1.35; }
.pd-directory .pd-heading a { color:#536d60; }
.pd-country-cover { border-radius:6px; }
.pd-country .pd-school { height:auto; min-height:55px; margin:0; padding:7px 0; }
.pd-school-text { gap:2px; }
.pd-ranking-list { display:grid; gap:0; }
.pd-directory a.pd-rank { min-height:65px; gap:12px; padding:8px 0; justify-content:flex-start; text-align:left; border-bottom:1px solid #dfe9e3; background:none; color:#244235; }
.pd-directory a.pd-rank::before { display:none; }
.pd-directory .pd-rank>img { position:static; flex:none; width:78px; height:auto; aspect-ratio:160/106; z-index:auto; border-radius:4px; object-fit:contain; }
.pd-directory .pd-rank .pd-rank-label { text-shadow:none; padding:0; display:flex; flex-direction:column-reverse; }
.pd-rank .pd-rank-label small { color:#5a6e61; font-size:12px; }
.pd-rank .pd-rank-label strong { font-weight:600; font-size:15px; line-height:1.45; }
.pd-directory a.pd-rank:hover strong { text-decoration:underline; }
@media(max-width:800px) {
  .pd-directory { margin-top:6px; }
  .pd-directory .pd-heading { padding:14px 0 10px; }
  .pd-directory .pd-country-cover { height:68px; }
  .pd-directory a.pd-rank { padding:7px 4px 7px 0; gap:7px; }
  .pd-directory .pd-rank>img { width:52px; height:auto; }
  .pd-rank .pd-rank-label strong { font-size:13px; }
}


/* Each illustrated heading opens its whole channel. */
.pd-channel-heading { margin: 8px 0 12px; font-size: clamp(18px,1.65vw,23px); line-height: 1.25; }
.pd-channel-link {
  --channel-ink: #234c3c;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 2px 14px 2px 3px;
  border-radius: 6px;
}
#news .pd-channel-link { --channel-ink: #513d24; background: #f5f0e6; }
.pd-directory a.pd-channel-link { color: var(--channel-ink); }
.pd-channel-link:hover span:first-of-type { text-decoration: underline; text-underline-offset: 4px; }
.pd-channel-link img { width: 66px; height: 54px; flex: none; object-fit: contain; border-radius: 4px; }
.pd-channel-arrow { margin-left: auto; font: 500 23px/1 system-ui,sans-serif; }
@media(max-width: 800px) {
  .pd-channel-heading { margin: 8px 0 10px; }
  .pd-channel-link { min-height: 50px; gap: 9px; }
  .pd-channel-link img { width: 55px; height: 45px; }
}

.pd-directory .pd-heading h2 { color: var(--home-navy); }
.pd-directory .pd-heading > a { color: var(--home-muted); }
.pd-directory .pd-heading > a:hover { color: var(--home-red); }
#arts .pd-heading {
  align-items: center;
  margin: 12px 0 1px;
  padding: 0 16px;
  background: var(--home-navy);
  border-radius: 6px 6px 0 0;
}
#arts .pd-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: clamp(18px, 1.5vw, 22px);
}
#arts .pd-heading h2::before {
  content: "";
  width: 4px;
  height: .9em;
  border-radius: 1px;
  background: #fa7780;
}
#arts .pd-heading a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 48px;
  color: white;
}
#arts .pd-heading a:focus-visible { outline-color: white; outline-offset: -2px; }
#arts .pd-heading a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pd-art-schools {
  grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr));
  gap: 0 18px;
}
.pd-art-schools .pd-school {
  height: 100%;
  min-height: 82px;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid #dde4eb;
}
.pd-art-schools .pd-art-mark {
  display: block;
  flex: none;
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: white;
}
.pd-art-schools .pd-school-text { gap: 3px; }
.pd-art-schools :is(.pd-cn,.pd-en) {
  white-space: normal;
  overflow-wrap: anywhere;
  overflow: visible;
  text-overflow: clip;
}
.pd-art-schools .pd-cn { font-size: 15px; line-height: 1.4; font-weight: 650; color: var(--home-navy); }
.pd-art-schools .pd-en { font-size: 13px; line-height: 1.3; color: var(--home-muted); }
.pd-art-schools .pd-school:is(:hover,:focus-visible) .pd-cn {
  color: var(--home-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pd-directory .pd-art-schools .pd-school:hover .pd-en { color: var(--home-muted); }
@media(max-width: 600px) {
  .pd-art-schools .pd-school { min-height: 68px; padding-block: 7px; }
  .pd-art-schools .pd-art-mark { width: 51px; height: 51px; }
}

#schools .pd-heading { justify-content:flex-start; gap:10px; flex-wrap:wrap; }
#schools .pd-heading a { margin-left:auto; }
.pd-ranking-edition,.pd-rank-tie { color:#536478; font-size:12px; line-height:1.5; }
.pd-countries { row-gap:0; }
.pd-country { min-width:0; display:grid; grid-row:span 9; grid-template-rows:subgrid; row-gap:0; }
.pd-country .pd-school { display:grid; grid-template-columns:minmax(0,1fr) max-content; align-content:center; align-items:baseline; gap:3px 5px; height:auto; min-height:53px; padding:7px 0; }
.pd-country .pd-school-text { display:contents; }
.pd-country .pd-cn { grid-column:1; grid-row:1; font-weight:550; line-height:1.22; white-space:normal; }
.pd-country .pd-en { grid-column:1/-1; grid-row:2; white-space:normal; overflow:visible; overflow-wrap:anywhere; line-height:1.22; }
.pd-world-rank { grid-column:2; grid-row:1; color:#435b71; font:650 12px/1.2 system-ui,sans-serif; font-variant-numeric:tabular-nums; }
.pd-rank-tie { margin:9px 0 0; }
.pd-rank-tie a { text-decoration:underline; text-underline-offset:2px; }
@media(max-width:800px) {
  .pd-country .pd-school { min-height:53px; padding-block:6px; }
  .pd-country:nth-child(n+3) .pd-country-cover { margin-top:14px; }
  .pd-ranking-edition,.pd-rank-tie { font-size:11px; }
}

.pd-news-channels { display:flex; flex-wrap:wrap; gap:15px; margin:6px 0 8px; }
.pd-news-channels a { display:inline-flex; align-items:center; min-height:32px; color:#415972; font-size:13px; text-decoration:underline; text-decoration-color:#bac7d3; text-underline-offset:4px; }
