:root {
  --surface-strong: rgba(252, 252, 250, 0.9);
  --surface-soft: rgba(255, 255, 255, 0.58);
  --surface-outline: rgba(47, 111, 115, 0.14);
  --accent-teal: #2f6f73;
  --accent-cyan: #2a9d8f;
  --accent-warm: #e38b5b;
  --accent-indigo: #6b5b95;
  --text-strong: #20303a;
  --text-muted: rgba(35, 51, 63, 0.72);
  --nav-glass: rgba(255, 255, 255, 0.66);
  --nav-outline: rgba(47, 111, 115, 0.12);
  --nav-shadow: 0 16px 36px rgba(16, 36, 42, 0.12);
  --wave-fill: rgba(250, 251, 248, 0.98);
}

[data-theme='dark'] {
  --surface-strong: rgba(23, 28, 36, 0.9);
  --surface-soft: rgba(30, 37, 47, 0.74);
  --surface-outline: rgba(255, 255, 255, 0.08);
  --text-strong: rgba(236, 241, 247, 0.94);
  --text-muted: rgba(214, 223, 232, 0.72);
  --nav-glass: rgba(16, 22, 29, 0.7);
  --nav-outline: rgba(255, 255, 255, 0.08);
  --nav-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  --wave-fill: rgba(21, 28, 35, 0.98);
}

body:not(.site-motion-ready) #page-header,
body:not(.site-motion-ready) #content-inner,
body:not(.site-motion-ready) #footer,
body.is-pjax-transitioning #page-header,
body.is-pjax-transitioning #content-inner,
body.is-pjax-transitioning #footer {
  opacity: 0;
  transform: translateY(18px) scale(0.992);
}

#page-header,
#content-inner,
#footer {
  transform-origin: center top;
  transition: opacity 0.44s ease, transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.recent-post-item,
.learning-card,
.quick-link-card,
.info-panel,
.path-article-card,
.resource-card,
.link-guideline-card,
.friend-card,
.series-navigation__action,
.series-navigation__track-item {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.52s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.recent-post-item.is-visible,
.learning-card.is-visible,
.quick-link-card.is-visible,
.info-panel.is-visible,
.path-article-card.is-visible,
.resource-card.is-visible,
.link-guideline-card.is-visible,
.friend-card.is-visible,
.series-navigation__action.is-visible,
.series-navigation__track-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#page-header #nav {
  border-bottom: 1px solid transparent;
  transition: background-color 0.38s ease, box-shadow 0.38s ease, border-color 0.38s ease, backdrop-filter 0.38s ease, transform 0.38s ease, opacity 0.3s ease;
}

#page-header.not-top-img #nav,
#page-header.nav-fixed #nav {
  background: var(--nav-glass) !important;
  border-bottom-color: var(--nav-outline);
  box-shadow: var(--nav-shadow) !important;
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
}

#page-header.nav-fixed #nav::before,
#page-header.not-top-img #nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  pointer-events: none;
}

[data-theme='dark'] #page-header.nav-fixed #nav::before,
[data-theme='dark'] #page-header.not-top-img #nav::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

#nav #blog-info .nav-site-title,
#nav .site-page {
  position: relative;
}

#nav .site-page:not(.child)::after {
  bottom: -0.15rem;
  left: 50%;
  z-index: 0;
  width: calc(100% - 0.25rem);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(42, 157, 143, 0), rgba(42, 157, 143, 0.95) 30%, rgba(227, 139, 91, 0.95) 70%, rgba(227, 139, 91, 0));
  opacity: 0;
  transform: translateX(-50%) scaleX(0.35);
  transform-origin: center;
  transition: transform 0.32s ease, opacity 0.32s ease;
}

#nav .menus_item:hover > .site-page:not(.child)::after,
#nav .site-page:not(.child):hover::after,
#nav .site-page:not(.child):focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

#nav .menus_item_child {
  border: 1px solid var(--nav-outline);
  background: rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 20px 38px rgba(16, 36, 42, 0.16) !important;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

[data-theme='dark'] #nav .menus_item_child {
  background: rgba(16, 22, 29, 0.88) !important;
}

#nav .menus_item_child li a {
  transition: transform 0.22s ease, background-color 0.22s ease;
}

#nav .menus_item_child li:hover a {
  transform: translateX(4px);
}

#page-header.post-bg {
  overflow: hidden;
}

#page-header.post-bg::before {
  content: '';
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: 2rem;
  height: 4rem;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
  filter: blur(16px);
  opacity: 0.75;
  pointer-events: none;
  z-index: 2;
}

#page-header.post-bg::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(3.8rem, 8vw, 6rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), var(--wave-fill) 72%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0,70 C120,18 240,0 360,14 C480,29 600,82 720,88 C840,93 960,51 1080,36 C1200,20 1320,29 1440,66 L1440,120 L0,120 Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0,70 C120,18 240,0 360,14 C480,29 600,82 720,88 C840,93 960,51 1080,36 C1200,20 1320,29 1440,66 L1440,120 L0,120 Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 3;
}

#page-header.post-bg #post-info {
  position: relative;
  z-index: 4;
}

.image-fade {
  opacity: 0.4;
  filter: blur(12px);
  transform: scale(1.015);
  transition: opacity 0.45s ease, filter 0.55s ease, transform 0.55s ease;
}

.image-fade.is-loaded {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.recent-post-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(47, 111, 115, 0.08);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(250, 251, 248, 0.6));
  box-shadow: 0 16px 38px rgba(16, 36, 42, 0.1);
  transform: translateY(42px) scale(0.968);
  transition: opacity 0.58s ease, transform 0.72s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.36s ease, border-color 0.36s ease;
}

[data-theme='dark'] .recent-post-item {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(21, 28, 35, 0.92), rgba(28, 36, 44, 0.76));
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
}

.recent-post-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 45%);
  opacity: 0;
  transition: opacity 0.36s ease;
  pointer-events: none;
}

.recent-post-item.is-visible {
  transform: translateY(0) scale(1);
}

#recent-posts .recent-post-item .post_cover,
#recent-posts .recent-post-item .post_cover a {
  overflow: hidden;
}

#recent-posts .recent-post-item .post_cover img.post-bg,
#recent-posts .recent-post-item .post_cover .post-bg {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
  will-change: transform;
}

#recent-posts .recent-post-item .recent-post-info {
  transition: transform 0.38s ease;
}

#recent-posts .recent-post-item:hover {
  border-color: rgba(42, 157, 143, 0.2);
  box-shadow: 0 26px 60px rgba(16, 36, 42, 0.16);
  transform: translateY(-8px) scale(1.01);
}

[data-theme='dark'] #recent-posts .recent-post-item:hover {
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.3);
}

#recent-posts .recent-post-item:hover::before {
  opacity: 1;
}

#recent-posts .recent-post-item:hover .post_cover img.post-bg,
#recent-posts .recent-post-item:hover .post_cover .post-bg {
  transform: scale(1.065);
  filter: saturate(1.04);
}

#recent-posts .recent-post-item:hover .recent-post-info {
  transform: translateY(-2px);
}

#recent-posts .recent-post-item .article-title,
#recent-posts .recent-post-item .content {
  position: relative;
  z-index: 1;
}

.nav-site-title .site-icon {
  filter: drop-shadow(0 10px 18px rgba(16, 36, 42, 0.24));
  animation: site-logo-float 5.8s ease-in-out infinite;
  transform-origin: center;
}

.nav-site-title:hover .site-icon {
  animation-play-state: paused;
  transform: rotate(-8deg) scale(1.06);
}

@keyframes site-logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.home-learning-map,
.home-quick-links,
.series-navigation,
.page-hero,
.story-section,
.info-panel,
.resource-card,
.link-guideline-card,
.quick-link-card {
  position: relative;
  overflow: hidden;
}

.home-content {
  width: 100%;
}

.home-content > .home-learning-map,
.home-content > .home-quick-links,
.home-content > #recent-posts {
  width: 100%;
}

.home-learning-map {
  margin-bottom: 1.6rem;
  padding: 2rem;
  border: 1px solid var(--surface-outline);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(248, 249, 245, 0.7), rgba(255, 255, 255, 0.38));
  box-shadow: 0 18px 46px rgba(19, 33, 40, 0.12);
}

[data-theme='dark'] .home-learning-map {
  background: linear-gradient(135deg, rgba(24, 31, 40, 0.88), rgba(31, 39, 50, 0.66));
}

.home-panel-head {
  margin-bottom: 1.4rem;
}

.home-panel-head__eyebrow,
.learning-card__eyebrow,
.page-hero__badge,
.resource-section__eyebrow,
.info-panel__eyebrow,
.series-navigation__eyebrow,
.quick-link-card__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-teal);
  background: rgba(42, 157, 143, 0.1);
}

.home-panel-head__title,
.page-hero__title,
.resource-section__head h3,
.story-section h3,
.series-navigation__title {
  margin: 0.7rem 0 0.5rem;
  color: var(--text-strong);
  font-size: clamp(1.55rem, 2.5vw, 2.3rem);
}

.home-panel-head__desc,
.page-hero__desc,
.resource-section__head p,
.info-panel p,
.story-section p,
.learning-card__desc,
.series-navigation__desc,
.link-guideline-card p,
.resource-card p,
.path-article-card p,
.quick-link-card strong {
  color: var(--text-muted);
  line-height: 1.85;
}

.learning-card-grid,
.resource-grid,
.path-article-grid,
.info-grid,
.link-guideline-grid,
.home-quick-links,
.series-navigation__actions {
  display: grid;
  gap: 1rem;
}

.learning-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.learning-card {
  min-height: 100%;
  padding: 1.35rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: var(--path-gradient), linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.62));
  box-shadow: 0 14px 32px rgba(18, 36, 40, 0.12);
}

[data-theme='dark'] .learning-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: var(--path-gradient), linear-gradient(180deg, rgba(23, 29, 37, 0.94), rgba(31, 39, 48, 0.82));
}

.learning-card__content,
.series-navigation__hero,
.series-navigation__actions,
.series-navigation__track,
.page-hero,
.story-section,
.info-panel,
.resource-card,
.link-guideline-card,
.quick-link-card {
  position: relative;
  z-index: 1;
}

.learning-card__header,
.learning-card__stats,
.learning-card__actions,
.page-hero__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.learning-card__icon {
  color: var(--path-accent);
  font-size: 1rem;
}

.learning-card__title,
.info-panel h3,
.resource-card strong,
.path-article-card strong,
.link-guideline-card h3,
.quick-link-card strong {
  display: block;
  margin: 0.8rem 0 0.45rem;
  color: var(--text-strong);
  font-size: 1.12rem;
}

.learning-card__stats {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.learning-card__checkpoints,
.check-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.learning-card__checkpoints li,
.check-list li {
  position: relative;
  margin-bottom: 0.72rem;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.learning-card__checkpoints li::before,
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68rem;
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-warm));
}

.learning-card__latest {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(47, 111, 115, 0.18);
}

.learning-card__label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.learning-card__latest-link,
.series-navigation__track-item,
.resource-card,
.path-article-card,
.quick-link-card,
.series-navigation__action {
  text-decoration: none !important;
}

.learning-card__latest-link {
  color: var(--text-strong);
  font-weight: 700;
}

.button--animated,
.button--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.button--animated {
  color: #fff;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-cyan));
  box-shadow: 0 12px 24px rgba(42, 157, 143, 0.24);
}

.button--ghost {
  color: var(--text-strong);
  border: 1px solid rgba(47, 111, 115, 0.16);
  background: rgba(255, 255, 255, 0.5);
}

[data-theme='dark'] .button--ghost {
  background: rgba(20, 28, 36, 0.62);
  border-color: rgba(255, 255, 255, 0.08);
}

.button--animated:hover,
.button--ghost:hover {
  transform: translateY(-2px);
}

.home-quick-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.1rem 0 1.6rem;
}

.quick-link-card,
.info-panel,
.resource-card,
.path-article-card,
.link-guideline-card,
.story-section,
.page-hero,
.series-navigation {
  padding: 1.3rem 1.35rem;
  border-radius: 22px;
  border: 1px solid var(--surface-outline);
  background: linear-gradient(145deg, var(--surface-strong), var(--surface-soft));
  box-shadow: 0 16px 34px rgba(18, 36, 40, 0.1);
}

.quick-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.page-hero {
  margin-bottom: 1.2rem;
}

.page-hero__actions {
  margin-top: 1.1rem;
}

.info-grid,
.link-guideline-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0 1.2rem;
}

.story-section {
  margin-top: 1.2rem;
}

.story-section--soft {
  background: linear-gradient(145deg, rgba(245, 247, 243, 0.88), rgba(255, 255, 255, 0.54));
}

[data-theme='dark'] .story-section--soft {
  background: linear-gradient(145deg, rgba(24, 30, 38, 0.92), rgba(34, 43, 54, 0.68));
}

.path-article-grid,
.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.path-article-card,
.resource-card {
  min-height: 100%;
}

.path-article-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-warm));
}

.resource-section {
  margin-top: 1.5rem;
}

.resource-section__head {
  margin-bottom: 0.95rem;
}

.link-guideline-grid {
  margin-top: 1rem;
}

.flink-intro {
  margin-bottom: 1.2rem;
}

.series-navigation {
  margin: 1.35rem 0;
  background: var(--series-gradient, linear-gradient(145deg, var(--surface-strong), var(--surface-soft)));
}

.series-navigation__hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.series-navigation__progress {
  min-width: 140px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.44);
  text-align: right;
}

[data-theme='dark'] .series-navigation__progress {
  background: rgba(17, 23, 30, 0.44);
}

.series-navigation__progress-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.series-navigation__progress strong {
  color: var(--text-strong);
  font-size: 1.4rem;
}

.series-navigation__actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.series-navigation__action,
.series-navigation__track-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(47, 111, 115, 0.12);
  background: rgba(255, 255, 255, 0.46);
}

[data-theme='dark'] .series-navigation__action,
[data-theme='dark'] .series-navigation__track-item {
  background: rgba(17, 23, 30, 0.42);
  border-color: rgba(255, 255, 255, 0.08);
}

.series-navigation__action span,
.series-navigation__track-index {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.series-navigation__action strong,
.series-navigation__track-title {
  color: var(--text-strong);
  font-size: 1rem;
}

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

.series-navigation__track-item.is-current {
  border-color: rgba(42, 157, 143, 0.32);
  background: rgba(42, 157, 143, 0.12);
}

.series-navigation__track-item:hover,
.series-navigation__action:hover,
.resource-card:hover,
.path-article-card:hover,
.quick-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(18, 36, 40, 0.12);
}

@media (max-width: 900px) {
  .learning-card-grid,
  .resource-grid,
  .path-article-grid,
  .info-grid,
  .link-guideline-grid,
  .home-quick-links,
  .series-navigation__actions,
  .series-navigation__track {
    grid-template-columns: 1fr;
  }

  .home-learning-map,
  .page-hero,
  .story-section,
  .series-navigation,
  .info-panel,
  .resource-card,
  .path-article-card,
  .quick-link-card,
  .link-guideline-card {
    padding: 1.1rem;
    border-radius: 18px;
  }

  .series-navigation__hero,
  .learning-card__header,
  .learning-card__actions,
  .page-hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .series-navigation__progress {
    width: 100%;
    text-align: left;
  }
}

:root {
  --global-bg: #0a0f17;
  --font-color: rgba(225, 232, 242, 0.82);
  --hr-border: rgba(255, 255, 255, 0.14);
  --hr-before-color: rgba(255, 214, 224, 0.44);
  --search-bg: rgba(11, 15, 22, 0.9);
  --search-input-color: rgba(234, 240, 246, 0.9);
  --search-a-color: rgba(226, 233, 242, 0.86);
  --tab-border-color: rgba(255, 255, 255, 0.08);
  --tab-button-bg: rgba(17, 22, 30, 0.86);
  --tab-button-color: rgba(220, 228, 238, 0.76);
  --tab-button-hover-bg: rgba(33, 40, 52, 0.9);
  --tab-button-active-bg: rgba(14, 18, 26, 0.96);
  --card-bg: rgba(18, 23, 32, 0.62);
  --card-meta: rgba(178, 190, 206, 0.72);
  --sidebar-bg: rgba(18, 23, 32, 0.72);
  --sidebar-menu-bg: rgba(16, 21, 30, 0.82);
  --btn-hover-color: #f3b5c6;
  --btn-color: rgba(245, 247, 252, 0.96);
  --btn-bg: #2a6471;
  --text-bg-hover: rgba(127, 196, 211, 0.16);
  --light-grey: rgba(255, 255, 255, 0.12);
  --dark-grey: rgba(255, 255, 255, 0.05);
  --white: rgba(244, 247, 252, 0.96);
  --text-highlight-color: rgba(244, 247, 252, 0.96);
  --blockquote-color: rgba(215, 223, 235, 0.82);
  --blockquote-bg: rgba(127, 196, 211, 0.1);
  --reward-pop: rgba(16, 21, 30, 0.96);
  --toc-link-color: rgba(205, 214, 226, 0.72);
  --card-box-shadow: 0 18px 40px rgba(4, 8, 14, 0.2);
  --card-hover-box-shadow: 0 22px 48px rgba(3, 6, 12, 0.28);
  --pseudo-hover: #f1b0c2;
  --headline-presudo: rgba(241, 176, 194, 0.72);
  --scrollbar-color: rgba(127, 196, 211, 0.66);
  --default-bg-color: #2a6471;
  --zoom-bg: #090d14;
  --mark-bg: rgba(4, 7, 13, 0.28);
  --surface-strong: rgba(17, 21, 30, 0.64);
  --surface-soft: rgba(29, 34, 44, 0.48);
  --surface-outline: rgba(255, 255, 255, 0.05);
  --accent-teal: #75bec6;
  --accent-cyan: #7fc4d3;
  --accent-warm: #e8a8ba;
  --accent-indigo: #8d87d9;
  --text-strong: rgba(244, 247, 252, 0.96);
  --text-muted: rgba(201, 210, 223, 0.74);
  --nav-glass: rgba(10, 14, 22, 0.58);
  --nav-outline: rgba(255, 255, 255, 0.05);
  --nav-shadow: 0 14px 30px rgba(1, 4, 8, 0.2);
  --wave-fill: rgba(13, 18, 27, 0.98);
}

[data-theme='dark'] {
  --global-bg: #080c13;
  --font-color: rgba(228, 235, 246, 0.84);
  --search-bg: rgba(8, 11, 18, 0.94);
  --card-bg: rgba(12, 16, 24, 0.72);
  --sidebar-bg: rgba(11, 15, 22, 0.82);
  --sidebar-menu-bg: rgba(8, 11, 18, 0.88);
  --text-bg-hover: rgba(127, 196, 211, 0.14);
  --light-grey: rgba(255, 255, 255, 0.14);
  --dark-grey: rgba(255, 255, 255, 0.06);
  --blockquote-bg: rgba(127, 196, 211, 0.08);
  --reward-pop: rgba(10, 14, 22, 0.98);
  --card-box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
  --card-hover-box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
  --mark-bg: rgba(2, 5, 10, 0.36);
  --surface-strong: rgba(12, 16, 24, 0.72);
  --surface-soft: rgba(20, 25, 34, 0.56);
  --nav-glass: rgba(8, 11, 18, 0.66);
  --wave-fill: rgba(10, 14, 22, 0.99);
}

body {
  color: var(--font-color);
  background: var(--global-bg);
}

#web_bg::before {
  background:
    radial-gradient(980px 540px at 14% 16%, rgba(255, 187, 211, 0.18), transparent 58%),
    radial-gradient(820px 520px at 82% 18%, rgba(127, 196, 211, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(5, 8, 14, 0.18) 0%, rgba(6, 10, 18, 0.28) 34%, rgba(7, 11, 20, 0.46) 100%);
}

#page-header.full_page {
  overflow: visible;
}

#page-header.full_page:not(.not-top-img)::before {
  background: linear-gradient(180deg, rgba(5, 8, 14, 0.08), rgba(5, 9, 16, 0.16) 42%, rgba(6, 10, 18, 0.32) 100%) !important;
}

#page-header.full_page::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -120px;
  height: 220px;
  background:
    linear-gradient(180deg, rgba(6, 10, 18, 0) 0%, rgba(6, 10, 18, 0.08) 46%, rgba(6, 10, 18, 0.14) 72%, rgba(6, 10, 18, 0) 100%),
    radial-gradient(70% 120px at 50% 0%, rgba(255, 195, 214, 0.08), rgba(255, 195, 214, 0));
  filter: blur(14px);
  opacity: 0.82;
  pointer-events: none;
  z-index: 1;
}

#page-header.not-home-page:not(.not-top-img)::before,
#page-header.post-bg:not(.not-top-img)::before {
  background-color: rgba(5, 8, 14, 0.24) !important;
}

#page-header.full_page #site-info,
#page-header #page-site-info,
#page-header #post-info {
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
}

#page-header #site-title,
#page-header .post-title,
#page-header #page-site-info #site-title {
  color: rgba(248, 249, 252, 0.98);
}

#page-header #site-subtitle,
#page-header #post-meta,
#page-header #post-meta a,
#page-header #scroll-down .scroll-down-effects,
#page-header #site_social_icons .social-icon {
  color: rgba(225, 232, 241, 0.8);
}

#page-header.nav-fixed #nav,
#page-header.not-top-img #nav {
  background: linear-gradient(180deg, rgba(10, 14, 22, 0.62), rgba(12, 16, 24, 0.52)) !important;
}

#page-header.nav-fixed #nav::before,
#page-header.not-top-img #nav::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)) !important;
}

#nav a,
#nav span.site-page,
#nav .site-name,
#nav #toggle-menu {
  color: rgba(232, 238, 246, 0.86) !important;
}

#nav a:hover,
#nav span.site-page:hover,
#nav .site-name:hover,
#nav #toggle-menu:hover {
  color: #fff4f7 !important;
}

#nav .menus_item_child {
  background: rgba(10, 14, 22, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

#archive,
#page,
#post,
.flink,
#post-comment,
.home-learning-map,
.quick-link-card,
.page-hero,
.story-section,
.info-panel,
.resource-card,
.path-article-card,
.link-guideline-card,
.friend-card,
.series-navigation,
.series-navigation__action,
.series-navigation__track-item,
.learning-card,
#aside-content .card-widget,
#recent-posts .recent-post-item,
#pagination .page-number,
#pagination .extend,
.pagination-post,
#post .post-copyright {
  border-color: rgba(255, 255, 255, 0.04) !important;
  box-shadow: var(--card-box-shadow) !important;
}

#post,
#page,
#archive,
.flink,
#post-comment,
#aside-content .card-widget,
.quick-link-card,
.page-hero,
.story-section,
.info-panel,
.resource-card,
.path-article-card,
.link-guideline-card,
.friend-card,
.series-navigation,
.series-navigation__action,
.series-navigation__track-item,
.learning-card,
.home-learning-map,
#recent-posts .recent-post-item {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0) 30%),
    linear-gradient(160deg, rgba(15, 20, 29, 0.68), rgba(24, 29, 39, 0.52)) !important;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

#content-inner,
.layout {
  position: relative;
  z-index: 2;
}

#post,
#page,
#archive,
.flink,
#post-comment {
  color: var(--font-color);
}

#recent-posts .recent-post-item .article-title,
#recent-posts .recent-post-item .article-meta-wrap,
#recent-posts .recent-post-item .article-meta-wrap a,
#aside-content .item-headline,
#aside-content .item-headline span,
#aside-content .card-archive-list-link,
#aside-content .card-category-list-link,
#aside-content .card-webinfo .item-name,
#aside-content .author-info-name,
#aside-content .author-info-description,
#post .post-copyright-info,
#post .post-copyright-info a,
#post .post-meta__tag-list,
#post .post-copyright,
#post .post-copyright a,
#pagination .page-number,
#pagination .extend,
#archive .article-sort-item-title,
#archive .article-sort-item-time,
#archive .article-sort-item-year,
#page .page-title,
#page h1,
#page h2,
#page h3,
#post h1,
#post h2,
#post h3,
#post h4,
#post h5,
#post h6,
#article-container,
#article-container p,
#article-container li,
#article-container td,
#article-container th,
#article-container strong,
.content {
  color: var(--font-color);
}

#recent-posts .recent-post-item .article-title,
#archive .article-sort-item-title,
#article-container h1,
#article-container h2,
#article-container h3,
#article-container h4,
#article-container h5,
#article-container h6,
.home-panel-head__title,
.page-hero__title,
.series-navigation__title,
.learning-card__title,
.info-panel h3,
.resource-card strong,
.path-article-card strong,
.link-guideline-card h3,
.quick-link-card strong {
  color: var(--text-strong) !important;
}

#recent-posts .recent-post-item .content,
#recent-posts .recent-post-item .article-meta-wrap,
#recent-posts .recent-post-item .article-meta-wrap a,
#aside-content .card-webinfo .item-count,
#aside-content .card-archive-list-date,
#aside-content .aside-list .content > time,
#aside-content .aside-list .content > .name,
#aside-content .aside-list .content > .comment,
#aside-content .aside-list .content > .title,
#article-container p,
#article-container li,
#article-container td,
#article-container th,
.home-panel-head__desc,
.page-hero__desc,
.series-navigation__desc,
.learning-card__desc,
.learning-card__stats,
.learning-card__checkpoints li,
.story-section p,
.resource-card p,
.path-article-card p,
.link-guideline-card p,
.info-panel p {
  color: var(--text-muted) !important;
}

#aside-content .card-tag-cloud a,
#aside-content .card-category-list-link,
#aside-content .card-archive-list-link,
#aside-content .aside-list .content > .title,
#aside-content .aside-list .content > .comment {
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

#aside-content .card-category-list-link:hover,
#aside-content .card-archive-list-link:hover,
#aside-content .card-tag-cloud a:hover,
#aside-content .aside-list .content > .title:hover,
#aside-content .aside-list .content > .comment:hover {
  color: #fff5f8 !important;
  background: rgba(127, 196, 211, 0.12);
}

#aside-content .aside-list > .aside-list-item:not(:last-child),
#aside-content .card-webinfo .webinfo-item,
.learning-card__latest,
#post .post-copyright,
#post .post-copyright .post-copyright-info,
#post .post-copyright .post-copyright-meta {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

#aside-content > .card-widget.card-info {
  background:
    radial-gradient(circle at top right, rgba(232, 168, 186, 0.16), transparent 42%),
    linear-gradient(155deg, rgba(13, 18, 26, 0.76), rgba(24, 30, 40, 0.62)) !important;
}

#aside-content > .card-widget.card-info > #card-info-btn,
.button--animated,
#waline-wrap button.wl-submit {
  background: linear-gradient(90deg, #2d6a76, #49839c, #d48ea5) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(12, 18, 28, 0.34);
}

#aside-content > .card-widget.card-info > #card-info-btn:hover,
.button--animated:hover,
#waline-wrap button.wl-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

#recent-posts .recent-post-item::before {
  background: linear-gradient(120deg, rgba(232, 168, 186, 0.08), rgba(127, 196, 211, 0.04) 48%, rgba(255, 255, 255, 0) 72%);
}

#recent-posts .recent-post-item:hover {
  border-color: rgba(232, 168, 186, 0.1) !important;
  box-shadow: var(--card-hover-box-shadow) !important;
}

#post .post-meta__tags {
  border-color: rgba(127, 196, 211, 0.24);
  color: rgba(222, 231, 239, 0.84);
  background: rgba(127, 196, 211, 0.08);
}

#post .post-meta__tags:hover {
  background: rgba(232, 168, 186, 0.16);
  border-color: rgba(232, 168, 186, 0.2);
  color: #fff6f8;
}

#post .post-copyright {
  background: linear-gradient(160deg, rgba(11, 15, 22, 0.9), rgba(19, 24, 34, 0.76));
}

#article-container a,
#post .post-copyright a,
.learning-card__latest-link,
.series-navigation__action strong,
.series-navigation__track-title {
  color: #8fd6e3;
}

#article-container a:hover,
#post .post-copyright a:hover,
.learning-card__latest-link:hover,
.series-navigation__action:hover strong,
.series-navigation__track-item:hover .series-navigation__track-title {
  color: #ffd7e1;
}

#article-container blockquote {
  border-left-color: rgba(127, 196, 211, 0.7) !important;
  background: linear-gradient(120deg, rgba(127, 196, 211, 0.1), rgba(127, 196, 211, 0.04)) !important;
}

#article-container table,
#article-container table thead,
#article-container table tbody,
#article-container table tr,
#article-container table td,
#article-container table th {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

#article-container table tr:nth-child(2n),
#article-container table thead {
  background: rgba(255, 255, 255, 0.03) !important;
}

#article-container kbd {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(241, 245, 250, 0.92);
  box-shadow: none;
}

#pagination .page-number,
#pagination .extend,
.pagination-post .pagination-related {
  background: rgba(13, 18, 26, 0.78) !important;
  color: var(--font-color) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#pagination .page-number.current,
#pagination .extend:hover,
#pagination .page-number:hover,
.pagination-post .pagination-related:hover {
  background: rgba(127, 196, 211, 0.14) !important;
  color: #fff5f7 !important;
}

#waline-wrap {
  --waline-white: rgba(245, 247, 252, 0.96);
  --waline-light-grey: rgba(193, 202, 216, 0.72);
  --waline-dark-grey: rgba(224, 232, 243, 0.82);
  --waline-theme-color: #7fc4d3;
  --waline-active-color: #f0afc1;
  --waline-color: rgba(224, 232, 242, 0.84);
  --waline-bg-color: rgba(12, 16, 24, 0.72);
  --waline-bg-color-light: rgba(18, 23, 32, 0.9);
  --waline-bg-color-hover: rgba(127, 196, 211, 0.1);
  --waline-border-color: rgba(255, 255, 255, 0.08);
  --waline-disable-bg-color: rgba(255, 255, 255, 0.06);
  --waline-disable-color: rgba(255, 255, 255, 0.28);
  --waline-code-bg-color: #0b1018;
  --waline-bq-color: rgba(127, 196, 211, 0.1);
  --waline-info-bg-color: rgba(255, 255, 255, 0.06);
  --waline-info-color: rgba(197, 206, 220, 0.68);
  --waline-box-shadow: none;
}

#post-comment {
  margin-top: 2rem;
}

#post-comment .comment-headline,
#post-comment .comment-switch,
#waline-wrap .wl-count,
#waline-wrap .wl-empty,
#waline-wrap .wl-info,
#waline-wrap .wl-sort li,
#waline-wrap .wl-login-info,
#waline-wrap .wl-meta-label,
#waline-wrap .wl-card .wl-meta,
#waline-wrap .wl-card .wl-content,
#waline-wrap .wl-card .wl-admin,
#waline-wrap .wl-card .wl-quote,
#waline-wrap .wl-card .wl-head {
  color: var(--text-muted) !important;
}

#waline-wrap .wl-panel,
#waline-wrap .wl-card,
#waline-wrap .wl-emoji-popup,
#waline-wrap .wl-preview {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(11, 15, 22, 0.92), rgba(19, 24, 34, 0.8));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.26);
}

#waline-wrap .wl-panel {
  padding: 1rem;
}

#waline-wrap .wl-meta input,
#waline-wrap .wl-editor,
#waline-wrap .wl-input,
#waline-wrap textarea,
#waline-wrap input {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: rgba(241, 245, 250, 0.94) !important;
}

#waline-wrap .wl-meta input:focus,
#waline-wrap .wl-editor:focus,
#waline-wrap textarea:focus,
#waline-wrap input:focus {
  border-color: rgba(127, 196, 211, 0.36) !important;
  box-shadow: 0 0 0 4px rgba(127, 196, 211, 0.08);
}

#waline-wrap .wl-card .wl-content,
#waline-wrap .wl-card .wl-content p,
#waline-wrap .wl-sort li.active,
#waline-wrap .wl-admin,
#waline-wrap .wl-user-name,
#waline-wrap .wl-card .wl-nick {
  color: rgba(244, 247, 252, 0.94) !important;
}

#waline-wrap .wl-action,
#waline-wrap .wl-action svg,
#waline-wrap .wl-like,
#waline-wrap .wl-reply,
#waline-wrap .wl-sort li:hover {
  color: #8fd6e3 !important;
}

#waline-wrap .wl-card .wl-badge {
  border-radius: 999px;
  background: rgba(232, 168, 186, 0.16);
  color: #ffdce5;
}

#fps-badge {
  color: rgba(236, 241, 246, 0.92);
  background: rgba(11, 15, 22, 0.82);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

@media (max-width: 768px) {
  #post,
  #page,
  #archive,
  .flink,
  #post-comment,
  #aside-content .card-widget,
  #recent-posts .recent-post-item,
  .home-learning-map,
  .quick-link-card,
  .page-hero,
  .story-section,
  .info-panel,
  .resource-card,
  .path-article-card,
  .link-guideline-card,
  .friend-card,
  .series-navigation,
  .series-navigation__action,
  .series-navigation__track-item,
  .learning-card {
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
  }
}
