/* Content-specific adaptations; profile typography and geometry live in template.css. */
.profile-shell { min-height: 100svh; padding-top: 10px; }
.cv-links { display: flex; justify-content: flex-start; flex-wrap: wrap; width: 100%; margin-top: 26px; gap: 10px 20px; color: var(--muted); font-size: 15px; }
.cv-links a { display: inline-flex; align-items: center; gap: 7px; }
.cv-links a:hover, .supplementary-content a:hover { color: var(--accent); }
.bio-placeholder a, .supplementary-content a, .description-text a, .news-item a { color: var(--accent); }
.bio-placeholder a:hover, .description-text a:hover, .news-item a:hover { text-decoration: underline; text-underline-offset: 3px; }
.publication-group-title { margin: 8px 4px 16px; font: 600 16px/1.5 var(--sans); color: var(--muted); }
.publication-group + .publication-group { margin-top: 28px; }
.publication-description { margin: 0 0 16px; font-size: 16px; line-height: 1.7; color: var(--profile-text); }
.publication-authors a { color: inherit; }
.publication-authors a:hover { color: var(--accent); }
.all-publications-link { display: inline-block; margin-top: 16px; color: var(--accent); font-size: 15px; }
.supplementary-content ul { margin: 0; padding-left: 22px; }
.supplementary-content li + li { margin-top: 8px; }
.supplementary-content > ul + ul { margin-top: 14px; }
.institution-logo img { width: 100%; height: 100%; object-fit: contain; }
.nav-brand .site-logo { object-fit: contain; border-radius: 0; }
.fa-linkedin:before { content: "\f08c"; }
.brand-bilibili { --brand-symbol: url(/_common/icons/bilibili.svg); }

/* All News entries remain in the accessible scroll region, without pagination. */
#news-panel {
  height: clamp(260px, 38svh, 380px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  scrollbar-gutter: stable;
}
#news-panel .news-item { display: grid; }
#news-panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Only organization-logo tiles lose their frame; service/award icons keep theirs. */
.education-row .institution-logo, .experience-entry .institution-logo {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
  box-shadow: none;
}
.education-row .institution-logo {
  flex: 0 0 80px;
  width: 80px;
  height: calc(3 * 16px * 1.65);
  align-self: center;
}
.experience-entry .institution-logo {
  flex: 0 0 136px;
  width: 136px;
  height: calc(var(--entry-title-size, 22px) * 1.3 + 16px * 1.6 + 7px);
  align-self: flex-start;
}
.education-row .institution-logo img, .experience-entry .institution-logo img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
  object-fit: contain;
}
[data-theme=dark] .experience-entry .institution-logo img {
  filter: drop-shadow(0 0 .6px rgb(230 232 223 / 80%));
}
[data-theme=dark] #knowinai .institution-logo img,
[data-theme=dark] #beingbeyond .institution-logo img {
  filter: brightness(0) invert(.88);
}
#visitors { scroll-margin-top: 90px; }
.education-gpa { white-space: nowrap; }
.teaching-list { margin: 8px 0 0; padding-left: 20px; }
.teaching-list li + li { margin-top: 9px; }
.teaching-course { font-weight: 600; }
.teaching-term { white-space: nowrap; }
.friends-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.friend-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--accent);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.friend-link:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 8px 24px var(--profile-glow); }
.friend-name { font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 4px; }
.friend-link svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.friend-link .friend-arrow { margin-left: auto; width: 18px; height: 18px; }
.site-footer a:hover { color: var(--accent); }
html:not(.js) #publication-list { height: auto; overflow: visible; }
html:not(.js) .news-panel .news-item { display: grid; }
@media (max-width: 600px) {
  .publication-description { font-size: 15px; }
  .friends-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 759px) {
  .education-row { grid-template-columns: 80px minmax(0, 1fr); }
  .experience-entry { grid-template-columns: 90px minmax(0, 1fr); }
  .experience-entry .institution-logo { flex-basis: 90px; width: 90px; }
}
@media print {
  .profile-nav, .theme-toggle, .nav-toggle, .news-toggle, #publication-filters { display: none !important; }
  #publication-list { height: auto; overflow: visible; }
  .publication-card[hidden], .publication-group[hidden] { display: block !important; }
  .news-panel .news-item { display: grid !important; }
  #news-panel { height: auto; overflow: visible; }
  .description-block .description-text { max-height: none !important; }
}
