/* Home page styles. */

.hero__contact-line a,
.contact-card a,
.publication-card h3 a {
  text-decoration: none;
}

.hero__contact-line a:hover,
.hero__contact-line a:focus-visible,
.contact-card a:hover,
.contact-card a:focus-visible,
.publication-card h3 a:hover,
.publication-card h3 a:focus-visible {
  text-decoration: none;
}

.page-shell--home {
  --home-bg-start: #f8fbff;
  --home-bg-mid: #f3f7fc;
  --home-bg-end: #fff9f2;
  --home-card: linear-gradient(135deg, rgba(241, 247, 255, 0.82), rgba(255, 247, 237, 0.5));
  --home-card-strong: linear-gradient(135deg, rgba(247, 251, 255, 0.94), rgba(255, 250, 242, 0.68));
  --home-ink: #1e2938;
  --home-muted: #5c6878;
  --home-soft: #e7eef6;
  --home-blue: #3b82c4;
  --home-teal: #2c9a8b;
  --home-amber: #d98b2b;
  --home-border: rgba(73, 101, 138, 0.14);
  --home-shadow: 0 18px 40px rgba(31, 57, 86, 0.1);
  min-height: 100vh;
  padding-top: 0;
  color: var(--home-ink);
  background:
    radial-gradient(circle at 16% 12%, rgba(124, 163, 214, 0.14), transparent 28rem),
    radial-gradient(circle at 86% 24%, rgba(231, 166, 79, 0.14), transparent 25rem),
    linear-gradient(135deg, var(--home-bg-start) 0%, var(--home-bg-mid) 48%, var(--home-bg-end) 100%);
}

.home-page {
  width: min(68rem, calc(100vw - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: 3.2rem;
  align-items: start;
  padding-top: 2.1rem;
}

.profile-card {
  position: sticky;
  top: 5rem;
  padding: 0.25rem 0.25rem 1.2rem;
}

.profile-card__photo {
  width: 10.5rem;
  aspect-ratio: 3 / 4;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0.7rem;
  border: 1px solid rgba(24, 32, 42, 0.08);
  box-shadow: 0 12px 24px rgba(24, 32, 42, 0.08);
}

.profile-card__name {
  margin: 1rem 0 0;
  font-size: 1.35rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.profile-card__name-cn {
  margin: 0.28rem 0 0;
  color: var(--home-muted);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.profile-card__role,
.profile-card__org {
  margin: 0.55rem 0 0;
  color: #394656;
  font-size: 0.95rem;
}

.profile-card__role {
  font-weight: 700;
}

.profile-card__org {
  color: var(--muted);
}

.profile-card__links {
  margin-top: 1rem;
  display: grid;
  gap: 0.72rem;
}

.profile-card__links--icons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: center;
}

.profile-card__pages {
  margin-top: 1rem;
  display: grid;
  gap: 0.36rem;
}

.profile-card__pages-title {
  margin: 0 0 0.05rem;
  color: var(--home-muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-page-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: fit-content;
  max-width: 100%;
  min-height: 1.9rem;
  padding: 0.05rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #314456;
  text-decoration: none;
  font-size: 0.92rem;
  box-shadow: none;
  backdrop-filter: none;
  transition: color 180ms ease;
}

.profile-page-link__main {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
}

.profile-page-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  color: #2868aa;
}

.profile-page-link__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0.9;
}

.profile-page-link__text {
  min-width: 0;
  display: block;
}

.profile-page-link__title {
  color: #2868aa;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.15;
}

.profile-page-link:hover,
.profile-page-link:focus-visible {
  color: #1f5b98;
}

.profile-page-link:hover .profile-page-link__title,
.profile-page-link:focus-visible .profile-page-link__title {
  color: #1f5b98;
}

.profile-card__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #2f3a47;
  font-weight: 650;
  text-decoration: none;
}

.profile-card__links a::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border: 1.5px solid #667487;
  border-radius: 0.12rem;
}

.profile-card__links--icons a::before {
  content: none;
}

.profile-icon-link {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  height: auto;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--home-border);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(241, 247, 255, 0.84), rgba(255, 247, 237, 0.46));
  box-shadow: 0 8px 18px rgba(31, 57, 86, 0.08);
  backdrop-filter: blur(14px);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.profile-icon-link img {
  width: 1.22rem;
  height: 1.22rem;
  object-fit: contain;
  display: block;
  opacity: 1;
  filter: none;
}

.profile-icon-link span {
  color: #5f7083;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-icon--linkedin {
  width: 1.34rem;
  height: 1.34rem;
  border-radius: 0.12rem;
  background: #0a66c2;
  color: #ffffff !important;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.brand-icon--scholar {
  width: 1.38rem;
  height: 1.38rem;
  display: block;
}

.profile-icon-link--wos img {
  width: 1.34rem;
  height: 1.34rem;
}

.profile-icon-link--ieee {
  background: #ffffff;
  border-color: rgba(73, 101, 138, 0.2);
}

.profile-icon-link--ieee img {
  width: 1.48rem;
  height: 0.72rem;
  opacity: 1;
  filter: brightness(0) saturate(100%) opacity(0.8);
}

.profile-icon-link--linkedin {
  background: #eef6ff;
  border-color: rgba(10, 102, 194, 0.24);
}

.profile-icon-link:hover,
.profile-icon-link:focus-visible {
  border-color: rgba(73, 101, 138, 0.26);
  background: linear-gradient(135deg, rgba(248, 251, 255, 0.96), rgba(255, 249, 242, 0.62));
  box-shadow: 0 12px 24px rgba(31, 57, 86, 0.12);
}

.home-content {
  min-width: 0;
  padding-bottom: 4rem;
}

.home-intro h2,
.home-section__heading h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(1.4rem, 2vw, 1.78rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.home-intro__panel,
.news-card,
.contact-card,
.service-card,
.project-card,
.publication-card {
  background: var(--home-card);
  border: 1px solid var(--home-border);
  border-radius: 0.5rem;
  box-shadow: var(--home-shadow);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.home-intro__panel:hover,
.news-card:hover,
.contact-card:hover,
.service-card:hover,
.project-card:hover,
.publication-card:hover {
  border-color: rgba(73, 101, 138, 0.22);
  background: var(--home-card-strong);
  box-shadow: 0 22px 48px rgba(31, 57, 86, 0.14);
}

.home-intro__panel {
  margin-top: 1.7rem;
  padding: 1.55rem 1.75rem;
  border-left: 4px solid var(--home-teal);
}

.home-intro__panel p {
  margin: 0;
  color: var(--home-muted);
  font-size: 1rem;
}

.home-intro__panel p + p {
  margin-top: 0.85rem;
}

.intro-work-list {
  margin: 0.45rem 0 0;
  padding-left: 1.15rem;
  color: var(--home-muted);
  font-size: 0.96rem;
}

.intro-work-list li {
  margin: 0.22rem 0;
  padding-left: 0.12rem;
}

.interest-block {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.38rem 0.5rem;
}

.interest-block__label {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.86rem;
  font-weight: 400;
}

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.interest-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 1.52rem;
  padding: 0 0.54rem;
  border: 1px solid rgba(44, 154, 139, 0.18);
  border-radius: 999px;
  background: rgba(44, 154, 139, 0.1);
  color: #247669;
  font-size: 0.78rem;
  font-weight: 750;
}

.home-intro__panel a,
.publication-card a,
.contact-card a {
  color: #2868aa;
}

.home-section {
  margin-top: 3.1rem;
}

.home-section__heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.45rem;
}

.home-section__heading::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--home-blue) 0%, rgba(59, 130, 196, 0) 100%);
}

.news-card {
  padding: 0.42rem 1.25rem;
  max-height: 13.5rem;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(73, 101, 138, 0.42) transparent;
  scrollbar-gutter: stable;
}

.news-card::-webkit-scrollbar {
  width: 0.7rem;
}

.news-card::-webkit-scrollbar-track {
  background: transparent;
}

.news-card::-webkit-scrollbar-thumb {
  background: rgba(73, 101, 138, 0.34);
  border: 0.16rem solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.news-card:empty::before {
  content: "Loading news...";
  display: block;
  padding: 0.9rem 0;
  color: var(--home-muted);
}

.news-card::-webkit-scrollbar-thumb:hover {
  background: rgba(73, 101, 138, 0.5);
  background-clip: padding-box;
}

.news-item {
  display: grid;
  grid-template-columns: 5.05rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.62rem 0;
  border-bottom: 1px dashed rgba(24, 32, 42, 0.14);
}

.news-item:last-child {
  border-bottom: 0;
}

.news-item time {
  display: inline-flex;
  justify-content: center;
  padding: 0.14rem 0.48rem;
  border: 1px solid rgba(24, 32, 42, 0.1);
  border-radius: 0.25rem;
  background: linear-gradient(135deg, rgba(241, 247, 255, 0.82), rgba(255, 248, 240, 0.42));
  color: var(--home-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.news-item p {
  margin: 0;
  color: var(--home-muted);
  line-height: 1.45;
}

.news-item__icon {
  display: inline-block;
  min-width: 1.15rem;
  text-align: center;
}

.news-item a {
  color: #2868aa;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.18em;
}

.project-list,
.publication-card-list {
  display: grid;
  gap: 1.25rem;
}

.project-card {
  display: grid;
  grid-template-columns: 13.2rem minmax(0, 1fr);
  gap: 1.35rem;
  align-items: center;
  min-height: 12.2rem;
  padding: 1.25rem;
}

.project-card__image {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 0.32rem;
  background: #ffffff;
}

.project-card:nth-child(2) .project-card__image {
  aspect-ratio: 1.55 / 1;
  object-position: center 16%;
}

.project-card__body {
  min-width: 0;
}

.project-card__meta,
.project-card__status {
  margin: 0;
  color: var(--home-blue);
  font-size: 0.9rem;
  font-weight: 700;
}

.project-card h3,
.publication-card h3 {
  margin: 0.42rem 0 0;
  color: var(--home-ink);
  font-size: 1.04rem;
  line-height: 1.32;
}

.project-card p {
  color: var(--home-muted);
}

.project-card__body > p:not(.project-card__meta):not(.project-card__status) {
  margin: 0.55rem 0 0;
}

.method-key {
  color: var(--home-muted);
  box-shadow: inset 0 -0.12em 0 rgba(44, 154, 139, 0.2);
}

.project-card__status {
  margin-top: 0.7rem;
  color: var(--home-muted);
  font-weight: 600;
}

.publication-card {
  padding: 1.15rem 1.35rem;
}

.publication-card__category {
  margin: 0 0 0.22rem;
  color: var(--home-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publication-card h3 {
  margin-top: 0;
}

.publication-card p {
  margin: 0.38rem 0 0;
  color: var(--home-muted);
}

.contact-card {
  padding: 1.25rem 1.55rem;
}

.contact-card p {
  margin: 0.32rem 0 0;
  color: var(--home-muted);
}

.service-card {
  padding: 1.45rem 1.75rem;
}

.service-card h3 {
  margin: 0;
  color: var(--home-ink);
  font-size: 1.18rem;
  line-height: 1.25;
}

.service-card__rule {
  height: 1px;
  margin: 0.7rem 0 0.95rem;
  background: rgba(41, 54, 71, 0.12);
}

.service-card__label {
  margin: 0;
  color: var(--home-blue);
  font-weight: 750;
}

.service-card ul {
  margin: 0.55rem 0 0 1.2rem;
  padding: 0;
  color: var(--home-muted);
}

.service-card li {
  margin: 0.28rem 0;
}

.visitor-map {
  margin-top: 3.1rem;
}

.visitor-map__widget {
  width: min(100%, 21rem);
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  line-height: 0;
}

.visitor-map__widget a,
.visitor-map__widget img {
  display: block;
}

.visitor-map__widget img {
  width: 100%;
  height: auto;
}

@media (max-width: 980px) {
  .home-page {
      grid-template-columns: 11.5rem minmax(0, 1fr);
      gap: 2rem;
    }
  
  .project-card {
      grid-template-columns: 10.5rem minmax(0, 1fr);
    }
  
  .profile-card__links--icons {
      gap: 0.42rem;
    }
}

@media (max-width: 780px) {
  .home-page {
      width: var(--page-width);
      grid-template-columns: 1fr;
      gap: 1.35rem;
    }
  
  .profile-card {
      position: static;
      display: grid;
      grid-template-columns: 1fr;
      gap: 0;
      align-items: start;
      padding: 1.15rem 1rem 1rem;
      background: var(--home-card);
      border: 1px solid var(--home-border);
      border-radius: 0.9rem;
      box-shadow: 0 14px 28px rgba(24, 32, 42, 0.07);
      backdrop-filter: blur(18px);
    }
  
  .profile-card__photo {
      grid-row: auto;
      width: min(13rem, 100%);
      margin: 0 auto;
    }
  
  .profile-card__name {
      margin-top: 1.15rem;
      text-align: center;
      font-size: 1.5rem;
    }
  
  .profile-card__name-cn {
      text-align: center;
    }
  
  .profile-card__role,
    .profile-card__org {
      text-align: center;
    }
  
  .profile-card__role {
      margin-top: 0.7rem;
      font-size: 0.98rem;
    }
  
  .profile-card__org {
      margin-top: 0.6rem;
      font-size: 0.98rem;
      line-height: 1.45;
    }
  
  .profile-card__links:not(.profile-card__links--icons) {
      grid-column: 1 / -1;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      margin-top: 1rem;
    }
  
  .profile-card__links--icons {
      grid-column: 1 / -1;
      margin-top: 1.15rem;
      gap: 0.55rem;
    }
  
  .profile-card__pages {
      grid-column: 1 / -1;
      grid-template-columns: 1fr;
      margin-top: 1.45rem;
    }
  
  .profile-card__pages-title {
      grid-column: 1 / -1;
      margin-bottom: 0.05rem;
    }
  
  .profile-page-link {
      gap: 0.62rem;
      min-height: 2.45rem;
      padding: 0.16rem 0;
      width: 100%;
    }
  
  .profile-page-link__icon {
      width: 1.15rem;
      height: 1.15rem;
    }
  
  .home-intro__panel,
    .news-card,
    .contact-card,
    .service-card,
    .publication-card {
      padding: 1rem;
    }
  
  .news-item,
    .project-card {
      grid-template-columns: 1fr;
    }
  
  .news-item {
      gap: 0.38rem;
    }
  
  .project-card {
      padding: 1rem;
    }
  
  .project-card__image {
      aspect-ratio: 16 / 9;
    }
}

html[data-theme="dark"] .page-shell--home {
    --home-bg-start: #101821;
    --home-bg-mid: #13231f;
    --home-bg-end: #211b13;
    --home-card: linear-gradient(135deg, rgba(20, 37, 42, 0.68), rgba(43, 34, 21, 0.42));
    --home-card-strong: linear-gradient(135deg, rgba(28, 50, 57, 0.78), rgba(54, 43, 27, 0.52));
    --home-ink: #edf4f7;
    --home-muted: #b6c3ce;
    --home-soft: #263445;
    --home-blue: #7ab7f0;
    --home-teal: #62d3bf;
    --home-amber: #f1b65b;
    --home-border: rgba(218, 232, 240, 0.12);
    --home-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
    background:
      radial-gradient(circle at 14% 10%, rgba(98, 211, 191, 0.16), transparent 28rem),
      radial-gradient(circle at 88% 24%, rgba(241, 182, 91, 0.13), transparent 25rem),
      linear-gradient(135deg, var(--home-bg-start) 0%, var(--home-bg-mid) 48%, var(--home-bg-end) 100%);
}

html[data-theme="dark"] .page-shell--home .site-nav__link {
    border-color: var(--home-border);
    background: rgba(23, 34, 50, 0.78);
    color: #c8d5df;
}

html[data-theme="dark"] .page-shell--home .site-nav__link--active {
    border-color: rgba(98, 211, 191, 0.38);
    background: rgba(42, 89, 82, 0.42);
    color: #d8fff8;
}

html[data-theme="dark"] .profile-card__name,
html[data-theme="dark"] .home-intro h2,
html[data-theme="dark"] .home-section__heading h2,
html[data-theme="dark"] .project-card h3,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .publication-card h3 {
    color: var(--home-ink);
}

html[data-theme="dark"] .profile-card__role,
html[data-theme="dark"] .profile-card__org,
html[data-theme="dark"] .home-intro__panel p,
html[data-theme="dark"] .intro-work-list,
html[data-theme="dark"] .news-item p,
html[data-theme="dark"] .project-card p,
html[data-theme="dark"] .publication-card p,
html[data-theme="dark"] .service-card ul,
html[data-theme="dark"] .contact-card p {
    color: var(--home-muted);
}

html[data-theme="dark"] .method-key {
  color: var(--home-muted);
  box-shadow: inset 0 -0.12em 0 rgba(98, 211, 191, 0.22);
}

html[data-theme="dark"] .profile-card__photo {
    border-color: var(--home-border);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .profile-icon-link {
    border-color: var(--home-border);
    background: var(--home-card);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .profile-icon-link--ieee {
    background: var(--home-card);
    border-color: var(--home-border);
}

html[data-theme="dark"] .profile-icon-link--linkedin {
  background: var(--home-card);
  border-color: var(--home-border);
}

html[data-theme="dark"] .profile-icon-link span {
    color: #d5e7ef;
}

html[data-theme="dark"] .profile-icon-link .brand-icon--linkedin {
  color: #ffffff;
}

html[data-theme="dark"] .profile-icon-link .brand-icon--scholar {
  filter: none;
}

html[data-theme="dark"] .profile-icon-link img {
  opacity: 1;
  filter: none;
}

html[data-theme="dark"] .profile-icon-link--ieee img {
  opacity: 1;
  filter: none;
}

html[data-theme="dark"] .profile-icon-link:hover,
html[data-theme="dark"] .profile-icon-link:focus-visible {
    border-color: rgba(98, 211, 191, 0.42);
    background: var(--home-card-strong);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .profile-page-link {
  color: #d8e5ed;
  box-shadow: none;
}

html[data-theme="dark"] .profile-page-link:hover,
html[data-theme="dark"] .profile-page-link:focus-visible {
  color: #8bc3f5;
}

html[data-theme="dark"] .profile-page-link__title {
  color: #7ab7f0;
}

html[data-theme="dark"] .profile-page-link__icon {
  color: #7ab7f0;
}

html[data-theme="dark"] .profile-page-link__icon--contact {
  background: linear-gradient(135deg, rgba(98, 211, 191, 0.2), rgba(151, 210, 74, 0.16));
  color: #62d3bf;
}

html[data-theme="dark"] .profile-page-link:hover .profile-page-link__title,
html[data-theme="dark"] .profile-page-link:focus-visible .profile-page-link__title {
  color: #8bc3f5;
}

html[data-theme="dark"] .profile-card__pages-title {
  color: var(--home-muted);
}

html[data-theme="dark"] .profile-page-link__icon {
  color: var(--home-teal);
}

html[data-theme="dark"] .profile-page-link__icon-image--blog {
  filter: invert(73%) sepia(39%) saturate(449%) hue-rotate(122deg) brightness(93%) contrast(88%);
  opacity: 1;
}

.profile-page-link__icon--contact {
  border-radius: 0.28rem;
  background: linear-gradient(135deg, rgba(44, 154, 139, 0.28), rgba(151, 210, 74, 0.2));
  color: #0f6f62;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(15, 111, 98, 0.16);
}

html[data-theme="dark"] .home-intro__panel,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .publication-card {
    background: var(--home-card);
    border-color: var(--home-border);
    box-shadow: var(--home-shadow);
}

html[data-theme="dark"] .home-intro__panel:hover,
html[data-theme="dark"] .news-card:hover,
html[data-theme="dark"] .contact-card:hover,
html[data-theme="dark"] .service-card:hover,
html[data-theme="dark"] .project-card:hover,
html[data-theme="dark"] .publication-card:hover {
  border-color: rgba(98, 211, 191, 0.24);
  background: var(--home-card-strong);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .home-intro__panel a,
html[data-theme="dark"] .publication-card a,
html[data-theme="dark"] .contact-card a {
    color: var(--home-blue);
}

html[data-theme="dark"] .interest-tags span {
  border-color: rgba(98, 211, 191, 0.22);
  background: rgba(98, 211, 191, 0.1);
  color: #8ee2d4;
}

html[data-theme="dark"] .interest-block__label {
  color: var(--home-muted);
}

html[data-theme="dark"] .service-card__rule {
  background: rgba(218, 232, 240, 0.14);
}

html[data-theme="dark"] .news-item {
    border-bottom-color: rgba(218, 232, 240, 0.14);
}

html[data-theme="dark"] .news-item time {
    border-color: var(--home-border);
    background: rgba(255, 255, 255, 0.06);
    color: #d3dee7;
}

html[data-theme="dark"] .news-card {
  scrollbar-color: rgba(218, 232, 240, 0.34) transparent;
}

html[data-theme="dark"] .news-card::-webkit-scrollbar-thumb {
  background: rgba(218, 232, 240, 0.28);
  background-clip: padding-box;
}

html[data-theme="dark"] .news-card::-webkit-scrollbar-thumb:hover {
  background: rgba(218, 232, 240, 0.4);
  background-clip: padding-box;
}

html[data-theme="dark"] .project-card__image {
    background: #ffffff;
}

@media (max-width: 780px) {
  html[data-theme="dark"] .profile-card {
        background: var(--home-card);
        border-color: var(--home-border);
        box-shadow: var(--home-shadow);
    }
}
