/* Base styles */
.header-container {
  background: url("images/figures/banner.jpg") no-repeat center;
  background-size: cover;
  color: #242728;
  text-align: left;
  padding: 20px;
}

.header-content h1 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.2;
  color: #fff;
  text-shadow:
    1.2px 1.2px 0 rgb(35, 35, 35),
    -1.2px -1.2px 0 rgb(35, 35, 35),
    1.2px -1.2px 0 rgb(35, 35, 35),
    -1.2px  1.2px 0 rgb(35, 35, 35);
}

.header-subtitle {
  font-size: 1em;
  color: #242728;
  margin-bottom: 0.5em;
}

.header-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

.venue-badge {
  display: inline-block;
  background-color: #EAB682;
  color: #03325c;
  font-weight: bold;
  font-size: 0.95em;
  padding: 6px 16px;
  border-radius: 25px;
  margin: 10px 0 0;
  letter-spacing: 0.02em;
}

.button-container {
  margin-top: 20px;
  margin-bottom: 20px;
}

.button-container a.button {
  background-color: #b7c3cb;
  color: #03325c;
  border: 2px solid #ccdde5;
  border-radius: 25px;
  padding: 10px 20px;
  margin: 5px;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
}

.button-container a.button:hover {
  background-color: #EAB682;
  color: #fff;
}

.display-table {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.display-table th td {
  border-bottom: 1px solid black;
  text-align: center;
  padding: 8px;
}

.display-table th {
  border-top: 1px solid black;
}

/* Styles for larger screens */
@media (min-width: 600px) {
  .header-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 50px 50px;
  }

  .header-content {
    max-width: 700px;
    text-align: left;
  }

  .header-content h1 {
    font-size: 3em;
  }

  .header-subtitle {
    font-size: 1.15em;
  }
}


.byline {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0 5px 10px;
  margin-bottom: 20px;
}

.byline-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
}

.byline-column {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.byline-column h3 {
  margin-bottom: 10px;
  color: #333;
  font-size: 16px;
}

.byline-column p {
  color: #666;
  font-size: 14px;
  margin: 5px 0;
}

.author-link, .affiliation-link {
  color: #666;
  text-decoration: none;
  border-bottom: none;
  cursor: pointer;
}

.author-link:hover, .affiliation-link:hover {
  text-decoration: underline;
  border-bottom: none;
}


d-article {
  contain: none;
}

d-article d-contents {
  max-width: 100%;
  box-sizing: border-box;
  align-self: start;
  grid-column: 1 / 4;
  grid-row: auto / span 4;
  justify-self: end;
  margin-top: 5em;
  padding-right: 3em;
  padding-left: 2em;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
}


d-article d-contents nav {
  display: block;
}

d-article d-contents nav h4 {
  margin-top: 0;
  margin-bottom: 1em;
}

d-article d-contents nav div {
  color: rgba(91, 184, 73, 0.8);
  font-weight: bold;
}

d-article d-contents nav a {
  color: rgba(0, 0, 0, 0.8);
  border-bottom: none;
  text-decoration: none;
}

d-article d-contents li {
  list-style-type: none;
}

d-article d-contents ul {
  padding-left: 1em;
}

d-article d-contents nav ul li {
  margin-bottom: 0.25em;
}

d-article d-contents nav a:hover {
  text-decoration: underline solid rgba(0, 0, 0, 0.6);
}

d-article d-contents nav ul {
  margin-top: 0;
  margin-bottom: 6px;
}

d-article d-contents nav > div {
  display: block;
  outline: none;
  margin-bottom: 0.5em;
}

d-article d-contents nav > div > a {
  font-size: 13px;
  font-weight: 600;
}

d-article d-contents nav > div > a:hover,
d-article d-contents nav > ul > li > a:hover {
  text-decoration: none;
}

.active-nav-item {
  color: #0d6efd;
}

.shaded-figure {
  background-color: hsl(0, 0%, 97%);
  border-top: 1px solid hsla(0, 0%, 0%, 0.1);
  border-bottom: 1px solid hsla(0, 0%, 0%, 0.1);
  padding: 30px 0;
}

.pointer {
  position: absolute;
  width: 26px;
  height: 26px;
  top: 26px;
  left: -48px;
}

.sidebar {
  position: sticky;
}

d-article section{
  margin: 0 !important;
}

/* Finding box styling */
.finding-box {
  background-color: rgba(240, 240, 240, 0.9);
  border: 1.2pt solid rgba(25, 25, 25, 0.6);
  border-radius: 10pt;
  padding: 2pt 10pt;
  margin: 0.5em 0;
  box-shadow: 2px 2px 4px rgba(128, 128, 128, 0.3);
  box-sizing: border-box;
}

.finding-box ul {
  margin: 0.5em 0;
  padding-left: 1.2em;
  list-style-type: disc;
}

.finding-box li {
  margin-bottom: 0.5em;
  line-height: 1.5;
}

.finding-box li:last-child {
  margin-bottom: 0;
}

/* Scaled-down single-panel figures */
.fig-narrow img {
  max-width: 65%;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .fig-narrow img {
    max-width: 100%;
  }
}
