/* Visual measurements from Peng Xia's public academic homepage.
   Local implementation for Wei-Chieh Huang, with accessible navigation. */
:root {
  --accent: #4b9cd3;
  --link: #2f78b5;
  --navy: #13294b;
  --text: #2b2f36;
  --muted: #6b7480;
  --faint: #9aa3ad;
  --rule: #e3e8ee;
  --tint: #edf5fb;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 15.5px/1.65 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
p { margin: 0 0 12px; }
.page { width: 100%; max-width: 1000px; padding: 64px 24px 48px; margin: auto; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 44px; align-items: start; }
.name { margin: 0 0 18px; font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -.4px; color: var(--navy); }
.name .zh { margin-left: 8px; font-size: 20px; font-weight: 400; color: var(--muted); letter-spacing: 1px; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.logo { width: auto; height: 15px; margin-right: 3px; vertical-align: -2px; border-radius: 3px; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.contact a { display: inline-flex; }
.contact a:hover { text-decoration: none; }
.contact img { height: 28px; width: auto; border-radius: 6px; opacity: .85; transition: opacity .2s ease, transform .2s ease; }
.contact a:hover img { opacity: 1; transform: translateY(-2px); }
.contact-dblp { font-size: 28px; line-height: 28px; opacity: .85; }
.email { margin-top: 6px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.email a { color: inherit; }
.photo { margin: 6px 0 0; }
.photo > img { display: block; width: 100%; height: auto; border-radius: 6px; }
.photo > figcaption { margin-top: 8px; font-size: 12px; line-height: 1.4; text-align: center; color: var(--faint); }
section { margin-top: 44px; }
h2 { position: relative; margin: 0 0 16px; padding-bottom: 8px; font-size: 19px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--rule); }
h2::after { position: absolute; content: ""; left: 0; bottom: -1px; width: 36px; height: 2px; background: var(--accent); }
h2 .aside { margin-left: 10px; font-size: 13.5px; font-weight: 400; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.row { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 16px; }
.date { padding-top: 1px; color: var(--faint); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.papers { gap: 20px; }
.paper .title { color: var(--navy); font-weight: 600; }
.paper .title:hover { color: var(--link); }
.paper .authors { margin-top: 2px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.paper .authors b, .paper .authors strong { font-weight: 600; color: var(--navy); }
.paper .meta { margin-top: 3px; font-size: 14px; }
.venue { color: var(--text); font-style: italic; }
.badge { display: inline-block; margin-left: 4px; padding: 0 7px; background: var(--tint); border-radius: 4px; color: var(--navy); font-size: 12.5px; font-weight: 500; line-height: 1.7; font-style: normal; }
.res { margin-left: 6px; color: var(--faint); }
@font-face { font-family: "Profile Brands"; src: url("../fonts/fa-brands-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
.brand-icon { font-family: "Profile Brands"; font-weight: 400; font-style: normal; }
.stars { display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; margin-left: 4px; border: 1px solid var(--rule); border-radius: 4px; font-size: 12px; line-height: 1.6; color: var(--navy); vertical-align: 1px; transition: border-color .2s ease, background .2s ease; }
.stars:hover { text-decoration: none; background: var(--tint); border-color: var(--accent); color: var(--navy); }
.stars .brand-icon { width: 12px; font-size: 12px; }
.stars .star { display: none; color: #e3a008; font-size: 11px; }
.stars.loaded .star { display: inline; }
.stars .count { font-weight: 500; font-variant-numeric: tabular-nums; }
.more { margin-top: 10px; }
.more > summary { width: fit-content; list-style: none; cursor: pointer; color: var(--link); font-size: 14px; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: "+ "; }
.more[open] > summary::before { content: "− "; }
.more[open] > summary { margin-bottom: 10px; }
section > ul { margin: 0; padding-left: 18px; }
section li { margin-bottom: 6px; }
section li::marker { color: var(--accent); }
section li > ul { margin-top: 6px; padding-left: 18px; }
.research-papers { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
footer { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--rule); text-align: center; font-size: 12.5px; color: var(--faint); }
footer a { color: inherit; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 8px 12px; background: #fff; z-index: 1; }
.skip-link:focus { top: 8px; }
@media (max-width: 640px) {
  body { font-size: 15px; }
  .page { padding: 36px 16px 32px; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .photo { order: -1; width: 150px; }
  .name { font-size: 25px; }
  .row { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
  .date { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .contact img, .stars { transition: none; } }
@media print { .page { max-width: none; padding: 0; } .skip-link, footer a { display: none; } .paper { break-inside: avoid; } }
