/* The section names label permanent groups. Highlight only one destination. */
.side .nav { padding-inline: 19px 13px; overflow-y: auto; }
.side .nav-link { cursor: default; padding-left: 15px; }
.side .nav-sub a { padding-left: 29px; }
.side .nav :is(.nav-link,.nav-sub a) { font-weight: 750; }
.side .nav-group > .nav-link, .side .nav-group:hover > .nav-link { background: transparent !important; }
.side .nav:has(.nav-sub a:hover) .nav-sub a.is-on:not(:hover),
.side .nav:has(a:focus-visible) a.is-on:not(:focus-visible) { background: transparent; color: var(--ink-2); }
.side .nav-sub a:hover, .side .nav-sub a:focus-visible { background: var(--blue-soft); }
#lang { position: fixed; top: 24px; right: var(--gut); z-index: 40; margin: 0; }
.page-honors .pc > .wrap { height: auto; }
.honor-line .shot { background: #f4f6fa; }
.honor-line .shot img { object-fit: contain; }
.contact2-main .contact-list { margin-top: 21px; }
.contact2-main .contact-list div { padding-block: 14px; }
html:lang(en) .contact2-main .contact-list { margin-top: 14px; }
html:lang(en) .contact2-main .contact-list div { padding-block: 8px; }
.series-cards .card:nth-child(n+3) { display: flex; }
.pcard-dia { aspect-ratio: 2.18; height: auto; }
@media (min-width: 821px) {
  body { grid-template-columns: 204px minmax(0, 1fr); }
  .home-full .home-in { padding-left: calc(204px + var(--gut)); }
  .ph-in { padding-right: calc(var(--gut) + 108px); min-height: 78px; }
  #lang { top: 36px; }
  .series-wrap { height: auto; grid-template-rows: auto auto auto; align-content: start; }
  .series-cards { grid-template-rows: none; grid-auto-rows: max-content; align-content: start; }
  .series-cards .card-img { flex: none; height: auto; aspect-ratio: 1.8; }
  .series-wrap .series:nth-child(2) { align-self: start; }
  .pcards { display: grid; grid-template-rows: auto auto minmax(0,1fr); gap: 0 20px; }
  .pcard { display: grid; grid-template-rows: subgrid; grid-row: span 3; }
  .pcard-fig { justify-content: center; }
  .pcard-dia { flex: none; aspect-ratio: 2.18; }
  .pcard-cap { min-height: 22px; }
}
@media (max-width: 820px) {
  #lang { right: var(--gut); top: 13px; z-index: 52; height: 30px; }
  .mtop .burger { margin-right: 100px; }
  body[data-page="home"][data-home="1"] #lang { background: white; border-color: var(--line); color: var(--ink-3); }
  body[data-page="home"][data-home="1"] #lang span.is-on { color: var(--blue); }
  .side { visibility: hidden; }
  .menu-open .side { visibility: visible; }
  .side .nav-sub a { min-height: 38px; }
}

.side .side-qr p { font-weight: 700; }
/* Keep the reviewed QR group in place while tightening only the contact text. */
@media (min-width: 821px) {
  html:lang(zh) .contact2-qr { transform: translate(14px, 18px); }
}

.side .nav-link.single { cursor: pointer; }
.side .nav-group > a.single:is(:hover,.is-on,:focus-visible) { background: var(--blue-soft) !important; color: var(--blue); }
.side .nav:has(a:hover) a.is-on:not(:hover) { background: transparent !important; }
.ph-side:has(.search) { --control-width: clamp(142px,12vw,172px); gap: 12px; }
.ph-side .search input, .ph-side .search input:focus, .ph-side #lang {
  box-sizing: border-box; width: var(--control-width); height: 38px;
}
.ph-side #lang { position: static; justify-content: center; font-size: 14px; }
.ph-in:has(.search) { padding-right: var(--gut); }
.honor-line .shot img { object-fit: cover; }
.fan-reference { display: block; width: 100%; height: 100%; }
.dia-zoom:has(.fan-reference) { height: auto; aspect-ratio: 1866/935; }
.alli { height: 615px; }
html:lang(en) .contact2-main { min-width: 0; max-width: 650px; }
html:lang(en) .contact2-qr { text-align: center; }

.series .series-cards {
  min-height: 0; overflow-y: auto; overscroll-behavior-y: contain;
  grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: none;
  grid-auto-rows: 100%; align-content: start; gap: 14px; margin: 12px 0 0; padding: 0;
  scroll-snap-type: y proximity;
}
.series-cards > .card { min-height: 0; display: flex; scroll-snap-align: start; }
.series-cards .card-img { flex: 1 1 0; min-height: 0; height: auto; aspect-ratio: auto; }
.series-cards .card-body { flex: 0 0 auto; }

.recap-carousel { position: relative; min-height: 0; min-width: 0; }
.recap-carousel .summit-strip {
  --visible: 4; --gap: 14px; display: grid; height: 100%; min-width: 0;
  grid-template-columns: none; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--visible) - 1) * var(--gap)) / var(--visible));
  grid-template-rows: minmax(0,1fr); gap: var(--gap);
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.summit-strip > .card { scroll-snap-align: start; }
.recap-carousel > button {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: white; border: 1px solid var(--line); color: var(--blue);
  box-shadow: 0 2px 10px #10395721;
}
.recap-carousel > button[hidden] { display: none; }
.recap-carousel > button:disabled { opacity: .52; cursor: default; }
.recap-carousel > button svg { width: 15px; height: 15px; }
.recap-prev { left: -10px; } .recap-next { right: -10px; }
@media(min-width:821px) {
  .pcard-h { font-size: clamp(23px,1.8vw,30px); }
  .pcard-text p, .pcard-text .pc-lines li, html[lang=en] .pcard-text :is(li,p) { font-size: clamp(15px,1.16vw,19px); line-height: 1.7; }
  .pcard-fig { justify-content: flex-end; }
  .pcard-dia { max-height: calc(100% - 48px); }
  .series-wrap { height: 100%; grid-template-rows: auto auto minmax(0,1fr); }
  .series-wrap .series, .series-wrap .series:nth-child(2) { align-self: stretch; min-height: 0; }
}
@media(max-width:820px) {
  .ph-side:has(.search) { --control-width: min(43vw,165px); gap: 9px; }
  body:has(.ph-side .search) .mtop .burger { margin-right: 0; }
  .series .series-cards { height: clamp(182px,31vh,260px); flex: none; }
  .recap-carousel .summit-strip { --visible: 2; height: 185px; --gap: 10px; }
  .recap-carousel .card { display: flex; flex-direction: column; }
  .recap-carousel .card-img { flex: 1 1 0; min-height: 0; }
  .pcard-h { font-size: 23px; } .pcard-text p,.pc-lines li { font-size: 15px; }
}

.honor-line .honor-cover { position: relative; aspect-ratio: 1.85; isolation: isolate; }
.honor-cover img.cover-fill { position: absolute; inset: 0; object-fit: cover; filter: blur(12px) brightness(.72); transform: scale(1.16); }
.honor-cover img.cover-face { position: relative; object-fit: contain; }
@media (max-width: 820px) {
  .ph-side:has(.search) { width: 100%; justify-content: flex-end; }
  html:lang(en) .contact2-main { padding: 30px 22px 20px; }
  html:lang(en) .contact2-main .contact-list div { grid-template-columns: 49px minmax(0,1fr); gap: 7px; }
  html:lang(en) .contact2-qr p { padding: 3px 9px; border-radius: 8px; background: rgba(255,255,255,.9); }
}
@media (max-width: 360px) {
  html:lang(en) .contact2-main .contact-list div { grid-template-columns: 1fr; gap: 2px; }
}

.speaker-frame { width: 100%; height: 100%; display: block; }

/* All page tools share a row, including when there is only a language button. */
:root { --tool-height: 38px; --rail-width: 204px; }
.ph .ph-in { min-height: 0; padding: 41px var(--gut) 19px; align-items: center; gap: 12px; }
.ph h1 { font-size: 26px; line-height: 1.25; }
.ph-side, .ph-side:has(.search) { display: flex; flex-wrap: nowrap; justify-content: flex-end; align-items: center; gap: 10px; }
#lang, .ph-side #lang, body[data-page="home"][data-home="1"] #lang {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 94px; height: var(--tool-height); padding: 0 10px; gap: 7px; margin: 0;
  border: 1px solid var(--line); border-radius: 999px; background: white;
  color: var(--ink-3); font: 14px/1 "PB Serif", "Songti SC", serif;
}
body #lang span.is-on, body[data-page="home"][data-home="1"] #lang span.is-on { color: var(--blue); }
.ph-side #lang { position: static; }
body > #lang { top: 41px; right: max(var(--gut), calc((100vw - var(--rail-width) - var(--wrap)) / 2)); }
.ph-side .tabs, .ph-side .goback, .ph-side .search input, .ph-side .search input:focus { height: var(--tool-height); }
.ph-side .search input, .ph-side .search input:focus { width: clamp(153px,15.5vw,220px); }
.ph-side .tabs { align-items: stretch; padding-block: 3px; }
.ph-side .tab { height: auto; }
.side .nav { padding-left: 25px; }
body .side .nav :is(.nav-link,.nav-sub a), body .side .side-qr p { color: #171717 !important; opacity: 1; }
.side-foot { margin-bottom: 6px; }
@media (min-width:701px) {
  body[data-page="home"][data-home="1"] .side { background: transparent !important; }
  body[data-page="home"] .side .nav :is(.nav-link,.nav-sub a),
  body[data-page="home"] .side .side-qr p { color: white !important; }
  body[data-page="home"] .side .nav a:is(:hover,:focus-visible) { background: rgba(255,255,255,.16) !important; }
}
@media (max-width:700px) {
  body[data-page="home"] .mtop .brand img { display: block; }
}
.honor-line .shot.honor-cover { aspect-ratio: 2.35; }
.honor-line .honor-cover img { object-fit: contain; }
.pcard .pcard-h { font-size: 22px; padding-top: 6px; }
.pcard .pcard-text :is(p,li), html[lang=en] .pcard .pcard-text :is(p,li) { font-size: clamp(14px,1.06vw,16px); line-height: 1.75; }

.contact2 .contact-name { font-size: 26px; line-height: 1.3; }
.contact2 > .contact2-main, html:lang(en) .contact2 > .contact2-main { min-width: 0; max-width: none; }
.contact2-main .contact-list, html:lang(en) .contact2-main .contact-list { margin-top: 19px; }
.contact2 .contact-list div, html:lang(en) .contact2 .contact-list div {
  grid-template-columns: 68px minmax(0,1fr); column-gap: 22px; padding-block: 12px;
}
.contact2-main .contact-list { width: max-content; max-width: 100%; }
.contact2 .contact-list dd { padding-inline-end: 14px; }
.contact2 .contact-list dt { font-size: 13px; }
.contact2 .contact-list dd { font-size: 16px; line-height: 1.55; }
html:lang(en) .contact2 .contact-list dd { font-size: 15px; }
@media (min-width:701px) {
  .contact2 { display: block; }
  .contact2 > .contact2-main { width: 69%; padding: 54px 12px 30px 38px; }
  .contact2 > .contact2-qr, html:lang(zh) .contact2 > .contact2-qr {
    position: absolute; left: 80%; right: auto; top: 90px; margin: 0; transform: translateX(-50%);
  }
}
.summit-detail { display: grid; gap: 18px; grid-template-columns: minmax(0,.98fr) minmax(0,1.02fr); align-items: stretch; }
.summit-card, .summit-reading { display: flex; flex-direction: column; gap: 13px; padding: clamp(15px,1.5vw,24px); min-height: 0; min-width: 0; }
.summit-hero { width: 100%; flex: 1 1 0; min-height: 110px; border-radius: 12px; background: #f0f4f8; }
.summit-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.summit-thumbs { display: flex; gap: 8px; }
.summit-thumbs button { width: min(18%,74px); aspect-ratio: 1.85; border-radius: 6px; overflow: hidden; }
.summit-thumbs button[aria-pressed=true] { outline: 2px solid var(--blue); outline-offset: 2px; }
.summit-thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.summit-caption h2, .summit-reading h2 { font-size: clamp(19px,1.5vw,24px); line-height: 1.38; }
.summit-caption .date { margin-block: 6px; }
.summit-caption p:not(.date) { font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.summit-caption .more { min-height: 34px; margin-top: 8px; gap: 8px; font-size: 16px; font-weight: 650; }
.summit-caption .more svg { width: 13px; height: 13px; }
.summit-reading h2 { color: var(--blue); }
.summit-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--blue-line) transparent; }
.has-recaps .summit-card { align-self: start; }
.has-recaps .summit-hero { flex: none; min-height: 0; height: auto; aspect-ratio: auto; background: transparent; }
.has-recaps .summit-hero img { height: auto; }
.has-recaps .summit-reading { padding: 0; }
.recap-list { display: grid; align-content: start; gap: 10px; padding: 2px 3px 4px; }
.recap-list .line-img img { object-position: center 18%; }
.recap-list .line {
  grid-template-columns: clamp(84px,7.5vw,120px) minmax(0,1fr) 14px;
  gap: 14px; padding: 12px;
}
.recap-list .line-img { width: 100%; }
.recap-list .line .date { display: none; }
.recap-list .line-t { font-size: 15px; line-height: 1.55; }
.recap-list .line-s { font-size: 13px; }
.report-copy { font-size: 16px; line-height: 1.95; color: var(--ink-2); }
.report-copy p + p { margin-top: 1em; }
.recap-carousel .summit-strip .card:not(.is-photo) { display: grid; grid-template-rows: minmax(0,1fr) 58px; gap: 0; }
.recap-carousel .card .card-img { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; }
.recap-carousel .card .card-body { display: flex; align-items: center; padding: 5px 12px; }
.recap-carousel .card .card-t { font-size: 13.5px; line-height: 1.5; -webkit-line-clamp: 2; }
.recap-carousel .card-img img { object-position: center 12%; }
@media (min-width:821px) {
  .summit { grid-template-rows: auto minmax(242px,1.55fr) minmax(152px,1fr); }
  .summit-main { grid-template-rows: minmax(0,1fr); }
  .summit-info { min-height: 0; overflow-y: auto; justify-content: safe center; }
  .summit-info h2 { flex: none; font-size: clamp(17px,1.45vw,22px); }
  .summit-info .summit-text { display: block; flex: none; margin-top: 6px; font-size: 13.5px; line-height: 1.65; }
  .summit-info .btn { margin-top: 8px; }
  .page-events .pc > .summit-detail { height: 100%; min-height: 365px; }
}
@media (min-width:701px) and (max-width:820px) {
  .side { visibility: visible; }
  .ph .ph-in { flex-direction: row; }
}
@media (max-width:700px) {
  :root { --tool-height: 34px; }
  .mtop .burger { margin-right: 0; }
  .ph .ph-in { flex-direction: column-reverse; align-items: stretch; gap: 12px; padding: 12px var(--gut) 18px; }
  .ph h1 { font-size: 25px; line-height: 32px; }
  body > #lang { top: 70px; right: var(--gut); z-index: 45; }
  .ph-side #lang, #lang, body[data-page="home"][data-home="1"] #lang { width: 84px; }
  .ph-side, .ph-side:has(.search) { gap: 7px; }
  .ph-side .search input, .ph-side .search input:focus { width: clamp(143px,47vw,190px); }
  .ph-side .tabs { min-width: 0; flex-shrink: 1; }
  .ph-side .tab { font-size: 12px; padding-inline: 7px; line-height: 1.1; }
  .contact2 { display: block; min-height: 510px; }
  .contact2 > .contact2-main, html:lang(en) .contact2 > .contact2-main { padding: 26px 18px; width: 100%; }
  .contact2 .contact-list div, html:lang(en) .contact2 .contact-list div { grid-template-columns: 54px minmax(0,1fr); gap: 12px; }
  .contact2 .contact2-qr, html:lang(zh) .contact2 .contact2-qr {
    position: absolute; top: var(--contact-qr-top, 286px); left: 50%; right: auto; margin: 0; transform: translateX(-50%); width: max-content;
  }
  .contact2 .contact2-qr p, html:lang(en) .contact2 .contact2-qr p { padding: 0; background: none; }
  .summit-detail { grid-template-columns: minmax(0,1fr); }
  .summit-hero { flex: none; aspect-ratio: 1.95; }
  .summit-scroll { overflow: visible; }
  .recap-list .line { grid-template-columns: 82px minmax(0,1fr) 10px; }
  .recap-list .line-img { grid-row: auto; }
  .summit-caption h2, .summit-reading h2 { font-size: 19px; }
  .summit-main .summit-shot { height: auto; aspect-ratio: 2; }
}
#lang span { white-space: nowrap; flex: none; }
#lang i { flex: none; }
.ph-side .tab-compact { display: none; }
.recap-carousel .summit-strip .card.is-photo {
  display: grid; grid-template-rows: minmax(0,1fr) 58px; text-align: left; padding: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.recap-carousel .card.is-photo .card-img { border-radius: 0; }
.recap-carousel .card.is-photo .card-body { display: flex; }
.recap-carousel .card-img img[src*="summit-stage"] { object-position: center 3%; }
.contact2 .contact2-qr { width: 160px; }
@media (max-width:1100px) {
  .ph-side .tab:has(.tab-compact) span:first-child { display: none; }
  .ph-side .tab .tab-compact { display: inline; }
}
@media (min-width:701px) and (max-width:820px) {
  .ph .ph-in { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .ph h1 { line-height: 34px; }
  .contact2 > .contact2-main { padding-left: 20px; width: 68%; }
  .contact2 .contact-list div, html:lang(en) .contact2 .contact-list div { grid-template-columns: 48px minmax(0,1fr); gap: 9px; }
}
@media (max-width:700px) {
  #lang, .ph-side #lang, body[data-page="home"][data-home="1"] #lang { padding: 0 5px; gap: 5px; }
  .ph-side .tabs { flex-wrap: nowrap; gap: 2px; }
  .ph-side .tab { white-space: nowrap; padding-inline: clamp(4px,1.6vw,8px); }
  .contact2 .contact-en { height: 41px; line-height: 18px; }
  
}
@media (min-width:701px) and (max-width:820px) {
  .contact2 > .contact2-main, html:lang(en) .contact2 > .contact2-main { padding: 40px 8px 30px 20px; width: 68%; }
  .contact2 .contact-en { height: 40px; line-height: 18px; }
}

@media (min-width:821px) {
  .summit-main { grid-template-columns: minmax(0,1.07fr) minmax(0,1fr); gap: clamp(16px,2vw,28px); }
  .summit-info .meta { margin-top: 3px; }
  .summit-info .btn { height: 34px; margin-top: 5px; }
  html:lang(en) .summit-info h2 { font-size: clamp(17px,1.4vw,21px); line-height: 1.26; }
  html:lang(en) .summit-info .summit-text { line-height: 1.5; }
}
@media (max-width:700px) {
  .series-cards .card-t { -webkit-line-clamp: 4; }
  html:lang(en) .series-cards .card-body { min-height: 112px; }
}

@media (min-width:821px) {
  .page-contact .pc > .wrap { justify-content: flex-start; }
  .contact2 { max-height: clamp(575px, 72vh, 740px); }
}
@media (max-width:1100px) {
  .contact2 .contact-list dd { padding-inline-end: 4px; }
}

@media (max-width:360px) {
  .contact2 { --contact-qr-top: 344px; min-height: 556px; }
}

/* Keep long English navigation labels inside the sidebar highlight. */
@media (min-width:701px) {
  html:lang(en) .side .nav { padding-inline: 23px 7px; }
  html:lang(en) .side .nav-sub { grid-template-columns: minmax(0,1fr); }
  html:lang(en) .side .nav-sub a { min-width: 0; padding-inline: 28px 4px; }
}
@media (min-width:821px) {
  .page-philosophy .pcards { max-height: clamp(465px,46vw,600px); }
  .pcard .pcard-h { padding-top: clamp(13px,2.5vh,23px); }
  .pcard-fig { justify-content: center; }
}
@media (min-width:1280px) {
  .contact2 > .contact2-main, html:lang(en) .contact2 > .contact2-main {
    padding-inline-start: clamp(49px,3.4vw,64px);
  }
}
.honor-line .line-t { display: block; white-space: normal; overflow: visible; }
.honor-line .line-s { display: block; }
.honor-line .date { justify-self: end; white-space: nowrap; }

.series { position: relative; padding-bottom: 42px; }
.series-stepper {
  position: absolute; bottom: 5px; inset-inline: 0;
  display: flex; justify-content: center; gap: 6px;
}
.series-stepper[hidden] { display: none; }
.series-stepper button {
  display: grid; place-items: center; width: 31px; height: 31px;
  border-radius: 50%; color: var(--blue); background: var(--blue-soft);
}
.series-stepper button:disabled { opacity: .36; cursor: default; }
.series-stepper svg { width: 15px; height: 15px; transform: rotate(90deg); }

@media (min-width:701px) {
  html:lang(en) .side [data-section="projects"] {
    white-space: nowrap; font-size: 13.5px; padding-inline-end: 3px;
  }
}

/* Give the bilingual labels a full row beneath the text and photograph on tablets. */
@media (min-width:701px) and (max-width:1350px) {
  .ab3 { grid-template-columns: minmax(0,7fr) minmax(0,5fr); grid-template-rows: minmax(min-content,1fr) auto; row-gap: 18px; }
  .ab3-main { display: contents; }
  .ab3-text { grid-area: 1 / 1; align-self: center; }
  .ab3-photo { grid-area: 1 / 2; min-width: 0; min-height: 0; }
  .ab3-stats { grid-area: 2 / 1 / 3 / -1; margin-top: 0; column-gap: 12px; }
}
@media (min-width:701px) and (max-width:960px) {
  .ab3-stats { grid-template-columns: 1fr; row-gap: 8px; }
  .ab3-stats .metric { display: grid; grid-template-columns: 92px 1fr; align-items: center; }
  .ab3-stats .metric p { margin: 0; }
}
