/* User Provided Stylesheet */

.myst-fm-downloads-dropdown {
  display: none !important;
}

#giscus-comments {
  max-width: 100% !important;
  padding: 0 !important;
}

.giscus,
.giscus-frame {
  width: 100% !important;
}

#featured-projects + .myst-grid .myst-card-footer,
#featured-projects + .myst-grid .myst-card-title,
.sponsors-grid .myst-card-footer,
.sponsors-grid .myst-card-title {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  text-align: center !important;
  white-space: nowrap;
}

#featured-projects + .myst-grid .myst-card-footer {
  flex-direction: column;
  white-space: normal;
}

#featured-projects + .myst-grid .myst-card-footer img {
  height: 20px;
  vertical-align: middle;
  margin: 2px 2px 0 2px;
}

#featured-projects + .myst-grid .myst-card-footer > *,
#featured-projects + .myst-grid .myst-card-title > *,
.sponsors-grid .myst-card-footer > *,
.sponsors-grid .myst-card-title > * {
  text-align: center !important;
}

#featured-projects + .myst-grid .myst-card-footer p,
#featured-projects + .myst-grid .myst-card-footer strong,
.sponsors-grid .myst-card-footer p,
.sponsors-grid .myst-card-footer strong {
  margin: 0 auto;
}

.sponsors-grid .myst-card-body,
#featured-projects + .myst-grid .myst-card-body {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sponsors-grid .myst-card-body img,
#featured-projects + .myst-grid .myst-card-body img {
  margin-top: 0.25rem !important;
  margin-bottom: 0.25rem !important;
}

#posts ~ .myst-grid .myst-card-header,
#posts ~ * .myst-grid .myst-card-header {
  padding: 0.5rem !important;
  border-bottom: none !important;
  background: transparent !important;
}

#posts ~ .myst-grid .myst-card-header img,
#posts ~ * .myst-grid .myst-card-header img {
  display: block;
  width: 100%;
  margin: 0 !important;
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 4px;
}

.profile-avatar {
  display: block;
  width: min(100%, 260px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 1rem auto;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.paper-gallery .myst-card {
  height: 100%;
}

.paper-gallery .myst-card-body {
  align-items: stretch;
}

.paper-figure {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 0.75rem 0;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.cv-table-wrap {
  width: 100%;
  margin: 1rem 0 1.5rem;
  overflow-x: auto;
}

.cv-table-wrap table {
  width: 100%;
  table-layout: fixed;
}

.cv-table-wrap th,
.cv-table-wrap td {
  white-space: normal !important;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.55;
}

.cv-table-targets th:nth-child(1),
.cv-table-targets td:nth-child(1) {
  width: 18%;
}

.cv-table-targets th:nth-child(2),
.cv-table-targets td:nth-child(2) {
  width: 12%;
}

.cv-table-targets th:nth-child(3),
.cv-table-targets td:nth-child(3) {
  width: 16%;
}

.cv-table-targets th:nth-child(4),
.cv-table-targets td:nth-child(4) {
  width: 54%;
}

.cv-table-education th:nth-child(1),
.cv-table-education td:nth-child(1) {
  width: 18%;
}

.cv-table-education th:nth-child(2),
.cv-table-education td:nth-child(2) {
  width: 18%;
}

.cv-table-education th:nth-child(3),
.cv-table-education td:nth-child(3) {
  width: 20%;
}

.cv-table-education th:nth-child(4),
.cv-table-education td:nth-child(4) {
  width: 44%;
}

.cv-table-projects th:nth-child(1),
.cv-table-projects td:nth-child(1) {
  width: 34%;
}

.cv-table-projects th:nth-child(2),
.cv-table-projects td:nth-child(2) {
  width: 9%;
}

.cv-table-projects th:nth-child(3),
.cv-table-projects td:nth-child(3) {
  width: 9%;
}

.cv-table-projects th:nth-child(4),
.cv-table-projects td:nth-child(4) {
  width: 12%;
}

.cv-table-projects th:nth-child(5),
.cv-table-projects td:nth-child(5) {
  width: 36%;
}

.cv-table-awards th:nth-child(1),
.cv-table-awards td:nth-child(1) {
  width: 18%;
}

.cv-table-awards th:nth-child(2),
.cv-table-awards td:nth-child(2) {
  width: 82%;
}

.school-logo {
  display: block;
  width: min(100%, 88px);
  height: auto;
  margin: 0 auto 0.75rem auto;
  object-fit: contain;
}

.experience-card {
  margin: 0.85rem 0 1.75rem;
  padding: 1.2rem 1.35rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, #ffffff 100%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.experience-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.experience-card p,
.experience-card ul {
  margin-top: 0;
}

.experience-card > p:last-child,
.experience-card > ul:last-child {
  margin-bottom: 0;
}

.experience-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}

.experience-meta p {
  margin: 0;
}

.experience-card strong {
  color: #1d4ed8;
}

.experience-card ul {
  padding-left: 1.2rem;
}

.experience-card li + li {
  margin-top: 0.5rem;
}

html.dark .experience-card,
body.dark .experience-card {
  border-color: rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.72) 0%, rgba(15, 23, 42, 0.62) 100%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

html.dark .experience-card strong,
body.dark .experience-card strong {
  color: #93c5fd;
}

html.dark .experience-meta,
body.dark .experience-meta {
  border-bottom-color: rgba(147, 197, 253, 0.14);
}

@media (max-width: 900px) {
  .cv-table-wrap table {
    min-width: 720px;
    table-layout: auto;
  }

  .experience-card {
    padding: 1rem 1rem 1.1rem;
  }

  .experience-meta {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}
