.blog-page {
  min-height: 100vh;
  background: #000;
}

.header-text-link.is-current {
  color: var(--accent);
}

.site-main {
  min-height: calc(100vh - 92px);
  padding: calc(var(--header-height) + 56px) 0 110px;
}

.blog-shell {
  max-width: 1240px;
}

.blog-hero {
  max-width: 860px;
  margin: 0 auto 62px;
  text-align: center;
}

.blog-page-heading {
  margin: 0 0 18px;
  color: var(--text-main);
  font-size: clamp(42px, 5.4vw, 70px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.blog-hero > p:last-child {
  max-width: 660px;
  margin: 0 auto;
  color: var(--text-soft);
}

.features {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: start;
  gap: 38px;
}

.left {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding: 12px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--soft-bg);
}

.left ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.left a {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.left a.active,
.left a:hover,
.left a:focus-visible {
  background: var(--accent);
  color: var(--accent-dark);
}

.right {
  min-width: 0;
}

.article-detail,
.newsc {
  padding: clamp(26px, 4vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: var(--soft-bg);
}

.article-detail .title {
  max-width: 850px;
  margin: 0 auto 14px;
  color: var(--text-main);
  font-size: clamp(32px, 4.4vw, 54px);
  text-align: center;
  overflow-wrap: anywhere;
}

.post-time {
  margin-bottom: 38px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.content {
  color: #dedede;
  font-size: 17px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.content h2,
.content h3,
.content h4 {
  margin-top: 1.7em;
  margin-bottom: 0.65em;
  color: var(--text-main);
  line-height: 1.3;
}

.content h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.content h3 {
  font-size: clamp(22px, 2.5vw, 29px);
}

.content p,
.content ul,
.content ol,
.content blockquote {
  margin-bottom: 1.25em;
}

.content a {
  color: var(--accent);
  text-underline-offset: 4px;
}

.content img,
.content video,
.content iframe {
  display: block;
  max-width: 100%;
  margin: 28px auto;
  border: 0;
  border-radius: 14px;
}

.content img,
.content video {
  height: auto;
}

.content table {
  display: block;
  width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  border-collapse: collapse;
}

.content th,
.content td {
  padding: 12px 14px;
  border: 1px solid var(--rule);
  text-align: left;
}

.content blockquote {
  margin-inline: 0;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  background: rgba(63, 195, 215, 0.07);
  color: var(--text-soft);
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.article-nav p {
  margin: 0;
}

.article-nav p:last-child {
  text-align: right;
}

.article-nav a,
.article-nav-disabled {
  display: inline-flex;
  max-width: 100%;
  padding: 10px 15px;
  border-radius: 9px;
  background: #191a1a;
  color: var(--text-main);
  font-size: 14px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.article-nav a:hover,
.article-nav a:focus-visible {
  background: var(--accent);
  color: var(--accent-dark);
}

.article-nav-disabled {
  color: #777;
}

.blog-detail-back {
  display: inline-flex;
  margin-top: 34px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.blog-detail-back:hover,
.blog-detail-back:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.list-heading {
  margin-bottom: 34px;
  text-align: center;
}

.list-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 4vw, 48px);
}

.list-heading p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.article-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  background: #111212;
  transition: border-color 180ms ease, transform 180ms ease;
}

.article-card:hover {
  border-color: rgba(63, 195, 215, 0.45);
  transform: translateY(-2px);
}

.article-cover {
  min-width: 0;
  overflow: hidden;
  border-radius: 11px;
  background: #1b1c1c;
}

.article-cover a {
  display: block;
  height: 100%;
}

.article-cover img {
  width: 100%;
  height: 100%;
  min-height: 155px;
  object-fit: cover;
  transition: transform 240ms ease;
}

.article-card:hover .article-cover img {
  transform: scale(1.025);
}

.article-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.article-card h3 {
  margin-bottom: 10px;
  font-size: clamp(21px, 2vw, 27px);
}

.article-card h3 a {
  color: var(--text-main);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.article-card h3 a:hover,
.article-card h3 a:focus-visible,
.read-more {
  color: var(--accent);
}

.article-card p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.read-more {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.article-meta {
  display: flex;
  justify-content: flex-end;
  color: var(--text-muted);
  font-size: 13px;
}

.pages {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  color: var(--text-soft);
  font-size: 14px;
}

.pages a,
.pages span {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  color: inherit;
  text-decoration: none;
}

.pages a:hover,
.pages a:focus-visible,
.pages .current,
.pages .active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-dark);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 22px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  box-shadow: 0 8px 34px rgba(63, 195, 215, 0.4);
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
  }

  .left {
    position: static;
  }

  .left ul {
    display: flex;
  }

  .left li,
  .left a {
    width: 100%;
  }
}

@media (max-width: 800px) {
  .site-main {
    padding-top: calc(var(--header-height) + 42px);
    padding-bottom: 80px;
  }

  .blog-hero {
    margin-bottom: 46px;
  }

  .article-detail,
  .newsc {
    padding: 24px 18px;
  }

  .article-card {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .article-card {
    grid-template-columns: 1fr;
  }

  .article-cover {
    aspect-ratio: 16 / 9;
  }

  .article-cover img {
    min-height: 0;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav p:last-child {
    text-align: left;
  }

  .article-nav a,
  .article-nav-disabled {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .blog-page .header-actions .header-text-link {
    display: none;
  }

  .blog-page-heading {
    font-size: 38px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
}
