/* Article page (ke-art__*) — uses tokens and base classes from main.css */

/* ---------- Breadcrumb strip ---------- */
.ke-art__crumbbar { padding: 16px 0; border-bottom: 1px solid var(--ke-line); background: #f7f7f7; }
.ke-art__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ke-text);
}
.ke-art__crumbs a { color: var(--ke-navy); font-weight: 500; transition: color .2s ease; }
.ke-art__crumbs a:hover { color: var(--ke-orange); text-decoration: underline; }
.ke-art__crumbs a:focus-visible { outline-offset: 3px; }
.ke-art__crumbs-sep { color: var(--color-text-muted-3); }

/* ---------- Layout ---------- */
.ke-art__main { padding: 52px 0 90px; background: #ffffff; }
.ke-art { max-width: 860px; margin: 0 auto; min-width: 0; }

/* ---------- Header ---------- */
.ke-art__header { margin-bottom: 30px; }
.ke-art__category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--ke-navy);
  font-family: var(--ke-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.4;
  color: #ffffff;
}
.ke-art__category img { width: 14px; height: 14px; flex: 0 0 14px; }
.ke-art__title {
  margin: 0 0 20px;
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--ke-navy);
  overflow-wrap: anywhere;
}
.ke-art__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-top: 16px;
  border-top: 1px solid var(--ke-line);
  font-size: 14px;
  color: var(--ke-text);
}
.ke-art__meta-item { position: relative; padding-left: 24px; line-height: 1.5; }
.ke-art__meta-item img { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; }

/* ---------- Main image ---------- */
.ke-art__image { margin: 0 0 34px; }
.ke-art__image > img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: var(--radius-1);
  box-shadow: var(--shadow-1);
}
.ke-art__image-caption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--color-text-muted-2); }

/* ---------- Intro ---------- */
.ke-art__intro {
  margin-bottom: 34px;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--ke-orange);
  font-family: var(--ke-head);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ke-navy);
}
.ke-art__intro p + p { margin-top: 12px; }

/* ---------- Article body typography ---------- */
.ke-art__content { font-size: 17px; line-height: 1.8; color: var(--ke-text); overflow-wrap: anywhere; }
.ke-art__content > *:first-child { margin-top: 0; }
.ke-art__content p { margin: 0 0 20px; }
.ke-art__content h2 {
  position: relative;
  margin: 46px 0 18px;
  padding-bottom: 14px;
  font-size: 29px;
  line-height: 1.3;
  color: var(--ke-navy);
}
.ke-art__content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--ke-orange);
}
.ke-art__content h3 { margin: 32px 0 12px; font-size: 22px; line-height: 1.35; color: var(--ke-navy); }
.ke-art__content h4 { margin: 24px 0 10px; font-size: 18px; line-height: 1.4; color: var(--ke-navy); }
.ke-art__content ul,
.ke-art__content ol { margin: 0 0 22px; padding-left: 26px; }
.ke-art__content ul { list-style: disc; }
.ke-art__content ol { list-style: decimal; }
.ke-art__content li { margin-bottom: 8px; padding-left: 4px; }
.ke-art__content li::marker { color: var(--ke-orange); font-weight: 700; }
.ke-art__content li > ul,
.ke-art__content li > ol { margin: 8px 0 0; }
.ke-art__content li > ul { list-style: circle; }
.ke-art__content strong { color: var(--ke-navy); }
.ke-art__content a { color: #c4560f; text-decoration: underline; text-underline-offset: 3px; transition: color .2s ease; }
.ke-art__content a:hover { color: var(--ke-navy); }
.ke-art__content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--ke-orange);
  border-radius: 0 var(--radius-1) var(--radius-1) 0;
  background: #f7f7f7;
  font-style: italic;
  color: var(--ke-navy);
}
.ke-art__content blockquote p:last-child { margin-bottom: 0; }
.ke-art__content img { height: auto; margin: 24px 0; border-radius: var(--radius-1); }
.ke-art__content hr { margin: 36px 0; border: 0; border-top: 1px solid var(--ke-line); }
.ke-art__content code {
  padding: 2px 6px;
  border-radius: var(--radius-1);
  background: #f2f3f6;
  font-size: .92em;
  color: var(--ke-navy);
}
.ke-art__content table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 26px 0;
  overflow-x: auto;
  font-size: 15px;
  line-height: 1.5;
}
.ke-art__content th,
.ke-art__content td { padding: 12px 16px; border: 1px solid var(--ke-line); text-align: left; vertical-align: top; }
.ke-art__content th { background: var(--ke-navy); font-family: var(--ke-head); font-weight: 600; color: #ffffff; }
.ke-art__content tbody tr:nth-child(even) td { background: #f7f7f7; }

/* ---------- Conclusion ---------- */
.ke-art__conclusion {
  margin-top: 44px;
  padding: 32px 34px 28px;
  border-top: 4px solid var(--ke-orange);
  border-radius: var(--radius-1);
  background: #f7f7f7;
}
.ke-art__conclusion-title { margin: 0 0 14px; font-size: 24px; line-height: 1.3; color: var(--ke-navy); }
.ke-art__conclusion p { margin: 0 0 12px; font-size: 16px; line-height: 1.75; color: var(--ke-text); }
.ke-art__conclusion p:last-child { margin-bottom: 0; }
.ke-art__conclusion a { color: #c4560f; text-decoration: underline; text-underline-offset: 3px; transition: color .2s ease; }
.ke-art__conclusion a:hover { color: var(--ke-navy); }

/* ---------- Tags ---------- */
.ke-art__tags {
  position: relative;
  margin-top: 26px;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ke-text);
}
.ke-art__tags img { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; }

/* ---------- Call-to-action (dark band, footer plate is further down) ---------- */
.ke-art__cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
  padding: 38px 42px;
  border-radius: var(--radius-1);
  background-color: var(--ke-navy);
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1.5px, transparent 2px);
  background-size: 20px 20px;
}
.ke-art__cta > * { min-width: 0; }
.ke-art__cta-title { margin: 0 0 10px; font-size: 24px; line-height: 1.3; color: #ffffff; }
.ke-art__cta-copy { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ke-soft); }
.ke-art__cta-actions { display: flex; flex-direction: column; gap: 12px; }
.ke-art__cta-phone { white-space: nowrap; }

/* ---------- Related articles ---------- */
.ke-art__related { max-width: 1200px; margin: 80px auto 0; }
.ke-art__related-title {
  position: relative;
  margin: 0 0 34px;
  padding-bottom: 16px;
  font-size: 30px;
  line-height: 1.3;
  color: var(--ke-navy);
}
.ke-art__related-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: var(--ke-orange);
}
.ke-art__related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ke-art__related-grid > * { min-width: 0; }
.ke-art__related-card {
  display: flex;
  border-radius: var(--radius-1);
  background: #ffffff;
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.ke-art__related-card:hover { box-shadow: var(--shadow-2); transform: translateY(-4px); }
.ke-art__related-link { display: flex; flex-direction: column; width: 100%; min-width: 0; }
.ke-art__related-link:focus-visible { outline-offset: -3px; }
.ke-art__related-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #f7f7f7; }
.ke-art__related-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ke-art__related-card:hover .ke-art__related-img > img { transform: scale(1.05); }
.ke-art__related-body { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; padding: 20px 22px 22px; }
.ke-art__related-card-title {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ke-navy);
  overflow-wrap: anywhere;
  transition: color .2s ease;
}
.ke-art__related-card:hover .ke-art__related-card-title { color: var(--ke-orange); }
.ke-art__related-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: var(--ke-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--ke-navy);
}
.ke-art__related-more img { width: 14px; height: 14px; transition: transform .2s ease; }
.ke-art__related-card:hover .ke-art__related-more img { transform: translateX(4px); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .ke-art__title { font-size: 38px; }
  .ke-art__cta { padding: 32px 30px; }
}

@media (max-width: 1024px) {
  .ke-art__main { padding: 44px 0 70px; }
  .ke-art__title { font-size: 34px; }
  .ke-art__content h2 { font-size: 26px; }
  .ke-art__cta { grid-template-columns: minmax(0, 1fr); }
  .ke-art__cta-actions { flex-direction: row; flex-wrap: wrap; }
  .ke-art__related { margin-top: 60px; }
  .ke-art__related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}

@media (max-width: 768px) {
  .ke-art__crumbbar { padding: 12px 0; }
  .ke-art__main { padding: 36px 0 56px; }
  .ke-art__title { font-size: 30px; }
  .ke-art__intro { font-size: 18px; padding-left: 18px; }
  .ke-art__content { font-size: 16px; line-height: 1.75; }
  .ke-art__content h2 { margin-top: 38px; font-size: 24px; }
  .ke-art__content h3 { font-size: 20px; }
  .ke-art__conclusion { padding: 26px 22px 22px; }
  .ke-art__conclusion-title { font-size: 21px; }
  .ke-art__cta { padding: 28px 22px; }
  .ke-art__cta-title { font-size: 21px; }
  .ke-art__related-title { font-size: 26px; }
}

@media (max-width: 480px) {
  .ke-art__title { font-size: 26px; }
  .ke-art__meta { gap: 8px 18px; }
  .ke-art__image > img { aspect-ratio: 3 / 2; }
  .ke-art__cta-actions { flex-direction: column; }
  .ke-art__cta-actions .ke-btn { width: 100%; }
  .ke-art__related-grid { grid-template-columns: minmax(0, 1fr); }
  .ke-art__related { margin-top: 48px; }
}

@media (max-width: 375px) {
  .ke-art__title { font-size: 24px; }
  .ke-art__intro { font-size: 17px; }
  .ke-art__content th,
  .ke-art__content td { padding: 10px 12px; }
  .ke-art__conclusion { padding: 22px 16px 18px; }
  .ke-art__cta { padding: 24px 16px; }
}
