/* Homepage style override inspired by horseee.github.io */

html {
  font-size: 16px;
}

body {
  font-family: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #222;
  background-color: #fff;
  line-height: 1.75;
  font-size: 1.02rem;
}

a {
  color: #1f4fbf;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #163b90;
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #111;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

h1 {
  font-size: 2rem;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

p,
li {
  color: #222;
}

#main {
  max-width: 1160px;
  margin: 2.2rem auto 0;
  padding: 0 1.4rem;
}

.page {
  width: calc(100% - 300px);
  padding-right: 0;
}

@media (min-width: 1024px) {
  .page {
    width: calc(100% - 275px);
    margin-left: 0;
    padding-left: 0;
  }
}

.page__content p,
.page__content li {
  font-size: 1.02rem;
}

.page__title {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.masthead {
  border-bottom: 1px solid #e7e9ee;
  background: #fff;
}

.masthead__inner-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.7rem 1.4rem;
}

.masthead__menu-item a {
  font-weight: 500;
}

.greedy-nav {
  background: #fff;
}

.sidebar {
  width: 260px;
  opacity: 1;
}

.author__avatar img {
  max-width: 140px;
  border-radius: 50%;
  border: 1px solid #e8ebf2;
}

.author__content {
  margin-top: 0.8rem;
}

.author__name {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.author__bio {
  color: #414141;
  font-size: 0.95rem;
}

.author__urls-wrapper button {
  display: none;
}

.author__urls {
  display: block !important;
  position: static !important;
  right: auto !important;
  margin-top: 0.35rem;
  padding: 0;
  padding-left: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  z-index: auto;
}

.author__urls li {
  margin-bottom: 0.25rem;
}

.author__urls:before,
.author__urls:after {
  display: none;
}

.social-icons .fa,
.social-icons .fas,
.social-icons .fab,
.social-icons [class^="ai"] {
  color: #4e5a75;
}

.page__footer {
  border-top: 1px solid #eceff4;
  margin-top: 2.2rem;
}

/* flatten prior card styling into cleaner sections */
.intro-text,
.about-section,
.project-item,
.publication-item,
.news-item,
.tiny-lib-item {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.about-section,
.project-item,
.publication-item {
  margin: 0 0 1.1rem;
}

.section-title {
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  padding: 0;
  border-bottom: 0;
  color: #111;
  font-size: 1.45rem;
  font-weight: 700;
}

.project-title {
  color: #111;
  margin-bottom: 0.2rem;
}

.project-description {
  color: #333;
}

.github-stars {
  vertical-align: middle;
}

.tiny-compare-wrap {
  margin-top: 0.72rem;
  border: 1px solid #dfe5ef;
  border-radius: 12px;
  overflow-x: auto;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 8px 24px rgba(27, 52, 96, 0.06);
}

.tiny-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.tiny-compare-table th,
.tiny-compare-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.62rem 0.78rem;
  border-bottom: 1px solid #edf1f7;
  line-height: 1.58;
}

.tiny-compare-table th {
  font-size: 0.86rem;
  font-weight: 700;
  color: #24314a;
  background: linear-gradient(180deg, #f7faff 0%, #f2f7ff 100%);
  border-bottom: 1px solid #dfe8f8;
  white-space: nowrap;
}

.tiny-compare-table td {
  color: #2d2d2d;
  font-size: 0.94rem;
}

.tiny-compare-table tbody tr:nth-child(2n) td {
  background: rgba(60, 115, 210, 0.028);
}

.tiny-compare-table tbody tr:hover td {
  background: rgba(62, 117, 214, 0.07);
}

.tiny-compare-table td:first-child {
  white-space: nowrap;
}

.tiny-compare-table td:first-child a,
.tiny-compare-table td:nth-child(2) > a {
  font-weight: 600;
}

.tiny-compare-table td:nth-child(2) {
  white-space: normal;
}

.tiny-compare-table td:nth-child(2) a {
  overflow-wrap: anywhere;
}

.tiny-compare-table td:nth-child(2) > a {
  display: block;
}

.tiny-compare-table th:nth-child(1) {
  width: 16%;
}

.tiny-compare-table th:nth-child(2) {
  width: 23%;
}

.tiny-compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.tiny-compare-table td .github-stars {
  margin-left: 0;
  margin-top: 0.22rem;
  white-space: normal;
  vertical-align: middle;
  display: block;
}

.tiny-compare-table td .github-stars img {
  transform: translateY(1px);
}

.page__content .venue,
.archive .venue,
h3 .venue {
  display: inline-block;
  font-size: 0.72em;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none !important;
  font-variant: normal;
  font-variant-caps: normal;
  padding: 0.08em 0.46em;
  border-radius: 999px;
  margin-right: 0.42rem;
  vertical-align: middle;
  line-height: 1.2;
}

.page__content .venue-preprint,
.archive .venue-preprint,
h3 .venue-preprint {
  color: #8a3f00 !important;
  background: #fff1de;
  border: 1px solid #f4d1a5;
}

.page__content .venue-tech-report,
.archive .venue-tech-report,
h3 .venue-tech-report {
  color: #374151 !important;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

.page__content .venue-conf,
.archive .venue-conf,
h3 .venue-conf {
  color: #164a9f !important;
  background: #e9f1ff;
  border: 1px solid #c8dbff;
}

.page__content .venue-workshop,
.archive .venue-workshop,
h3 .venue-workshop {
  color: #0a5f57 !important;
  background: #e7fbf7;
  border: 1px solid #b7ebe2;
}

.page__content .venue-journal,
.archive .venue-journal,
h3 .venue-journal {
  color: #5d2f85 !important;
  background: #f4ecff;
  border: 1px solid #dcc6ff;
}

ul {
  margin-top: 0.45rem;
  margin-bottom: 0.9rem;
}

li {
  margin: 0.18rem 0;
}

@media (max-width: 1024px) {
  #main {
    padding: 0 1rem;
  }

  .sidebar {
    width: 100%;
    max-width: 100%;
  }

  .author__urls-wrapper {
    display: block;
    width: 100%;
  }

  .author__urls {
    position: static;
    right: auto;
    margin-top: 0.35rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    z-index: auto;
  }

  .page {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .tiny-compare-wrap {
    border: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
  }

  .tiny-compare-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 0.55rem;
  }

  .tiny-compare-table thead {
    display: none;
  }

  .tiny-compare-table tbody,
  .tiny-compare-table tr,
  .tiny-compare-table td {
    display: block;
    width: 100%;
  }

  .tiny-compare-table tr {
    border: 1px solid #e3e9f3;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 14px rgba(26, 47, 86, 0.05);
    padding: 0.2rem 0;
  }

  .tiny-compare-table td {
    border-bottom: 0;
    white-space: normal !important;
    padding: 0.34rem 0.75rem 0.38rem;
    font-size: 0.93rem;
  }

  .tiny-compare-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    color: #5b6680;
    margin-bottom: 0.08rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }
}

.projects-page {
  margin-top: 0.4rem;
}

.projects-intro {
  color: #364056;
  margin-bottom: 0.85rem;
}

.projects-subtitle {
  margin-top: 1.2rem;
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

.tiny-suite-card {
  margin-top: 1rem;
  border: 1px solid #dde5f2;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  padding: 0.78rem 0.88rem 0.88rem;
  box-shadow: 0 8px 20px rgba(24, 46, 84, 0.11);
}

.tiny-suite-card .projects-subtitle {
  margin-top: 0;
}

.tiny-suite-card .projects-intro {
  margin-bottom: 0.6rem;
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.55rem;
  margin-bottom: 1.2rem;
}

.proj-card {
  border: 1px solid #dde5f2;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  padding: 0.78rem 0.88rem;
  box-shadow: 0 8px 20px rgba(24, 46, 84, 0.11);
}

.proj-title {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  line-height: 1.38;
}

.proj-title .github-stars {
  margin-left: 0.35rem;
  white-space: nowrap;
}

.proj-desc {
  margin: 0;
  color: #34435a;
  font-size: 0.95rem;
  line-height: 1.58;
}

.proj-links {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
}

.proj-links span {
  color: #7b8499;
  padding: 0 0.2rem;
}

.tiny-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.3rem;
}

.tiny-mini-card {
  border: 1px solid #e2e8f3;
  border-radius: 10px;
  background: #fff;
  padding: 0.62rem 0.72rem;
}

.tiny-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
  font-size: 0.94rem;
}

.tiny-mini-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.tiny-mini-card .proj-links {
  margin-top: 0.35rem;
}

@media (max-width: 1024px) {
  .proj-grid {
    grid-template-columns: 1fr;
  }

  .tiny-mini-grid {
    grid-template-columns: 1fr;
  }
}

.blog-list-cards .archive__subtitle {
  margin-top: 1.1rem;
}

.blog-list-cards .list__item {
  margin-bottom: 0.75rem;
}

.blog-list-cards .archive__item {
  border: 1px solid #dde5f2;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  padding: 0.7rem 0.85rem;
  box-shadow: 0 7px 18px rgba(24, 46, 84, 0.08);
}

.blog-list-cards .archive__item-title {
  margin-top: 0;
  margin-bottom: 0.2rem;
}

.blog-list-cards .archive__item-excerpt {
  margin-top: 0.45rem;
}
