/* Shared base for all round-2 options: high contrast, 17px body, familiar Helvetica/Arial. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fff;
}
a { color: var(--link, #1d4f91); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
p { margin: 0 0 0.9em; }
ul { padding-left: 1.25em; margin: 0 0 1em; }
li p { margin: 0 0 0.35em; }
svg { width: 18px; height: 18px; flex: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.note { color: #444; font-size: 15px; margin: 0 0 1em; }
.foot { color: #666; font-size: 14px; padding: 36px 0 40px; }

/* publications */
ul.pubs { list-style: none; padding: 0; margin: 0 0 1.4em; }
.pub { padding: 14px 0; border-top: 1px solid #e3e3e3; }
.pub:first-child { border-top: none; }
.pub-title { display: block; font-weight: 700; color: #111; font-size: 17.5px; line-height: 1.4; }
.pub { scroll-margin-top: 72px; }
.pub:target { background: #faf3f4; box-shadow: -10px 0 0 #faf3f4, 10px 0 0 #faf3f4; }
.pub-authors { margin-top: 3px; color: #222; }
.pub-authors i { color: #222; }
.pub-venue { color: #4a4a4a; font-size: 15.5px; }
.pub-note { color: #4a4a4a; font-size: 15px; }
.pub-chips { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  border: 1px solid #c9c9c9; color: #333; border-radius: 4px; padding: 1px 8px;
}
.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pill {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .03em;
  color: #fff; background: var(--accent); border-radius: 3px; padding: 1px 7px; margin-bottom: 5px;
  white-space: nowrap;
}

/* filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 4px 0 18px; }
.fgroup { display: flex; flex-wrap: wrap; gap: 6px; }
.fbtn {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  background: #fff; color: #333; border: 1px solid #c4c4c4; border-radius: 999px; padding: 3px 13px;
}
.fbtn:hover { border-color: var(--accent); color: var(--accent); }
.fbtn.on { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
.fcount { color: #555; font-size: 14px; }

/* research-subpage prose */
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
#Publications { scroll-margin-top: 70px; }

/* D: crimson banner. Keeps the current red as the identity color, but as a header band. */
:root { --accent: #c8102e; --link: #b00d28; }
.band { background: #a50e26; color: #fff; }
.band-in { display: flex; align-items: center; gap: 34px; padding-top: 40px; padding-bottom: 40px; }
.band .photo { width: 168px; height: 200px; object-fit: cover; border: 4px solid #fff; border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.band h1 { margin: 0 0 4px; font-size: 46px; line-height: 1.1; letter-spacing: -.01em; }
.band .role { margin: 0; font-size: 21px; font-weight: 600; }
.band .aff { margin: 4px 0 18px; font-size: 17px; color: #fde8eb; }
.band .links { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; font-size: 15px;
  border: 1.5px solid rgba(255,255,255,.75); border-radius: 5px; padding: 6px 14px;
}
.btn:hover { background: #fff; color: #a50e26; text-decoration: none; }
.band.slim .band-in { padding-top: 14px; padding-bottom: 14px; gap: 18px; }
.band.slim .home { color: #fff; font-size: 26px; font-weight: 700; }
.band.slim .role { font-size: 15px; font-weight: 400; color: #fde8eb; }

.topnav { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid #ddd; }
.topnav .wrap { display: flex; gap: 6px; }
.topnav a, .nav-head { display: block; color: #1a1a1a; font-weight: 600; padding: 13px 14px 11px; border-bottom: 3px solid transparent; cursor: default; }
.topnav a { cursor: pointer; }
.topnav a:hover { text-decoration: none; color: #a50e26; }
.topnav a.current, .nav-drop.current > .nav-head { border-bottom-color: #c8102e; color: #a50e26; }
.nav-drop { position: relative; }
.nav-drop .drop { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #ddd; box-shadow: 0 8px 20px rgba(0,0,0,.08); min-width: 240px; }
button.nav-head { background: none; border: none; border-bottom: 3px solid transparent; font-family: inherit; font-size: inherit; line-height: inherit; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-appearance: none; appearance: none; border-radius: 0; }
.nav-head .caret { font-size: .7em; margin-left: 2px; color: #888; }
.nav-drop.open .drop { display: block; }
@media (hover: hover) { .nav-drop:hover .drop { display: block; } }
.nav-drop .drop a { border: none; padding: 9px 16px; font-weight: 500; }
.nav-drop .drop a.current { color: #a50e26; font-weight: 700; }

main h2 { color: #c8102e; font-size: 25px; margin: 40px 0 14px; padding-bottom: 6px; border-bottom: 2px solid #c8102e; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; }
.main ul li::marker { color: #c8102e; }
.side { padding-top: 40px; }
.box { border: 1px solid #ddd; border-top: 4px solid #c8102e; padding: 16px 18px 6px; margin-bottom: 22px; background: #fff; }
.box h3 { margin: 0 0 10px; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; color: #333; }
.recent { list-style: none; padding: 0; margin: 0; }
.recent li { margin-bottom: 12px; line-height: 1.4; }
.recent a { color: #111; font-weight: 600; font-size: 15.5px; display: block; }
.recent .pill { margin-bottom: 3px; }
.area { display: block; margin-bottom: 12px; color: #111; }
.area b { display: block; color: #b00d28; }
.area span { font-size: 14.5px; color: #444; line-height: 1.45; display: block; }
.box.open ul { padding-left: 1.1em; font-size: 15.5px; }

.year-group { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; border-top: 2px solid #1a1a1a; padding-top: 6px; }
.year { margin: 8px 0 0; font-size: 30px; color: #c8102e; position: sticky; top: 56px; align-self: start; }
.ptitle { font-size: 34px; line-height: 1.2; margin: 36px 0 10px; }
.prose { max-width: 820px; }
.prose h3 { font-size: 20px; }

@media (max-width: 860px) {
  .band-in { flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 26px; padding-bottom: 26px; }
  .band .photo { width: 120px; height: 144px; }
  .band h1 { font-size: 36px; }
  .cols { grid-template-columns: 1fr; gap: 0; }
  .side { padding-top: 10px; }
  .topnav .wrap { overflow-x: auto; gap: 0; padding: 0 14px; }
  .topnav a, .nav-head { padding: 12px 10px 10px; font-size: 15.5px; }
  .nav-drop { position: static; }
  .topnav button.nav-head { font-size: 15.5px; }
  .nav-drop .drop { left: 0; right: 0; min-width: 0; border-left: none; border-right: none; }
  .nav-drop .drop a { padding: 13px 24px; font-size: 16px; border-bottom: 1px solid #eee; }
  .year-group { grid-template-columns: 1fr; gap: 0; }
  .year { position: static; }
  .band.slim .role { display: none; }
}

/* Research interests: one full-width block under About + sidebar, grouped by research page */
.interests h2 { margin-top: 18px; }
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.area-card { border: 1px solid #ddd; border-top: 4px solid #c8102e; padding: 16px 18px 14px; display: flex; flex-direction: column; }
.area-card .area-head { color: #b00d28; font-weight: 700; font-size: 19px; margin-bottom: 8px; }
.area-card ul { padding-left: 1.1em; margin: 0 0 10px; flex: 1; }
.area-card li { margin-bottom: 6px; line-height: 1.45; }
.area-card li::marker { color: #c8102e; }
.area-card .more { font-size: 14.5px; font-weight: 600; }
@media (max-width: 860px) { .area-grid { grid-template-columns: 1fr; gap: 14px; } }
.callout { margin-top: 18px; background: #fbf1f2; border-left: 4px solid #c8102e; padding: 12px 16px; font-size: 16px; line-height: 1.5; }
.callout b { color: #a50e26; }

/* Color balance (2026-11-14 15:20, Jun: "too much red"). Red stays only on the banner
   (plus the active-tab underline and button hover that tie back to it). Everything
   below the banner moves to a deep navy-slate accent with neutral grays. */
:root { --accent: #1f4e79; --link: #1f5f99; --ink: #1c2b3a; --slate: #3d5a78; --red: #a50e26; }
main h2 { color: var(--ink); border-bottom: 1px solid #cfd6de; }
.main ul li::marker, .area-card li::marker { color: #8a9bb0; }
.box { border-top: 3px solid var(--slate); }
.area-card { border-top: 3px solid var(--slate); background: #fafbfc; }
.area-card .area-head { color: var(--ink); }
.area b { color: var(--ink); }
.year { color: var(--slate); }
.year-group { border-top: 2px solid #c5ced8; }
.pill { background: #e6edf5; color: #1f4e79; }
.topnav a:hover { color: var(--red); }
.topnav a.current, .nav-drop.current > .nav-head { border-bottom-color: var(--red); color: #1a1a1a; }
.nav-drop .drop a.current { color: var(--ink); }
.callout { background: #f1f5f9; border-left-color: var(--slate); }
.callout b { color: var(--ink); }

/* Adopted palette: charcoal (2026-11-14 15:30, Jun picked 炭灰配红). Copied from css/palettes/charcoal.css. */
:root { --accent: #b0172f; --link: #2a557f; --ink: #16191e; --slate: #b0172f; }
.band { background: #262a31; }
.band .aff, .band.slim .role { color: #c8cdd5; }
.btn:hover { color: #262a31; }
.topnav a:hover { color: #b0172f; }
.topnav a.current, .nav-drop.current > .nav-head { border-bottom-color: #b0172f; color: #1a1a1a; }
main h2 { color: #16191e; }
.box, .area-card { border-top-color: #b0172f; }
.area-card .area-head, .area b, .callout b, .nav-drop .drop a.current { color: #16191e; }
.year { color: #b0172f; }
.pill { background: #f7e6e9; color: #8c1226; }
.callout { background: #f6f6f7; border-left-color: #b0172f; }
.main ul li::marker, .area-card li::marker { color: #a7adb6; }

