.blog-tools {
  padding-top: 64px;
  padding-bottom: 28px;
  display: grid;
  gap: 16px;
}

.blog-search {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(24, 38, 57, 0.08);
}

.blog-search label {
  min-width: 0;
  color: var(--ink);
}

.blog-search input {
  min-width: 0;
}

.category-row button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--soft);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 800;
  transition: border 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.category-row button:hover,
.category-row button.is-active {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--panel-strong);
}

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

.blog-list-section {
  padding-top: 0;
}

.blog-card,
.empty-state,
.newsletter-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.blog-card {
  min-width: 0;
  overflow: hidden;
  transition: transform 180ms ease, border 180ms ease, background 180ms ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--panel-strong);
}

.blog-card img {
  width: 100%;
  height: 164px;
  object-fit: cover;
  background: var(--surface);
}

.blog-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.blog-card small {
  color: var(--accent-green);
  font-weight: 800;
}

.blog-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.blog-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.blog-card button {
  margin-top: 6px;
  width: fit-content;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 38px;
}

.empty-state h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2.4rem;
}

.empty-state .button {
  margin-top: 18px;
}

.newsletter-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 30px;
  align-items: center;
  padding: 28px;
  margin-bottom: 76px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.newsletter-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.9rem;
}

.newsletter-form {
  display: grid;
  gap: 14px;
}

.article-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(12px);
}

.article-modal.is-open {
  display: grid;
}

.article-modal article {
  width: min(780px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.article-modal small {
  color: var(--accent-green);
  font-weight: 800;
}

.article-modal h2 {
  margin-top: 0;
  color: var(--ink);
  font-size: 1.9rem;
}

.article-modal .close-button {
  float: right;
}

.article-page {
  padding-top: 64px;
}

.article-back {
  width: fit-content;
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent-blue);
  font-weight: 800;
}

.article-page-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.article-page-cover {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 520px;
  object-fit: cover;
  background: var(--surface);
}

.article-page-body {
  display: grid;
  gap: 18px;
  max-width: 860px;
  padding: 36px;
}

.article-page-body h1 {
  margin: 0;
  color: var(--ink);
  font-size: 3rem;
  line-height: 1.06;
}

.article-page-body .lead {
  margin: 0;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.article-meta-row span,
.article-meta-row time {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--surface);
}

.article-content {
  display: grid;
  gap: 22px;
}

.article-content p {
  margin: 0;
  font-size: 1rem;
}

.article-content h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1.15;
}

.article-content section {
  display: grid;
  gap: 12px;
}

.article-content a {
  border-radius: 4px;
  color: var(--accent-blue);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(8, 125, 176, 0.62);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
  text-decoration-skip-ink: auto;
  transition: color 180ms ease, text-decoration-color 180ms ease, background 180ms ease;
}

.article-content a:hover {
  color: #005f9e;
  text-decoration-color: currentColor;
  background: rgba(8, 125, 176, 0.08);
}

.article-content a:focus-visible {
  outline: 3px solid rgba(8, 125, 176, 0.28);
  outline-offset: 3px;
}

.answer-first {
  font-weight: 700;
  color: var(--ink);
}

.article-toc,
.article-related,
.article-faq details,
.sitemap-page article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.article-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px;
}

.article-toc strong {
  color: var(--ink);
}

.article-related,
.article-faq details {
  padding: 16px;
}

.article-related div,
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-related a,
.related-links a,
.seo-crawl-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--panel);
  font-weight: 800;
  text-decoration: none;
}

.article-faq summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.seo-crawl-links {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sitemap-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sitemap-page article {
  padding: 22px;
}

.sitemap-page h2 {
  margin-top: 0;
  color: var(--ink);
}

.sitemap-page li + li {
  margin-top: 8px;
}

.blog-pagination {
  min-height: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.blog-pagination button,
.blog-pagination span {
  min-width: 44px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--soft);
  background: var(--surface);
  font-weight: 800;
}

.blog-pagination button:hover,
.blog-pagination button.is-active {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--panel-strong);
}

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

  .newsletter-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .blog-search,
  .blog-grid,
  .sitemap-page {
    grid-template-columns: 1fr;
  }

  .blog-tools {
    padding-top: 54px;
  }

  .blog-search .button {
    width: 100%;
  }

  .article-page-body {
    padding: 24px;
  }

  .article-page-body h1 {
    font-size: 2.1rem;
  }
}
