/* ==========================================================================
   RopeWeb / ROPEMAN — สไตล์เฉพาะหน้าบทความ
   ใช้ควบคู่กับ style.css (ต้องโหลด style.css ก่อนไฟล์นี้เสมอ)
   ========================================================================== */

/* ---- ส่วนหัวบทความ ------------------------------------------------------- */

.article-hero {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800) 70%);
  color: var(--text-light);
  padding: 64px 0 48px;
}

.article-hero .container {
  max-width: 780px;
}

.article-kicker {
  display: inline-block;
  background: rgba(47, 143, 255, 0.15);
  color: var(--accent-400);
  border: 1px solid rgba(47, 143, 255, 0.35);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.article-hero h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.3;
  margin: 0 0 18px;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.article-meta span:not(:last-child)::after {
  content: " ·";
}

/* ---- เนื้อหาบทความ ------------------------------------------------------- */

.article-body {
  padding: 56px 0 72px;
}

.article-body .container {
  max-width: 780px;
}

.article-lead {
  font-size: 1.12rem;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.75;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
  margin: 0 0 32px;
}

.article-body h2 {
  color: var(--text-dark);
  font-size: 1.4rem;
  margin: 40px 0 14px;
  line-height: 1.4;
}

.article-body h3 {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin: 28px 0 10px;
}

.article-body p {
  margin: 0 0 18px;
  line-height: 1.85;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
  line-height: 1.85;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body strong {
  color: var(--text-dark);
}

.article-body figure {
  margin: 28px 0;
}

.article-body figure img {
  border-radius: var(--radius);
  width: 100%;
}

.article-body figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

/* ---- กล่องเน้น: บทเรียน / เช็กลิสต์ / คำเตือน --------------------------- */

.callout {
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 28px 0;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  border-left: 4px solid var(--accent-500);
  box-shadow: var(--shadow);
}

.callout-title {
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 10px;
  font-size: 1rem;
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.callout-warning {
  border-left-color: #e0413d;
  background: #fff6f6;
}

.checklist {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent-500);
  border-radius: 4px;
}

/* ---- ท้ายบทความ ---------------------------------------------------------- */

.article-footer-nav {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.back-link {
  color: var(--accent-500);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.back-link:hover {
  text-decoration: underline;
}

.article-sources {
  margin-top: 36px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-sources h3 {
  font-size: 0.9rem;
  color: var(--text-body);
  margin: 0 0 8px;
}

.article-sources ul {
  padding-left: 20px;
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .article-hero {
    padding: 44px 0 36px;
  }

  .article-body {
    padding: 40px 0 56px;
  }
}
