/* Self-hosted Latin Modern (lmroman10). Latin Modern Roman is the LaTeX
   default body face; woff2 subsets ship alongside this stylesheet, with the
   GUST Font License in fonts/. The unicode-range is each file's character map
   (read with fontTools, private-use area left out), so that
   _src/tools/checks.py --fonts can flag a character the fonts lack. */
@font-face { font-family: "Latin Modern Roman"; src: url("fonts/lmroman10-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-0137, U+0139-0148, U+014A-0165, U+0168-017F, U+018E, U+0192, U+01A0-01A1, U+01AF-01B0, U+01CD-01D4, U+01D7-01DD, U+01E6-01E7, U+01EA-01EB, U+01F0, U+01F4-01F5, U+01FA-0201, U+0204-0205, U+0208-0209, U+020C-020D, U+0210-0211, U+0214-0215, U+0218-021B, U+0237, U+0258-0259, U+02BE-02BF, U+02C6-02C7, U+02D8-02DD, U+0300-0304, U+0306-030C, U+030F, U+0311, U+0323, U+0326, U+032E-0332, U+0391-03A1, U+03A3-03A9, U+0E3F, U+1E0C-1E0F, U+1E24-1E27, U+1E2A-1E2B, U+1E2E-1E2F, U+1E36-1E39, U+1E42-1E47, U+1E58-1E5D, U+1E62-1E63, U+1E6C-1E6F, U+1E80-1E85, U+1E92-1E93, U+1E97, U+1EA0-1EF9, U+2010-2011, U+2013-2014, U+2016, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030-2031, U+2039-203B, U+203D, U+203F-2040, U+2044-2046, U+2052, U+2054, U+20A1, U+20A4, U+20A6, U+20A9, U+20AB-20AC, U+20B1, U+2103, U+2116-2117, U+211E, U+2120, U+2122, U+2126-2127, U+212E, U+2190-2193, U+2212, U+2215, U+2217, U+221A, U+221E, U+2222, U+2300, U+2329-232A, U+2422-2423, U+25E6, U+266A, U+26AD-26AE, U+27E6-27E7, U+FB00-FB04; }
@font-face { font-family: "Latin Modern Roman"; src: url("fonts/lmroman10-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-0137, U+0139-0148, U+014A-0165, U+0168-017F, U+018E, U+0192, U+01A0-01A1, U+01AF-01B0, U+01CD-01D4, U+01D7-01DD, U+01E6-01E7, U+01EA-01EB, U+01F0, U+01F4-01F5, U+01FA-0201, U+0204-0205, U+0208-0209, U+020C-020D, U+0210-0211, U+0214-0215, U+0218-021B, U+0237, U+0258-0259, U+02BE-02BF, U+02C6-02C7, U+02D8-02DD, U+0300-0304, U+0306-030C, U+030F, U+0311, U+0323, U+0326, U+032E-0332, U+0391-03A1, U+03A3-03A9, U+0E3F, U+1E0C-1E0F, U+1E24-1E27, U+1E2A-1E2B, U+1E2E-1E2F, U+1E36-1E39, U+1E42-1E47, U+1E58-1E5D, U+1E62-1E63, U+1E6C-1E6F, U+1E80-1E85, U+1E92-1E93, U+1E97, U+1EA0-1EF9, U+2010-2011, U+2013-2014, U+2016, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030-2031, U+2039-203B, U+203D, U+203F-2040, U+2044-2046, U+2052, U+2054, U+20A1, U+20A4, U+20A6, U+20A9, U+20AB-20AC, U+20B1, U+2103, U+2116-2117, U+211E, U+2120, U+2122, U+2126-2127, U+212E, U+2190-2193, U+2212, U+2215, U+2217, U+221A, U+221E, U+2222, U+2300, U+2329-232A, U+2422-2423, U+25E6, U+266A, U+26AD-26AE, U+27E6-27E7, U+FB00-FB04; }
@font-face { font-family: "Latin Modern Roman"; src: url("fonts/lmroman10-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-0137, U+0139-0148, U+014A-0165, U+0168-017F, U+018E, U+0192, U+01A0-01A1, U+01AF-01B0, U+01CD-01D4, U+01D7-01DD, U+01E6-01E7, U+01EA-01EB, U+01F0, U+01F4-01F5, U+01FA-0201, U+0204-0205, U+0208-0209, U+020C-020D, U+0210-0211, U+0214-0215, U+0218-021B, U+0237, U+0258-0259, U+02BE-02BF, U+02C6-02C7, U+02D8-02DD, U+0300-0304, U+0306-030C, U+030F, U+0311, U+0323, U+0326, U+032E-0332, U+0391-03A1, U+03A3-03A9, U+0E3F, U+1E0C-1E0F, U+1E24-1E27, U+1E2A-1E2B, U+1E2E-1E2F, U+1E36-1E39, U+1E42-1E47, U+1E58-1E5D, U+1E62-1E63, U+1E6C-1E6F, U+1E80-1E85, U+1E92-1E93, U+1E97, U+1EA0-1EF9, U+2010-2011, U+2013-2014, U+2016, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030-2031, U+2039-203B, U+203D, U+203F-2040, U+2044-2046, U+2052, U+2054, U+20A1, U+20A4, U+20A6, U+20A9, U+20AB-20AC, U+20B1, U+2103, U+2116-2117, U+211E, U+2120, U+2122, U+2126-2127, U+212E, U+2190-2193, U+2212, U+2215, U+2217, U+221A, U+221E, U+2222, U+2300, U+2329-232A, U+2422-2423, U+25E6, U+266A, U+26AD-26AE, U+27E6-27E7, U+FB00-FB04; }

:root {
  --ink: #111111;
  --linkblue: #2a4b9b;   /* hyperref colorlinks */
  --muted: #444444;
  --serif: "Latin Modern Roman", "CMU Serif", "STIX Two Text", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 17px; }

body {
  font-family: var(--serif);
  color: var(--ink);
  background: #ffffff;
  line-height: 1.55;
}

::selection { background: var(--ink); color: #fff; }

.page {
  max-width: 42rem;               /* ~ \textwidth */
  margin: 0 auto;
  padding: 3.4rem 1.4rem 2.5rem;
}

a { color: var(--linkblue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--linkblue); outline-offset: 2px; }

/* restore list indentation zeroed by the reset — LaTeX-itemize feel:
   bullets clearly right of the body-text margin, item text further right */
ul { padding-left: 1.7rem; }
li { margin: 0.1rem 0; }

/* ---------- title block ---------- */

.titleblock { text-align: center; margin-bottom: 2.4rem; }

.titleblock h1 {
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 1.3rem;
}

.titleblock .author {
  font-size: 1.12rem;
  margin-bottom: 0.55rem;
}

.titleblock .author sup { font-size: 0.7em; }

.titleblock .date {
  font-style: italic;
  font-size: 0.98rem;
  color: var(--muted);
}
.titleblock .date + .date { margin-top: 0.15rem; }

/* ---------- abstract ---------- */

.abstract { margin: 0 2.4rem 2rem; }

.abstract h2 {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.abstract p {
  font-size: 0.95rem;
  text-align: justify;
  hyphens: auto;
  margin-bottom: 0.7rem;
}

.jel {
  font-size: 0.9rem;
  margin: 0 2.4rem 2.4rem;
}
.jel em { font-style: italic; }

/* ---------- contents (doubles as site nav) ---------- */

.contents { margin: 0 1.2rem 2.6rem; }

.contents h2 {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.contents ol { list-style: none; }

.contents li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.contents .leader {
  flex: 1;
  border-bottom: 1.5px dotted #9a9a9a;
  transform: translateY(-4px);
}

.contents .pageno { color: var(--ink); }

/* ---------- sections ---------- */

section.body-section { margin-bottom: 2.2rem; }

section.body-section h2 {
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

section.body-section > p {
  text-align: justify;
  hyphens: auto;
  margin-bottom: 0.9rem;
  text-indent: 1.5rem;
}
section.body-section > p.noindent { text-indent: 0; }

.refs {
  font-size: 0.97rem;
  padding-left: 1.6rem;
  text-indent: -1.6rem;      /* hanging indent */
  margin-bottom: 0.85rem;
  text-align: justify;
  hyphens: auto;
}

.refs .jrnl { font-style: italic; }

/* ---------- footnote + folio ---------- */

.footnote {
  margin-top: 3rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--ink);
}

.footnote p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.folio {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 2.6rem;
  color: var(--ink);
}

@media (max-width: 560px) {
  .abstract, .jel { margin-left: 0.6rem; margin-right: 0.6rem; }
  .contents { margin: 0 0 2.4rem; }
}

/* ---------- continuation-page components (research.html, teaching.html) ---------- */

.runhead { display: flex; justify-content: space-between; align-items: baseline; font-variant: small-caps; letter-spacing: 0.12em; font-size: 0.95rem; border-bottom: 1px solid var(--ink); padding: 1.1rem 0 0.4rem; margin-bottom: 2rem; }
.runhead nav a { color: var(--ink); text-decoration: none; margin-left: 1.1rem; }
.runhead nav a:hover, .runhead nav a[aria-current] { color: var(--linkblue); }
@media (max-width: 560px) {
  .runhead { flex-direction: column; gap: 0.3rem; }
  .runhead nav a { margin: 0 1.1rem 0 0; }
}
.btable { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: 0.97rem; }
.btable th { border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--ink); text-align: left; font-weight: 600; padding: 0.45rem 0.8rem 0.45rem 0; }
.btable td { padding: 0.45rem 0.8rem 0.45rem 0; vertical-align: top; }
.btable tr:last-child td { border-bottom: 1.5px solid var(--ink); }
.btable .term { white-space: nowrap; }   /* keep "· 2014–2015" on one line */
@media (min-width: 561px) { .btable td:last-child { white-space: nowrap; } }
.appendix h2 { font-size: 1.12rem; font-weight: 600; margin: 2rem 0 0.9rem; }
details.wp-abs { display: inline; }
details.wp-abs summary { display: inline; color: var(--linkblue); cursor: pointer; font-size: 0.92rem; list-style: none; }
details.wp-abs summary::-webkit-details-marker { display: none; }
details.wp-abs summary::marker { content: ""; }
details.wp-abs > p { display: block; text-indent: 0; font-size: 0.92rem; text-align: justify; hyphens: auto; margin: 0.4rem 0 0.6rem 1.4rem; }

/* ---------- archived courses (teaching.html Appendix A) ----------
   The archive HTML is shared with the main teaching page (_src/templates/_teaching.html);
   build.py's as_appendix turns its toggles into open, numbered sections (JE, 2026-10-17). */
.course-details { padding: 0.4rem 0 0.6rem; }
.course-details h3 { font-size: 1.02rem; font-weight: 600; margin: 0.8rem 0 0.5rem; }
.course-content h4 { font-size: 1rem; font-weight: 700; margin: 0.9rem 0 0.2rem; }
.course-content p { margin-bottom: 0.6rem; }
.course-content { overflow-wrap: anywhere; }   /* long file names wrap at 320 px */

/* Printed, the page should look like a paper: no web navigation, no folio. */
@media print { .runhead nav, .folio { display: none; } }
