/*
 * v19 topic additions for the academy preview.
 * Scope is intentionally limited to the existing main content wrapper.
 * The v18 shell remains the source of brand tokens and card treatment.
 */

#main-content .profile-related-links {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--v18-line, #bf9979);
}

#main-content .profile-related-links h2 {
  margin: 0 0 0.55rem;
  color: var(--v18-ink, #333333);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
}

#main-content .profile-related-links ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

#main-content .profile-related-links li {
  margin: 0;
}

#main-content .profile-related-links li + li {
  border-top: 1px solid rgba(191, 153, 121, 0.38);
}

#main-content .profile-related-links li a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  padding: 0.6rem 0;
  color: var(--v18-wine, #610706);
  font-size: 0.9rem;
  line-height: 1.55;
  text-decoration: none;
}

#main-content .profile-related-links li a:hover {
  color: var(--v18-red, #a00000);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

#main-content .short-profile-note {
  margin: 1.15rem 0 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--v18-line, #bf9979);
  border-inline-start: 3px solid var(--v18-wine, #610706);
  background: var(--v18-marble, #f0e8e1);
  color: var(--v18-muted, #666666);
  font-size: 0.86rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

#main-content .short-profile-note strong {
  color: var(--v18-wine, #610706);
  font-weight: 500;
}

#main-content .faculty-short-drafts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--v18-line, #bf9979);
}

#main-content .faculty-short-drafts > h2 {
  margin: 0 0 0.65rem;
  color: var(--v18-ink, #333333);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.45;
}

#main-content .faculty-short-drafts > .short-profile-note {
  max-width: 65ch;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

#main-content .short-draft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 1rem;
}

#main-content .short-draft-grid > article.person-card {
  min-width: 0;
  height: 100%;
}

#main-content .short-draft-grid > article.person-card .person-card-body {
  min-width: 0;
}

/* The shared fixed mobile logo is taller than the legacy topbar. */
@media screen and (max-width: 900px) {
  body.v19-site .v18-context-nav {
    margin-top: 56px;
  }
}

@media (max-width: 720px) {
  #main-content .profile-related-links li a {
    gap: 0.75rem;
    padding-block: 0.55rem;
    font-size: 0.88rem;
  }

  #main-content .faculty-short-drafts {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
  }

  #main-content .faculty-short-drafts > h2 {
    font-size: 1.35rem;
  }

  #main-content .short-draft-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}
