/* The website's look (cv_site.py writes this file; change it there). Mobile first. */
:root { --ink: #1d2733; --muted: #5b6673; --accent: #0b4a7d; --line: #dde3ea; --bg: #ffffff; --soft: #f4f7fa; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
       color: var(--ink); background: var(--bg); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
header { background: var(--accent); color: #fff; padding: 14px 0 0; }
header .name { color: #fff; font-size: 1.25rem; font-weight: 700; text-decoration: none; }
header .sub { display: block; font-size: .85rem; opacity: .85; margin-top: 2px; }
nav { display: flex; gap: 4px; overflow-x: auto; margin-top: 10px; -webkit-overflow-scrolling: touch; }
nav a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 6px 6px 0 0; white-space: nowrap; font-size: .95rem; }
nav a.on { background: var(--bg); color: var(--accent); font-weight: 600; }
main { padding-top: 20px; padding-bottom: 40px; }
h1 { font-size: 1.6rem; margin: .2em 0 .6em; }
h2 { font-size: 1.25rem; margin: 1.8em 0 .7em; padding-bottom: 4px; border-bottom: 2px solid var(--line); }
h3 { font-size: 1.05rem; margin: 1.2em 0 .4em; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.who { font-size: 1.3rem; margin: 0 0 .3em; }
.intro { display: grid; gap: 8px 32px; }
.intro p { margin: 0 0 2px; }
.me { width: 150px; border-radius: 10px; }
.intro .links { margin-top: 10px; }
.interests { margin: 0; padding-left: 1.2em; }
.people { display: grid; gap: 16px; grid-template-columns: 1fr; }
.person { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; background: var(--soft);
          border-radius: 10px; }
.person img { width: 96px; height: 116px; object-fit: cover; object-position: top; border-radius: 8px; }
.person h3 { margin: 0; }
.person p { margin: 4px 0; font-size: .93rem; }
.person .role { color: var(--muted); font-weight: 600; }
.person .email { font-size: .85rem; word-break: break-all; }
.papers, .projects, .courses { padding-left: 0; list-style: none; }
.papers li, .projects li, .courses li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.pid { color: var(--muted); font-size: .85rem; }
.links { display: block; font-size: .88rem; margin-top: 3px; }
.key { font-size: .88rem; color: var(--muted); }
details { border: 1px solid var(--line); border-radius: 8px; margin: 8px 0; padding: 4px 12px; }
summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.themes { padding-left: 1.1em; }
.themes span { color: var(--muted); }
.ptitle { font-weight: 600; margin: 0 0 2px; }
.projects p { margin: 2px 0; }
.projects .role { color: var(--muted); font-size: .9rem; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; padding: 16px 0 28px; }
@media (min-width: 720px) {
  .intro { grid-template-columns: auto 1.2fr 1fr; }
  .me { width: 180px; }
  .people { grid-template-columns: 1fr 1fr; }
  .person { grid-template-columns: 120px 1fr; }
  .person img { width: 120px; height: 145px; }
  header .sub { display: inline; margin-left: 10px; }
}
