/* Page width only — overrides al-folio v1.x Tailwind default (930px). */
:root {
  --max-content-width: 1000px;
}

.container {
  max-width: 1000px;
}

/* Navbar: brand + links share one row without overflow */
.navbar>.container {
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.navbar .navbar-brand {
  flex: 0 1 auto;
  min-width: 0;
  margin-right: 0.5rem;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: inherit;
  color: var(--global-text-color);
  text-decoration: none;
}

.navbar .navbar-collapse-main {
  flex: 1 1 auto;
  min-width: 0;
}

.navbar .navbar-menu-list {
  flex-wrap: wrap !important;
  justify-content: flex-end;
  gap: 0.15rem 0;
}

.navbar .navbar-nav .nav-item .nav-link {
  position: relative;
  margin: 0 0.5rem;
  padding: 0.5rem 0;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.navbar .navbar-nav .nav-item .nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: var(--global-theme-color);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease-in-out;
}

.navbar .navbar-nav .nav-item .nav-link:hover::before {
  transform: scaleX(1);
}

@media (max-width: 575.98px) {
  .navbar .navbar-nav .nav-item .nav-link {
    margin: 0;
    padding: 0.45rem 0;
  }
}

/* Profile photo: slightly smaller than theme default. */
@media (min-width: 576px) {
  .profile {
    width: 18%;
    max-width: 200px;
  }
}

/* Intro paragraphs beside the photo: drop the global 72ch cap. */
.post .clearfix>p,
.about-home article>.desc {
  max-width: none;
}

/* Align profile top with the subtitle line (desc sits beside the floated photo). */
.about-home .post-header {
  margin-bottom: 0;
}

.about-home article>.desc {
  margin-top: 0;
  margin-bottom: 1.25em;
}

/* Profile affiliations and social links under the photo (jiaxuanzou style). */
.profile .more-info {
  margin-bottom: 5px;
  margin-top: 5px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
  text-align: center;
}

.profile .more-info p {
  display: inline-block;
  margin: 0;
}

.profile .more-info .profile-affiliations {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  max-width: 18rem;
  margin: 0.7rem auto 0;
  overflow-wrap: normal;
}

.profile .more-info .profile-affiliations p {
  display: block;
  width: 100%;
  margin: 0;
  line-height: 1.25;
}

.profile .affiliation-unit {
  display: block;
}

.profile .affiliation-unit {
  color: var(--global-text-color);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* Inline affiliation icons in About Me (jiaxuanzou style). */
.affiliation-link {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  white-space: nowrap;
  vertical-align: -0.12em;
}

.affiliation-icon {
  flex: 0 0 auto;
  width: 1.08em;
  height: 1.08em;
  object-fit: contain;
}

.profile .profile-social {
  margin-top: 0.85rem;
  text-align: center;
}

.profile .profile-social .contact-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  font-size: var(--text-2xl);
  line-height: 1;
}

.profile .profile-social .contact-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  min-height: 1.85rem;
}

.profile .profile-social .contact-icons a i::before {
  color: var(--global-text-color);
  transition: color var(--transition-base);
}

.profile .profile-social .contact-icons a:hover {
  text-decoration: none;
}

.profile .profile-social .contact-icons a:hover i::before {
  color: var(--global-theme-color);
}

.profile .profile-social .contact-note {
  margin-top: 0.45rem;
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
}

/* About page list rows: fixed gap between date and content (News, Educations, Honors). */
.about-list-row {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 0.35rem 0;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.about-list-date {
  flex: 0 0 auto;
  font-family: var(--font-sans);
  font-weight: 600;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.about-list-content {
  flex: 1;
  min-width: 0;
  font-family: var(--font-serif);
}

.about-list-content .affiliation-link {
  white-space: normal;
}

/* Paper-acceptance badge used in the News section */
.news-badge {
  display: inline-block;
  color: #c62828;
  background-color: #ffebee;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.job-seeking-banner {
  color: #e74c3c;
  font-weight: bold;
}

/* Research experience entries */
.research-exp-entry {
  margin-bottom: 1.25em;
}

.research-exp-item {
  margin-bottom: 1em;
}

.research-exp-item:last-child {
  margin-bottom: 0;
}

.research-exp-header,
.research-exp-subrow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.research-exp-header {
  margin-bottom: 0.2em;
}

.research-exp-date,
.research-exp-place {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

.research-exp-date {
  font-variant-numeric: tabular-nums;
}

.research-exp-place {
  color: var(--global-text-color-light);
  font-size: var(--text-sm);
}

.research-exp-topic {
  margin: 0;
  line-height: 1.45;
  flex: 1;
  min-width: 0;
}

.research-exp-details {
  width: 100%;
  margin: 0;
  --research-exp-toggle-width: calc(0.65em + 0.5rem);
}

.research-exp-summary {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.research-exp-summary::before {
  content: "▸";
  flex: 0 0 auto;
  margin-right: 0.5rem;
  color: var(--global-text-color-light);
}

.research-exp-details[open] .research-exp-summary::before {
  content: "▾";
}

.research-exp-summary .research-exp-topic {
  flex: 0 1 auto;
  min-width: 0;
  user-select: text;
}

.research-exp-summary .research-exp-place {
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 1rem;
  user-select: text;
}

.research-exp-subrow {
  margin-bottom: 0.15em;
}

.research-exp-details ul {
  width: 100%;
  box-sizing: border-box;
  margin: 0.35em 0 0;
  padding-left: calc(var(--research-exp-toggle-width) + 1.25em);
}

.research-exp-details li {
  margin-bottom: 0.2em;
}

@media (max-width: 600px) {

  .research-exp-header,
  .research-exp-subrow,
  .research-exp-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .research-exp-date,
  .research-exp-place,
  .research-exp-summary .research-exp-place {
    margin-left: 0;
    text-align: left;
  }
}

/* Collapsible "Show more" for older news items */
.news-more-row {
  display: none;
}

.news:has(.news-more[open]) .news-more-row {
  display: flex;
}

.news-more {
  margin-top: -0.15rem;
}

.news-more summary {
  display: inline-block;
  cursor: pointer;
  color: var(--global-text-color-light);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  margin: 0.25rem 0 0;
  user-select: none;
  list-style: none;
}

.news-more summary::-webkit-details-marker {
  display: none;
}

.news-more summary::after {
  content: " ▾";
}

.news-more summary:hover {
  color: var(--global-theme-color);
}

.news-more .news-more-label-hide {
  display: none;
}

.news-more[open] summary::after {
  content: " ▴";
}

.news-more[open] .news-more-label-show {
  display: none;
}

.news-more[open] .news-more-label-hide {
  display: inline;
}

/* Fixed navbar: offset in-page anchor jumps */
.about-home .anchor,
.about-home h3[id] {
  scroll-margin-top: 5rem;
}

/* News/Publications sit below the floated profile and use the full page width. */
.about-home .news,
.about-home .publications {
  clear: both;
  width: 100%;
}

/* Publication rows: use 2-col thumb + 10-col text (theme default 2+8 leaves unused width). */
.publications ol.bibliography>li>.row>.col-sm-8 {
  flex: 0 0 83.333333%;
  max-width: 83.333333%;
}

/* Hide venue abbreviation badges (e.g. CVPR); keep preview thumbnails. */
.publications ol.bibliography li .abbr>abbr.badge {
  display: none;
}

/* Publication titles — match jiaxuanzou0714.github.io (sans, base size, semibold). */
.publications ol.bibliography li .title {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: var(--leading-title);
  overflow-wrap: normal;
}

/* Compact one-line publications below the featured list */
.pub-inline-list {
  margin-top: 0.75rem;
}

.pub-inline-list ol.bibliography {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.pub-inline-list ol.bibliography>li {
  margin-bottom: 0.65em;
  padding-left: 0;
}

.pub-inline-venue-badge {
  display: inline-block;
  background-color: var(--global-theme-color);
  color: var(--global-card-bg-color) !important;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.15;
  padding: 0.05rem 0.3rem !important;
  margin: 0 0.35em 0 0;
  border-radius: 0.2rem;
  vertical-align: baseline;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.pub-inline-self {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pub-inline-item a {
  text-decoration: none;
}

.pub-inline-item a:hover {
  text-decoration: underline;
}

.pub-inline-authors {
  font-size: 0.9em;
  color: var(--global-text-color);
}

.pub-inline-authors .more-authors {
  color: var(--global-text-color-light);
  border-bottom: 1px dashed var(--global-text-color-light);
  cursor: pointer;
}

.pub-inline-authors .more-authors:hover {
  color: var(--global-text-color);
  border-bottom: 1px dashed var(--global-text-color);
}

.pub-scholar-note {
  margin-top: 0.75rem;
  font-size: var(--text-sm);
  color: var(--global-text-color-light);
}