/* Option G, plain academic. One stylesheet for all pages. */
:root { --ink:#222; --head:#002b5c; --muted:#555; --accent:#1f4e8c; --rule:#ddd; --bg:#fff; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:17px/1.6 Georgia, "Times New Roman", serif; }
a { color:var(--accent); text-decoration:none; }
a:hover { text-decoration:underline; }

.wrap { max-width:800px; margin:0 auto; padding:0 22px; }
header { border-bottom:1px solid var(--rule); }
header .wrap { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; padding-top:22px; padding-bottom:12px; }
.brand { font-size:1.625rem; font-weight:bold; color:var(--head); }   /* navy of the earlier site's name and headings */
.brand:hover { text-decoration:none; }
header nav a { margin-left:22px; }
header nav a[aria-current="page"] { font-weight:600; }

.home { padding:30px 0 40px; }
.home img { float:right; width:225px; height:auto; margin:4px 0 16px 30px; }
.home p { margin:0 0 14px; }
.home h2 { clear:both; }
.facts { margin:0 0 14px; padding:0; list-style:none; }
.facts li { margin:0 0 3px; }
.facts .k { color:var(--muted); }

.page { padding:6px 0 40px; }
h1 { position:absolute; left:-9999px; }            /* page name for search engines and screen readers; the menu shows it */
h2 { font-size:1.35rem; font-weight:normal; color:var(--ink); margin:44px 0 14px; padding-bottom:4px; border-bottom:1px solid var(--rule); }
.paper { margin:0 0 26px; }
.pt { font-weight:bold; }
.by { font-size:.92rem; color:var(--muted); }   /* coauthors and publication details, set back from the title */
.st { font-style:italic; color:var(--muted); font-weight:normal; }
details { margin-top:2px; }
summary { cursor:pointer; color:var(--accent); list-style:none; display:inline; }
summary::-webkit-details-marker { display:none; }
summary::before { content:"["; color:var(--ink); }
summary::after { content:"]"; color:var(--ink); }
details p { margin:6px 0 0; font-size:.95rem; }
.sep { color:var(--muted); margin:0 4px; }

.tl { margin:0; padding-left:20px; }
.tl li { margin:0 0 4px; }
.tl .n { color:var(--muted); }

.contact p { margin:0 0 4px; }
.refs { display:flex; flex-wrap:wrap; gap:6px 28px; }
.refs div { min-width:200px; flex:1; }
.refs p { margin:0; }

/* CV page: the PDF shown inside the site, with a plain link above it */
.wrap.cv { max-width:920px; padding-top:18px; padding-bottom:30px; }
.cvlink { margin:0 0 12px; }
.cvframe { display:block; width:100%; height:calc(100vh - 190px); min-height:560px; border:1px solid var(--rule); }
@media (hover:none) and (pointer:coarse) { .cvframe { display:none; } }   /* touch devices open the PDF itself */
.no-inline-pdf .cvframe { display:none; }

footer { border-top:1px solid var(--rule); margin-top:10px; }
footer .wrap { padding-top:12px; padding-bottom:28px; color:var(--muted); font-size:.9rem; }

@media (max-width:600px) {
  header nav { width:100%; margin-top:4px; }   /* menu drops under the name on narrow screens */
  header nav a { margin:0 18px 0 0; }
  .home img { width:138px; margin-left:16px; }
}
