:root {
  --card-bg: rgba(255, 255, 255, 0.8);
  --sidebar-bg: rgba(255, 255, 255, 0.76);
  --search-bg: rgba(255, 255, 255, 0.95);
  --custom-card-border: rgba(91, 141, 239, 0.14);
  --custom-card-border-strong: rgba(91, 141, 239, 0.22);
  --custom-card-shadow: 0 20px 60px rgba(38, 78, 140, 0.12);
  --custom-card-shadow-hover: 0 28px 82px rgba(38, 78, 140, 0.18);
  --custom-nav-bg: rgba(255, 255, 255, 0.64);
  --custom-soft-blue: rgba(91, 141, 239, 0.08);
  --custom-soft-green: rgba(94, 194, 177, 0.1);
  --custom-soft-orange: rgba(255, 138, 101, 0.12);
}

[data-theme='dark'] {
  --card-bg: rgba(15, 23, 42, 0.8);
  --sidebar-bg: rgba(15, 23, 42, 0.76);
  --search-bg: rgba(15, 23, 42, 0.96);
  --custom-card-border: rgba(148, 163, 184, 0.14);
  --custom-card-border-strong: rgba(148, 163, 184, 0.24);
  --custom-card-shadow: 0 22px 72px rgba(2, 6, 23, 0.42);
  --custom-card-shadow-hover: 0 32px 90px rgba(2, 6, 23, 0.56);
  --custom-nav-bg: rgba(15, 23, 42, 0.68);
  --custom-soft-blue: rgba(91, 141, 239, 0.12);
  --custom-soft-green: rgba(94, 194, 177, 0.14);
  --custom-soft-orange: rgba(255, 138, 101, 0.14);
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background:
    radial-gradient(circle at 12% 14%, rgba(91, 141, 239, 0.16), transparent 24%),
    radial-gradient(circle at 84% 18%, rgba(94, 194, 177, 0.14), transparent 22%),
    radial-gradient(circle at 78% 82%, rgba(255, 138, 101, 0.12), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #f5f7fb 44%, #edf4ff 100%);
}

body::after {
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.55;
}

[data-theme='dark'] body::before {
  background:
    radial-gradient(circle at 18% 16%, rgba(91, 141, 239, 0.18), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(94, 194, 177, 0.16), transparent 24%),
    radial-gradient(circle at 76% 84%, rgba(255, 138, 101, 0.16), transparent 24%),
    linear-gradient(180deg, #08111f 0%, #0b1424 46%, #0f1c34 100%);
}

[data-theme='dark'] body::after {
  opacity: 0.18;
}

#page-header.full_page::after,
#page-header.post-bg::after,
#page-header.not-home-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 18, 34, 0.16) 0%, rgba(8, 18, 34, 0.44) 100%);
}

#page-header #site-info,
#page-header #post-info,
#page-header #page-site-info {
  z-index: 2;
}

#page-header.full_page #site-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  left: 50%;
  margin: 0;
  text-align: center;
  transform: translateX(-50%);
  width: min(86vw, 900px);
  padding: 30px 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  background: rgba(9, 19, 33, 0.18);
  box-shadow: 0 28px 90px rgba(8, 18, 34, 0.16);
  backdrop-filter: blur(12px);
}

#page-header.full_page #site-title {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  letter-spacing: 0.08em;
  font-weight: 700;
  line-height: 1.08;
}

#page-header.full_page #site-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.12em;
  margin: 1rem auto 0;
  max-width: 42rem;
  min-height: 1.9em;
  width: 100%;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.9;
  text-align: center;
}

#page-header.full_page #site-subtitle #subtitle,
#page-header.full_page #site-subtitle .typed-cursor {
  display: inline-block;
}

#page-header.full_page #site-subtitle #subtitle {
  max-width: 100%;
  text-wrap: balance;
}

#page-header.not-home-page #page-site-info #site-title,
#page-header.post-bg #post-info .post-title {
  letter-spacing: 0.04em;
}

#page-header.nav-fixed #nav,
#page-header.not-top-img #nav {
  border-bottom: 1px solid var(--custom-card-border);
  background: var(--custom-nav-bg) !important;
  backdrop-filter: blur(20px) saturate(140%);
}

#nav .menus_items .menus_item .site-page,
#search-button .search {
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

#nav .menus_items .menus_item .site-page {
  padding: 0 14px;
}

#nav .menus_items .menus_item .site-page:hover,
#search-button .search:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

#recent-posts .recent-post-item,
#aside-content .card-widget,
#post,
#page,
#archive,
#tag,
#category {
  border: 1px solid var(--custom-card-border);
  background: var(--card-bg) !important;
  box-shadow: var(--custom-card-shadow) !important;
  backdrop-filter: blur(18px);
}

#recent-posts .recent-post-item,
#aside-content .card-widget {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#recent-posts .recent-post-item:hover,
#aside-content .card-widget:hover {
  transform: translateY(-7px);
  border-color: var(--custom-card-border-strong);
  box-shadow: var(--custom-card-shadow-hover) !important;
}

#recent-posts .recent-post-item {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
}

#recent-posts .recent-post-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 48%);
  pointer-events: none;
}

#recent-posts .recent-post-item .post_cover {
  position: relative;
  overflow: hidden;
}

#recent-posts .recent-post-item .post_cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 18, 34, 0.04) 0%, rgba(8, 18, 34, 0.22) 100%);
}

#recent-posts .recent-post-item .post_cover img,
#recent-posts .recent-post-item .post_cover .post-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
}

#recent-posts .recent-post-item > .recent-post-info {
  position: relative;
  padding-top: 34px;
  padding-bottom: 30px;
}

#recent-posts .recent-post-item .article-title {
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

#recent-posts .recent-post-item .article-meta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0 16px;
}

#recent-posts .recent-post-item .article-meta-wrap > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgba(91, 141, 239, 0.1);
  border-radius: 999px;
  background: var(--custom-soft-blue);
}

#recent-posts .recent-post-item .article-meta-wrap i,
#recent-posts .recent-post-item .article-meta-wrap .article-meta-link,
#recent-posts .recent-post-item .article-meta-wrap .article-meta-separator {
  margin: 0;
}

#recent-posts .recent-post-item .content {
  max-width: 54ch;
  color: var(--card-meta);
  line-height: 1.9;
  -webkit-line-clamp: 3;
}

#recent-posts .home-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.95fr);
  align-items: stretch;
  gap: 22px;
  height: auto !important;
  min-height: clamp(360px, 42vw, 480px);
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.18), transparent 22%),
    radial-gradient(circle at 86% 16%, rgba(94, 194, 177, 0.22), transparent 24%),
    linear-gradient(135deg, rgba(11, 20, 37, 0.96) 0%, rgba(32, 70, 128, 0.9) 55%, rgba(94, 194, 177, 0.82) 100%) !important;
  box-shadow: 0 32px 90px rgba(24, 39, 74, 0.26) !important;
}

#recent-posts .home-banner::before {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 46%);
}

#recent-posts .home-banner::after {
  content: '';
  position: absolute;
  inset: auto -60px -110px auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}

#recent-posts .home-banner:hover {
  transform: translateY(-8px);
}

#recent-posts .home-banner__copy,
#recent-posts .home-banner__panel {
  position: relative;
  z-index: 1;
}

#recent-posts .home-banner__copy {
  display: grid;
  align-content: center;
  gap: 18px;
}

#recent-posts .home-banner__eyebrow {
  margin: 0;
  color: rgba(248, 251, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

#recent-posts .home-banner__title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.3rem, 4.8vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

#recent-posts .home-banner__lead {
  margin: 0;
  max-width: 50ch;
  color: rgba(248, 251, 255, 0.84);
  font-size: 1.04rem;
  line-height: 1.9;
}

#recent-posts .home-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#recent-posts .home-banner__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

#recent-posts .home-banner__button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.16);
}

#recent-posts .home-banner__button--primary {
  background: rgba(255, 255, 255, 0.94);
  color: #143056 !important;
  border-color: rgba(255, 255, 255, 0.42);
}

#recent-posts .home-banner__panel {
  display: grid;
  align-content: stretch;
  gap: 16px;
}

#recent-posts .home-banner__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#recent-posts .home-banner__stat,
#recent-posts .home-banner__latest {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

#recent-posts .home-banner__stat {
  padding: 18px 16px;
}

#recent-posts .home-banner__stat-label {
  display: block;
  margin-bottom: 10px;
  color: rgba(248, 251, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#recent-posts .home-banner__stat strong {
  display: block;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1;
}

#recent-posts .home-banner__latest {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 100%;
  padding: 22px 20px;
  color: #fff !important;
  text-decoration: none !important;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

#recent-posts .home-banner__latest:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
}

#recent-posts .home-banner__latest-label {
  color: rgba(248, 251, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

#recent-posts .home-banner__latest-title {
  font-size: 1.18rem;
  line-height: 1.45;
}

#recent-posts .home-banner__latest-desc {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(248, 251, 255, 0.78);
  line-height: 1.8;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#recent-posts .home-banner__latest-desc > * {
  display: inline;
  margin: 0;
}

#recent-posts .home-banner__latest-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: #fff;
  font-weight: 700;
}

#post {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 32px;
}

#post::before {
  content: '';
  position: absolute;
  inset: -120px -120px auto auto;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(91, 141, 239, 0.16) 0%, rgba(91, 141, 239, 0) 72%);
  pointer-events: none;
}

#post #article-container.post-content {
  position: relative;
  z-index: 1;
  font-size: 1.02rem;
}

#post #article-container.post-content > :first-child {
  margin-top: 0;
}

#post #article-container.post-content > p:first-of-type {
  margin-top: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.24rem);
  line-height: 2;
  color: var(--font-color);
}

#post #article-container.post-content p,
#post #article-container.post-content li {
  color: var(--font-color);
  font-size: 1.02rem;
  line-height: 2;
}

#post #article-container.post-content p {
  margin: 1rem 0 1.2rem;
}

#post #article-container.post-content h2,
#post #article-container.post-content h3,
#post #article-container.post-content h4 {
  position: relative;
  max-width: 100%;
  line-height: 1.35;
  letter-spacing: 0.02em;
  scroll-margin-top: 88px;
}

#post #article-container.post-content h2 {
  margin: 2.8rem 0 1rem;
  padding-bottom: 0.7rem;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
}

#post #article-container.post-content h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 78px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5b8def, #5ec2b1);
}

#post #article-container.post-content h3 {
  margin: 2.2rem 0 0.9rem;
  padding-left: 14px;
  font-size: clamp(1.28rem, 2vw, 1.55rem);
}

#post #article-container.post-content h3::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5b8def, #5ec2b1);
}

#post #article-container.post-content h4 {
  margin: 1.9rem 0 0.8rem;
  color: var(--text-highlight-color);
  font-size: 1.12rem;
}

#post #article-container.post-content ul,
#post #article-container.post-content ol {
  padding-left: 1.3rem;
}

#post #article-container.post-content li + li {
  margin-top: 0.65rem;
}

#post #article-container.post-content img {
  display: block;
  margin: 1.6rem auto;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

#post #article-container.post-content figure,
#post #article-container.post-content .highlight {
  margin: 1.8rem 0;
}

#post #article-container.post-content code:not(pre code) {
  padding: 0.18rem 0.48rem;
  border-radius: 10px;
  background: rgba(91, 141, 239, 0.12);
  color: var(--text-highlight-color);
  font-size: 0.94em;
}

#post #article-container.post-content blockquote {
  margin: 1.7rem 0;
  padding: 1.25rem 1.4rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(91, 141, 239, 0.08), rgba(94, 194, 177, 0.08));
}

#post #article-container.post-content blockquote p:last-child {
  margin-bottom: 0;
}

#post #article-container.post-content table {
  overflow: hidden;
  border: 1px solid rgba(91, 141, 239, 0.12);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

#post #article-container.post-content table th {
  background: rgba(91, 141, 239, 0.08);
}

#post #article-container.post-content hr {
  height: 1px;
  margin: 2.4rem 0;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(91, 141, 239, 0.4), transparent);
}

#aside-content .card-widget {
  border-radius: 28px;
}

#aside-content .card-widget .item-headline {
  margin-bottom: 18px;
}

#aside-content .card-info .avatar-img img {
  border: 4px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 18px 40px rgba(91, 141, 239, 0.24);
}

[data-theme='dark'] #aside-content .card-info .avatar-img img {
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 20px 44px rgba(2, 6, 23, 0.4);
}

#aside-content .card-recent-post .aside-list-item {
  margin: 0 -6px;
  padding: 10px 8px;
  border-radius: 18px;
  transition: background-color 0.22s ease, transform 0.22s ease;
}

#aside-content .card-recent-post .aside-list-item:hover {
  background: var(--custom-soft-blue);
  transform: translateX(4px);
}

#aside-content .card-tag-cloud a,
#aside-content .card-categories .card-category-list-link {
  border-radius: 14px;
}

figure.highlight {
  overflow: auto;
  border: 1px solid rgba(91, 141, 239, 0.12);
  border-radius: 20px !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

blockquote {
  border: 1px solid rgba(91, 141, 239, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

#card-toc .toc-content .toc-link.active {
  font-weight: 700;
}

#pagination .page-number.current {
  box-shadow: 0 10px 22px rgba(91, 141, 239, 0.25);
}

#archive,
#tag,
#category,
.type-tags #page,
.type-categories #page {
  position: relative;
  overflow: hidden;
}

#archive,
#tag,
#category {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 32px;
}

#archive::before,
#tag::before,
#category::before,
.type-tags #page::before,
.type-categories #page::before {
  content: '';
  position: absolute;
  inset: auto auto -140px -100px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(91, 141, 239, 0.16) 0%, rgba(91, 141, 239, 0) 72%);
  pointer-events: none;
}

#archive .article-sort-title,
#tag .article-sort-title,
#category .article-sort-title {
  margin: 0 0 30px;
  padding: 0 0 18px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: 0.04em;
}

#archive .article-sort,
#tag .article-sort,
#category .article-sort {
  margin: 0;
  padding-left: 34px;
  border-left: 1px dashed rgba(91, 141, 239, 0.26);
}

#archive .article-sort-item,
#tag .article-sort-item,
#category .article-sort-item {
  margin-left: 14px;
}

#archive .article-sort-item::before,
#tag .article-sort-item::before,
#category .article-sort-item::before {
  left: -38px;
  width: 12px;
  height: 12px;
  border-width: 3px;
  border-color: #5b8def;
  box-shadow: 0 0 0 8px rgba(91, 141, 239, 0.08);
}

#archive .article-sort-item.year,
#tag .article-sort-item.year,
#category .article-sort-item.year {
  margin: 28px 0 12px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

#archive .article-sort-item.year::before,
#tag .article-sort-item.year::before,
#category .article-sort-item.year::before {
  left: -40px;
  width: 16px;
  height: 16px;
  border-width: 4px;
}

#archive .article-sort-item:not(.year),
#tag .article-sort-item:not(.year),
#category .article-sort-item:not(.year) {
  margin: 0 0 18px 14px;
  padding: 18px;
  border: 1px solid var(--custom-card-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

[data-theme='dark'] #archive .article-sort-item:not(.year),
[data-theme='dark'] #tag .article-sort-item:not(.year),
[data-theme='dark'] #category .article-sort-item:not(.year) {
  background: rgba(15, 23, 42, 0.46);
}

#archive .article-sort-item:not(.year):hover,
#tag .article-sort-item:not(.year):hover,
#category .article-sort-item:not(.year):hover {
  transform: translateX(6px) translateY(-3px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
}

#archive .article-sort-item-img,
#tag .article-sort-item-img,
#category .article-sort-item-img {
  width: 148px;
  height: 96px;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

#archive .article-sort-item-info,
#tag .article-sort-item-info,
#category .article-sort-item-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#archive .article-sort-item-time,
#tag .article-sort-item-time,
#category .article-sort-item-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 12px;
  border: 1px solid rgba(91, 141, 239, 0.1);
  border-radius: 999px;
  background: var(--custom-soft-blue);
  font-size: 0.86rem;
}

#archive .article-sort-item-title,
#tag .article-sort-item-title,
#category .article-sort-item-title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
}

#archive .article-sort-item-title:hover,
#tag .article-sort-item-title:hover,
#category .article-sort-item-title:hover {
  transform: none;
}

.type-tags #page,
.type-categories #page {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 32px;
}

.type-tags .tag-cloud-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
  text-align: left;
}

.type-tags .tag-cloud-list a {
  min-width: 118px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
}

.type-tags .tag-cloud-list a:hover {
  transform: translateY(-5px) scale(1.03);
}

.type-categories .category-lists .category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.type-categories .category-lists .category-list-item {
  margin: 0;
  padding: 22px 20px;
  border: 1px solid var(--custom-card-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.38);
  list-style: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

[data-theme='dark'] .type-categories .category-lists .category-list-item {
  background: rgba(15, 23, 42, 0.46);
}

.type-categories .category-lists .category-list-item:hover {
  transform: translateY(-4px);
  border-color: var(--custom-card-border-strong);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.1);
}

.type-categories .category-lists .category-list-link {
  display: block;
  margin-bottom: 14px;
  font-size: 1.08rem;
  font-weight: 700;
}

.type-categories .category-lists .category-list-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--custom-soft-blue);
  color: var(--card-meta);
}

.type-categories .category-lists .category-list-count::before,
.type-categories .category-lists .category-list-count::after {
  content: none;
}

#article-container .about-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

#article-container .about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

#article-container .about-grid--stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#article-container .about-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--custom-card-border);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

[data-theme='dark'] #article-container .about-panel {
  background: rgba(15, 23, 42, 0.52);
}

#article-container .about-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 50%);
  pointer-events: none;
}

#article-container .about-panel > * {
  position: relative;
}

#article-container .about-hero {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 88% 20%, rgba(94, 194, 177, 0.2), transparent 28%),
    radial-gradient(circle at 16% 22%, rgba(91, 141, 239, 0.2), transparent 24%),
    linear-gradient(135deg, rgba(91, 141, 239, 0.14), rgba(255, 255, 255, 0.12));
}

#article-container .about-eyebrow {
  margin: 0 0 14px;
  color: var(--card-meta);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

#article-container .about-hero h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
}

#article-container .about-lead {
  margin: 18px 0 0;
  max-width: 60ch;
  color: var(--card-meta);
  font-size: 1.03rem;
  line-height: 1.9;
}

#article-container .about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

#article-container .about-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(91, 141, 239, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--font-color);
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

[data-theme='dark'] #article-container .about-pill {
  background: rgba(15, 23, 42, 0.68);
}

#article-container .about-pill:hover {
  transform: translateY(-2px);
  border-color: var(--custom-card-border-strong);
  background: var(--custom-soft-blue);
}

#article-container .about-panel--wide {
  grid-column: span 7;
}

#article-container .about-panel--mid {
  grid-column: span 5;
}

#article-container .about-panel--half {
  grid-column: span 6;
}

#article-container .about-panel--full {
  grid-column: 1 / -1;
}

#article-container .about-panel h3 {
  margin: 0 0 14px;
  font-size: 1.24rem;
}

#article-container .about-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#article-container .about-list li {
  position: relative;
  padding-left: 18px;
  color: var(--card-meta);
  line-height: 1.85;
}

#article-container .about-list li::before {
  content: '';
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #5ec2b1;
  transform: translateY(-50%);
}

#article-container .about-grid--stats .about-panel {
  min-height: 170px;
}

#article-container .about-stat-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--custom-soft-blue);
  color: var(--card-meta);
  font-size: 0.84rem;
  font-weight: 700;
}

#article-container .about-stat strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

#article-container .about-stat p,
#article-container .about-panel p {
  margin: 0;
  color: var(--card-meta);
  line-height: 1.85;
}

#article-container .about-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#article-container .about-stack span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(91, 141, 239, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  font-weight: 600;
}

[data-theme='dark'] #article-container .about-stack span {
  background: rgba(15, 23, 42, 0.62);
}

#article-container .about-route {
  display: grid;
  gap: 12px;
}

#article-container .about-route a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(91, 141, 239, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--font-color);
  text-decoration: none !important;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

[data-theme='dark'] #article-container .about-route a {
  background: rgba(15, 23, 42, 0.62);
}

#article-container .about-route a::after {
  content: '->';
  color: var(--card-meta);
  font-weight: 700;
}

#article-container .about-route a:hover {
  transform: translateX(4px);
  border-color: var(--custom-card-border-strong);
  background: var(--custom-soft-blue);
}

#article-container .about-quote {
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.9;
}

#article-container .about-quote strong {
  color: var(--text-highlight-color);
}

#local-search .search-dialog {
  border: 1px solid var(--custom-card-border);
  border-radius: 26px;
  background: var(--search-bg);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
}

#local-search .local-search-input input {
  border: 1px solid rgba(91, 141, 239, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#local-search .local-search-input input:focus {
  border-color: rgba(91, 141, 239, 0.45);
  box-shadow: 0 0 0 4px rgba(91, 141, 239, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

[data-theme='dark'] #local-search .local-search-input input {
  background: rgba(15, 23, 42, 0.78);
}

@media (max-width: 900px) {
  #page-header.full_page #site-subtitle {
    max-width: min(88vw, 36rem);
  }

  #recent-posts .home-banner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  #recent-posts .recent-post-item .article-meta-wrap {
    gap: 8px;
  }

  #archive .article-sort-item:not(.year),
  #tag .article-sort-item:not(.year),
  #category .article-sort-item:not(.year) {
    margin-left: 10px;
    padding: 16px;
  }

  #article-container .about-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  #article-container .about-panel--wide,
  #article-container .about-panel--mid,
  #article-container .about-panel--half {
    grid-column: span 6;
  }

  #article-container .about-grid--stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  #page-header.full_page #site-info {
    width: min(92vw, 860px);
    padding: 22px 18px;
    border-radius: 24px;
  }

  #page-header.full_page #site-title {
    letter-spacing: 0.04em;
  }

  body::after {
    background-size: 24px 24px;
  }

  #recent-posts .recent-post-item {
    border-radius: 26px;
  }

  #recent-posts .home-banner {
    padding: 24px 20px;
  }

  #page-header.full_page #site-subtitle {
    min-height: 2.2em;
  }

  #recent-posts .home-banner__title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  #recent-posts .home-banner__stats {
    grid-template-columns: 1fr;
  }

  #recent-posts .home-banner__button {
    width: 100%;
    justify-content: center;
  }

  #recent-posts .recent-post-item > .recent-post-info {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  #archive,
  #tag,
  #category,
  .type-tags #page,
  .type-categories #page {
    border-radius: 26px;
  }

  #archive .article-sort,
  #tag .article-sort,
  #category .article-sort {
    padding-left: 24px;
  }

  #archive .article-sort-item::before,
  #tag .article-sort-item::before,
  #category .article-sort-item::before {
    left: -29px;
  }

  #archive .article-sort-item:not(.year),
  #tag .article-sort-item:not(.year),
  #category .article-sort-item:not(.year) {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  #archive .article-sort-item-img,
  #tag .article-sort-item-img,
  #category .article-sort-item-img {
    width: 100%;
    height: 180px;
  }

  .type-tags .tag-cloud-list a {
    min-width: calc(50% - 7px);
  }

  #post {
    padding: 22px 18px;
    border-radius: 26px;
  }

  #post #article-container.post-content > p:first-of-type {
    font-size: 1.05rem;
  }

  #post #article-container.post-content h2::after {
    width: 60px;
  }

  #article-container .about-grid,
  #article-container .about-grid--stats {
    grid-template-columns: 1fr;
  }

  #article-container .about-panel--wide,
  #article-container .about-panel--mid,
  #article-container .about-panel--half,
  #article-container .about-panel--full {
    grid-column: auto;
  }

  #article-container .about-hero {
    min-height: 280px;
  }
}
