/* Blog article — "Article — long read" post template
   Same DNA as the case page: Lufga / #1F3F5D dark / #1355BC accent / #88ACDF border / #f3f8fe blue-gay
   ----------------------------------------------------------------- */

.article-page {
  --art-dark: #1F3F5D;
  --art-accent: #1355BC;
  --art-accent-2: #39B7FF;
  --art-border: rgba(136, 172, 223, .4);
  --art-soft: #5f7489;
  --art-muted: #A1ADB7;
  --art-blue-gay: #f3f8fe;
  --art-prose: 820px;
  --art-font: Lufga, sans-serif;
  color: var(--art-dark);
}

.article-page h1,
.article-page h2,
.article-page h3 { text-transform: none; }

.art-label {
  font: 500 12px/1.4 var(--art-font);
  color: var(--art-accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 12px;
}

/* ============== Breadcrumb ============== */
.art-breadcrumb {
  padding: 24px 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--art-muted);
}
.art-breadcrumb a { color: var(--art-muted); text-decoration: none; }
.art-breadcrumb a:hover { color: var(--art-accent); }
.art-breadcrumb .sep { margin: 0 8px; opacity: .55; }
.art-breadcrumb .current { color: var(--art-dark); }

/* ============== Hero: tag, H1, lead, meta, image ============== */
.art-hero { padding: 32px 0 64px; }
.art-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
.art-hero.has-image .art-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.art-hero-content { max-width: 1100px; }

.art-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 99px;
  background: var(--art-blue-gay);
  color: var(--art-accent);
  font: 500 12px/1.4 var(--art-font);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.article-page .art-title {
  font: 500 clamp(34px, 4vw, 60px)/1.1 var(--art-font);
  letter-spacing: -.015em;
  color: var(--art-dark);
  margin: 0 0 24px;
  overflow-wrap: break-word;
}

.art-lead {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.55;
  color: #3e5a74;
  max-width: 760px;
  margin: 0 0 32px;
}

.art-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-top: 24px;
  border-top: 1px solid var(--art-border);
}
.art-meta-person { display: flex; align-items: center; gap: 14px; }
.art-meta-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.art-meta-name { display: block; font: 500 16px/1.35 var(--art-font); }
.art-meta-role { display: block; font-size: 14px; line-height: 1.4; color: var(--art-soft); }
.art-meta-details { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; line-height: 1.4; color: var(--art-soft); }
.art-meta-details span + span::before { content: '·'; margin: 0 10px; }
.art-meta-links { display: flex; gap: 8px; margin-left: auto; }
.art-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--art-blue-gay);
  color: var(--art-accent);
  transition: background-color .2s ease, color .2s ease;
}
.art-icon-link:hover { background: var(--art-accent); color: #fff; }

.art-hero-image img { display: block; width: 100%; height: auto; border-radius: 28px; }
.art-hero-image figcaption,
.art-figure figcaption,
.art-video figcaption { font-size: 14px; line-height: 1.5; color: var(--art-soft); margin-top: 10px; }

/* ============== Body: table of contents + content ============== */
.art-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px 64px;
  align-items: start;
}
.art-grid.no-toc { grid-template-columns: minmax(0, 1fr); }
.art-content { min-width: 0; max-width: 1180px; }
.art-content > * { margin-top: 56px; }
.art-content > :first-child { margin-top: 0; }

.art-aside { position: sticky; top: 24px; }
.art-toc-label { font: 500 12px/1.4 var(--art-font); color: var(--art-accent); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.art-toc ol { list-style: none; border-left: 1px solid var(--art-border); }
.art-toc a {
  display: block;
  margin-left: -1px;
  padding: 8px 0 8px 16px;
  border-left: 2px solid transparent;
  font-size: 15px;
  line-height: 1.4;
  color: var(--art-soft);
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}
.art-toc a:hover,
.art-toc a.is-active { color: var(--art-accent); border-left-color: var(--art-accent); }

/* ============== Text ============== */
.art-prose {
  max-width: var(--art-prose);
  font-size: 18px;
  line-height: 1.7;
  overflow-wrap: break-word;
}
.art-prose p,
.art-prose ul,
.art-prose ol,
.art-prose figure,
.art-prose .wp-caption { margin: 0 0 1.2em; }
.art-prose > :last-child { margin-bottom: 0; }
.art-prose h3 { font: 500 24px/1.3 var(--art-font); margin: 1.6em 0 .6em; }
.art-prose h4 { font: 500 20px/1.35 var(--art-font); margin: 1.4em 0 .5em; }
.art-prose ul,
.art-prose ol { padding-left: 1.4em; }
.art-prose ul { list-style: disc; }
.art-prose ol { list-style: decimal; }
.art-prose li { margin: .4em 0; padding-left: .2em; }
.art-prose li::marker { color: var(--art-accent); }
.art-prose a { color: var(--art-accent); text-decoration: underline; text-underline-offset: 3px; }
.art-prose strong,
.art-prose b { font-weight: 500; }
.art-prose em,
.art-prose i { font-style: italic; }
.art-prose blockquote { border-left: 3px solid var(--art-accent); padding: 4px 0 4px 24px; margin: 1.5em 0; font-size: 20px; }
.art-prose img { border-radius: 16px; }
.art-prose code { background: var(--art-blue-gay); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.art-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 16px; }
.art-prose th,
.art-prose td { padding: 10px 14px; border: 1px solid var(--art-border); text-align: left; vertical-align: top; }
.art-prose th { background: var(--art-blue-gay); font-weight: 500; }

.art-hook p:first-child { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.55; }

.art-section { scroll-margin-top: 24px; }
.art-content > .art-section { margin-top: 72px; }
.art-content > .art-section:first-child { margin-top: 0; }
.article-page .art-h2 {
  font: 500 clamp(26px, 2.4vw, 36px)/1.2 var(--art-font);
  letter-spacing: -.01em;
  max-width: var(--art-prose);
  margin: 0 0 20px;
}

/* ============== Pull quote ============== */
.art-pullquote {
  padding: clamp(40px, 5vw, 72px) clamp(20px, 5vw, 80px);
  border-radius: 28px;
  background: var(--art-blue-gay);
  text-align: center;
}
.art-pullquote::before {
  content: '\201C';
  display: block;
  height: 44px;
  font: 500 110px/1 var(--art-font);
  color: var(--art-accent);
  opacity: .35;
  margin-bottom: 20px;
}
.art-pullquote blockquote p {
  max-width: 980px;
  margin: 0 auto;
  font: 500 clamp(26px, 3vw, 44px)/1.25 var(--art-font);
  letter-spacing: -.015em;
  color: var(--art-dark);
  overflow-wrap: break-word;
}
.art-pullquote figcaption { margin-top: 24px; font-size: 14px; color: var(--art-soft); text-transform: uppercase; letter-spacing: .08em; }

/* ============== Practical block ============== */
.art-practical {
  padding: clamp(28px, 4vw, 56px);
  border-radius: 28px;
  background: var(--art-dark);
  color: #fff;
  scroll-margin-top: 24px;
}
.art-practical .art-label { color: var(--art-accent-2); }
.article-page .art-practical-title { font: 500 clamp(26px, 2.4vw, 36px)/1.2 var(--art-font); letter-spacing: -.01em; color: #fff; margin: 0 0 12px; }
.art-practical-intro { max-width: 720px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.art-practical-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
  list-style: none;
  counter-reset: art-step;
}
.art-practical-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  counter-increment: art-step;
}
.art-practical-item::before {
  content: counter(art-step, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--art-dark);
  font: 500 15px/1 var(--art-font);
}
.art-practical.is-checklist .art-practical-item::before {
  content: '';
  background: var(--art-accent-2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 18px no-repeat;
}
.art-practical-item-title { font: 500 18px/1.35 var(--art-font); margin: 10px 0 6px; }
.art-practical-item-text { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.art-practical-item-title:only-child,
.art-practical-item-text:only-child { margin: 10px 0 0; }

/* ============== Call to action (same as the case page banner) ============== */
.art-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 32px;
  align-items: center;
  padding: 56px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--art-accent), #2c6cd6);
  color: #fff;
}
.article-page .art-cta-question { font: 500 28px/1.3 var(--art-font); color: #fff; margin: 0 0 12px; }
.article-page .art-cta-question:last-child { margin-bottom: 0; }
.art-cta-text { max-width: 580px; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .85); }
.art-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 26px 18px 32px;
  border-radius: 99px;
  background: #fff;
  color: var(--art-accent);
  font: 500 16px/1.2 var(--art-font);
  white-space: nowrap;
  text-decoration: none;
  transition: transform .2s ease;
}
.art-cta-btn::after {
  content: '';
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--art-accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11' fill='none'><path d='M8.35 2.85L1.18 10.02 0 8.84 7.17 1.67H.85V0H10v9.17H8.35V2.85z' fill='%23ffffff'/></svg>") center / 12px no-repeat;
}
.art-cta-btn:hover { transform: translateY(-2px); color: var(--art-accent); }

/* ============== Author card ============== */
.art-author-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--art-border);
  border-radius: 28px;
  background: var(--art-blue-gay);
}
.art-author-card:not(:has(.art-author-photo)) { grid-template-columns: minmax(0, 1fr); }
.art-author-photo img { display: block; width: 140px; height: 140px; border-radius: 50%; object-fit: cover; }
.art-author-name { font: 500 clamp(24px, 2vw, 32px)/1.2 var(--art-font); margin: 0 0 4px; }
.art-author-role { font-size: 15px; color: var(--art-soft); }
.art-author-bio { max-width: 760px; margin-top: 16px; font-size: 17px; line-height: 1.65; }
.art-author-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.art-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid var(--art-border);
  border-radius: 99px;
  background: #fff;
  color: var(--art-dark);
  font: 500 15px/1.2 var(--art-font);
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}
.art-pill svg { color: var(--art-accent); }
.art-pill:hover { color: var(--art-accent); border-color: var(--art-accent); }

/* ============== Extra blocks ============== */
.art-figure { max-width: var(--art-prose); }
.art-figure.is-wide { max-width: none; }
.art-figure img { display: block; width: 100%; height: auto; border-radius: 20px; }

.article-page .art-block-title { font: 500 22px/1.3 var(--art-font); margin: 0 0 16px; }
.art-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--art-border); border-radius: 20px; }
.art-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.art-table th { padding: 14px 18px; background: var(--art-blue-gay); font-weight: 500; text-align: left; vertical-align: bottom; }
.art-table td { padding: 14px 18px; border-top: 1px solid var(--art-border); vertical-align: top; }
.art-table td:first-child { font-weight: 500; }
.art-note { margin-top: 12px; font-size: 14px; color: var(--art-soft); }

.art-callout {
  max-width: var(--art-prose);
  padding: 24px 28px;
  border-left: 4px solid var(--art-accent);
  border-radius: 0 20px 20px 0;
  background: var(--art-blue-gay);
}
.art-callout-text { font-size: 17px; line-height: 1.65; }
.art-callout-text p + p { margin-top: .8em; }
.art-callout-text a { color: var(--art-accent); }
.art-callout.is-key { border-left-color: var(--art-accent-2); background: var(--art-dark); color: #fff; }
.art-callout.is-key .art-label { color: var(--art-accent-2); }
.art-callout.is-key a { color: #fff; }

.art-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 28px 24px;
  padding: 40px;
  border-radius: 28px;
  background: var(--art-dark);
  color: #fff;
}
.art-numbers-v { font: 400 clamp(34px, 3.4vw, 56px)/1 var(--art-font); letter-spacing: -.02em; margin-bottom: 10px; }
.art-numbers-l { font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .65); text-transform: uppercase; letter-spacing: .06em; }

.art-quote { max-width: var(--art-prose); padding-left: 24px; border-left: 3px solid var(--art-accent); }
.art-quote blockquote p { font: 500 22px/1.45 var(--art-font); }
.art-quote figcaption { margin-top: 10px; font-size: 14px; color: var(--art-soft); }

.art-video { max-width: 1000px; }
.art-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--art-blue-gay); }
.art-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.art-button-block { max-width: var(--art-prose); }
.art-button-block p { font-size: 18px; line-height: 1.6; margin-bottom: 16px; }

/* ============== Responsive ============== */
@media (max-width: 1100px) {
  .art-hero.has-image .art-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .art-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .art-aside { position: static; }
  .art-toc { padding: 20px 24px; border-radius: 20px; background: var(--art-blue-gay); }
  .art-toc ol { border-left: 0; }
  .art-toc a { margin: 0; padding: 6px 0; border-left: 0; }
  .art-cta { grid-template-columns: minmax(0, 1fr); padding: 40px 32px; }
  .art-cta-btn { justify-self: start; }
}

/* Site footer: the 28px e-mail is wider than a phone screen and scrolls the page sideways */
@media (max-width: 480px) {
  /* a later inline snippet sets .footer-contacts .footer-email to 36px, hence the extra class */
  .site-footer .footer-contacts .footer-email { font-size: min(28px, 5.4vw); }
}

@media (max-width: 767px) {
  .art-hero { padding: 16px 0 40px; }
  .art-meta { gap: 16px; }
  .art-meta-links { margin-left: 0; }
  .art-prose { font-size: 17px; }
  .art-hook p:first-child { font-size: 19px; }
  .art-content > * { margin-top: 44px; }
  .art-content > .art-section { margin-top: 52px; }
  .art-hero-image img,
  .art-pullquote,
  .art-practical,
  .art-cta,
  .art-author-card,
  .art-numbers { border-radius: 20px; }
  .art-pullquote::before { height: 32px; font-size: 80px; margin-bottom: 12px; }
  .art-practical-list { grid-template-columns: minmax(0, 1fr); }
  .art-practical-item { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 18px; }
  .art-practical-item::before { width: 36px; height: 36px; font-size: 13px; }
  .art-practical-item-title { margin-top: 6px; }
  .art-cta { padding: 32px 24px; }
  .article-page .art-cta-question { font-size: 24px; }
  .art-cta-btn { justify-self: stretch; justify-content: space-between; white-space: normal; }
  .art-author-card { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .art-author-photo img { width: 96px; height: 96px; }
  .art-numbers { padding: 28px 24px; }
}
