/* No imports, no web fonts. The only script brings the banner to life; without
   it the banner is a still image. Old browsers skip the few lines they do
   not know and still get a readable page. */

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #14233c;
    font-family: "Palatino Linotype", Palatino, "Book Antiqua",
        "URW Palladio L", P052, Georgia, serif;
    font-size: 118%;
    line-height: 1.6;
}

.map { display: block; width: 100%; height: auto; border: 0; }
.in  { max-width: 34em; margin: 0 auto; padding: 1.4em 1.3em 0 1.3em; }

h1, h2, h3, h4 { font-weight: normal; line-height: 1.2; margin: 0; }
h1 { font-size: 3.4em; margin: 0 0 0.15em 0; }
h1 .dot { color: #1d7f93; }
h2 { font-size: 2.1em; margin: 0 0 0.5em 0; }
h3 { font-size: 1.25em; }
h4 { font-size: 1.08em; font-weight: bold; }
.group { color: #17708a; margin: 1.6em 0 0.8em 0; }

/* chapters: the bars own all the space around them */
hr {
    height: 1px;
    margin: 2.6em 0;
    border: 0;
    background: #9fc3c4;
    color: #9fc3c4;
}

p { margin: 0 0 1em 0; }
.lead { font-size: 1.2em; line-height: 1.5; }
.tight { margin: 0; }
.small, .when { font-size: 0.88em; color: #4c5c73; }

ul { margin: 0.35em 0 0 0; padding: 0 0 0 1.1em; }
li { margin: 0 0 0.2em 0; }
li::marker { color: #1d7f93; }

a:link    { color: #0e6480; }
a:visited { color: #3a4f86; }
a:hover, a:focus { background: #ffe14d; color: #14233c; }
.nav a { margin: 0 0.5em; }
h1, .nav { text-align: center; }

.row { position: relative; margin: 0 0 1.1em 0; }
.row h3, .row h4 { margin: 0 0 0.2em 0; }
.row p { margin: 0 0 0.25em 0; }
.when { margin: 0; }
.venue { color: #c22a1d; }

/* papers and jobs fold down to their headings; browsers without <details>
   simply show everything */
summary { display: block; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
details[open] summary { margin: 0 0 0.55em 0; }
.more { margin: 0 0 0 0.2em; padding: 0 0 0 1.2em; border-left: 2px solid #9fc3c4; }
.row .more p:last-child { margin: 0; }
.org { display: block; }
/* dates and venues run on after the title, until there is a margin to hang
   them in */
.row .when { font-weight: normal; white-space: nowrap; }
.row h3 .when { font-size: 0.704em; }
.row h4 .when { font-size: 0.815em; }
.row .when br { display: none; }
.row .when b::before { content: "\00b7\00a0"; }
summary h3::after, summary h4::after {
    content: "\00a0+"; color: #1d7f93; font-weight: normal;
}
details[open] summary h3::after, details[open] summary h4::after {
    content: "\00a0\2212";
}
summary:hover h3, summary:hover h4 { color: #17708a; }
/* hover shape is drawn behind the text, so nothing moves */
summary { position: relative; z-index: 0; width: fit-content; }
summary:hover::before {
    content: ""; position: absolute; z-index: -1;
    top: -0.5em; right: -0.69em; bottom: -0.2em; left: -0.69em;
    background: #e3f1ee;
    border-radius: 0.75em;
}
summary:has(.org):hover::before { bottom: -0.04em; }
@supports (corner-shape: squircle) {
    summary:hover::before { border-radius: 1.1em; corner-shape: squircle; }
}

blockquote { margin: 0 0 1.6em 0; font-size: 1.2em; font-style: italic; }

pre, code { font-family: "Courier New", Courier, monospace; }
pre {
    margin: 0 0 1.3em 0;
    padding: 1em 1.2em;
    background: #eef6f4;
    border-left: 4px solid #46b5a4;
    font-size: 0.76em;
    line-height: 1.5;
    overflow: auto;
}

.foot {
    margin: 0;
    padding: 0 1.3em 2.9em 1.3em;
    color: #4c5c73;
    font-size: 0.88em;
    font-style: italic;
    text-align: center;
}

/* the figure stays put and the text slides over it */
@media screen {
    .top  { position: sticky; top: 0; z-index: 0; }
    .page { position: relative; z-index: 1; background: #ffffff; }
}

/* crop the figure around the query rather than shrinking it */
@media screen and (min-width: 1px) {
    .map { height: 380px; object-fit: cover; object-position: 50% 50%; }
}
@media screen and (max-width: 40em) {
    body { font-size: 106%; }
    h1 { font-size: 2.7em; }
    .map { height: 250px; }
}

/* with enough room, dates and venues hang in the left margin; the text
   column itself stays in the middle */
@media screen and (min-width: 75em) {
    .when { position: absolute; left: -14.8em; top: 0.25em;
            width: 13.4em; text-align: right; }
    .venue { top: 0.4em; }
    .gap { display: none; }
    .row .when { line-height: 1.6; white-space: normal; }
    .row .when br { display: inline; }
    .row .when b::before { content: none; }
}

@media print {
    .map, .nav { display: none; }
    body { font-size: 11pt; }
    /* paper cannot be clicked: print the folded parts too */
    details::details-content { content-visibility: visible; }
    summary h3::after, details[open] summary h3::after,
    summary h4::after, details[open] summary h4::after { content: none; }
}
