/* Supporting pages share the homepage's paper, ink, and quiet typography. */
.research-page-heading {
  padding: 56px 0 40px;
}

.research-page-heading .page-kicker,
.pub-nav-title {
  margin: 0 0 14px;
  color: var(--muted, #62645f);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.research-page-heading h1 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(40px, 6vw, 54px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.15;
}

.research-page-heading .page-description {
  max-width: none;
  margin: 20px 0 0;
  color: var(--muted, #62645f);
  font-size: 15px;
  line-height: 1.8;
}

.pub-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.pub-nav {
  position: sticky;
  top: 28px;
  padding: 5px 0 20px;
}

.pub-nav a {
  display: block;
  padding: 7px 0 7px 14px;
  border-left: 1px solid var(--line, #dedfd9);
  color: var(--muted, #62645f);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}

.pub-nav a:hover,
.pub-nav a.active {
  border-left-color: var(--accent, #315c49);
  color: var(--accent, #315c49);
}

.pub-nav a.active {
  font-weight: 600;
}

.pub-nav a:focus-visible,
.pub-img-wrap a:focus-visible,
.research-page-heading a:focus-visible {
  outline: 2px solid var(--accent, #315c49);
  outline-offset: 4px;
}

.pub-content {
  min-width: 0;
}

.pub-section {
  scroll-margin-top: 28px;
}

.pub-section + .pub-section {
  margin-top: 44px;
}

.pub-section .section-title,
.experience-page .section-title {
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line, #dedfd9);
  color: var(--ink, #202124);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.3;
}

.pub-img-wrap {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
  padding: 8px 0 26px;
}

.pub-img-wrap + .pub-img-wrap {
  border-top: 1px solid var(--line, #dedfd9);
  padding-top: 26px;
}

.pub-img-wrap > a {
  display: block;
  padding: 8px;
  border: 1px solid var(--line, #dedfd9);
  background: #fff;
}

.pub-img-wrap img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.pub-img-wrap .section-item {
  min-width: 0;
  color: var(--muted, #62645f);
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.pub-img-wrap .section-item > strong:first-child {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--ink, #202124);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.4;
}

.pub-img-wrap .author-name {
  color: var(--ink, #202124);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line, #dedfd9);
  text-underline-offset: 3px;
}

.pub-img-wrap .transparent-button {
  display: inline-block;
  margin: 10px 12px 0 0;
  color: var(--accent, #315c49);
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line, #dedfd9);
  text-underline-offset: 4px;
}

.pub-img-wrap .transparent-button:hover {
  text-decoration-color: currentColor;
}

.experience-page .section-title:not(:first-child) {
  margin-top: 44px;
}

.experience-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 12px 0 24px;
}

.experience-row + .experience-row {
  padding-top: 24px;
  border-top: 1px solid var(--line, #dedfd9);
}

/* The logo now ships as a <picture>; keep it a block so the img still
   resolves its 100% width against the 90px grid column. */
.experience-logo picture {
  display: block;
}

.experience-logo img {
  display: block;
  width: 100%;
  max-height: 64px;
  height: auto;
  object-fit: contain;
}

.experience-item {
  min-width: 0;
}

.experience-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 24px;
}

.experience-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 23px;
  letter-spacing: -.02em;
  line-height: 1.4;
}

.experience-date {
  color: var(--muted, #62645f);
  font-size: 12px;
  white-space: nowrap;
}

.experience-role {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
}

.experience-details {
  margin-top: 7px;
  color: var(--muted, #62645f);
  font-size: 13px;
  line-height: 1.7;
}

.experience-details ul {
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 820px) {
  .pub-layout {
    display: block;
  }

  .pub-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 32px;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--line, #dedfd9);
  }

  .pub-nav-title {
    flex-basis: 100%;
    margin-bottom: 4px;
  }

  .pub-nav a {
    padding: 4px 0;
    border-left: 0;
    border-bottom: 1px solid transparent;
  }

  .pub-nav a:hover,
  .pub-nav a.active {
    border-bottom-color: var(--accent, #315c49);
  }
}

@media (max-width: 560px) {
  .research-page-heading {
    padding: 38px 0 30px;
  }

  .pub-img-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .pub-img-wrap .section-item {
    font-size: 13px;
  }

  .experience-row {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }

  .experience-logo {
    padding-top: 5px;
  }

  .experience-title {
    font-size: 20px;
  }
}
