/* ===== Site theme for supplemental pages ===== */
:root {
  --color-sage: rgb(169, 173, 114);
  --color-link: rgb(87, 91, 46);
  --color-link-hover: rgb(152, 100, 30);
  --font-serif: "Charter-Racket", Georgia, "Times New Roman", serif;
  --font-sans: Arial, Helvetica, sans-serif;
}

body {
  background-color: #f5f5ef;
  font-family: var(--font-serif);
  color: #1a1a1a;
  margin: 0;
  padding: 0;
}

.supp-nav {
  background-color: #fff;
  border-bottom: 2px solid var(--color-sage);
  padding: 1.8rem 4.5rem;
  font-family: var(--font-sans);
  font-size: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.supp-nav a {
  color: var(--color-link) !important;
  text-decoration: none !important;
  font-weight: bold !important;
}

.supp-nav a:hover {
  color: var(--color-link-hover) !important;
  text-decoration: underline !important;
}

.container-fluid.main-container {
  max-width: 800px !important;
  width: 90% !important;
  margin: 2rem auto !important;
  float: none !important;
  padding: 0 !important;
}

#header {
  border: 2px solid var(--color-sage);
  background-color: #fff;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}

#header h1.title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: bold;
  color: #1a1a1a;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

#header h4.author,
#header h4.date {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: normal;
  color: #666;
  margin: 0.2rem 0 0;
}

.section.level2 {
  border: 1px solid var(--color-sage);
  background-color: #fff;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.section.level2 h2 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: #1a1a1a;
  margin: 0 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-sage);
}

.section.level3 {
  margin-top: 1rem;
}

.section.level3 h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #333;
  margin: 0 0 0.5rem;
}

p {
  font-family: var(--font-serif);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

a {
  color: var(--color-link) !important;
  font-weight: bold;
  text-decoration: none !important;
}

a:hover,
a:focus {
  color: var(--color-link-hover) !important;
  text-decoration: underline !important;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

table th {
  background-color: var(--color-sage);
  color: #fff;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: bold;
}

table td {
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid rgba(169, 173, 114, 0.35);
}

table tr:last-child td {
  border-bottom: none;
}

code,
pre {
  font-size: 0.875rem;
  background-color: rgba(169, 173, 114, 0.12);
  border: 1px solid rgba(169, 173, 114, 0.35);
  border-radius: 2px;
}

code {
  padding: 0.1em 0.3em;
}

pre {
  padding: 0.75rem 1rem;
  overflow-x: auto;
}

img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--color-sage);
  display: block;
  margin: 1rem auto;
}

/* Footer */
body > .container-fluid + script ~ * {
  font-size: 0.8rem;
  color: #888;
}

@media (max-width: 600px) {
  .container-fluid.main-container {
    width: 96% !important;
    margin: 1rem auto !important;
  }

  #header {
    padding: 1rem 1.25rem;
  }

  .section.level2 {
    padding: 1rem 1.25rem;
  }
}
/* Header with plant image */
#header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.header-content {
  flex: 1;
  min-width: 200px;
}

.header-plant {
  flex: 0 0 180px;
  margin: 0;
}

.header-plant img {
  width: 180px;
  height: 240px;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--color-sage) !important;
  margin: 0 !important;
  display: block;
}

.header-plant figcaption {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: #999;
  margin-top: 0.35rem;
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 500px) {
  #header {
    flex-direction: column;
  }
  .header-plant {
    flex: none;
    width: 100%;
  }
  .header-plant img {
    width: 100%;
    height: 180px;
  }
}

#read-the-papers-here p {
  padding-left: 2.5rem;
  text-indent: -2.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}

#read-the-papers-here p:not(:last-child) {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(169, 173, 114, 0.25);
}
