/* Site-wide heading and page styles — soft violet + teal accents */

:root {
  --section-heading-color: #6d28d9;
  --section-heading-border: rgba(109, 40, 217, 0.18);
  --accent-teal: #0f766e;
  --accent-teal-soft: rgba(15, 118, 110, 0.14);
  --home-aurora-violet: rgba(167, 139, 250, 0.38);
  --home-aurora-teal: rgba(45, 212, 191, 0.28);
  --home-aurora-lilac: rgba(221, 214, 254, 0.45);
  --link-color: #6d28d9;
  --link-underline-color: rgba(109, 40, 217, 0.28);
  --bs-link-color: #6d28d9;
  --bs-link-hover-color: #0f766e;
  --bs-link-color-rgb: 109, 40, 217;
  --sidebar-bg: #5b21b6;
  --sidebar-border-color: rgba(255, 255, 255, 0.14);
  --sidebar-muted-color: rgba(237, 233, 254, 0.9);
  --sidebar-active-color: #ffffff;
  --sidebar-hover-bg: rgba(255, 255, 255, 0.14);
  --sidebar-btn-bg: rgba(255, 255, 255, 0.16);
  --sidebar-btn-color: #ede9fe;
  --site-title-color: #ffffff;
  --site-subtitle-color: rgba(237, 233, 254, 0.78);
  --avatar-border-color: rgba(255, 255, 255, 0.55);
}

[data-bs-theme='light'] {
  --sidebar-bg: #5b21b6;
  --sidebar-border-color: rgba(255, 255, 255, 0.14);
  --sidebar-muted-color: rgba(237, 233, 254, 0.9);
  --sidebar-active-color: #ffffff;
  --sidebar-hover-bg: rgba(255, 255, 255, 0.14);
  --sidebar-btn-bg: rgba(255, 255, 255, 0.16);
  --sidebar-btn-color: #ede9fe;
  --site-title-color: #ffffff;
  --site-subtitle-color: rgba(237, 233, 254, 0.78);
  --avatar-border-color: rgba(255, 255, 255, 0.55);
  --link-color: #6d28d9;
  --link-underline-color: rgba(109, 40, 217, 0.28);
  --bs-link-color: #6d28d9;
  --bs-link-hover-color: #0f766e;
  --bs-link-color-rgb: 109, 40, 217;
}

[data-bs-theme='dark'],
[data-mode='dark'] {
  --section-heading-color: #c4b5fd;
  --section-heading-border: rgba(196, 181, 253, 0.28);
  --accent-teal: #5eead4;
  --accent-teal-soft: rgba(94, 234, 212, 0.16);
  --home-aurora-violet: rgba(139, 92, 246, 0.22);
  --home-aurora-teal: rgba(45, 212, 191, 0.16);
  --home-aurora-lilac: rgba(167, 139, 250, 0.14);
  --link-color: #c4b5fd;
  --link-underline-color: rgba(196, 181, 253, 0.35);
  --bs-link-color: #c4b5fd;
  --bs-link-hover-color: #5eead4;
  --bs-link-color-rgb: 196, 181, 253;

  --sidebar-bg: #3b0764;
  --sidebar-border-color: rgba(255, 255, 255, 0.12);
  --sidebar-muted-color: rgba(221, 214, 254, 0.88);
  --sidebar-active-color: #ffffff;
  --sidebar-hover-bg: rgba(255, 255, 255, 0.12);
  --sidebar-btn-bg: rgba(255, 255, 255, 0.12);
  --sidebar-btn-color: #ddd6fe;
  --site-title-color: #ffffff;
  --site-subtitle-color: rgba(221, 214, 254, 0.72);
  --avatar-border-color: rgba(196, 181, 253, 0.55);
}

/* Typography */
:root {
  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
}

html {
  font-size: 118%;
}

body {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
.site-title,
.profile-name,
.card-title,
.dynamic-title {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* Force purple sidebar — Chirpy theme vars can reload after custom.css */
#sidebar {
  background:
    radial-gradient(ellipse 120% 55% at 10% 0%, rgba(196, 181, 253, 0.35), transparent 55%),
    radial-gradient(ellipse 90% 45% at 100% 100%, rgba(45, 212, 191, 0.22), transparent 52%),
    #5b21b6 !important;
  color: rgba(237, 233, 254, 0.92) !important;
}

#sidebar .site-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff !important;
}

#sidebar .site-subtitle {
  font-size: 0.95rem;
  color: rgba(237, 233, 254, 0.78) !important;
}

#sidebar a,
#sidebar .nav-link {
  color: rgba(237, 233, 254, 0.9) !important;
}

#sidebar .nav-link {
  font-size: 1.02rem;
}

#sidebar .nav-item.active .nav-link,
#sidebar .nav-item .nav-link:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.14) !important;
}

#sidebar .nav-item--sub.active > .nav-link {
  color: #ffffff !important;
}

#sidebar .sidebar-bottom > a,
#sidebar .sidebar-bottom #mode-toggle {
  color: #ede9fe !important;
  background-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: rgba(255, 255, 255, 0.22) 0 0 0 1px !important;
}

#sidebar .sidebar-bottom > a:hover,
#sidebar .sidebar-bottom #mode-toggle:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.22) !important;
}

[data-bs-theme='dark'] #sidebar {
  background:
    radial-gradient(ellipse 120% 55% at 10% 0%, rgba(167, 139, 250, 0.28), transparent 55%),
    radial-gradient(ellipse 90% 45% at 100% 100%, rgba(45, 212, 191, 0.16), transparent 52%),
    #3b0764 !important;
}

#post-list .card-title {
  font-size: 1.3rem;
}

#post-list .card-text {
  font-size: 1.02rem;
}

/* Page title (h1) — About, Research, etc. */
#core-wrapper h1.dynamic-title,
article h1.dynamic-title {
  color: var(--section-heading-color) !important;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--section-heading-color), var(--accent-teal), transparent 80%) 1;
}

/* Home profile name */
#core-wrapper h1.profile-name,
article h1.profile-name {
  font-weight: 700;
  border-bottom: none;
  padding-bottom: 0;
}

#core-wrapper .profile-home h1.profile-name,
article .profile-home h1.profile-name {
  font-size: clamp(2.2rem, 4.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0.35rem 0 0.85rem;
  background: linear-gradient(105deg, var(--section-heading-color) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

/* Homepage hero hierarchy */
.profile-home {
  max-width: 42rem;
}

.home-hero {
  padding: 0.5rem 0 1.75rem;
  margin-bottom: 0.5rem;
}

.home-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-teal);
}

.home-lede {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--heading-color, #2c2c2c);
  max-width: 34rem;
}

.profile-home .profile-affiliation {
  margin: 0;
  color: var(--text-muted-color, #6c757d);
  font-size: 0.98rem;
  line-height: 1.5;
}

.profile-home .profile-affiliation + .profile-affiliation {
  margin: 0.25rem 0 1.25rem;
}

.home-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.35rem;
}

.home-focus li {
  margin: 0 !important;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--section-heading-color);
  background: rgba(109, 40, 217, 0.08);
  border: 1px solid rgba(109, 40, 217, 0.14);
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.home-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  color: var(--accent-teal) !important;
  background: rgba(15, 118, 110, 0.06);
  border: 1px solid rgba(15, 118, 110, 0.18);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-links a:hover {
  color: #fff !important;
  background: var(--accent-teal);
  border-color: var(--accent-teal);
}

.home-xhs {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.15rem;
  max-width: 22rem;
}

.home-xhs img {
  flex: 0 0 auto;
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
  padding: 0.3rem;
  box-sizing: border-box;
  border-radius: 0.7rem;
  border: 1px solid rgba(109, 40, 217, 0.14);
  background: #fff;
}

.home-xhs p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-muted-color, #6c757d);
}

.home-xhs strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--heading-color, inherit);
}

.home-news {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(109, 40, 217, 0.12);
}

.home-news h2 {
  margin-top: 0 !important;
  font-size: 1.05rem !important;
  border-bottom: none !important;
  border-image: none !important;
  padding-bottom: 0 !important;
}

.profile-home .news-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.profile-home .news-list li {
  margin-bottom: 0.7rem;
  line-height: 1.55;
  color: var(--text-muted-color, #5f6368);
}

.profile-home .news-list time {
  display: inline-block;
  min-width: 4.6rem;
  margin-right: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--section-heading-color);
}

/* Section headings (h2) */
#core-wrapper .content h2,
#core-wrapper .profile-home h2,
article .content h2 {
  color: var(--section-heading-color) !important;
  font-size: 1.25rem;
  font-weight: 650;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--section-heading-color), var(--accent-teal), transparent 78%) 1;
}

/* Subsection headings (h3) */
#core-wrapper .content h3,
article .content h3 {
  color: var(--section-heading-color) !important;
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

/* About page photo */
.about-photo {
  float: left;
  border-radius: 50%;
  margin: 0.25rem 1.75rem 1rem 0;
  object-fit: cover;
  shape-outside: circle();
}

.section-break {
  clear: both;
  height: 0;
}

/* Education timeline */
.timeline {
  border-left: 2px solid var(--border-color, #dee2e6);
  margin: 0.5rem 0 0 0.5rem;
  padding-left: 1.5rem;
}

.timeline-item {
  margin-bottom: 1.75rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, var(--section-heading-color), var(--accent-teal));
  border-radius: 50%;
  position: absolute;
  left: -1.85rem;
  top: 0.35rem;
}

/* Site-wide soft aurora + sparse shooting stars (mounted under #core-wrapper) */
#core-wrapper,
#main-wrapper {
  position: relative;
  isolation: isolate;
}

.site-ambiance {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#core-wrapper > :not(.site-ambiance),
#main-wrapper > :not(.site-ambiance) {
  position: relative;
  z-index: 1;
}

.site-aurora {
  position: absolute;
  inset: -4% -8% auto;
  height: min(34rem, 72vh);
  border-radius: 2rem;
  background:
    radial-gradient(ellipse 52% 58% at 14% 22%, var(--home-aurora-violet), transparent 64%),
    radial-gradient(ellipse 46% 54% at 86% 18%, var(--home-aurora-teal), transparent 62%),
    radial-gradient(ellipse 40% 46% at 48% 58%, var(--home-aurora-lilac), transparent 70%),
    radial-gradient(ellipse 30% 34% at 70% 42%, rgba(109, 40, 217, 0.08), transparent 72%);
  filter: blur(42px) saturate(1.08);
  opacity: 0.92;
  animation: home-aurora-drift 22s ease-in-out infinite alternate;
}

/* Fine grain for a slightly more premium wash */
.site-aurora::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.site-meteors {
  position: absolute;
  inset: 0 0 auto;
  height: min(36rem, 80vh);
  overflow: hidden;
}

.meteor {
  position: absolute;
  top: -8%;
  width: 2.5px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(167, 139, 250, 0.2) 28%,
    rgba(109, 40, 217, 0.8) 66%,
    rgba(45, 212, 191, 0.85) 100%
  );
  opacity: 0;
  transform: rotate(118deg);
  transform-origin: top center;
  animation: meteor-fall linear infinite;
}

/* Star tip at the head of each meteor trail */
.meteor::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 16px;
  height: 16px;
  translate: -50% 50%;
  background: radial-gradient(circle at 50% 50%, #fff 0 30%, #c4b5fd 44%, #2dd4bf 100%);
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.95)) drop-shadow(0 0 3px rgba(45, 212, 191, 0.8));
}

.meteor--1 {
  left: 12%;
  animation-duration: 7.5s;
  animation-delay: 0.8s;
}

.meteor--2 {
  left: 38%;
  height: 64px;
  animation-duration: 9.2s;
  animation-delay: 3.4s;
}

.meteor--3 {
  left: 58%;
  height: 90px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(45, 212, 191, 0.12) 40%,
    rgba(15, 118, 110, 0.7) 75%,
    rgba(167, 139, 250, 0.9) 100%
  );
  animation-duration: 8.4s;
  animation-delay: 6.1s;
}

.meteor--4 {
  left: 78%;
  height: 56px;
  animation-duration: 10.5s;
  animation-delay: 1.6s;
}

.profile-home .contact-list a:hover {
  color: var(--accent-teal);
}

@keyframes home-aurora-drift {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(2.5%, 2%, 0) scale(1.06);
  }
}

@keyframes meteor-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(118deg);
  }
  6% {
    opacity: 0.9;
  }
  18% {
    opacity: 0.75;
  }
  28% {
    opacity: 0;
    transform: translate3d(9rem, 22rem, 0) rotate(118deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(9rem, 22rem, 0) rotate(118deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-aurora,
  .meteor {
    animation: none;
  }

  .meteor {
    display: none;
  }
}

.timeline-date {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--section-heading-color);
}

.timeline-content {
  line-height: 1.65;
}

.content ul li {
  margin-bottom: 0.45rem;
}

/* Research papers */
.paper-list {
  list-style: none;
  padding-left: 0;
}

.paper-list li {
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .about-photo {
    float: none;
    display: block;
    margin: 0 auto 1.25rem;
  }

  .section-break {
    display: none;
  }
}

/* Collapsible category sub-nav under BLOG */
#sidebar .nav-link-with-toggle {
  display: flex;
  align-items: center;
  width: 100%;
}

#sidebar .nav-link-with-toggle > .nav-link {
  flex: 1 1 auto;
  min-width: 0;
}

#sidebar .blog-cat-toggle {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: rgba(237, 233, 254, 0.85) !important;
  padding: 0.35rem 0.65rem;
  line-height: 1;
  opacity: 0.85;
}

#sidebar .blog-cat-toggle:hover,
#sidebar .blog-cat-toggle:focus-visible {
  opacity: 1;
}

#sidebar .blog-cat-toggle i {
  transition: transform 0.2s ease;
  font-size: 0.75em;
}

#sidebar .blog-cat-toggle[aria-expanded='true'] i {
  transform: rotate(180deg);
}

#sidebar .nav-item--sub-wrap {
  list-style: none;
}

#sidebar .blog-category-nav {
  width: 100%;
  padding-left: 0;
  margin: 0;
}

#sidebar .nav-item--sub > .nav-link {
  padding-left: 2.1rem;
  font-size: 0.95em;
  opacity: 0.85;
}

#sidebar .nav-item--sub > .nav-link i {
  font-size: 0.85em;
}

#sidebar .nav-item--sub.active > .nav-link {
  opacity: 1;
  color: var(--section-heading-color);
}

.category-page-header .dynamic-title {
  font-size: 1.5rem;
}

/* Category links on blog cards (outside the main preview link) */
.blog-card-categories {
  padding: 0 1.25rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted-color, #6c757d);
}

.blog-card-categories a {
  color: var(--section-heading-color);
  text-decoration: none;
}

.blog-card-categories a:hover {
  text-decoration: underline;
}

.blog-card-categories__sep {
  margin: 0 0.35rem;
  opacity: 0.55;
}

/*
  Chirpy sidebar-bottom uses flex-wrap + margin-right on anchors.
  Theme toggle sits in a .btn-group with a different box model, and
  .icon-border is a 3px · separator — together they break column alignment
  when icons wrap to two rows. Force a 4-column equal grid instead.
*/
#sidebar .sidebar-bottom {
  display: grid !important;
  grid-template-columns: repeat(4, 1.75rem);
  column-gap: 0.88rem;
  row-gap: 0.75rem;
  justify-content: center;
  justify-items: center;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  padding-left: 1.35rem !important;
  padding-right: 1.35rem !important;
}

#sidebar .sidebar-bottom .icon-border {
  display: none !important;
}

#sidebar .sidebar-bottom > a,
#sidebar .sidebar-bottom > .btn-group {
  width: 1.75rem !important;
  height: 1.75rem !important;
  margin: 0 !important;
}

#sidebar .sidebar-bottom > .btn-group > .btn#mode-toggle {
  width: 1.75rem !important;
  height: 1.75rem !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* Right-panel / tag chips: green selected & hover instead of Bootstrap blue */
#panel-wrapper .panel-heading {
  color: var(--section-heading-color) !important;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--section-heading-color), var(--accent-teal), transparent 85%) 1;
}

#access-lastmod ul {
  list-style: none;
  counter-reset: recent-posts;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

#access-lastmod li {
  counter-increment: recent-posts;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(109, 40, 217, 0.16);
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.4;
}

#access-lastmod li:last-child {
  border-bottom: none;
}

#access-lastmod li::before {
  content: counter(recent-posts, decimal-leading-zero);
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-teal);
  opacity: 0.9;
}

#access-lastmod li a {
  min-width: 0;
  white-space: normal;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0.75rem 0 1.5rem;
}

.experience-item {
  margin: 0;
}

.experience-item p {
  margin: 0.55rem 0 0;
  line-height: 1.65;
}

.experience-item p.experience-role {
  margin: 0.4rem 0 0;
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--accent-teal);
}

.experience-item p.experience-org {
  margin: 0.15rem 0 0;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--heading-color, inherit);
}

.experience-item p.experience-result {
  margin: 0.12rem 0 0;
  font-size: inherit;
  font-weight: 700;
  color: var(--accent-teal);
}

.experience-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(109, 40, 217, 0.14);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.72);
}

.experience-head strong {
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.experience-head--sm strong {
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.experience-head time,
.experience-head span {
  flex: 0 0 auto;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted-color, #6c757d);
  white-space: nowrap;
}

.experience-item > .text-muted {
  margin: 0.4rem 0 0;
}

.experience-item ul {
  margin: 0.45rem 0 0;
  padding-left: 1.2rem;
}

.experience-item li {
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

.award-subhead {
  margin: 1.4rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 650;
  color: var(--section-heading-color);
}

.award-compact {
  margin: 0.35rem 0 1.25rem;
  padding-left: 1.2rem;
}

.award-compact li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.award-compact li::marker {
  color: inherit;
}

.award-compact strong,
.award-name {
  color: var(--accent-teal);
  font-weight: 700;
}

.award-compact li.award-first {
  color: var(--accent-teal);
}

@media (max-width: 768px) {
  .experience-head {
    flex-direction: column;
    gap: 0.2rem;
  }
}

/* Breadcrumbs + tag/category/blog list titles: purple instead of Chirpy blue */
:root,
[data-bs-theme='light'],
[data-bs-theme='dark'] {
  --link-color: #6d28d9;
  --bs-link-color: #6d28d9;
  --bs-link-hover-color: #0f766e;
}

[data-bs-theme='dark'] {
  --link-color: #c4b5fd;
  --bs-link-color: #c4b5fd;
  --bs-link-hover-color: #5eead4;
}

#topbar #breadcrumb a,
#breadcrumb a,
#main-wrapper a:not(.btn):not(.nav-link):not(.dropdown-item):not(.post-tag):not(#avatar),
#post-list a,
#post-list .card-title,
main article a:not(.btn):not(.post-tag),
main .content a:not(.btn):not(.post-tag),
#access-lastmod a,
#panel-wrapper .access a:not(.post-tag) {
  color: #6d28d9 !important;
}

[data-bs-theme='dark'] #topbar #breadcrumb a,
[data-bs-theme='dark'] #breadcrumb a,
[data-bs-theme='dark'] #main-wrapper a:not(.btn):not(.nav-link):not(.dropdown-item):not(.post-tag):not(#avatar),
[data-bs-theme='dark'] #post-list a,
[data-bs-theme='dark'] main article a:not(.btn):not(.post-tag),
[data-bs-theme='dark'] main .content a:not(.btn):not(.post-tag),
[data-bs-theme='dark'] #access-lastmod a {
  color: #c4b5fd !important;
}

#topbar #breadcrumb a:hover,
#breadcrumb a:hover,
#main-wrapper a:not(.btn):not(.nav-link):not(.dropdown-item):not(.post-tag):not(#avatar):hover,
#post-list a:hover,
main article a:not(.btn):not(.post-tag):hover,
main .content a:not(.btn):not(.post-tag):hover,
#access-lastmod a:hover {
  color: #0f766e !important;
}

.post-tag.btn-outline-primary,
#panel-wrapper .post-tag.btn-outline-primary {
  --bs-btn-color: var(--accent-teal);
  --bs-btn-border-color: rgba(15, 118, 110, 0.32);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--accent-teal);
  --bs-btn-hover-border-color: var(--accent-teal);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--accent-teal);
  --bs-btn-active-border-color: var(--accent-teal);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(15, 118, 110, 0.2);
  --bs-btn-focus-shadow-rgb: 15, 118, 110;
}

[data-bs-theme='dark'] .post-tag.btn-outline-primary,
[data-bs-theme='dark'] #panel-wrapper .post-tag.btn-outline-primary {
  --bs-btn-color: var(--accent-teal);
  --bs-btn-border-color: rgba(94, 234, 212, 0.4);
  --bs-btn-hover-color: #042f2e;
  --bs-btn-hover-bg: var(--accent-teal);
  --bs-btn-hover-border-color: var(--accent-teal);
  --bs-btn-active-color: #042f2e;
  --bs-btn-active-bg: var(--accent-teal);
  --bs-btn-active-border-color: var(--accent-teal);
  --bs-btn-focus-shadow-rgb: 94, 234, 212;
}
