/*
 * Scoped presentation for verbatim content copied from the canonical root
 * site. These rules intentionally affect only the Vanderbilt synchronization
 * mount and do not alter the default site or Vanderbilt navigation/branding.
 */
.canonical-sync-root {
  background: #fafaf9;
}

.canonical-research-content {
  display: flex;
  flex-direction: column;
}

.canonical-research-overview {
  order: 1;
}

.canonical-research-overview .research-summary-interests {
  margin: 0 0 1.75rem;
}

.canonical-research-overview .research-summary-interests h3 {
  margin: 0 0 .85rem;
  font-size: 1.1rem;
}

.canonical-research-overview .research-summary-interests ul {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.canonical-research-overview .research-summary-interests li {
  margin: 0;
  padding: .45rem .8rem;
  border: 1px solid #ded7c4;
  border-radius: 999px;
  background: #faf8f1;
  color: #5f4b0e;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
}

.canonical-research-overview .research-summary-visuals {
  display: grid;
  gap: 1.5rem;
}

.canonical-research-overview .research-summary-visuals > img {
  border: 1px solid #e7e5e4;
  border-radius: .75rem;
}


.canonical-research-projects {
  order: 2;
}

.canonical-research-grants {
  order: 3;
}

.canonical-research-patents {
  order: 4;
}

.canonical-sync {
  color: #44403c;
  font-family: Lora, Georgia, serif;
}

.canonical-sync .pageheader,
.canonical-sync .section {
  padding: 3rem 1rem;
}

.canonical-sync .pageheader {
  background: #fff;
}

.canonical-sync .section:nth-child(even) {
  background: #fff;
}

.canonical-sync .headercontent,
.canonical-sync .section-container,
.canonical-sync .container {
  width: min(100%, 80rem);
  margin: 0 auto;
}

.canonical-sync .row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.canonical-sync [class*="col-"] {
  min-width: 0;
  flex: 1 1 20rem;
}

.canonical-sync h1,
.canonical-sync h2,
.canonical-sync h3,
.canonical-sync h4,
.canonical-sync h5 {
  color: #1c1917;
  line-height: 1.3;
}

.canonical-sync h1,
.canonical-sync h2,
.canonical-sync h3 {
  font-family: "Playfair Display", Georgia, serif;
}

.canonical-sync h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
}

.canonical-sync h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
}

.canonical-sync h3 {
  margin: 1.5rem 0 1rem;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
}

.canonical-sync h4 {
  margin: .75rem 0 .5rem;
  font-size: 1rem;
  font-weight: 700;
}

.canonical-sync h5 {
  margin: .35rem 0;
  font-size: .9rem;
  font-weight: 400;
}

.canonical-sync p,
.canonical-sync li,
.canonical-sync dd,
.canonical-sync td,
.canonical-sync th {
  line-height: 1.7;
}

.canonical-sync p {
  margin: 0 0 1rem;
}

.canonical-sync a {
  color: #785f11;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.canonical-sync a.member-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.canonical-sync a.member-card-link .member-linked-name {
  text-decoration: underline;
  text-decoration-color: #c9a84c;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.canonical-sync img {
  max-width: 100%;
  height: auto;
}

.canonical-sync ul,
.canonical-sync ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.canonical-sync li {
  margin-bottom: .45rem;
}

.canonical-sync .title.text-center,
.canonical-sync .text-center {
  text-align: center;
}

.canonical-sync .biothumb {
  margin-bottom: 1.5rem;
}

.canonical-sync .accordion ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.canonical-sync .accordion li {
  min-height: 16rem;
  overflow: hidden;
  border-radius: .75rem;
  background-position: center;
  background-size: cover;
}

.canonical-sync .accordion li > div {
  display: flex;
  min-height: 16rem;
  align-items: end;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .82));
}

.canonical-sync .accordion a,
.canonical-sync .accordion h3 {
  color: #fff;
}

.canonical-sync .timeline {
  padding: 0;
  list-style: none;
}

.canonical-sync .timeline > li,
.canonical-sync .ul-dates > li,
.canonical-sync .ul-dates-gray > li {
  display: grid;
  grid-template-columns: minmax(4rem, 7rem) 1fr;
  gap: 1.25rem;
  margin: 0 0 1rem;
  padding: 1.25rem;
  border: 1px solid #e7e5e4;
  border-radius: .75rem;
  background: #fff;
}

.canonical-sync .ul-withdetails {
  margin: 0;
  padding: 0;
  list-style: none;
}

.canonical-sync .ul-withdetails > li {
  display: block;
  margin: 0 0 1rem;
  padding: 1.25rem;
  border: 1px solid #e7e5e4;
  border-radius: .75rem;
  background: #fff;
}

.canonical-sync .ul-withdetails > li > .row {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.canonical-sync .ul-withdetails .image {
  display: flex;
  justify-content: center;
}

.canonical-sync .ul-withdetails .image img {
  width: 100%;
  max-width: 12rem;
  max-height: 7rem;
  object-fit: contain;
}

.canonical-sync .ul-withdetails .details {
  margin-top: 1rem;
}

.canonical-sync .timeline .date,
.canonical-sync .dates {
  color: #8a6d16;
  font-weight: 700;
}

.canonical-sync .timeline .subject {
  color: #1c1917;
  font-size: 1.05rem;
  font-weight: 700;
}

.canonical-sync .member {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.25rem;
  align-items: start;
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid #e7e5e4;
  border-radius: .75rem;
  background: #fff;
}

.canonical-sync .member .lab-img,
.canonical-sync .img-circle {
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  object-fit: cover;
}

.canonical-sync .posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  grid-auto-rows: 1fr;
  gap: 1.5rem;
}

.canonical-sync .canonical-record {
  padding: 1.25rem;
  border: 1px solid #e7e5e4;
  border-radius: .75rem;
  background: #fff;
}

/* Media cards: the default site relies on a hover animation that slides the
   text over a full-bleed image. Without it the cards need a fixed thumbnail
   band, equal heights, and a clamped excerpt, or each one grows to the length
   of its own text. */
.canonical-sync .post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e7e5e4;
  border-radius: .75rem;
  background: #fff;
}

.canonical-sync .post__image {
  height: 8rem;
  flex: none;
  background-color: #faf9f7;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border-bottom: 1px solid #e7e5e4;
}

.canonical-sync .post__image-empty {
  display: none;
}

.canonical-sync .post__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.canonical-sync .post__inside {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.canonical-sync .post__title {
  margin: 0 0 .35rem;
  color: #8a6d16;
  font-size: .95rem;
  font-weight: 700;
}

.canonical-sync .post__excerpt_title {
  margin: 0 0 .5rem;
  color: #1c1917;
  font-weight: 700;
  line-height: 1.35;
}

.canonical-sync .post__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: #57534e;
  font-size: .9rem;
}

/* The call-to-action is an <a> wrapping a <button>; the anchor is the flex
   child, so it carries the spacer that pins the row to the bottom of the card. */
.canonical-sync .post__inside > a:last-child {
  margin-top: auto;
  padding-top: 1rem;
}

.canonical-sync .post__button {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .9rem;
  border: 1px solid #d8cba3;
  border-radius: .5rem;
  background: #fdfbf5;
  color: #8a6d16;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
}

.canonical-sync .post__button:hover {
  background: #f7f1e2;
}

.canonical-sync iframe {
  width: 100%;
  max-width: 100%;
  border: 0;
}

.canonical-sync table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  background: #fff;
}

.canonical-sync th,
.canonical-sync td {
  padding: .75rem;
  border: 1px solid #e7e5e4;
  text-align: left;
  vertical-align: top;
}

.canonical-sync th {
  color: #1c1917;
  background: #f5f5f4;
}

.canonical-sync .portfolio,
.canonical-sync #grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
}

.canonical-sync .portfolio .item,
.canonical-sync #grid .item {
  position: static !important;
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  transform: none !important;
}

.canonical-sync .portfolio img,
.canonical-sync #grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: .5rem;
  object-fit: cover;
}

.canonical-record-section {
  width: min(calc(100% - 2rem), 80rem);
  margin: 0 auto;
  padding: 3rem 0;
}

.canonical-record-list {
  display: grid;
  gap: 1rem;
}

.research-disclosure-list {
  display: grid;
  gap: .875rem;
}

.research-disclosure {
  overflow: clip;
  border: 1px solid #e7e5e4;
  border-radius: .875rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(28, 25, 23, .04);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.research-disclosure[open] {
  border-color: rgba(201, 168, 76, .65);
  box-shadow: 0 8px 24px rgba(28, 25, 23, .08);
}

/* Funded projects: one bordered card holds the static header, the
   always-visible links, and the collapsible panel — see projectRecord. */
.research-project-card {
  overflow: clip;
  border: 1px solid #e7e5e4;
  border-radius: .875rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(28, 25, 23, .04);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.research-project-card-expanded {
  border-color: rgba(201, 168, 76, .65);
  box-shadow: 0 8px 24px rgba(28, 25, 23, .08);
}

.research-project-card-header {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: 5.25rem;
  padding: 1.15rem 1.25rem;
}

.research-disclosure-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.25rem;
  gap: 1rem;
  align-items: center;
  min-height: 5.25rem;
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  list-style: none;
}

/* Grants have no corner chevron (see .research-disclosure-toggle-label) —
   copy is the only column. */
.research-grant-disclosure .research-disclosure-summary {
  grid-template-columns: minmax(0, 1fr);
}

/* Funded projects use a button in the links row and a separate full-width
   panel below it. Keeping the panel outside the flex row prevents expanded
   copy from appearing beside the toggle. */
.research-project-toggle-inline {
  display: inline-flex;
  align-items: center;
  padding: .4rem .7rem;
  border: 0;
  border-radius: .5rem;
  color: #8a6d16;
  background: transparent;
  font-family: Lora, Georgia, serif;
  font-size: .8rem;
  font-weight: 700;
  line-height: inherit;
  cursor: pointer;
  transition: background .15s ease;
}

.research-project-toggle-inline:hover {
  background: #fff8e8;
}

.research-project-toggle-inline:focus-visible {
  outline: 3px solid rgba(201, 168, 76, .45);
  outline-offset: -1px;
}

.research-project-toggle-inline .toggle-label-open {
  display: none;
}

.research-project-toggle-inline[aria-expanded="true"] .toggle-label-closed {
  display: none;
}

.research-project-toggle-inline[aria-expanded="true"] .toggle-label-open {
  display: inline;
}

.research-disclosure-summary::-webkit-details-marker {
  display: none;
}

.research-disclosure-summary:hover {
  background: #fafaf9;
}

.research-disclosure-summary:focus-visible {
  outline: 3px solid rgba(201, 168, 76, .45);
  outline-offset: -3px;
}

.research-disclosure-image {
  display: flex;
  width: 5.5rem;
  height: 4rem;
  align-items: center;
  justify-content: center;
  padding: .4rem;
  border-radius: .5rem;
  background: #fafaf9;
}

.research-disclosure-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.research-disclosure-copy {
  display: block;
  min-width: 0;
}

.research-disclosure-meta {
  display: block;
  margin-bottom: .3rem;
  color: #8a6d16;
  font-family: Lora, Georgia, serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.research-disclosure-title {
  display: block;
  color: #1c1917;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 700;
  line-height: 1.45;
}

/* Marks, inline right after the title text it belongs to, that this record
   has a related link — otherwise that's only discoverable after opening
   the disclosure. Sits in the text flow (not a separate summary column)
   so it reads as part of the title rather than a stray floating icon. */
.research-disclosure-link-flag {
  display: inline-block;
  position: relative;
  top: .15em;
  width: .85em;
  height: .85em;
  margin-left: .4em;
}

.research-disclosure-link-flag::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #8a6d16;
  opacity: .8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'%3E%3C/path%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'%3E%3C/path%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'%3E%3C/path%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'%3E%3C/path%3E%3C/svg%3E") center / contain no-repeat;
}

/* Expand affordance for grants and projects. Both label states render; CSS
   swaps which one shows from the disclosure's native [open] attribute. */
.research-disclosure-toggle-label {
  display: block;
  margin-top: .35rem;
  color: #8a6d16;
  font-family: Lora, Georgia, serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.research-disclosure-toggle-label .toggle-label-open {
  display: none;
}

.research-disclosure[open] .research-disclosure-toggle-label .toggle-label-closed {
  display: none;
}

.research-disclosure[open] .research-disclosure-toggle-label .toggle-label-open {
  display: inline;
}

/* Match the Funded Projects inline control: left aligned beneath the title,
   with no divider or full-width footer treatment. */
.research-grant-disclosure .research-disclosure-toggle-label {
  display: inline-flex;
  align-items: center;
  margin: .75rem 0 0 -.7rem;
  padding: .4rem .7rem;
  border: 0;
  border-radius: .5rem;
  background: transparent;
  transition: background .15s ease;
}

.research-grant-disclosure .research-disclosure-summary:hover .research-disclosure-toggle-label {
  background: #fff8e8;
}

.research-disclosure-body {
  padding: 1.25rem;
  border-top: 1px solid #e7e5e4;
  background: #fafaf9;
}

.research-disclosure-details > :last-child,
.research-disclosure-details > :last-child > :last-child {
  margin-bottom: 0;
}

.research-record-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

.canonical-sync .research-record-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: .45rem .75rem;
  border: 1px solid rgba(201, 168, 76, .55);
  border-radius: 999px;
  color: #6b5310;
  background: #fff;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.canonical-sync .research-record-link:hover {
  border-color: #c9a84c;
  color: #1c1917;
  background: #fff8e8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Funded projects: link chips and the toggle (see .research-project-toggle-
   inline) share one row directly below the title — the same bordered
   icon+text chip look publications.js uses for arXiv/
   ScienceDirect/etc, so a project link reads as "go here for more" rather
   than another inline tag. No label, no divider between the chips and the
   toggle — they're the same row. */
.research-project-links-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
  padding: .85rem 1.25rem 1.1rem;
  background: #fff;
}

/* The expandable panel is a sibling of the flex row, so its block layout
   naturally fills the card instead of competing for horizontal row space. */
.research-project-toggle-body {
  width: 100%;
}

.research-project-toggle-body[hidden] {
  display: none;
}

.research-project-link-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .7rem;
  border: 1px solid #e7e5e4;
  border-radius: .5rem;
  color: #57534e;
  background: #fafaf9;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.research-project-link-chip:hover {
  border-color: #8a6d16;
  color: #8a6d16;
  background: #fff8e8;
}

.research-project-link-chip svg {
  width: .85rem;
  height: .85rem;
  flex-shrink: 0;
}

.canonical-record h3 {
  margin-top: 0;
}

.canonical-record-authors,
.canonical-record-citation {
  margin-top: .5rem;
  line-height: 1.6;
}

.canonical-record-citation {
  color: #78716c;
  font-style: italic;
}

.canonical-sync-failed #canonical-sync-root {
  display: none;
}

@media (max-width: 640px) {
  .canonical-sync .pageheader,
  .canonical-sync .section {
    padding: 2rem 1rem;
  }

  .canonical-sync .row {
    display: block;
  }

  .canonical-sync .timeline > li,
  .canonical-sync .ul-dates > li,
  .canonical-sync .ul-dates-gray > li,
  .canonical-sync .member {
    grid-template-columns: 1fr;
  }

  .canonical-sync .ul-withdetails > li > .row {
    grid-template-columns: 1fr;
  }

  .research-project-card-header {
    grid-template-columns: 3.75rem minmax(0, 1fr);
    gap: .75rem;
    padding: 1rem;
  }

  .research-disclosure-image {
    width: 3.75rem;
    height: 3.25rem;
  }

  .research-disclosure-body {
    padding: 1rem;
  }

  .research-project-links-row {
    padding: .75rem 1rem 1rem;
  }

}
