/* Homepage typography aligned to Selen Suyue's profile site.
   Included only for permalink '/', after home-profile.css. */
.home-profile {
  --rounded-font: "Arial Rounded MT Bold", Verdana, "Segoe UI", "PingFang SC", sans-serif;
  --cv-ink: #2d3540;
  --cv-muted: #65707b;
  --cv-divider: #e5e5e7;
  font-family: var(--rounded-font);
  font-size: 15px;
  line-height: 1.6;
}
.home-profile #main,
.home-profile .page__content,
.home-profile .masthead,
.home-profile .sidebar,
.home-profile .greedy-nav {
  font-family: var(--rounded-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
}
.home-profile .page__content { font-size: 15px; line-height: 1.65; }
.home-profile .page__content > h1,
.home-profile .page__content .home-works h1,
.home-profile .page__content .work-group-title,
.home-profile .page__content .work-details h3 {
  font-family: var(--rounded-font);
}
.home-profile .page__content > h1,
.home-profile .page__content .home-works h1 {
  font-size: clamp(21px, 2.1vw, 24px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.018em;
}
.home-profile .page__content .highlight-box,
.home-profile .page__content .highlight-box p {
  font-family: inherit;
  font-size: 15px;
  line-height: 1.7;
}
.home-profile .page__content .tag { font-family: inherit; font-size: 13px; }

/* Make Education and Internships share the Works section's type rhythm.
   Keep existing responsive layout and compact logo dimensions intact. */
.home-profile .page__content .edu-card,
.home-profile .page__content .intern-card,
.home-profile .page__content .edu-content,
.home-profile .page__content .intern-content {
  font-family: var(--rounded-font);
}
.home-profile .page__content .edu-content,
.home-profile .page__content .intern-content {
  font-size: 15px;
  line-height: 1.65;
}
.home-profile .page__content .edu-content p,
.home-profile .page__content .intern-content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}
.home-profile .page__content .edu-content em {
  color: var(--cv-muted);
  font-family: inherit;
  font-size: 13.5px;
  font-style: italic;
}
.home-profile .page__content .intern-org,
.home-profile .page__content .intern-org a,
.home-profile .page__content .edu-content > p:first-child a {
  color: var(--cv-ink) !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.home-profile .page__content .intern-role-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 18px;
  margin-top: 3px !important;
}
.home-profile .page__content .intern-position {
  color: #46515d;
  font-size: 13.5px;
  font-weight: 600;
  font-style: italic;
}
.home-profile .page__content .intern-date {
  color: #79818b;
  font-size: 13px;
  font-weight: 400;
}
.home-profile .page__content .intern-description {
  margin-top: 8px !important;
  color: #57616b;
  font-size: 14px !important;
  line-height: 1.65;
}
.home-profile .page__content .intern-acceptance {
  margin-top: 5px !important;
  font-size: 13px !important;
  line-height: 1.6;
}

/* Compact academic activity cards — two-line layout inspired by Selen Su's
   Awards / Talks. One subtle stripe and gradient per row; no large card chrome. */
.home-profile .page__content > h1.home-compact-heading {
  margin: 22px 0 8px !important;
  padding: 0 0 8px;
  border-bottom: 1px solid #efedf0;
  font-family: var(--rounded-font);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.012em;
  color: #515660;
}
.home-profile .page__content .award-list,
.home-profile .page__content .service-list {
  display: grid;
  gap: 5px;
  margin: 0 0 2px;
  padding: 0;
  border: 0;
  list-style: none;
}
.home-profile .page__content .award-item,
.home-profile .page__content .service-item,
.home-profile .page__content .friend-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 45px;
  box-sizing: border-box;
  margin: 0;
  padding: 7px 12px;
  border: 0;
  border-left: 3px solid #d3a0b1;
  border-radius: 0;
  background: linear-gradient(90deg, #faf5f7 0%, #fdfbfc 68%, #fff 100%);
  box-shadow: none;
  font-family: var(--rounded-font);
  line-height: 1.35;
  transition: background-color 140ms ease;
}
.home-profile .page__content .service-item {
  border-left-color: #b1a0bc;
  background: linear-gradient(90deg, #f8f5fa 0%, #fdfcfe 68%, #fff 100%);
}
.home-profile .page__content .friend-card {
  width: 100%;
  margin-bottom: 12px;
  border-left-color: #9aadc2;
  background: linear-gradient(90deg, #f5f8fb 0%, #fcfdfe 68%, #fff 100%);
}
.home-profile .page__content .award-item:hover {
  padding: 7px 12px;
  background: linear-gradient(90deg, #f6edef 0%, #fdf8fa 68%, #fff 100%);
}
.home-profile .page__content .service-item:hover {
  padding: 7px 12px;
  background: linear-gradient(90deg, #f4edf7 0%, #fcf9fd 68%, #fff 100%);
}
.home-profile .page__content .friend-card:hover {
  transform: none;
  border-left-color: #829bb5;
  box-shadow: none;
  background: linear-gradient(90deg, #edf3f8 0%, #fafcfe 68%, #fff 100%);
}
.home-profile .page__content .award-date,
.home-profile .page__content .service-date,
.home-profile .page__content .friend-category {
  padding: 0;
  color: #bb7c90;
  font-family: var(--rounded-font);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
}
.home-profile .page__content .service-date { color: #9e80a6; }
.home-profile .page__content .friend-category { color: #748da8; }
.home-profile .page__content .award-copy,
.home-profile .page__content .service-copy,
.home-profile .page__content .friend-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
}
.home-profile .page__content .award-copy > strong,
.home-profile .page__content .service-copy > strong,
.home-profile .page__content .friend-name {
  display: block;
  margin: 0;
  color: #353a44;
  font-family: var(--rounded-font);
  font-size: 13.8px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.home-profile .page__content .friend-name,
.home-profile .page__content .friend-name:visited {
  color: #9f5264;
}
.home-profile .page__content .friend-name:hover {
  color: #874253;
  text-decoration: underline;
}
.home-profile .page__content .award-note,
.home-profile .page__content .service-subline,
.home-profile .page__content .friend-note {
  display: block;
  min-width: 0;
  margin: 0;
  color: #7a818d;
  font-family: var(--rounded-font);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.32;
  overflow-wrap: break-word;
}
.home-profile .page__content .service-subline {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-profile .page__content .service-role,
.home-profile .page__content .service-note {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.home-profile .page__content .service-role { color: #6c6275; font-weight: 650; }
.home-profile .page__content .friend-note {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
}
.home-profile .page__content .friend-card p { margin: 0; }
.home-profile .page__content .last-updated {
  margin: 8px 0 0;
  color: #90939c;
  font-family: var(--rounded-font);
  font-size: 12px;
}
@media (max-width: 640px) {
  .home-profile .page__content > h1.home-compact-heading {
    margin: 18px 0 8px !important;
    font-size: 18px;
  }
  .home-profile .page__content .award-item,
  .home-profile .page__content .service-item,
  .home-profile .page__content .friend-card {
    grid-template-columns: 73px minmax(0, 1fr);
    gap: 9px;
    min-height: 44px;
    padding: 8px 10px;
  }
  .home-profile .page__content .award-item:hover,
  .home-profile .page__content .service-item:hover { padding: 8px 10px; }
  .home-profile .page__content .award-date,
  .home-profile .page__content .service-date,
  .home-profile .page__content .friend-category { font-size: 11px; }
  .home-profile .page__content .award-copy > strong,
  .home-profile .page__content .service-copy > strong,
  .home-profile .page__content .friend-name { font-size: 13px; }
  .home-profile .page__content .award-note,
  .home-profile .page__content .service-subline,
  .home-profile .page__content .friend-note { font-size: 11.5px; }
  .home-profile .page__content .service-subline {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    text-overflow: unset;
  }
}

/* Sidebar and navigation also use the rounded typeface; icon classes keep theirs. */
.home-profile .sidebar h3,
.home-profile .sidebar p,
.home-profile .sidebar li,
.home-profile .sidebar .author__urls-wrapper,
.home-profile .greedy-nav a {
  font-family: var(--rounded-font);
}
.home-profile .sidebar .author__bio,
.home-profile .sidebar li { font-size: 13px; line-height: 1.6; }

@media (max-width: 640px) {
  .home-profile .page__content > h1,
  .home-profile .page__content .home-works h1 { font-size: 22px; }
}


/* About-only color treatment, inspired by the supplied reference.
   Keep every rule scoped: the rest of the homepage retains its own palette. */
.home-profile .page__content > h1.home-about-heading {
  color: #30343B;
}
.home-profile .page__content .home-intro {
  --about-accent: #b15b58;
  --about-accent-hover: #903f43;
  max-width: 880px;
  margin: 0 0 22px;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  font-weight: 500;
  color: #30343B;
}
.home-profile .page__content .home-intro p {
  margin: 0 0 14px;
  color: #30343B;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.75;
}
.home-profile .page__content .home-intro strong {
  color: #30343B;
  font-weight: 500;
}
.home-profile .page__content .home-intro a,
.home-profile .page__content .home-intro a:visited {
  color: var(--about-accent);
  font-weight: 600;
  text-decoration: none;
  border: 0;
  box-shadow: none;
  transition: color 140ms ease;
}
.home-profile .page__content .home-intro a:hover {
  color: var(--about-accent-hover);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.home-profile .page__content .home-intro a:focus-visible {
  outline: 2px solid var(--about-accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.home-profile .page__content .home-intro a strong,
.home-profile .page__content .home-intro a:visited strong {
  color: inherit;
  font-weight: inherit;
}
.home-profile .page__content .home-intro .academic-emphasis,
.home-profile .page__content .home-intro .academic-emphasis strong {
  color: #a45570;
  font-weight: 700;
}
.home-profile .page__content .home-intro__interests {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 7px;
  margin-top: 2px;
  color: #30343B;
  font-size: 13px;
  line-height: 1.5;
}
.home-profile .page__content .home-intro__interests .home-interest-label {
  margin-right: 2px;
  color: #30343B;
  font-size: 13px;
  font-weight: 500;
}
.home-profile .page__content .home-intro .home-interest-chip {
  display: inline-block;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid #efd6d5;
  border-radius: 5px;
  background: #fff4f3;
  color: #995352;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .home-profile .page__content .home-intro p {
    margin-bottom: 12px;
    font-size: 14.5px;
    line-height: 1.75;
  }
  .home-profile .page__content .home-intro__interests { gap: 6px; }
  .home-profile .page__content .home-intro__interests .home-interest-label {
    flex-basis: 100%;
  }
  .home-profile .page__content .home-intro .home-interest-chip {
    padding: 3px 7px;
    font-size: 12.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-profile .page__content .home-intro a { transition: none; }
}

/* Awards desktop two-column grid (mobile remains single column). */
@media (min-width: 980px) {
  .home-profile .page__content .award-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 12px;
    align-items: stretch;
  }

  .home-profile .page__content .award-item {
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 9px 12px;
  }

  .home-profile .page__content .award-item:hover {
    padding: 9px 12px;
  }

  .home-profile .page__content .award-date {
    padding-top: 2px;
  }
}
