.blog-page {
  background: var(--vp-color-bg-surface, #ffffff);
  color: #111827;
}

.blog-page .shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.blog-page .shell--narrow {
  width: min(860px, calc(100% - 32px));
}

.blog-hero {
  background:
    radial-gradient(circle at top right, rgba(0, 54, 119, 0.12), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #eef3f9 100%);
  padding: 40px 0 28px;
}

.article-hero {
  border-bottom: 1px solid #e5e7eb;
  background: var(--vp-color-bg-surface, #ffffff);
  padding: 32px 0 24px;
}

.blog-hero__eyebrow,
.article-author__eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vp-color-action-primary, #003677);
}

.blog-hero__title,
.article-hero__title {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  line-height: 1.12;
  font-weight: 800;
}

.article-hero__title {
  max-width: 980px;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.blog-hero__lead {
  max-width: 720px;
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
}

.blog-hero__write-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 18px;
  padding: 0 16px;
  border: 1px solid rgba(0, 54, 119, 0.22);
  border-radius: var(--vp-radius-full, 999px);
  background: rgba(255, 255, 255, 0.68);
  color: var(--vp-color-action-primary, #003677);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.blog-hero__write-link:hover {
  border-color: rgba(0, 54, 119, 0.44);
  background: var(--vp-color-bg-surface, #ffffff);
}

.blog-toolbar {
  padding: 20px 0 8px;
}

.blog-toolbar__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid #dbe4ef;
  border-radius: var(--vp-radius-content-card, 28px);
  background: var(--vp-color-bg-surface, #ffffff);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.blog-toolbar__search {
  flex: 1 1 240px;
  min-width: 220px;
}

.blog-toolbar__search input {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border: 1px solid #d1d5db;
  border-radius: 18px;
  background: #f9fafb;
  font: inherit;
}

.blog-toolbar__search input:focus {
  outline: none;
  border-color: var(--vp-color-action-primary, #003677);
  box-shadow: 0 0 0 3px rgba(0, 54, 119, 0.12);
}

.blog-toolbar__tags,
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-toolbar__tags {
  flex: 2 1 auto;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #d1d5db;
  border-radius: var(--vp-radius-full, 999px);
  background: var(--vp-color-bg-surface, #ffffff);
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-tag:hover,
.blog-tag--active {
  border-color: var(--vp-color-action-primary, #003677);
  background: var(--vp-color-action-primary, #003677);
  color: var(--vp-color-text-inverse, #ffffff);
}

.blog-toolbar__button {
  flex: 0 0 auto;
  min-width: 120px;
  min-height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: 18px;
  background: var(--vp-color-action-primary, #003677);
  color: var(--vp-color-text-inverse, #ffffff);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.blog-feed,
.article-related {
  padding: 28px 0 72px;
}

.article-body {
  padding: 24px 0 64px;
}

.article-body .shell--narrow {
  width: min(940px, calc(100% - 32px));
}

.blog-empty {
  padding: 56px 32px;
  border: 1px dashed #cbd5e1;
  border-radius: var(--vp-radius-content-card, 28px);
  background: var(--vp-color-bg-surface, #ffffff);
  text-align: center;
}

.blog-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-card {
  overflow: hidden;
  border-radius: var(--vp-radius-content-card, 28px);
  background: var(--vp-color-bg-surface, #ffffff);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.blog-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #d8e3f1, #eef3f9);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 32px;
  font-weight: 800;
  color: var(--vp-color-action-primary, #003677);
}

.blog-card__body {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.blog-card__meta,
.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: #6b7280;
  font-size: 14px;
}

.article-hero__meta {
  align-items: center;
  margin-top: 14px;
  color: #374151;
  font-weight: 700;
}

.article-hero__meta span + span::before {
  content: "·\00a0";
  color: #9ca3af;
  font-weight: 400;
}

.article-hero__author {
  color: #111827;
}

.article-tags {
  align-items: center;
}

.article-tags__label {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-card__title,
.section-heading h2,
.article-author__name {
  margin: 0;
}

.blog-card__title a,
.section-heading a,
.article-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.blog-card__title a:hover,
.section-heading a:hover,
.article-breadcrumbs a:hover {
  color: var(--vp-color-action-primary, #003677);
}

.blog-card__excerpt {
  margin: 0;
  color: #4b5563;
  line-height: 1.7;
}

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.blog-pagination__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #d1d5db;
  border-radius: var(--vp-radius-full, 999px);
  background: var(--vp-color-bg-surface, #ffffff);
  color: var(--vp-color-action-primary, #003677);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

a.blog-pagination__link:hover {
  border-color: var(--vp-color-action-primary, #003677);
  background: var(--vp-color-action-primary, #003677);
  color: var(--vp-color-text-inverse, #ffffff);
}

.blog-pagination__link.is-disabled {
  border-color: #e5e7eb;
  color: #9ca3af;
  cursor: default;
  opacity: 0.7;
}

.blog-pagination__status {
  color: #374151;
  font-weight: 700;
}

.section-heading a {
  color: var(--vp-color-action-primary, #003677);
  font-weight: 700;
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #6b7280;
  font-size: 14px;
}

.article-hero__tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 12px;
  padding: 0 14px;
  border-radius: var(--vp-radius-full, 999px);
  border: 1px solid #d1d5db;
  background: var(--vp-color-bg-surface, #ffffff);
  color: var(--vp-color-action-primary, #003677);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-cover {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: min(1120px, calc(100vw - 32px));
  margin: 0 50% 28px;
  border-radius: 0;
  background: #f3f4f6;
  transform: translateX(-50%);
}

.article-cover img {
  width: 100%;
  max-width: 100%;
  max-height: min(58vh, 540px);
  height: auto;
  display: block;
  object-fit: cover;
}

.article-excerpt,
.article-content,
.article-author {
  margin-top: 28px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.article-excerpt {
  max-width: 820px;
  padding-left: 22px;
  border-left: 4px solid var(--vp-color-action-primary, #003677);
  color: #1f2937;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.55;
}

.article-content {
  font-size: clamp(1.05rem, 1.2vw, 1.15rem);
  line-height: 1.8;
  color: #202733;
  overflow-wrap: anywhere;
}

.article-content h1,
.article-content h2,
.article-content h3 {
  line-height: 1.2;
  margin-top: 2.2em;
  margin-bottom: 0.72em;
  color: #0f172a;
}

.article-content h1:first-child,
.article-content h2:first-child,
.article-content h3:first-child {
  margin-top: 0;
}

.article-content h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.15;
}

.article-content h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content table {
  margin-bottom: 1.25rem;
}

.article-content a {
  color: var(--vp-color-action-primary, #003677);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.article-content em,
.article-content i {
  color: #111827;
}

.article-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 720px);
  margin: 1.75rem auto;
  border-radius: 18px;
  object-fit: contain;
}

.article-content .article-image {
  display: grid;
  gap: 10px;
  margin: 2.4rem auto;
  clear: both;
}

.article-content .article-image img {
  width: 100%;
  max-height: min(78vh, 780px);
  margin: 0;
  border-radius: 0;
  background: #f3f4f6;
}

.article-content .article-image figcaption {
  max-width: 760px;
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.55;
}

.article-content .article-image--center figcaption,
.article-content .article-image--wide figcaption,
.article-content .article-image--full figcaption {
  margin-inline: auto;
  text-align: center;
}

.article-content .article-image--small {
  max-width: 560px;
}

.article-content .article-image--medium {
  max-width: 720px;
}

.article-content .article-image--large,
.article-content .article-image--standard {
  max-width: 860px;
}

.article-content .article-image--wide {
  width: min(1120px, calc(100vw - 32px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.article-content .article-image--full {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.article-content .article-image--left,
.article-content .article-image--right {
  max-width: min(48%, 430px);
  margin-top: 0.6rem;
  margin-bottom: 1.2rem;
}

.article-content .article-image--left {
  float: left;
  margin-right: 2rem;
  margin-left: 0;
}

.article-content .article-image--right {
  float: right;
  margin-right: 0;
  margin-left: 2rem;
}

.article-content blockquote {
  margin-left: 0;
  padding: 24px 0 24px 28px;
  border-left: 4px solid var(--vp-color-action-primary, #003677);
  border-radius: 0;
  background: transparent;
  color: #0f172a;
  font-size: 1.18em;
  font-style: italic;
}

.article-actions-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.article-like-wrap {
  position: relative;
}

.article-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid #d1d5db;
  border-radius: var(--vp-radius-full, 999px);
  background: var(--vp-color-bg-surface, #ffffff);
  color: #111827;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.article-action-button:hover,
.article-action-button.is-liked {
  border-color: var(--vp-color-action-primary, #003677);
  background: #eef3f9;
  color: var(--vp-color-action-primary, #003677);
}

.article-action-button:disabled {
  cursor: default;
  opacity: 0.65;
}

.article-action-button__icon {
  min-width: 1em;
  font-size: 1.1em;
  line-height: 1;
}

.article-action-button__count {
  min-width: 1.5em;
  color: #4b5563;
  text-align: left;
}

.article-like-preview {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 5;
  display: grid;
  gap: 8px;
  width: max-content;
  max-width: min(320px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: var(--vp-color-bg-surface, #ffffff);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  color: #374151;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.article-like-wrap:hover .article-like-preview,
.article-like-wrap:focus-within .article-like-preview {
  opacity: 1;
  transform: translateY(0);
}

.article-like-preview__avatars {
  display: flex;
  align-items: center;
}

.article-like-preview__avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: -8px;
  overflow: hidden;
  border: 2px solid #ffffff;
  border-radius: var(--vp-radius-full, 999px);
  background: var(--vp-color-action-primary, #003677);
  color: var(--vp-color-text-inverse, #ffffff);
  font-size: 0.7rem;
  font-weight: 900;
}

.article-like-preview__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-like-preview__label {
  display: block;
  max-width: 280px;
}

.article-share-status {
  min-height: 1.2em;
  margin: 0;
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 700;
}

.article-like-hint {
  margin: 8px 0 0;
  max-width: 300px;
  color: #4b5563;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}

.article-like-hint a {
  color: var(--vp-color-action-primary, #003677);
}

.article-like-hint[hidden] {
  display: none;
}

.article-share {
  position: relative;
}

.article-share-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 6;
  display: grid;
  min-width: 190px;
  padding: 6px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: var(--vp-color-bg-surface, #ffffff);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

.article-share-menu[hidden] {
  display: none;
}

.article-share-menu__item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #111827;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.article-share-menu__item[hidden] {
  display: none;
}

.article-share-menu__item:hover {
  background: #eef3f9;
  color: var(--vp-color-action-primary, #003677);
}

.article-author {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding-top: 30px;
  border-top: 1px solid #e5e7eb;
}

.article-author__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--vp-radius-card, 20px);
  background: var(--vp-color-action-primary, #003677);
  color: var(--vp-color-text-inverse, #ffffff);
  font-size: 20px;
  font-weight: 800;
}

.article-author__text {
  margin: 10px 0 0;
  color: #4b5563;
  line-height: 1.75;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .blog-hero,
  .article-hero {
    padding: 36px 0 24px;
  }

  .article-hero {
    padding: 28px 0 24px;
  }

  .article-hero__title {
    font-size: clamp(1.6rem, 8vw, 2.1rem);
  }

  .article-cover {
    width: min(100%, calc(100vw - 20px));
    margin-bottom: 28px;
  }

  .article-cover img,
  .article-content img {
    max-height: 56vh;
  }

  .blog-toolbar__form {
    padding: 22px;
    border-radius: 22px;
  }

  .article-excerpt,
  .article-content,
  .article-author {
    padding: 0;
  }

  .article-content .article-image--wide,
  .article-content .article-image--full {
    width: min(100vw, calc(100vw - 20px));
  }

  .article-content .article-image--left,
  .article-content .article-image--right {
    float: none;
    max-width: none;
    margin: 2rem auto;
  }

  .article-actions-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .article-like-wrap,
  .article-action-button {
    width: 100%;
  }

  .article-like-preview {
    left: 50%;
    transform: translate(-50%, 6px);
  }

  .article-like-wrap:hover .article-like-preview,
  .article-like-wrap:focus-within .article-like-preview {
    transform: translate(-50%, 0);
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    border-radius: 22px;
  }

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

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
