:root {
  --oxford: #002147;
  --ink: #182330;
  --muted: #5b6672;
  --paper: #ffffff;
  --soft: #f5f7f9;
  --line: #d8dee5;
  --link: #165a8a;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.62;
}
a { color: var(--link); }
img { max-width: 100%; height: auto; }
.shell { max-width: var(--max); width: calc(100% - 40px); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: #fff; color: #000; padding: 10px 14px; z-index: 1000; }
.skip-link:focus { left: 8px; }

/* Robust shared banner/navigation.
   Uses the same conservative div-based system as publicationlist.htm.
   It does not depend on .shell, grid, flex, images or fixed heights. */
#header {
  background: #002147;
  color: #fff;
  padding: 24px 20px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.22);
}
#header-inner, #nav-inner {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}
#site-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  line-height: 1.15;
  font-weight: normal;
}
#site-title a { color: #fff; text-decoration: none; }
#site-subtitle { margin-top: 5px; color: #e3ebf3; font-size: 14px; }
#nav { background: #fff; border-bottom: 1px solid #d8dee5; padding: 0 20px; }
#nav-inner { padding: 10px 0; white-space: normal; }
#nav a {
  display: inline-block;
  margin: 0 18px 0 0;
  padding: 4px 0;
  color: #002147;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
}
#nav a:hover, #nav a:focus, #nav a.current { text-decoration: underline; }

.hero { background: linear-gradient(180deg,#eef3f7 0,#fff 100%); padding: 58px 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: 13px; color: #486a82; }
h1,h2,h3 { font-family: Georgia,"Times New Roman",serif; line-height: 1.18; color: var(--oxford); }
h1 { font-size: clamp(38px,6vw,66px); margin: .15em 0 .3em; }
h2 { font-size: clamp(27px,4vw,38px); margin: 1.35em 0 .5em; }
h3 { font-size: 23px; margin: 1.25em 0 .4em; }
.lead { font-size: 20px; line-height: 1.55; color: #34404c; max-width: 68ch; }
.hero-image { width: 100%; display: block; border-radius: 5px; }
.section { padding: 54px 0; }
.page-head { padding: 46px 0 30px; background: #f7f9fb; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(36px,5vw,56px); margin: .1em 0; }
.content { max-width: 880px; }
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.card { border: 1px solid var(--line); padding: 25px; background: #fff; }
.card h3 { margin-top: 0; }
.card a,.text-link { font-weight: 700; color: var(--oxford); }
.topic-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; padding: 0; list-style: none; }
.topic-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.note { margin-top: 30px; padding: 18px 20px; border-left: 4px solid #587b91; background: var(--soft); }

/* Publication layout depends only on ordinary <ol> and <li> elements. */
.publication-list, .book-chapters { padding-left: 2em; }
.publication-list { margin-top: 0; }
.publication-list li { margin: 0; padding: .7em 0 .7em .25em; border-bottom: 1px solid #e4e8ec; }
.publication-list li::marker { font-weight: 700; color: #53677a; }
.publication-list a, .book-chapters a { overflow-wrap: anywhere; }
.book-chapters li { margin: .8em 0; padding-left: .25em; }

.gallery-content { max-width: 940px; }
.gallery-content img { max-width: 100%; height: auto; margin: 20px auto; display: block; }
.gallery-content table { max-width: 100% !important; width: 100% !important; height: auto !important; border-collapse: collapse; }
.gallery-content td { width: auto !important; height: auto !important; vertical-align: top; padding: 8px; }
.gallery-content font { font-family: inherit !important; }
.gallery-content p { margin: 0 0 1.15em; }
.gallery-content p:first-child { font-family: Georgia,"Times New Roman",serif; color: var(--oxford); font-weight: 700; font-size: 30px; }
.gallery-content p.tear-summary { font-family: inherit !important; color: inherit !important; font-weight: 400 !important; font-size: inherit !important; line-height: inherit !important; }
.collaborators { padding-left: 1.3em; }
.collaborators > li { margin: .65em 0; }
.site-footer { margin-top: 56px; background: #111d2a; color: #e7edf4; padding: 36px 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr auto; gap: 30px; align-items: start; }
.contact-image { width: 150px; background: #fff; padding: 5px; }

@media (max-width: 800px) {
  .shell { width: calc(100% - 28px); }
  #header { padding: 20px 14px 17px; }
  #header-inner, #nav-inner { width: 100%; max-width: none; }
  #site-title { font-size: 32px; }
  #nav { padding: 0 14px; }
  #nav a { margin-right: 14px; font-size: 14px; }
  .hero-grid, .cards, .topic-list, .footer-grid { grid-template-columns: 1fr; }
  .page-head { padding: 36px 0 24px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  #site-title { font-size: 29px; }
  #site-subtitle { font-size: 12px; }
  #nav a { margin-right: 12px; padding: 6px 0; }
  .hero { padding: 38px 0; }
  .lead { font-size: 18px; }
  .section { padding: 40px 0; }
}
