/* =========================================================
   Theme adapted from 'Minimal' by orderedlist
   ========================================================= */

/* ---------- Colors ---------- */
:root {
  --color1: #14532D;        /* primary green */
  --color1-dk: #013220;     /* darker hover */
}

/* ---------- Base / Typography ---------- */
body {
  background: #fff;
  padding: 50px;
  font-family: "Palatino Linotype","Book Antiqua",Palatino,serif;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 300;
  text-align: justify;
  color: #595959;
}

img { max-width: 100%; }

h1 {
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 20px;
  color: var(--color1);
}

h2, h3, h4, h5, h6 {
  font-size: 15px;
  font-weight: 400;
  margin: 0 0 20px;
  color: var(--color1);
}

header p.subtitle {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.25;
  margin: 0.1em 0;
  color: #595959;
}

p, ul, ol, table, pre, dl { margin: 0 0 20px; }
small { font-size: 13px; }
strong { font-weight: 600; color: inherit; }

/* ---------- Links ---------- */
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
a:visited { color: inherit; }

header a.accent-link {
  display: inline-block;
  margin-top: 2em;
  margin-bottom: 3em;
  color: var(--color1);
  font-weight: 300;
  text-decoration: none;
}
header a.accent-link:hover { color: var(--color1-dk); text-decoration: underline; }

.nav-link {
  color: var(--color1);
  font-size: 13px;
  font-weight: 300;
  text-decoration: none;
}
.nav-link:hover,
.nav-link:visited,
.nav-link:active { color: var(--color1); text-decoration: underline; }

.email-link { color: inherit; text-decoration: none; font-size: 13px; }
.email-link:hover { text-decoration: underline; }

.contact-label {
  color: var(--color1);
  font-size: 13px;
  font-weight: 300;
  margin: 2em 0 0.5em;
}

/* ---------- Layout ---------- */
.wrapper { width: 860px; margin: 0 auto; }

header {
  width: 270px;
  float: left;
  position: fixed;
  -webkit-font-smoothing: subpixel-antialiased;
}

section { width: 500px; float: right; padding-bottom: 50px; }

footer {
  width: 270px;
  float: left;
  position: fixed;
  bottom: 50px;
  -webkit-font-smoothing: subpixel-antialiased;
}

.contact-block { margin-top: 6em; }
section:last-of-type { margin-bottom: 80px; }

/* ---------- Publications ---------- */
.pub-list { margin: 0; padding: 0; }

.pub-list p {
  margin-bottom: 0.3em;
  font-size: 14px;
  line-height: 1.5;
}

.pub-list p + p { margin-top: 1.6em; }

.pub-list .authors {
  color: #888;
  font-size: 13px;
  font-weight: 300;
  display: block;
  margin-top: 0.3em;
}

.authors .author-link { color: inherit; text-decoration: none; }
.authors .author-link:hover { text-decoration: underline; }

/* ---------- Abstract ---------- */
.abstract {
  margin-top: 0.4rem;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
  font-size: 12px;
}
.abstract > summary {
  cursor: pointer;
  list-style: none;
  padding: 6px 10px;
  border-radius: 6px;
}
.abstract > summary::-webkit-details-marker { display: none; }
.abstract > summary::before {
  content: "▶";
  display: inline-block;
  margin-right: 6px;
  transform: translateY(-1px);
  transition: transform 0.15s ease;
  font-size: 0.9em;
}
.abstract[open] {
  border-color: #e5e5e5;
  background-color: #fafafa;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.abstract[open] > summary::before { transform: rotate(90deg) translateX(-1px); }
.abstract[open] > *:not(summary) { padding: 0 10px 10px 10px; margin: 0; }
.abstract > summary:hover { background-color: #f6f6f6; }

/* ---------- Nav / Smooth ---------- */
html { scroll-behavior: smooth; }

.side-nav {
  margin-top: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---------- Responsive ---------- */
@media print, screen and (max-width: 960px) {
  .wrapper { width: auto; margin: 0; }
  header, section, footer { float: none; position: static; width: auto; }
  header { padding-right: 320px; }
  section {
    border-top: 1px solid #e5e5e5; border-bottom: none;
    padding: 20px 0; margin: 0 0 20px;
  }
}

@media print, screen and (max-width: 720px) {
  body { word-wrap: break-word; }
  header { padding: 0; }
  pre, code { word-wrap: normal; }
}

@media print, screen and (max-width: 480px) {
  body { padding: 15px; }
}

@media print {
  body { padding: 0.4in; font-size: 12pt; color: #444; }
}