/* body { */
    /* font-family: "LXGW WenKai", sans-serif; */
  /* }  */

/* 定义字体 */
:root {
  --md-text-font: "Ubuntu", "Noto Serif SC";  /* 英文 Roboto，中文用思源黑体 */
  --site-transition-duration: 500ms;
  --site-transition-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --home-page-width: 60rem;

  /* World 卡片高度：只需修改下面 6 个值。可用 px/rem，设为 auto 则由内容撑开。 */
  /* 电脑端（宽度大于 600px） */
  --world-tags-card-height-desktop: 7rem;       /* world/tags 标签卡片 */
  --world-blog-card-height-desktop: 8rem;         /* Archive / Category 文章卡片 */
  --world-tag-post-card-height-desktop: 8rem;     /* 点击标签后的文章卡片 */

  /* 手机端（宽度不大于 600px） */
  --world-tags-card-height-mobile: 7rem;        /* world/tags 标签卡片 */
  --world-blog-card-height-mobile: 8.5rem;          /* Archive / Category 文章卡片 */
  --world-tag-post-card-height-mobile: 9rem;      /* 点击标签后的文章卡片 */
}

html {
  scroll-behavior: smooth;
}

/* 藏书楼：仅文章阅读区域使用霞鹜文楷，代码仍使用下方的等宽字体。 */
body:has(.library-post-marker) .md-content__inner {
  font-family: "LXGW WenKai", "Noto Serif SC", serif;
}

.library-post-marker {
  display: none;
}

/* 设置代码块字体 */ 
code, pre {
  font-family: 'Roboto Mono', monospace;
  /*  自动适应屏幕换行 */
  /* white-space: pre-wrap; */
}

.hightlight {
  background-color: rgba(30, 30, 30, 0.9); /* 深色背景 */
  color: #f8f8f2; /* 浅色字体 */
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  border-radius: 8px;
  padding: 1rem;
  display: block;
  overflow-x: auto;
}

/* 使所有二级标题加粗 */
.md-typeset h2 {
  font-weight: bold;
  margin-top: 30px;
}

.md-typeset h1 {
  font-weight: bold;
  margin-bottom: 30px;
}

/* 自定义 bash 高亮样式 */
code.language-bash .hljs-comment {
  color: #6a9955;
}

code.language-bash .hljs-built_in {
  color: #4EC9B0;
}

/* 设置md文档中图片居中样式 */
/* 使用方式为![](){: .center}, 且在mkdocs.yml中添加`- attr_list` */
.center {
  display: block;
  margin: 0 auto;
}

/* 所有类型的Admonition提示框都变成透明背景 */
.md-typeset .admonition,
.md-typeset details {
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px); /* 毛玻璃模糊效果 */
  -webkit-backdrop-filter: blur(10px); /* 兼容 Safari */
  /* box-shadow: none; */
  /* border: none; */
}

/* 设置内容宽度 */
.md-grid {
  max-width: 66rem; /* 改成你想要的 */
}

.md-content {
  max-width: 100%;
}

.md-main__inner {
  transition:
    opacity var(--site-transition-duration) var(--site-transition-ease),
    transform var(--site-transition-duration) var(--site-transition-ease),
    filter var(--site-transition-duration) var(--site-transition-ease);
}

.page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--site-transition-duration) var(--site-transition-ease);
  background:
    radial-gradient(circle at top left, rgba(88, 140, 255, 0.08), transparent 30%),
    radial-gradient(circle at bottom right, rgba(0, 210, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body.page-transition-leaving .page-transition-overlay {
  opacity: 1;
}

body.page-transition-leaving .md-main__inner {
  opacity: 0.45;
  transform: translateY(0.35rem) scale(0.996);
  filter: blur(1px);
}

body.page-transition-entering .md-main__inner {
  animation: site-page-enter var(--site-transition-duration) var(--site-transition-ease) both;
}

@keyframes site-page-enter {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
    filter: blur(2px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .md-main__inner,
  .page-transition-overlay,
  body.page-transition-entering .md-main__inner,
  body.page-transition-leaving .md-main__inner {
    transition: none;
    animation: none;
    filter: none;
    transform: none;
  }

  .page-transition-overlay {
    display: none;
  }
}

/* 设置links的最大宽度 */

body:has(.links-page-shell) .md-main__inner {
  max-width: 66rem;
  margin-left: auto;
  margin-right: auto;
}

.links-page-shell {
  max-width: 66rem;
  margin-left: auto;
  margin-right: auto;
}

/* 选项卡内容区增加浅黑色底色，帮助区分内容边界 */
.md-typeset .tabbed-set > .tabbed-content {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.015), rgba(0, 0, 0, 0.04));
  border-radius: 0 0 10px 10px;
  padding: 0.75rem 1rem 1rem;
}

.md-typeset .tabbed-set > .tabbed-content > .tabbed-block {
  margin-top: 0;
}

/* 设置表格透明度 */
.md-typeset table:not([class]) {
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px); /* 毛玻璃模糊效果 */
  -webkit-backdrop-filter: blur(10px); /* 兼容 Safari */
  border-radius: 8px;
  overflow: hidden;
}

/* 表格行透明度 */
.md-typeset table:not([class]) tr {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 表格头部透明度 */
.md-typeset table:not([class]) th {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 表格悬停效果 */
.md-typeset table:not([class]) tr:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* 统一nav的svg大小，(not wrapped in .md-icon). */
.md-tabs__link > svg,
.md-nav__link > svg,
.md-nav__title > svg,
.md-ellipsis > svg {
  width: 1.05em !important;
  height: 1.05em !important;
  min-width: 1.05em;
  min-height: 1.05em;
  margin-right: 0.35em;
  vertical-align: -0.14em;
  display: inline-block;
  overflow: hidden;
  flex-shrink: 0;
}

/* Let inline SVG icons follow surrounding text color. */
.md-tabs__link > svg,
.md-nav__link > svg,
.md-nav__title > svg,
.md-ellipsis > svg {
  color: inherit;
  fill: currentColor !important;
  stroke: currentColor !important;
}

.md-tabs__link > svg path,
.md-tabs__link > svg circle,
.md-tabs__link > svg rect,
.md-tabs__link > svg polygon,
.md-tabs__link > svg polyline,
.md-tabs__link > svg line,
.md-nav__link > svg path,
.md-nav__link > svg circle,
.md-nav__link > svg rect,
.md-nav__link > svg polygon,
.md-nav__link > svg polyline,
.md-nav__link > svg line,
.md-nav__title > svg path,
.md-nav__title > svg circle,
.md-nav__title > svg rect,
.md-nav__title > svg polygon,
.md-nav__title > svg polyline,
.md-nav__title > svg line,
.md-ellipsis > svg path,
.md-ellipsis > svg circle,
.md-ellipsis > svg rect,
.md-ellipsis > svg polygon,
.md-ellipsis > svg polyline,
.md-ellipsis > svg line {
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* Some third-party icon SVGs include fixed width/height attributes and class="icon". */
svg.icon {
  width: 1.05em !important;
  height: 1.05em !important;
}

/* World portal layout */
.world-shell {
  max-width: 54rem;
  margin: 0 auto;
}

.world-hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
  margin: 1.25rem 0 1.5rem;
  border: 1px solid rgba(120, 140, 160, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(11, 18, 32, 0.08), rgba(255, 255, 255, 0.18)),
    radial-gradient(circle at top right, rgba(88, 140, 255, 0.14), transparent 34%),
    radial-gradient(circle at left bottom, rgba(0, 210, 255, 0.10), transparent 28%);
  box-shadow: 0 18px 48px rgba(12, 18, 28, 0.08);
}

.world-hero::after {
  content: "";
  position: absolute;
  inset: auto -8rem -8rem auto;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(89, 108, 119, 0.15), transparent 68%);
  filter: blur(6px);
  pointer-events: none;
}

.world-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(80, 90, 100, 0.82);
}

.world-hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.world-lead {
  max-width: 46rem;
  margin: 1rem 0 0;
  font-size: 1.03rem;
  line-height: 1.8;
  color: rgba(55, 65, 75, 0.92);
}

.world-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.world-index-note {
  margin: 0 0 1.5rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid rgba(89, 108, 119, 0.52);
  border-radius: 0 16px 16px 0;
  background: rgba(255, 255, 255, 0.38);
}

.world-index-note p {
  margin: 0;
  color: rgba(55, 65, 75, 0.9);
  line-height: 1.75;
}

.world-index-note p + p {
  margin-top: 0.25rem;
}

/* Material blog excerpts on the World index, archive and category pages */
.md-content__inner > .md-post--excerpt {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: min(100%, 54rem);
  height: var(--world-blog-card-height-desktop);
  max-width: 54rem;
  padding: 1.15rem 1.25rem 1.2rem;
  margin: 0 auto 1rem;
  border: 1px solid color-mix(in srgb, var(--md-default-fg-color) 14%, transparent);
  border-radius: 18px;
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--md-default-bg-color) 50%, transparent), color-mix(in srgb, var(--md-primary-fg-color) 5%, transparent));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--md-default-fg-color) 15%, transparent);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
  cursor: pointer;
}

/* Stretch the title link across the card while keeping metadata links usable. */
.md-content__inner > .md-post--excerpt .md-post__content h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.md-content__inner > .md-post--excerpt .md-post__header a,
.md-content__inner > .md-post--excerpt .md-post__content p a {
  position: relative;
  z-index: 2;
}

.md-content__inner > .md-post--excerpt:has(.md-post__content h2 a:focus-visible) {
  outline: 2px solid var(--md-accent-fg-color);
  outline-offset: 3px;
}

.md-content__inner > .md-post--excerpt::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--md-primary-fg-color), var(--md-accent-fg-color));
  opacity: 0.52;
  transition: opacity 200ms ease, width 200ms ease;
}

.md-content__inner > .md-post--excerpt:hover {
  border-color: color-mix(in srgb, var(--md-accent-fg-color) 30%, transparent);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--md-default-fg-color) 10%, transparent);
  transform: translateY(-2px);
}

.md-content__inner > .md-post--excerpt:hover::before {
  width: 4px;
  opacity: 0.9;
}

.md-content__inner > .md-post--excerpt + .md-post--excerpt {
  padding-top: 1.15rem;
  margin-top: 0;
}

.md-content__inner > .md-post--excerpt .md-post__header {
  margin-bottom: 0.35rem;
}

.md-content__inner > .md-post--excerpt .md-post__content h2 {
  margin-top: 0.2rem;
}

.md-content__inner > .md-post--excerpt .md-post__content p:last-child {
  margin-bottom: 0;
}

/* The whole card already links to the post, so Material's extra CTA is redundant. */
.md-content__inner > .md-post--excerpt .md-post__action {
  display: none;
}

@media (max-width: 600px) {
  .md-content__inner > .md-post--excerpt {
    height: var(--world-blog-card-height-mobile);
  }
}

/* Content-driven tag index */
.tags-shell {
  max-width: 72rem;
  margin: 0 auto;
}

/* Let the animated page background show through on the tag index. */
body:has(.tags-shell) .md-content > .md-typeset {
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.tags-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.7rem);
  margin: 1.25rem 0 1.4rem;
  border: 1px solid color-mix(in srgb, var(--md-default-fg-color) 14%, transparent);
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 16%, color-mix(in srgb, var(--md-accent-fg-color) 16%, transparent), transparent 35%),
    linear-gradient(135deg, color-mix(in srgb, var(--md-default-bg-color) 72%, transparent), color-mix(in srgb, var(--md-primary-fg-color) 8%, transparent));
  box-shadow: 0 18px 48px color-mix(in srgb, var(--md-default-fg-color) 9%, transparent);
  backdrop-filter: blur(14px);
}

.tags-hero::after {
  content: "#";
  position: absolute;
  right: clamp(1rem, 5vw, 3rem);
  top: 50%;
  color: color-mix(in srgb, var(--md-accent-fg-color) 13%, transparent);
  font-family: "Ubuntu", monospace;
  font-size: clamp(7rem, 18vw, 12rem);
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%) rotate(8deg);
  pointer-events: none;
}

.tags-eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 0.65rem;
  color: color-mix(in srgb, var(--md-default-fg-color) 66%, transparent);
  font-size: 0.76rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.tags-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.05;
}

.tags-hero > p:not(.tags-eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 0.9rem 0 0;
  color: color-mix(in srgb, var(--md-default-fg-color) 78%, transparent);
  font-size: 1rem;
  line-height: 1.8;
}

.tags-summary {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.tags-summary span {
  padding: 0.38rem 0.72rem;
  border: 1px solid color-mix(in srgb, var(--md-default-fg-color) 13%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--md-default-bg-color) 58%, transparent);
  color: color-mix(in srgb, var(--md-default-fg-color) 72%, transparent);
  font-size: 0.82rem;
}

.tags-summary strong {
  color: var(--md-default-fg-color);
}

.tag-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
  gap: 0.9rem;
  margin: 0 0 2rem;
}

.tag-card {
  --tag-x: 50%;
  --tag-y: 50%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  height: var(--world-tags-card-height-desktop);
  padding: 1.05rem 1.1rem 1rem;
  border: 1px solid color-mix(in srgb, var(--md-default-fg-color) 13%, transparent);
  border-radius: 18px;
  background:
    radial-gradient(circle at var(--tag-x) var(--tag-y), color-mix(in srgb, var(--md-accent-fg-color) 15%, transparent), transparent 42%),
    linear-gradient(160deg, color-mix(in srgb, var(--md-default-bg-color) 82%, transparent), color-mix(in srgb, var(--md-primary-fg-color) 6%, transparent));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--md-default-fg-color) 7%, transparent);
  opacity: 0;
  transform: translateY(18px) scale(0.975);
  transition:
    opacity 520ms ease,
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.tag-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tag-card:hover {
  border-color: color-mix(in srgb, var(--md-accent-fg-color) 38%, transparent);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--md-default-fg-color) 12%, transparent);
  transform: translateY(-4px) scale(1.012);
}

.tag-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 !important;
}

.tag-card-title .md-tag {
  padding: 0;
  background: transparent;
  color: var(--md-default-fg-color);
  font-size: 1.14rem;
  font-weight: 600;
}

.tag-card-title .md-tag::before {
  content: "#";
  margin-right: 0.25rem;
  color: var(--md-accent-fg-color);
  font-family: "Ubuntu", monospace;
}

.tag-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: inherit !important;
  text-decoration: none !important;
}

.tag-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.tag-card:focus-within {
  outline: 2px solid var(--md-accent-fg-color);
  outline-offset: 3px;
}

.tag-card-arrow {
  color: var(--md-accent-fg-color);
  font-size: 1rem;
  opacity: 0.55;
  transform: translate(-0.2rem, 0.2rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.tag-card:hover .tag-card-arrow,
.tag-card:focus-within .tag-card-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.tag-card-title .headerlink {
  opacity: 0;
  transform: translateX(-0.3rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.tag-card:hover .tag-card-title .headerlink,
.tag-card:focus-within .tag-card-title .headerlink {
  opacity: 0.7;
  transform: translateX(0);
}

.tag-card-meta {
  margin-top: 0.35rem;
  color: color-mix(in srgb, var(--md-default-fg-color) 58%, transparent);
  font-size: 0.78rem;
}

.tag-card-progress {
  height: 3px;
  margin: 0.8rem 0 0.85rem;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--md-default-fg-color) 10%, transparent);
}

.tag-card-progress span {
  display: block;
  width: var(--tag-weight);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--md-primary-fg-color), var(--md-accent-fg-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1) 160ms;
}

.tag-card.is-visible .tag-card-progress span {
  transform: scaleX(1);
}

.tag-card-posts {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.tag-card-posts li {
  margin: 0 !important;
}

.tag-card-posts li + li {
  margin-top: 0.35rem !important;
}

.tag-card-posts a {
  display: block;
  overflow: hidden;
  color: color-mix(in srgb, var(--md-default-fg-color) 76%, transparent) !important;
  font-size: 0.84rem;
  line-height: 1.55;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 160ms ease, transform 160ms ease;
}

.tag-card-posts a::before {
  content: "↗";
  display: inline-block;
  margin-right: 0.38rem;
  color: var(--md-accent-fg-color);
  transition: transform 160ms ease;
}

.tag-card-posts a:hover {
  color: var(--md-accent-fg-color) !important;
  transform: translateX(0.18rem);
}

.tag-card-posts a:hover::before {
  transform: translate(0.08rem, -0.08rem);
}

.tags-empty {
  margin: 0 0 2rem;
  padding: 1.1rem 1.2rem;
  border: 1px dashed color-mix(in srgb, var(--md-default-fg-color) 20%, transparent);
  border-radius: 16px;
  color: color-mix(in srgb, var(--md-default-fg-color) 65%, transparent);
  text-align: center;
}

/* Individual tag archive */
.tag-detail-shell {
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  padding-inline: clamp(0rem, 1.5vw, 0.6rem);
}

.md-content:has(.tag-detail-shell) {
  min-width: 0;
  margin-inline: auto;
}

/* The archive cards sit directly on the page background on tag detail pages. */
body:has(.tag-detail-shell) .md-content > .md-typeset {
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.tag-detail-back {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  overflow: hidden;
  margin: 1.2rem 0 0.8rem;
  padding: 0.42rem 0.72rem 0.42rem 0.48rem;
  border: 1px solid color-mix(in srgb, var(--md-default-fg-color) 14%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--md-default-bg-color) 66%, transparent);
  box-shadow: 0 5px 16px color-mix(in srgb, var(--md-default-fg-color) 6%, transparent);
  color: color-mix(in srgb, var(--md-default-fg-color) 72%, transparent) !important;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.tag-detail-back::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -45%;
  width: 32%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--md-accent-fg-color) 16%, white), transparent);
  transform: skewX(-18deg);
  transition: left 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tag-detail-back > span {
  position: relative;
  z-index: 1;
}

.tag-detail-back-icon {
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--md-accent-fg-color) 10%, transparent);
  color: var(--md-accent-fg-color);
  font-size: 0.9rem;
  transition: background-color 220ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tag-detail-back:hover {
  color: var(--md-accent-fg-color) !important;
  border-color: color-mix(in srgb, var(--md-accent-fg-color) 34%, transparent);
  box-shadow: 0 9px 22px color-mix(in srgb, var(--md-default-fg-color) 10%, transparent);
  transform: translateY(-2px);
}

.tag-detail-back:hover::before {
  left: 125%;
}

.tag-detail-back:hover .tag-detail-back-icon {
  background: color-mix(in srgb, var(--md-accent-fg-color) 17%, transparent);
  transform: translateX(-0.16rem);
}

.tag-detail-back:active {
  transform: translateY(0);
}

.tag-detail-back:focus-visible {
  outline: 2px solid var(--md-accent-fg-color);
  outline-offset: 3px;
}

.tag-detail-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.3rem, 4vw, 2rem);
  margin-bottom: 1.2rem;
  border: 1px solid color-mix(in srgb, var(--md-default-fg-color) 13%, transparent);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 22%, color-mix(in srgb, var(--md-accent-fg-color) 15%, transparent), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--md-default-bg-color) 82%, transparent), color-mix(in srgb, var(--md-primary-fg-color) 7%, transparent));
  box-shadow: 0 16px 42px color-mix(in srgb, var(--md-default-fg-color) 8%, transparent);
}

.tag-detail-eyebrow {
  margin: 0 0 0.55rem !important;
  color: color-mix(in srgb, var(--md-default-fg-color) 58%, transparent);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.tag-detail-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
}

.tag-detail-hero h1 span {
  margin-right: 0.2rem;
  color: var(--md-accent-fg-color);
}

.tag-detail-hero > p:last-child {
  margin: 0.75rem 0 0;
  color: color-mix(in srgb, var(--md-default-fg-color) 68%, transparent);
}

.tag-post-grid {
  display: grid;
  gap: 0.95rem;
}

.tag-post-card {
  position: relative;
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  gap: 1.1rem;
  overflow: hidden;
  box-sizing: border-box;
  height: var(--world-tag-post-card-height-desktop);
  padding: 1.15rem 1.25rem 1.2rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--md-default-fg-color) 12%, transparent);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--md-accent-fg-color) 9%, transparent), transparent 34%),
    linear-gradient(155deg, color-mix(in srgb, var(--md-default-bg-color) 50%, transparent), color-mix(in srgb, var(--md-primary-fg-color) 15%, transparent));
  box-shadow: 0 7px 20px color-mix(in srgb, var(--md-default-fg-color) 6%, transparent);
  animation: tag-post-enter 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--post-order) * 55ms);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.tag-post-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--md-primary-fg-color), var(--md-accent-fg-color));
  opacity: 0.5;
  transition: opacity 220ms ease, width 220ms ease;
}

.tag-post-card:hover {
  border-color: color-mix(in srgb, var(--md-accent-fg-color) 34%, transparent);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--md-default-fg-color) 10%, transparent);
  transform: translateY(-3px);
}

.tag-post-card:hover::before {
  width: 4px;
  opacity: 1;
}

.tag-post-date {
  display: flex;
  align-self: start;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  min-height: 4.2rem;
  border-right: 1px solid color-mix(in srgb, var(--md-default-fg-color) 12%, transparent);
  color: color-mix(in srgb, var(--md-default-fg-color) 55%, transparent);
  font-family: "Ubuntu", sans-serif;
  text-align: center;
}

.tag-post-date strong {
  color: var(--md-default-fg-color);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1;
}

.tag-post-date span {
  margin-top: 0.35rem;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.tag-post-body {
  min-width: 0;
}

.tag-post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: color-mix(in srgb, var(--md-default-fg-color) 56%, transparent);
  font-family: "Ubuntu", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.tag-post-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.tag-post-categories span {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--md-primary-fg-color) 9%, transparent);
  color: color-mix(in srgb, var(--md-default-fg-color) 68%, transparent);
}

.tag-post-card h2 {
  margin: 0.65rem 0 0.4rem;
  font-size: clamp(1.12rem, 3vw, 1.38rem);
  line-height: 1.4;
}

.tag-post-card h2 a {
  color: var(--md-default-fg-color) !important;
  text-decoration: none !important;
}

.tag-post-card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.tag-post-card h2 a:hover {
  color: var(--md-accent-fg-color) !important;
}

.tag-post-body > p {
  margin: 0;
  color: color-mix(in srgb, var(--md-default-fg-color) 70%, transparent);
  font-size: 0.9rem;
  line-height: 1.7;
}

@keyframes tag-post-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .tags-hero {
    border-radius: 18px;
  }

  .tag-card-grid {
    grid-template-columns: 1fr;
  }

  .tag-card {
    height: var(--world-tags-card-height-mobile);
  }

  .tag-detail-hero {
    border-radius: 18px;
  }

  .tag-post-card-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .tag-post-categories {
    justify-content: flex-start;
  }

  .tag-post-card {
    grid-template-columns: 3.65rem minmax(0, 1fr);
    gap: 0.8rem;
    height: var(--world-tag-post-card-height-mobile);
    padding: 1rem 1rem 1.05rem 0.85rem;
  }

  .tag-post-date strong {
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tag-card,
  .tag-card-progress span,
  .tag-card-posts a,
  .tag-card-title .headerlink {
    transition: none !important;
  }

  .tag-post-card {
    animation: none !important;
    transition: none !important;
  }

  .tag-detail-back,
  .tag-detail-back::before,
  .tag-detail-back-icon {
    transition: none !important;
  }
}

.world-filter-toggle {
  border: 1px solid rgba(120, 140, 160, 0.22);
}

.world-filters {
  margin: 0 0 0;
  padding: 0 1.2rem;
  border: 1px solid rgba(120, 140, 160, 0.16);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.34));
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(12, 18, 28, 0.05);
  position: relative;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-0.85rem) scale(0.985);
  transform-origin: 50% 50%;
  transition:
    max-height 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    padding 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    margin-bottom 50ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 520ms ease,
    transform 460ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.world-filters::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(112, 136, 156, 0.2) 0%, rgba(112, 136, 156, 0.12) 28%, rgba(112, 136, 156, 0) 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 520ms ease;
  pointer-events: none;
}

.world-filters.is-open {
  margin-bottom: 1.2rem;
  padding: 1.1rem 1.2rem;
  max-height: 28rem;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.world-filters.is-open::before {
  opacity: 1;
}

.world-filters[hidden] {
  display: none;
}

.world-filters-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.world-filters-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(80, 90, 100, 0.72);
}

.world-filters-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.world-filters-status {
  margin: 0;
  color: rgba(70, 80, 90, 0.8);
  font-size: 0.95rem;
}

.world-filters-note {
  margin: 0 0 0.9rem;
  color: rgba(70, 80, 90, 0.82);
  font-size: 0.92rem;
}

.world-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.world-filter-chip {
  appearance: none;
  border: 1px solid rgba(120, 140, 160, 0.18);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(40, 50, 60, 0.92);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.world-filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 140, 160, 0.32);
}

.world-filter-chip.is-active {
  background: rgba(89, 108, 119, 0.12);
  border-color: rgba(89, 108, 119, 0.34);
  color: rgba(20, 30, 40, 0.98);
}

.world-grid.is-filtering .world-card.is-hidden {
  display: none;
}

.world-empty {
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  color: rgba(60, 70, 80, 0.88);
}

.world-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0 0 1.5rem;
}

.world-stat {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(120, 140, 160, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(10px);
}

.world-stat strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.world-stat span {
  color: rgba(70, 80, 90, 0.84);
  font-size: 0.92rem;
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.md-typeset a.world-card {
  display: flex;
  flex-direction: column;
  min-height: 14rem;
  padding: 1.2rem 1.2rem 1.1rem;
  border: 1px solid rgba(120, 140, 160, 0.18);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.42));
  box-shadow: 0 12px 30px rgba(12, 18, 28, 0.06);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform-origin: center center;
  will-change: transform, box-shadow, border-color;
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.md-typeset a.world-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(120, 140, 160, 0.32);
  box-shadow: 0 18px 36px rgba(12, 18, 28, 0.10);
}

.md-typeset a.world-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(89, 108, 119, 0.00), rgba(89, 108, 119, 0.12));
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
  z-index: 0;
}

.md-typeset a.world-card:hover::before {
  opacity: 1;
}

.md-typeset a.world-card > * {
  position: relative;
  z-index: 1;
}

.world-card-kicker {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(89, 108, 119, 0.10);
  color: rgba(35, 45, 55, 0.88);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.world-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.5rem;
}

.world-card p {
  margin: 0;
  color: rgba(60, 70, 80, 0.9);
  line-height: 1.75;
}

.world-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1rem;
}

.world-tags span {
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(120, 140, 160, 0.14);
  font-size: 0.78rem;
  color: rgba(60, 70, 80, 0.88);
}

.world-note {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid rgba(89, 108, 119, 0.55);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.36);
  color: rgba(60, 70, 80, 0.92);
}

/* Home portal layout */
body:has(.home-shell) .md-content > .md-typeset {
  background: transparent;
  padding: 0;
}

body:has(.home-shell) .md-main__inner {
  max-width: var(--home-page-width);
}

.home-shell {
  padding: 0.5rem 0 1.25rem;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
  border: 1px solid rgba(120, 140, 160, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(8, 15, 28, 0.08), rgba(255, 255, 255, 0.18)),
    radial-gradient(circle at top right, rgba(88, 140, 255, 0.16), transparent 32%),
    radial-gradient(circle at left bottom, rgba(0, 210, 255, 0.10), transparent 28%);
  box-shadow: 0 18px 48px rgba(12, 18, 28, 0.08);
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto -8rem -8rem auto;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89, 108, 119, 0.14), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.home-eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(80, 90, 100, 0.8);
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: 0.015em;
}

.home-title-line {
  display: block;
}

.home-lead {
  max-width: 48rem;
  margin: 1.1rem 0 0;
  font-size: 1.03rem;
  line-height: 1.85;
  color: rgba(55, 65, 75, 0.92);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.45rem;
}

.home-actions .md-button {
  border-radius: 999px;
}

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

.home-stat {
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(120, 140, 160, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(12, 18, 28, 0.06);
}

.home-stat span {
  display: inline-flex;
  margin-bottom: 0.35rem;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(80, 90, 100, 0.75);
}

.home-stat strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
  line-height: 1.35;
}

.home-stat p {
  margin: 0;
  color: rgba(60, 70, 80, 0.88);
  line-height: 1.72;
}

.home-section {
  margin-top: 1.35rem;
  padding: 1.25rem 0 0;
}

.home-section-head {
  margin-bottom: 0.9rem;
}

.home-section-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(80, 90, 100, 0.72);
}

.home-section-head h2 {
  margin: 0;
  font-size: 1.45rem;
}

.home-story {
  position: relative;
  display: grid;
  gap: 0.2rem;
  overflow: hidden;
  padding: 1.55rem 1.75rem;
  border: 1px solid rgba(89, 108, 119, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.32)),
    radial-gradient(circle at 14% 16%, rgba(88, 140, 255, 0.12), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(0, 210, 255, 0.08), transparent 34%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(36, 46, 56, 0.94);
  box-shadow:
    0 18px 48px rgba(12, 18, 28, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  isolation: isolate;
}

.home-story::before {
  content: "";
  position: absolute;
  inset: 1rem 1.15rem auto;
  height: 1px;
  width: auto;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(89, 108, 119, 0.4), transparent);
  z-index: 0;
}

.home-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 18, 28, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(12, 18, 28, 0.025) 1px, transparent 1px);
  background-size: 4.2rem 4.2rem;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.28), transparent 70%);
  -webkit-mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.28), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.home-story p {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.62rem 0;
  border-bottom: 1px solid rgba(89, 108, 119, 0.1);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  font-weight: 520;
  line-height: 1.82;
  letter-spacing: 0.02em;
}

.home-story p::before {
  content: "";
  flex: 0 0 0.42rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(89, 108, 119, 0.46);
  box-shadow: 0 0 0 0.28rem rgba(89, 108, 119, 0.07);
}

.home-story p:last-child {
  border-bottom: 0;
}

.home-story p:nth-child(even) {
  padding-left: 1.05rem;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.md-typeset a.home-card {
  display: flex;
  flex-direction: column;
  min-height: 11rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(120, 140, 160, 0.18);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.46));
  box-shadow: 0 12px 30px rgba(12, 18, 28, 0.06);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform-origin: center center;
  will-change: transform, box-shadow, border-color;
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.md-typeset a.home-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(120, 140, 160, 0.32);
  box-shadow: 0 18px 36px rgba(12, 18, 28, 0.1);
}

.md-typeset a.home-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(89, 108, 119, 0.00), rgba(89, 108, 119, 0.12));
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
  z-index: 0;
}

.md-typeset a.home-card:hover::before {
  opacity: 1;
}

.md-typeset a.home-card > * {
  position: relative;
  z-index: 1;
}

.home-card-kicker {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 0.7rem;
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  background: rgba(89, 108, 119, 0.1);
  color: rgba(35, 45, 55, 0.88);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-card h3 {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  line-height: 1.35;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.92);
}

.home-card p {
  margin: 0;
  color: rgba(60, 70, 80, 0.9);
  line-height: 1.72;
}

.home-footer-note {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid rgba(89, 108, 119, 0.55);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.36);
  color: rgba(60, 70, 80, 0.92);
}

.home-footer-note p {
  margin: 0;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .home-shell {
    padding-top: 0;
  }

  .home-hero {
    padding: 1.45rem;
    border-radius: 22px;
  }

  .home-stats {
    grid-template-columns: 1fr;
  }

  .home-section {
    padding-top: 1rem;
  }

  .home-story {
    padding: 1.1rem 1.05rem 1.15rem;
    border-radius: 20px;
  }

  .home-story::before {
    inset-inline: 0.85rem;
  }

  .home-story p {
    gap: 0.62rem;
    padding: 0.58rem 0;
  }

  .home-story p:nth-child(even) {
    padding-left: 0.65rem;
  }
}

.world-detail {
  max-width: 72rem;
  margin: 0 auto;
}

.world-hero--compact {
  padding: 1.6rem 1.8rem;
  margin-bottom: 1rem;
}

.world-hero--compact h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
}

.world-hero--compact .world-lead {
  margin-top: 0.7rem;
  max-width: 52rem;
}

.world-panel {
  padding: 1.2rem 1.35rem;
  margin-top: 1rem;
  border: 1px solid rgba(120, 140, 160, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(12, 18, 28, 0.05);
}

.world-panel h2 {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.world-panel ul {
  margin-top: 0.2rem;
  margin-bottom: 0;
}

.world-panel li + li {
  margin-top: 0.45rem;
}

.world-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.world-mini-card {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(120, 140, 160, 0.14);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.34));
}

.world-mini-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.world-mini-card p {
  margin: 0;
  color: rgba(60, 70, 80, 0.9);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .world-grid-2 {
    grid-template-columns: 1fr;
  }

  .world-hero--compact {
    padding: 1.2rem 1.2rem;
  }

  .world-panel {
    padding: 1rem 1rem;
  }
}

@media (max-width: 768px) {
  .world-hero {
    padding: 1.4rem;
    border-radius: 18px;
  }

  .world-filters {
    padding: 0.95rem 1rem;
    border-radius: 18px;
  }

  .world-filters-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .world-card {
    min-height: auto;
  }
}

/* Blog post metadata: keep Material's desktop sidebar and use a compact row on phones. */
.sevenalist-post-meta-mobile {
  display: none;
}

@media (max-width: 600px) {
  .sevenalist-post-meta-mobile {
    display: block;
    margin: -0.35rem 0 1.25rem;
    color: var(--md-default-fg-color--light);
    font-size: 0.68rem;
    line-height: 1.6;
  }

  .sevenalist-post-meta-mobile .md-meta__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.65rem;
    margin: 0;
  }

  .sevenalist-post-meta-mobile .md-meta__item:not(:last-child)::after {
    content: none;
  }

  .sevenalist-post-meta-mobile .md-meta__link {
    color: inherit;
  }

  .sevenalist-post-meta-mobile .md-meta__link:hover {
    color: var(--md-accent-fg-color);
  }

  .md-sidebar--post .md-nav--primary > ul.md-post__meta:first-of-type {
    display: none;
  }
}
