:root {
  --blog-ink: #243143;
  --blog-muted: #64748b;
  --blog-line: #dce5ec;
  --blog-paper: #ffffff;
  --blog-soft: #f4f8f7;
  --blog-accent: #136f63;
  --blog-accent-dark: #0b5148;
}

.blog-index-page #blog,
.blog-article-page #blog_content {
  color: var(--blog-ink);
  background: #fbfdfc;
}

.blog-index-header,
.article-header {
  max-width: 860px;
  margin: 0 auto 40px;
  text-align: left;
}

.blog-index-header {
  padding-top: 56px;
  text-align: center;
}

.blog-index-header h1,
.article-header h1 {
  margin: 8px 0 16px;
  color: var(--blog-ink);
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: none;
}

.blog-index-header h1 { font-size: clamp(34px, 5vw, 58px); }
.article-header h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; }

.blog-index-header > p:last-child {
  max-width: 760px;
  margin: 0 auto;
  color: var(--blog-muted);
  font-size: 19px;
  line-height: 1.65;
}

.article-kicker {
  margin: 0;
  color: var(--blog-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

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

.article-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--blog-line);
  border-radius: 22px;
  background: var(--blog-paper);
  box-shadow: 0 12px 34px rgba(31, 55, 67, .07);
}

.article-card__image {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--blog-soft);
}

.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

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

.article-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 23px 24px;
}

.article-card time {
  color: var(--blog-muted);
  font-size: 13px;
  font-weight: 600;
}

.article-card h2 {
  margin: 8px 0 12px;
  font-size: 23px;
  line-height: 1.22;
}

.article-card h2 a { color: var(--blog-ink); text-decoration: none; }
.article-card h2 a:hover { color: var(--blog-accent-dark); }

.article-card p {
  margin: 0 0 20px;
  color: #526173;
  font-size: 16px;
  line-height: 1.58;
}

.article-card__more {
  margin-top: auto;
  color: var(--blog-accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.article-shell {
  max-width: 1120px;
  padding-top: 28px;
  padding-bottom: 72px;
}

.article-breadcrumbs {
  display: flex;
  max-width: 860px;
  margin: 0 auto 42px;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  color: var(--blog-muted);
  font-size: 14px;
  white-space: nowrap;
}

.article-breadcrumbs a { color: var(--blog-accent-dark); }
.article-breadcrumbs [aria-current="page"] { overflow: hidden; text-overflow: ellipsis; }

.article-meta {
  display: flex;
  margin: 18px 0 24px;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--blog-muted);
  font-size: 15px;
}

.article-expert {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #d6e7e2;
  border-radius: 16px;
  padding: 11px 16px 11px 11px;
  background: var(--blog-soft);
}

.article-expert img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.article-expert div { display: grid; }
.article-expert strong { font-size: 16px; }
.article-expert span { color: var(--blog-muted); font-size: 13px; }
.article-expert .article-expert__label { color: var(--blog-accent); font-weight: 800; text-transform: uppercase; letter-spacing: .045em; }

.article-hero {
  max-width: 980px;
  margin: 0 auto 40px;
}

.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 18px 46px rgba(31, 55, 67, .12);
}

.article-toc,
.article-editorial-note,
.article-key-points,
.article-expert-note {
  max-width: 860px;
  margin: 0 auto 34px;
  border: 1px solid #d6e7e2;
  border-radius: 18px;
  padding: 24px 28px;
  background: var(--blog-soft);
}

.article-toc__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
}

.article-toc ol { margin: 0; padding-left: 24px; }
.article-toc li + li { margin-top: 6px; }
.article-toc a { color: var(--blog-accent-dark); text-underline-offset: 3px; }

.article-body {
  max-width: 860px;
  margin: 0 auto;
  color: #334155;
  font-size: 19px;
  line-height: 1.78;
}

.article-body > p:first-child {
  color: var(--blog-ink);
  font-size: 22px;
  line-height: 1.58;
}

.article-body h2 {
  margin: 52px 0 18px;
  scroll-margin-top: 30px;
  color: var(--blog-ink);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.18;
}

.article-body h3 {
  margin: 34px 0 12px;
  color: var(--blog-ink);
  font-size: 25px;
}

.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 28px; }
.article-body li + li { margin-top: 8px; }
.article-body a { color: var(--blog-accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.article-body blockquote {
  margin: 30px 0;
  border-left: 4px solid var(--blog-accent);
  padding: 6px 0 6px 24px;
  color: #425466;
  font-size: 20px;
  font-style: italic;
}

.article-table-block {
  margin: 32px 0 36px;
}

.article-table-hint {
  display: none;
}

.article-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #d6e7e2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 55, 67, .08);
  overscroll-behavior-inline: contain;
  scrollbar-color: #9bbeb4 #edf5f2;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.article-table-scroll:focus-visible {
  outline: 3px solid rgba(31, 122, 103, .28);
  outline-offset: 3px;
}

.article-body .article-table-scroll table {
  width: 100%;
  min-width: 680px;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  color: inherit;
  font-family: inherit;
  font-size: 1em;
  font-weight: inherit;
  line-height: 1.55;
}

.article-body .article-table-scroll caption {
  padding: 18px 20px;
  border-bottom: 1px solid #d6e7e2;
  background: var(--blog-soft);
  color: var(--blog-ink);
  font-family: inherit;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
}

.article-body .article-table-scroll th,
.article-body .article-table-scroll td {
  padding: 14px 16px;
  border-right: 1px solid #e2ece9;
  border-bottom: 1px solid #e2ece9;
  color: inherit;
  font-family: inherit;
  font-size: 1em;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
  word-break: normal;
  overflow-wrap: normal;
}

.article-body .article-table-scroll th {
  background: #f7faf9;
  color: var(--blog-ink);
  font-weight: 700;
}

.article-body .article-table-scroll tbody tr:nth-child(even) td {
  background: #fbfdfc;
}

.article-body .article-table-scroll tr > :last-child {
  border-right: 0;
}

.article-body .article-table-scroll tbody tr:last-child td {
  border-bottom: 0;
}

.article-inline-figure { margin: 38px 0; }
.article-inline-figure img { display: block; width: 100%; height: auto; border-radius: 18px; }
.article-inline-figure figcaption { margin-top: 9px; color: var(--blog-muted); font-size: 14px; line-height: 1.45; }

.article-sources {
  margin-top: 56px;
  border-top: 1px solid var(--blog-line);
  padding-top: 28px;
}

.article-sources li { padding-left: 4px; word-break: break-word; }
.article-citations { white-space: nowrap; }
.article-citations a { font-size: .75em; font-weight: 800; text-decoration: none; vertical-align: super; }

.article-editorial-note { margin-top: 52px; color: #526173; }
.article-editorial-note strong { color: var(--blog-ink); }
.article-editorial-note p { margin: 7px 0 0; line-height: 1.55; }

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

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .blog-index-header { padding-top: 34px; }
  .article-shell { padding-top: 18px; }
  .article-breadcrumbs { margin-bottom: 28px; }
  .article-header { margin-bottom: 28px; }
  .article-expert { display: flex; }
  .article-hero { margin-bottom: 28px; }
  .article-toc, .article-editorial-note, .article-key-points, .article-expert-note { padding: 20px; }
  .article-body { font-size: 18px; line-height: 1.7; }
  .article-body > p:first-child { font-size: 20px; }
  .article-table-block { margin: 26px 0 30px; }
  .article-table-hint {
    display: block;
    margin: 0 0 8px;
    color: var(--blog-muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-align: right;
  }
  .article-table-scroll { border-radius: 14px; }
  .article-body .article-table-scroll table { min-width: 700px; font-size: 18px; }
  .article-body .article-table-scroll caption { padding: 16px; font-size: 18px; }
  .article-body .article-table-scroll th,
  .article-body .article-table-scroll td { padding: 13px 14px; font-size: 18px; }
}
