@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --article-bg: #f2f4f5;
  --article-surface: rgba(255, 255, 255, 0.8);
  --article-surface-strong: #ffffff;
  --article-border: rgba(29, 48, 56, 0.1);
  --article-text: #1d3038;
  --article-muted: #60727a;
  --article-primary: #20353d;
  --article-primary-strong: #14262d;
  --article-shadow: 0 20px 46px rgba(18, 36, 43, 0.09);
}

body.legacy-blog-article {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(32, 53, 61, 0.08), transparent 34%),
    radial-gradient(circle at bottom right, rgba(32, 53, 61, 0.06), transparent 32%),
    var(--article-bg);
  color: var(--article-text);
  font-family: "Manrope", "Work Sans", sans-serif;
  line-height: 1.65;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body.legacy-blog-article *,
body.legacy-blog-article *::before,
body.legacy-blog-article *::after {
  box-sizing: border-box;
}

.article-shell {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
}

.article-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0 0;
}

.article-topbar-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 32px rgba(17, 35, 42, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.article-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--article-primary);
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.article-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--article-primary);
  box-shadow: 0 12px 24px rgba(24, 42, 50, 0.18);
}

.article-brand-mark img {
  width: 18px;
  height: 18px;
  display: block;
}

.article-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--article-primary);
  box-shadow: inset 0 0 0 1px rgba(32, 53, 61, 0.12);
}

.article-menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 3px auto;
  border-radius: 999px;
  background: currentColor;
}

.article-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

.article-nav a {
  color: rgba(29, 48, 56, 0.82);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.article-nav a:hover,
.article-nav a:focus {
  color: var(--article-primary);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.article-nav a.is-current {
  color: var(--article-primary);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.article-topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(20, 38, 45, 0.1);
  border-radius: 999px;
  background: var(--article-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.article-topbar-cta:hover,
.article-topbar-cta:focus {
  color: #fff;
  background: var(--article-primary-strong);
}

.article-main {
  padding: 34px 0 72px;
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 16px;
  color: rgba(32, 53, 61, 0.62);
  font-size: 0.8rem;
  font-weight: 700;
}

.article-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.article-breadcrumbs a:hover,
.article-breadcrumbs a:focus {
  color: var(--article-primary);
}

.article-head h1 {
  margin: 0;
  color: var(--article-primary);
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.04em;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--article-border);
  border-bottom: 1px solid var(--article-border);
}

.article-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.article-author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #edc2a1;
  border: 2px solid rgba(32, 53, 61, 0.3);
}

.article-author-name {
  margin: 0;
  color: var(--article-primary);
  font-size: 0.86rem;
  font-weight: 800;
}

.article-author-role {
  margin: 2px 0 0;
  color: var(--article-muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--article-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.article-tags {
  margin-left: auto;
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(32, 53, 61, 0.08);
  color: var(--article-primary);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-featured-image {
  margin-top: 20px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--article-shadow);
  background: var(--article-surface-strong);
}

.article-featured-image img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.article-ad-slot {
  margin-top: 20px;
}

.article-ad-slot .adsbygoogle {
  display: block;
  min-height: 110px;
}

.article-content-wrap {
  margin-top: 24px;
}

.article-content {
  font-size: 1.02rem;
  color: #273b44;
}

.article-content > :first-child {
  margin-top: 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 36px 0 14px;
  color: #102934;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.article-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.05rem);
}

.article-content h3 {
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
}

.article-content p,
.article-content li {
  margin: 0 0 14px;
  color: #334a54;
  font-size: 1rem;
  line-height: 1.85;
}

.article-content .article-lead {
  margin-bottom: 28px;
  padding: 12px 16px;
  border-left: 4px solid rgba(32, 53, 61, 0.78);
  color: #253a42;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.45);
}

.article-content ul,
.article-content ol {
  margin: 0 0 22px 20px;
  padding: 0;
}

.article-content li {
  margin-bottom: 9px;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(18, 35, 42, 0.12);
}

.article-content a {
  color: #11618c;
  font-weight: 700;
  word-break: break-word;
}

.article-content a:hover,
.article-content a:focus {
  color: #0e4f71;
}

.article-content .hero-btn-primary,
.article-content .article-inline-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--article-primary);
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(18, 35, 42, 0.16);
}

.article-content .hero-btn-primary:hover,
.article-content .hero-btn-primary:focus,
.article-content .article-inline-cta:hover,
.article-content .article-inline-cta:focus {
  color: #fff;
  background: var(--article-primary-strong);
}

.article-share {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--article-border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.article-share-label {
  color: rgba(32, 53, 61, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-share-buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article-share-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(29, 48, 56, 0.12);
  border-radius: 10px;
  background: var(--article-surface);
  color: var(--article-primary);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.article-share-button:hover,
.article-share-button:focus {
  color: #fff;
  background: var(--article-primary);
}

.article-newsletter {
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(32, 53, 61, 0.08), transparent 48%),
    var(--article-surface);
  box-shadow: var(--article-shadow);
  padding: clamp(22px, 4vw, 42px);
  text-align: center;
}

.article-newsletter h2 {
  margin: 14px 0 0;
  color: var(--article-primary);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
}

.article-newsletter p {
  margin: 12px auto 0;
  max-width: 560px;
  color: var(--article-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.article-newsletter-form {
  display: flex;
  gap: 10px;
  margin: 22px auto 0;
  max-width: 560px;
}

.article-newsletter-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--article-border);
  border-radius: 12px;
  background: #fff;
  color: #1f333b;
  font-size: 0.92rem;
  font-weight: 600;
  outline: none;
}

.article-newsletter-form button {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--article-primary);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
}

.article-newsletter-form button:hover,
.article-newsletter-form button:focus {
  background: var(--article-primary-strong);
}

.article-newsletter-feedback {
  margin-top: 10px;
  min-height: 20px;
  color: #1b8c4d;
  font-size: 0.82rem;
  font-weight: 700;
}

.article-related {
  margin-top: 48px;
}

.article-related-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.article-related h2 {
  margin: 0;
  color: var(--article-primary);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
}

.article-related-all {
  color: var(--article-primary);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

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

.article-related-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  background: var(--article-surface);
  box-shadow: 0 14px 30px rgba(18, 35, 42, 0.08);
  text-decoration: none;
}

.article-related-card:hover,
.article-related-card:focus {
  transform: translateY(-2px);
}

.article-related-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-related-content {
  padding: 14px;
}

.article-related-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.article-related-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(32, 53, 61, 0.1);
  color: var(--article-primary);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-related-read {
  color: rgba(32, 53, 61, 0.55);
  font-size: 0.72rem;
  font-weight: 700;
}

.article-related-card h3 {
  margin: 0;
  color: var(--article-primary);
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.38;
}

.article-footer {
  margin-top: 60px;
  padding: 56px 0 30px;
  background: #1b2d35;
  color: rgba(255, 255, 255, 0.75);
}

.article-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.article-footer h4 {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-footer p,
.article-footer a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
  line-height: 1.72;
  text-decoration: none;
}

.article-footer a {
  display: block;
}

.article-footer a + a {
  margin-top: 8px;
}

.article-footer a:hover,
.article-footer a:focus {
  color: #fff;
}

.article-footer-meta {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.56);
}

@media (max-width: 960px) {
  .article-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .article-nav {
    display: none;
    width: 100%;
    order: 5;
    padding-top: 8px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .article-topbar-card.is-open .article-nav {
    display: flex;
  }

  .article-topbar-cta {
    margin-left: auto;
  }

  .article-tags {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 780px) {
  .article-shell {
    width: min(980px, calc(100% - 24px));
  }

  .article-main {
    padding-top: 24px;
  }

  .article-meta {
    gap: 10px 14px;
  }

  .article-newsletter-form {
    flex-direction: column;
  }

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

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

  .article-footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .article-topbar-cta {
    display: none;
  }

  .article-meta-item {
    font-size: 0.78rem;
  }

  .article-content p,
  .article-content li {
    font-size: 0.97rem;
  }
}
