/* ============ Blog article page ============ */
/* Reuses .tut-sec / .callout / .check-list / .num-list / .faq-item etc. from tutorial.css */

.art-hero { padding: 30px 0 0; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-dim); margin-bottom: 22px;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb i { font-size: 10px; }
.breadcrumb .current { color: var(--text); font-weight: 500; }

.art-header { max-width: 760px; margin: 0 auto; text-align: center; }
.art-cat {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  color: var(--orange); background: var(--orange-soft); padding: 4px 14px;
  border-radius: 999px; margin-bottom: 16px;
}
.art-cat.cat-teal { color: var(--teal); background: var(--teal-soft); }
.art-header h1 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; line-height: 1.35; }
.art-summary { color: var(--text-dim); font-size: 15.5px; margin-top: 16px; }
.art-byline {
  display: flex; justify-content: center; gap: 22px; flex-wrap: wrap;
  margin-top: 20px; font-family: var(--mono); font-size: 13px; color: var(--text-dim);
}
.art-byline span { display: flex; align-items: center; gap: 7px; }
.art-byline i { color: var(--teal); }

.art-cover {
  position: relative; max-width: 900px; margin: 32px auto 0; min-height: 220px;
  border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  display: flex; align-items: center; justify-content: center;
  background-color: var(--panel);
  background-image: radial-gradient(rgba(20, 45, 85, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
}
.art-cover::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(220px 220px at 50% 50%, var(--orange-soft), transparent 72%);
}
.art-cover.tone-teal::before { background: radial-gradient(220px 220px at 50% 50%, var(--teal-soft), transparent 72%); }
.art-cover-badge {
  position: relative; z-index: 1;
  width: 92px; height: 92px; border-radius: 26px;
  display: grid; place-items: center; color: #fff; font-size: 36px;
  background: linear-gradient(120deg, #f9820f, #ea6209);
  box-shadow: 0 18px 36px rgba(240, 118, 10, 0.32);
}
.art-cover.tone-teal .art-cover-badge {
  background: linear-gradient(120deg, #14b8a6, #0d9488);
  box-shadow: 0 18px 36px rgba(13, 148, 136, 0.3);
}

.art-wrap { padding: 40px 0 60px; }
.art-body { max-width: 760px; margin: 0 auto; }

/* Author / share strip at the bottom of the article */
.art-share {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  max-width: 760px; margin: 0 auto 30px; padding: 18px 24px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--panel);
}
.art-share-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.art-share-tags span {
  font-size: 12px; color: var(--text-dim); background: rgba(20, 45, 85, 0.05);
  padding: 5px 12px; border-radius: 999px;
}
.art-back { display: flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 500; font-size: 14px; }
.art-back:hover { text-decoration: underline; }

/* Prev / next navigation */
.art-pagenav {
  max-width: 760px; margin: 0 auto 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.art-pagenav a {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--panel); transition: border-color .2s, transform .2s;
}
.art-pagenav a:hover { border-color: rgba(240, 118, 10, 0.4); transform: translateY(-2px); }
.art-pagenav .dir { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.art-pagenav .next { text-align: right; grid-column: 2; }
.art-pagenav .next .dir { justify-content: flex-end; }
.art-pagenav b { font-size: 14.5px; color: var(--text); }

/* Bottom download CTA card, placed right after the article body (reuses
   .tut-cta / .tut-cta-inner from tutorial.css for the card itself) */
.art-cta { padding: 6px 0 10px; }

/* Floating bottom-right "download client" widget, shown once the reader has
   scrolled past the hero and dismissed only for the current tab session */
.art-float-dl {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 16px 40px rgba(20, 45, 85, 0.2);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.94);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.art-float-dl.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.art-float-dl-link {
  display: flex; align-items: center; gap: 12px; color: inherit;
  padding: 8px 20px 8px 8px; border-radius: 999px;
}
.art-float-dl-link:hover .art-float-dl-icon { transform: scale(1.06); }
.art-float-dl-icon {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-size: 17px;
  background: linear-gradient(120deg, #f9820f, #ea6209);
  box-shadow: 0 8px 18px rgba(240, 118, 10, 0.35);
}
.art-float-dl-text { display: flex; flex-direction: column; line-height: 1.35; }
.art-float-dl-text b { font-size: 13.5px; color: var(--text); }
.art-float-dl-text span { font-size: 11.5px; color: var(--text-dim); }
.art-float-dl-close {
  position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line);
  color: var(--text-dim); font-size: 10px; cursor: pointer; transition: background .2s, color .2s;
}
.art-float-dl-close:hover { background: var(--orange-soft); color: var(--orange); }

@media (max-width: 600px) {
  .art-float-dl { right: 14px; bottom: 14px; padding: 7px 16px 7px 7px; }
  .art-float-dl-text b { font-size: 12.5px; }
  .art-float-dl-text span { display: none; }
}

/* "Further reading" links out to the docs/tutorial pages that go deeper on
   topics the article only touches on, placed right before the download CTA */
.art-further {
  max-width: 760px; margin: 0 auto 30px; padding: 18px 24px;
  border: 1px solid var(--line); border-radius: 16px;
  background: rgba(20, 45, 85, 0.03);
}
.art-further h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 800; margin-bottom: 10px;
}
.art-further h3 i { color: var(--teal); }
.art-further ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.art-further li { position: relative; padding-left: 14px; font-size: 14px; }
.art-further li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--orange);
}
.art-further a { color: var(--text); font-weight: 500; }
.art-further a:hover { color: var(--orange); text-decoration: underline; }

/* Related articles */
.art-related { max-width: 900px; margin: 0 auto; }
.art-related h3 {
  text-align: center; font-size: 20px; font-weight: 900; margin-bottom: 26px;
}

@media (max-width: 720px) {
  .art-pagenav { grid-template-columns: 1fr; }
  .art-pagenav .next { grid-column: 1; text-align: left; }
  .art-pagenav .next .dir { justify-content: flex-start; }
}
