.jp-page {
  color: #172033;
}

.dark .jp-page {
  color: #e6edf5;
}

.jp-section {
  padding: 4.5rem 1.25rem;
}

.jp-section--soft {
  background: #f6f8fb;
}

.dark .jp-section--soft {
  background: #111827;
}

.jp-hero {
  padding: 5rem 1.25rem 4rem;
  background:
    linear-gradient(90deg, rgba(4, 14, 28, 0.92), rgba(4, 14, 28, 0.74) 44%, rgba(4, 14, 28, 0.42)),
    url("/media/background.png") center / cover no-repeat,
    #071425;
}

.dark .jp-hero {
  background:
    linear-gradient(90deg, rgba(4, 14, 28, 0.94), rgba(4, 14, 28, 0.78) 44%, rgba(4, 14, 28, 0.5)),
    url("/media/background.png") center / cover no-repeat,
    #071425;
}

.jp-container {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.jp-narrow {
  width: min(820px, 100%);
  margin: 0 auto;
}

.jp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 2.5rem;
  align-items: center;
}

.jp-kicker {
  margin: 0 0 0.85rem;
  color: #7dd3fc;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dark .jp-kicker {
  color: #5eead4;
}

.jp-title {
  margin: 0;
  max-width: 840px;
  color: #f8fafc;
  font-size: 3.55rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.04;
}

.dark .jp-title {
  color: #f8fafc;
}

.jp-subtitle {
  margin: 1.25rem 0 0;
  max-width: 760px;
  color: #dbeafe;
  font-size: 1.15rem;
  line-height: 1.75;
}

.dark .jp-subtitle {
  color: #cbd5e1;
}

.jp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.jp-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.65rem 1rem;
  border: 1px solid #0f766e;
  border-radius: 8px;
  background: #0f766e;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.jp-button:hover {
  background: #115e59;
  color: #fff;
}

.jp-button--ghost {
  background: transparent;
  color: #0f766e;
}

.jp-button--ghost:hover {
  background: #ecfeff;
  color: #115e59;
}

.dark .jp-button--ghost {
  color: #99f6e4;
}

.dark .jp-button--ghost:hover {
  background: rgba(45, 212, 191, 0.12);
  color: #ccfbf1;
}

.jp-profile-card {
  border: 1px solid rgba(191, 219, 254, 0.28);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  padding: 1.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.dark .jp-profile-card {
  border-color: #243244;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: none;
}

.jp-profile-card img {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #fff;
}

.jp-profile-card h2 {
  margin: 1rem 0 0.25rem;
  color: #f8fafc;
  font-size: 1.35rem;
  line-height: 1.2;
}

.dark .jp-profile-card h2 {
  color: #f8fafc;
}

.jp-profile-card p {
  margin: 0.35rem 0;
  color: #dbeafe;
  line-height: 1.5;
}

.dark .jp-profile-card p {
  color: #cbd5e1;
}

.jp-meta-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.jp-meta-list li {
  padding-top: 0.7rem;
  border-top: 1px solid rgba(191, 219, 254, 0.22);
  color: #dbeafe;
  font-size: 0.95rem;
}

.dark .jp-meta-list li {
  border-color: #334155;
  color: #cbd5e1;
}

.jp-heading {
  margin: 0 0 0.85rem;
  color: #0f172a;
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}

.dark .jp-heading {
  color: #f8fafc;
}

.jp-lead {
  margin: 0;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.75;
}

.dark .jp-lead {
  color: #cbd5e1;
}

.jp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.jp-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jp-card {
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #fff;
  padding: 1.25rem;
}

.dark .jp-card {
  border-color: #243244;
  background: #0f172a;
}

.jp-card h3 {
  margin: 0 0 0.55rem;
  color: #0f172a;
  font-size: 1.12rem;
  line-height: 1.35;
}

.dark .jp-card h3 {
  color: #f8fafc;
}

.jp-card p,
.jp-card li {
  color: #475569;
  line-height: 1.65;
}

.dark .jp-card p,
.dark .jp-card li {
  color: #cbd5e1;
}

.jp-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.jp-research-card img {
  aspect-ratio: 2 / 1;
  object-fit: contain;
  background: #f8fafc;
}

.dark .jp-research-card img {
  background: #101827;
}

.jp-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.jp-tag {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.3;
}

.dark .jp-tag {
  border-color: #475569;
  color: #dbeafe;
}

.jp-list {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.jp-list li {
  border-left: 3px solid #0f766e;
  padding: 0.15rem 0 0.15rem 1rem;
}

.jp-list h3 {
  margin: 0 0 0.3rem;
  color: #0f172a;
  font-size: 1.05rem;
}

.dark .jp-list h3 {
  color: #f8fafc;
}

.jp-list p {
  margin: 0;
  color: #475569;
  line-height: 1.65;
}

.dark .jp-list p {
  color: #cbd5e1;
}

.jp-timeline {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.jp-timeline-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1.25rem;
  border-left: 3px solid #0f766e;
  padding: 0.1rem 0 0.1rem 1rem;
}

.jp-date {
  color: #64748b;
  font-size: 0.94rem;
  font-weight: 700;
}

.dark .jp-date {
  color: #94a3b8;
}

.jp-timeline-item h3 {
  margin: 0 0 0.35rem;
  color: #0f172a;
  font-size: 1.08rem;
}

.dark .jp-timeline-item h3 {
  color: #f8fafc;
}

.jp-timeline-item p {
  margin: 0;
  color: #475569;
  line-height: 1.65;
}

.dark .jp-timeline-item p {
  color: #cbd5e1;
}

.jp-publication {
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0;
}

.dark .jp-publication {
  border-color: #334155;
}

.jp-publication h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

.jp-publication p {
  margin: 0.2rem 0;
  color: #475569;
  line-height: 1.55;
}

.dark .jp-publication p {
  color: #cbd5e1;
}

.jp-note {
  margin-top: 1rem;
  color: #64748b;
  font-size: 0.94rem;
  line-height: 1.6;
}

.dark .jp-note {
  color: #94a3b8;
}

.jp-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.jp-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.jp-hero-contact {
  margin: 1.1rem 0 0;
  color: #dbeafe;
  font-size: 0.98rem;
}

.jp-hero-contact a {
  color: #bae6fd;
  font-weight: 700;
  text-decoration: none;
}

.jp-hero-contact a:hover {
  color: #fff;
}

.jp-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  border: 1px solid rgba(191, 219, 254, 0.35);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: rgba(15, 23, 42, 0.42);
  color: #e0f2fe;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.jp-social-link:hover {
  border-color: rgba(125, 211, 252, 0.75);
  background: rgba(14, 116, 144, 0.35);
  color: #fff;
}

.jp-social-link svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.jp-card .jp-social-links {
  margin-top: 0.75rem;
}

.jp-card .jp-social-link {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f766e;
}

.jp-card .jp-social-link:hover {
  border-color: #0f766e;
  background: #ecfeff;
  color: #115e59;
}

.dark .jp-card .jp-social-link {
  border-color: #475569;
  background: #111827;
  color: #99f6e4;
}

.jp-archive-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.jp-archive-list a {
  display: block;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
}

.jp-archive-list a:hover {
  border-color: #0f766e;
  color: #0f766e;
}

.dark .jp-archive-list a {
  border-color: #243244;
  background: #0f172a;
  color: #e6edf5;
}

.dark .jp-archive-list a:hover {
  border-color: #5eead4;
  color: #99f6e4;
}

.jp-publications-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.jp-pub-sidebar {
  position: sticky;
  top: calc(var(--navbar-height, 72px) + 1rem);
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #fff;
  padding: 0.9rem;
}

.dark .jp-pub-sidebar {
  border-color: #243244;
  background: #0f172a;
}

.jp-pub-sidebar nav {
  display: grid;
  gap: 0.25rem;
}

.jp-pub-sidebar a,
.jp-pub-nav-group span {
  display: block;
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.35;
  text-decoration: none;
}

.jp-pub-sidebar a:hover {
  background: #ecfeff;
  color: #0f766e;
}

.dark .jp-pub-sidebar a,
.dark .jp-pub-nav-group span {
  color: #cbd5e1;
}

.dark .jp-pub-sidebar a:hover {
  background: rgba(45, 212, 191, 0.12);
  color: #99f6e4;
}

.jp-pub-nav-group {
  margin-top: 0.35rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.45rem;
}

.dark .jp-pub-nav-group {
  border-color: #334155;
}

.jp-pub-nav-group span {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.jp-publications-main {
  min-width: 0;
}

.jp-pub-section + .jp-pub-section,
.jp-year-section + .jp-year-section {
  margin-top: 3rem;
}

.jp-pub-overview,
.jp-resource-panel {
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #fff;
  padding: 1.25rem;
}

.dark .jp-pub-overview,
.dark .jp-resource-panel {
  border-color: #243244;
  background: #0f172a;
}

.jp-pub-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.jp-pub-stat-grid div {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.8rem;
  background: #f8fafc;
}

.dark .jp-pub-stat-grid div {
  border-color: #334155;
  background: #111827;
}

.jp-pub-stat-grid strong {
  display: block;
  color: #0f766e;
  font-size: 1.65rem;
  line-height: 1;
}

.jp-pub-stat-grid span {
  color: #64748b;
  font-size: 0.86rem;
}

.dark .jp-pub-stat-grid span {
  color: #94a3b8;
}

.jp-pub-card-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.jp-pub-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
}

.jp-pub-card--featured {
  border-color: rgba(15, 118, 110, 0.35);
}

.dark .jp-pub-card {
  border-color: #243244;
  background: #0f172a;
}

.jp-pub-thumb {
  position: relative;
  display: grid;
  place-items: center;
  align-self: start;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  min-height: 138px;
  aspect-ratio: 4 / 5;
  border-radius: 7px;
  background: linear-gradient(135deg, #0f766e, #0369a1);
  color: #fff;
  font-weight: 800;
}

.jp-pub-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.jp-pub-thumb[data-image-status="real"] {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: inherit;
}

.dark .jp-pub-thumb[data-image-status="real"] {
  border-color: #334155;
  background: #111827;
}

.jp-pub-thumb[data-image-status="real"] img {
  object-fit: contain;
  opacity: 1;
  padding: 0.35rem;
}

.jp-pub-thumb[data-image-status="real"][data-image-type="journal_cover"] {
  aspect-ratio: 1 / 1.414;
  min-height: 200px;
}

.jp-pub-thumb[data-image-status="real"][data-image-type="journal_cover"] img {
  padding: 0.4rem;
}

.jp-pub-thumb[data-image-status="real"][data-image-type="toc"],
.jp-pub-thumb[data-image-status="real"][data-image-type="graphical_abstract"],
.jp-pub-thumb[data-image-status="real"][data-image-type="highlighting_figure"] {
  aspect-ratio: 4 / 3;
  min-height: 132px;
}

.jp-pub-thumb[data-image-status="real"]::before,
.jp-pub-thumb[data-image-status="real"]::after {
  display: none;
}

.jp-pub-thumb::before,
.jp-pub-thumb::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.jp-pub-thumb::before {
  width: 84px;
  height: 84px;
}

.jp-pub-thumb::after {
  width: 138px;
  height: 138px;
}

.jp-pub-thumb span {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.42);
  padding: 0.28rem 0.58rem;
  max-width: 92%;
  text-align: center;
  font-size: 1rem;
  backdrop-filter: blur(3px);
}

.jp-pub-thumb--layered { background: linear-gradient(135deg, #164e63, #0f766e); }
.jp-pub-thumb--defects { background: linear-gradient(135deg, #7c2d12, #0f766e); }
.jp-pub-thumb--interfaces { background: linear-gradient(135deg, #1d4ed8, #0f766e); }
.jp-pub-thumb--electronic { background: linear-gradient(135deg, #334155, #0e7490); }
.jp-pub-thumb--dftb { background: linear-gradient(135deg, #0f172a, #0f766e); }
.jp-pub-thumb--dynamics { background: linear-gradient(135deg, #365314, #0e7490); }
.jp-pub-thumb--ml { background: linear-gradient(135deg, #312e81, #0f766e); }
.jp-pub-thumb--opto { background: linear-gradient(135deg, #7e22ce, #0284c7); }
.jp-pub-thumb--catalysis { background: linear-gradient(135deg, #854d0e, #0f766e); }
.jp-pub-thumb--lowd { background: linear-gradient(135deg, #475569, #0f766e); }

.jp-pub-content {
  min-width: 0;
  max-width: 100%;
}

.jp-pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.35rem;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 700;
}

.jp-pub-badge {
  border-radius: 999px;
  background: #ccfbf1;
  padding: 0.1rem 0.45rem;
  color: #0f766e;
  font-size: 0.75rem;
}

.jp-pub-badge--thesis {
  background: #e0f2fe;
  color: #0369a1;
}

.jp-pub-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.08rem;
  line-height: 1.38;
  overflow-wrap: break-word;
}

.jp-pub-card h3 a {
  color: inherit;
  text-decoration: none;
}

.jp-pub-card h3 a:hover {
  color: #0f766e;
}

.dark .jp-pub-card h3 {
  color: #f8fafc;
}

.jp-pub-authors,
.jp-pub-venue,
.jp-pub-summary {
  margin: 0.4rem 0 0;
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.jp-pub-authors {
  color: #334155;
}

.dark .jp-pub-authors,
.dark .jp-pub-venue,
.dark .jp-pub-summary {
  color: #cbd5e1;
}

.jp-pub-tags {
  margin-top: 0.75rem;
}

.jp-pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.jp-pub-links a {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  color: #0f766e;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.jp-pub-links a:hover {
  border-color: #0f766e;
  background: #ecfeff;
}

.dark .jp-pub-links a {
  border-color: #475569;
  color: #99f6e4;
}

.jp-year-section h3,
.jp-topic-card h3,
.jp-resource-list h3,
.jp-related-pubs h2 {
  margin: 0 0 0.65rem;
  color: #0f172a;
  font-size: 1.25rem;
  line-height: 1.25;
}

.dark .jp-year-section h3,
.dark .jp-topic-card h3,
.dark .jp-resource-list h3,
.dark .jp-related-pubs h2 {
  color: #f8fafc;
}

.jp-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.jp-topic-card,
.jp-resource-list article,
.jp-related-pubs {
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
}

.dark .jp-topic-card,
.dark .jp-resource-list article,
.dark .jp-related-pubs {
  border-color: #243244;
  background: #0f172a;
}

.jp-topic-card p,
.jp-resource-list p,
.jp-related-pubs p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

.dark .jp-topic-card p,
.dark .jp-resource-list p,
.dark .jp-related-pubs p {
  color: #94a3b8;
}

.jp-topic-card ul {
  display: grid;
  gap: 0.35rem;
  margin: 0.8rem 0 0;
  padding-left: 1rem;
}

.jp-topic-card a,
.jp-resource-list a {
  color: #0f766e;
  text-decoration: none;
}

.jp-topic-card a:hover,
.jp-resource-list a:hover {
  text-decoration: underline;
}

.jp-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.jp-tag-cloud .jp-tag {
  text-decoration: none;
}

.jp-tag-cloud .jp-tag span {
  color: #64748b;
  font-size: 0.76rem;
}

.jp-related-pubs {
  margin: 2rem 0;
}

.jp-publication-detail-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  margin: 2rem 0;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #f8fafc;
  padding: 1rem;
}

.dark .jp-publication-detail-card {
  border-color: #243244;
  background: #0f172a;
}

.jp-publication-detail-card .jp-pub-thumb {
  min-height: 176px;
}

.jp-publication-page {
  max-width: 920px;
}

.jp-publication-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.jp-publication-meta-grid div {
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #fff;
  padding: 0.85rem;
}

.dark .jp-publication-meta-grid div {
  border-color: #243244;
  background: #0f172a;
}

.jp-publication-meta-grid strong,
.jp-publication-meta-grid span {
  display: block;
}

.jp-publication-meta-grid strong {
  margin-bottom: 0.3rem;
  color: #0f172a;
  font-size: 0.82rem;
}

.dark .jp-publication-meta-grid strong {
  color: #f8fafc;
}

.jp-publication-meta-grid span {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.5;
}

.dark .jp-publication-meta-grid span {
  color: #cbd5e1;
}

.jp-publication-detail-card h2 {
  margin: 0 0 0.5rem;
  color: #0f172a;
  font-size: 1.15rem;
  line-height: 1.35;
}

.dark .jp-publication-detail-card h2 {
  color: #e5e7eb;
}

.jp-detail-date-note {
  margin: 0 0 0.85rem;
  color: #64748b;
  font-size: 0.9rem;
}

.dark .jp-detail-date-note {
  color: #94a3b8;
}

.jp-publication-abstract {
  margin: 2rem 0;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #fff;
  padding: 1.15rem;
}

.dark .jp-publication-abstract {
  border-color: #243244;
  background: #0f172a;
}

.jp-publication-abstract h2 {
  margin: 0 0 0.75rem;
  color: #0f172a;
  font-size: 1.2rem;
  line-height: 1.3;
}

.dark .jp-publication-abstract h2 {
  color: #f8fafc;
}

.jp-publication-abstract p {
  margin: 0;
  color: #334155;
  line-height: 1.7;
}

.jp-publication-abstract p + p {
  margin-top: 0.85rem;
}

.dark .jp-publication-abstract p {
  color: #cbd5e1;
}

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

.jp-related-item {
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.8rem;
  text-decoration: none;
}

.dark .jp-related-item {
  border-color: #334155;
}

.jp-related-item span {
  display: block;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.jp-related-item strong {
  display: block;
  margin-top: 0.25rem;
  color: #0f172a;
  font-size: 0.96rem;
  line-height: 1.35;
}

.dark .jp-related-item strong {
  color: #f8fafc;
}

.jp-related-item:hover {
  border-color: #0f766e;
}

@media (max-width: 900px) {
  .jp-hero {
    background:
      linear-gradient(180deg, rgba(4, 14, 28, 0.94), rgba(4, 14, 28, 0.78)),
      url("/media/background.png") 62% center / cover no-repeat,
      #071425;
  }

  .jp-hero-grid,
  .jp-grid,
  .jp-grid--two {
    grid-template-columns: 1fr;
  }

  .jp-title {
    font-size: 2.35rem;
  }

  .jp-section {
    padding: 3.25rem 1rem;
  }

  .jp-timeline-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .jp-publications-layout {
    grid-template-columns: 1fr;
  }

  .jp-pub-sidebar {
    position: static;
  }

  .jp-pub-sidebar nav {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .jp-pub-sidebar a,
  .jp-pub-nav-group span {
    white-space: nowrap;
  }

  .jp-pub-nav-group {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    border: 0;
    padding: 0;
  }

  .jp-topic-grid,
  .jp-related-grid {
    grid-template-columns: 1fr;
  }

  .jp-pub-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 640px) {
  .jp-pub-card,
  .jp-pub-card.jp-pub-card--featured {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    justify-items: stretch;
    padding: 0.85rem;
  }

  .jp-pub-card > .jp-pub-thumb {
    align-self: start;
    justify-self: start;
    width: min(100%, 18rem);
    max-width: 18rem;
    max-height: 230px;
    min-height: 0;
    margin: 0;
    aspect-ratio: 16 / 10;
  }

  .jp-pub-card > .jp-pub-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .jp-pub-card > .jp-pub-content {
    width: 100%;
    min-width: 0;
  }

  .jp-pub-card > .jp-pub-thumb[data-image-status="real"][data-image-type="journal_cover"] {
    width: min(42vw, 9.75rem);
    max-width: 9.75rem;
    max-height: 220px;
    min-height: 0;
    aspect-ratio: 1 / 1.414;
    justify-self: start;
  }

  .jp-pub-card > .jp-pub-thumb[data-image-status="real"][data-image-type="toc"],
  .jp-pub-card > .jp-pub-thumb[data-image-status="real"][data-image-type="graphical_abstract"],
  .jp-pub-card > .jp-pub-thumb[data-image-status="real"][data-image-type="highlighting_figure"] {
    width: min(100%, 18rem);
    max-width: 18rem;
    max-height: 220px;
    min-height: 0;
    aspect-ratio: 16 / 10;
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .jp-title {
    font-size: 2rem;
  }

  .jp-heading {
    font-size: 1.65rem;
  }

  .jp-button {
    width: 100%;
    justify-content: center;
  }

  .jp-publication-detail-card {
    grid-template-columns: 1fr;
  }

  .jp-pub-card > .jp-pub-thumb {
    width: min(100%, 17rem);
    max-width: 17rem;
    max-height: 220px;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .jp-pub-card > .jp-pub-thumb[data-image-status="real"][data-image-type="journal_cover"] {
    width: min(40vw, 9.25rem);
    max-width: 9.25rem;
    max-height: 210px;
    min-height: 0;
    aspect-ratio: 1 / 1.414;
  }

  .jp-pub-card > .jp-pub-thumb[data-image-status="real"][data-image-type="toc"],
  .jp-pub-card > .jp-pub-thumb[data-image-status="real"][data-image-type="graphical_abstract"],
  .jp-pub-card > .jp-pub-thumb[data-image-status="real"][data-image-type="highlighting_figure"] {
    width: min(100%, 17rem);
    max-width: 17rem;
    max-height: 210px;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .jp-publication-meta-grid {
    grid-template-columns: 1fr;
  }

  .jp-pub-stat-grid {
    grid-template-columns: 1fr;
  }
}
