.sa-articles { background: #fff; }
.sa-articles .crumbs { max-width: 100%; min-width: 0; margin: 18px 0 6px; }
.sa-articles .crumbs ol {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0 0 8px;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  max-width: 100%;
}
.sa-articles .crumbs li {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.sa-articles .crumbs li + li::before {
  content: "";
  width: 14px;
  height: 14px;
  margin: 0 6px;
  background: center / 14px 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aabba' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
}
.sa-articles .crumbs a { color: var(--blue); }
.sa-articles .crumbs a:hover { color: #0070c8; }
.sa-articles .crumbs [aria-current="page"] { color: var(--ink); font-weight: 800; }

.articles-wrap { padding-bottom: 28px; }
.article-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.article-cats a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ice);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}
.article-cats a:hover { color: var(--ink); background: #e3f3fc; }
.article-cats a.is-current { background: var(--yellow); border-color: transparent; }

.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 0 28px; }
.article-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #f0f7fc;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.article-card-media {
  display: block;
  margin: 16px 16px 0;
  aspect-ratio: 16 / 9;
  background: #e7f3fb;
  overflow: hidden;
  border-radius: 12px;
}
.article-card-media img, .article-photo-empty {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.article-photo-empty { background: linear-gradient(160deg, #e7f4fd, #d5ebf8); }
.article-card-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 18px; flex: 1; min-width: 0; }
.article-card h2 { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: -.03em; font-weight: 800; }
.article-card h2 a { color: var(--ink); }
.article-card h2 a:hover { color: var(--blue); }
.article-card time { font-size: 12px; font-weight: 700; color: var(--muted); }
.article-card-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .button { margin-top: auto; align-self: flex-start; }

.pager { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 36px; }
.pager-pages { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pager a, .pager span.pager-num, .pager-arrow {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  background: var(--ice);
  border: 1px solid var(--line);
  color: var(--ink);
}
.pager a:hover { color: var(--ink); background: #e5f3fc; }
.pager a[aria-current="page"] { background: var(--yellow); border-color: transparent; }
.pager .is-disabled { opacity: .45; }
.pager-ellipsis { min-width: 24px; color: var(--muted); font-weight: 800; }

.article-page { padding-bottom: 48px; }
.article-top { max-width: 780px; margin-top: 8px; }
.article-top time { display: block; margin: 8px 0 12px; font-size: 13px; font-weight: 800; color: var(--muted); }
.article-top h1 { margin: 0 0 18px; }
.article-hero-photo, .article-page > .article-photo-empty {
  width: 100%;
  aspect-ratio: 16/8;
  max-height: 640px;
  object-fit: cover;
  border-radius: 24px;
  margin: 6px 0 34px;
  background: #e7f3fb;
}
.article-page .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 42px; align-items: start; }
.article-page .article-layout .article-body { max-width: none; }
.article-page .article-sidebar { position: sticky; top: 100px; }
.article-page .article-toc nav { display: grid; }
.article-body { max-width: 780px; min-width: 0; color: #33465a; }
.article-body > *:first-child { margin-top: 0; }
.article-body h1, .article-body h2, .article-body h3, .article-body h4, .article-body h5, .article-body h6 {
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -.03em;
  font-weight: 800;
  scroll-margin-top: 110px;
}
.article-body h1 { font-size: 32px; margin: 36px 0 16px; }
.article-body h2 { font-size: 28px; margin: 40px 0 16px; }
.article-body h3 { font-size: 22px; margin: 32px 0 12px; }
.article-body h4 { font-size: 18px; margin: 26px 0 10px; }
.article-body h5 { font-size: 16px; margin: 22px 0 8px; }
.article-body h6 { font-size: 13px; margin: 20px 0 8px; letter-spacing: .06em; text-transform: uppercase; }
.article-body p, .article-body li, .article-body dd { font-size: 17px; line-height: 1.75; color: #33465a; }
.article-body p { margin: 0 0 18px; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: #006cc2; }
.article-body strong { color: var(--ink); font-weight: 800; }
.article-body em { font-style: italic; }
.article-body ul, .article-body ol {
  margin: 8px 0 22px;
  padding: 18px 22px 18px 42px;
  background: #f1f8fd;
  border: 1px solid #dfedf7;
  border-radius: 16px;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin: 8px 0; padding-left: 4px; }
.article-body li::marker { font-weight: 800; color: #0989d8; }
.article-body hr { border: 0; height: 1px; background: var(--line); margin: 32px 0; }
.article-body blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  background: var(--ice);
  border-left: 4px solid var(--yellow);
  border-radius: 0 16px 16px 0;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-table, .article-body figure.wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin: 8px 0 22px;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 0; background: #fff; font-size: 15px; line-height: 1.45; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; color: var(--ink); }
.article-body th { background: #ffde59; font-size: 13px; font-weight: 800; color: var(--ink); }
.article-body .sa-note { margin: 22px 0; padding: 16px 18px; background: #fff8d8; border-left: 4px solid var(--yellow); border-radius: 0 16px 16px 0; }
.article-body .sa-note p { margin: 0; color: var(--ink); }
.article-page .article-contact { margin-top: 28px; }
.article-body tbody tr:nth-child(even) td { background: #f8fbfd; }
.article-body img { width: auto; max-width: 100%; height: auto; object-fit: initial; border-radius: 16px; display: block; margin: 18px 0; }
.article-body figure { margin: 18px 0; }
.article-body figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.article-body pre {
  overflow-x: auto;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
}
.article-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--ice); border-radius: 6px; padding: 1px 5px; }
.article-body pre code { background: transparent; color: inherit; padding: 0; }
.article-body dl { margin: 0 0 18px; }
.article-body dt { font-weight: 800; color: var(--ink); margin-top: 12px; }
.article-empty { padding: 28px; border: 1px dashed var(--line); border-radius: 16px; background: #f8fbfd; margin-bottom: 28px; }
.article-empty h2 { margin-bottom: 8px; }
#sa-write { position: relative; }
#sa-write .messengers { margin-top: 8px; }
#sa-write .button { margin-top: 8px; }

@media (max-width: 980px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-page .article-layout { grid-template-columns: 1fr; gap: 24px; }
  .article-page .article-sidebar { position: static; order: -1; }
}
@media (max-width: 640px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-hero-photo, .article-page > .article-photo-empty { border-radius: 16px; margin-bottom: 22px; aspect-ratio: 16/10; }
  .article-body h1 { font-size: 26px; }
  .article-body h2 { font-size: 23px; }
  .article-body p, .article-body li, .article-body dd { font-size: 16px; }
  .article-body ul, .article-body ol { padding: 14px 14px 14px 32px; }
  .crumbs li { font-size: 12px; }
}
