/* หน้าบทความ + หน้ารวมบทความ (5c C2/C3 2026-10-20 · rh_article.php · โหลดเฉพาะ article_detail.php / article.php) · สีชุดเดียวกับหน้าโครงการ (rh_pdetail.css) · มือถือคู่กัน */
.rart-bc > li:last-child > a { color: var(--color-navy, #0E1E3D); font-weight: 700; }
h1.rart-h1 { margin: 18px 0 10px; font-size: 32px; line-height: 1.45; color: var(--color-navy, #0E1E3D); text-align: left; word-break: normal; overflow-wrap: break-word; }
.rart-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 14px; color: var(--color-text-muted, #4A5470); }
.rart-cover { display: block; }
.rart-cover img { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: var(--color-border, #E3E6EE); }
.rart-share { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.rart-sb { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--color-border, #E3E6EE); background: #fff; color: var(--color-navy, #0E1E3D) !important; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none !important; cursor: pointer; }
.rart-sb:hover { background: var(--color-surface-alt, #F4F5F8); border-color: var(--color-border-strong, #C9CFDC); }
.rart-sb svg { width: 16px; height: 16px; flex: none; }
.rart-body { color: var(--color-navy, #0E1E3D); }
.rart-body p, .rart-body li { font-size: 17px !important; line-height: 1.9; text-align: left !important; text-indent: 0 !important; }
.rart-body p *, .rart-body li * { font-size: inherit !important; }
.rart-body h2, .rart-body h2 * { font-size: 22px !important; line-height: 1.5 !important; color: var(--color-navy, #0E1E3D) !important; text-align: left !important; }
.rart-body h3, .rart-body h3 * { font-size: 19px !important; line-height: 1.5 !important; color: var(--color-navy, #0E1E3D) !important; }
.rart-body h2, .rart-body h3 { margin: 26px 0 12px; font-weight: 700; }
.rart-body > :first-child { margin-top: 0; }
.rart-body img { border-radius: 12px; }
.rart-own { display: flex; align-items: center; gap: 18px; margin: 18px 0 0; padding: 18px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--color-border, #E3E6EE); box-shadow: 0 1px 3px rgba(14, 30, 61, .06); color: var(--color-navy, #0E1E3D) !important; text-decoration: none !important; }
.rart-own:hover { border-color: var(--color-border-strong, #C9CFDC); box-shadow: 0 6px 18px rgba(14, 30, 61, .10); }
.rart-own-t { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 15px; color: var(--color-navy, #0E1E3D); }
.rart-own-t b { font-size: 18px; color: var(--color-navy, #0E1E3D); }
.rart-own-b { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--color-navy, #0E1E3D); color: #fff; font-weight: 600; }
.rart-others { margin: 40px 0 10px; }
.rart-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.rart-sh h2 { margin: 0; font-size: 22px; line-height: 1.4; color: var(--color-navy, #0E1E3D); font-weight: 700; }
.rart-sh a { display: inline-flex; align-items: center; gap: 4px; flex: none; font-weight: 600; color: var(--color-navy, #0E1E3D); }
.rart-sh a svg { width: 14px; height: 14px; }
.rart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rart-card { display: block; overflow: hidden; border-radius: 16px; background: #fff; border: 1px solid var(--color-border, #E3E6EE); color: var(--color-navy, #0E1E3D) !important; text-decoration: none !important; }
.rart-card:hover { border-color: var(--color-border-strong, #C9CFDC); box-shadow: 0 6px 18px rgba(14, 30, 61, .10); }
.rart-card img, .rart-noimg { display: block; width: 100%; height: 190px; object-fit: cover; background: var(--color-border, #E3E6EE); }
.rart-ct { display: grid; gap: 4px; padding: 12px 16px 16px; }
.rart-ct small { font-size: 13px; color: var(--color-text-muted, #4A5470); }
.rart-ct b { font-size: 17px; line-height: 1.45; color: var(--color-navy, #0E1E3D); }
/* ป้าย "ใหม่" ≤ 14 วัน มุมขวาบนรูป · หน้าตา + กะพริบเดียวกับ .rhc-tag การ์ดห้อง (เจ้าของเลือก 10-09) · ลดการเคลื่อนไหว = นิ่ง */
.rart-card { position: relative; }
.rart-new { position: absolute; top: 8px; right: 8px; z-index: 1; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; line-height: 1.45; white-space: nowrap; background: #C62F22; color: #fff; animation: rart-blink 1s cubic-bezier(.5, 0, 1, 1) infinite; }
@keyframes rart-blink { from { opacity: 1; } to { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .rart-new { animation: none; } }
.rart-ex { font-size: 14px; line-height: 1.6; color: var(--color-navy, #0E1E3D); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rart-all { display: none; }
.rart-list { margin: 6px 0 24px; }
.rart-list .rart-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rart-sb:focus-visible, .rart-own:focus-visible, .rart-card:focus-visible, .rart-sh a:focus-visible, .rart-all:focus-visible { outline: 2px solid var(--color-navy, #0E1E3D); outline-offset: 2px; }
@media (max-width: 991px) {
  .rart-grid, .rart-list .rart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  h1.rart-h1 { font-size: 24px; margin-top: 12px; }
  .rart-sb { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 6px; gap: 6px; white-space: nowrap; }
  .rart-body p, .rart-body li { font-size: 16px !important; line-height: 1.85; }
  .rart-body h2, .rart-body h2 * { font-size: 19px !important; }
  .rart-own { display: grid; gap: 12px; padding: 16px; }
  .rart-own-b { justify-content: center; }
  .rart-sh a { display: none; }
  .rart-grid, .rart-list .rart-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rart-card { display: flex; align-items: center; gap: 12px; padding: 10px; }
  .rart-card img, .rart-noimg { width: 96px; height: 72px; border-radius: 10px; flex: none; }
  .rart-ct { padding: 0; min-width: 0; }
  .rart-new { top: 14px; right: auto; left: 14px; } /* มือถือรูปย่ออยู่ซ้าย → ป้ายมุมรูป */
  .rart-ct b { font-size: 15px; line-height: 1.4; }
  .rart-ex { display: none; }
  .rart-all { display: flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 12px; border-radius: 999px; border: 1.5px solid var(--color-navy, #0E1E3D); background: #fff; color: var(--color-navy, #0E1E3D) !important; font-weight: 600; text-decoration: none !important; }
}
/* เนื้อหาเดิมบางบทความมีกล่องกว้างตายตัว (width:975px จากการก๊อปหน้าเว็บ) → มือถือทั้งหน้าซูมออก · บีบให้อยู่ในกรอบ */
.rart-body * { max-width: 100% !important; box-sizing: border-box; }
.rart-body [style*="width"]:not(img):not(iframe):not(video) { width: auto !important; }
.rart-body .row { margin-left: 0 !important; margin-right: 0 !important; }
@media (max-width: 360px) {
  .rart-sb { font-size: 13px; gap: 4px; }
  .rart-sb svg { width: 14px; height: 14px; }
}
/* ชี้เมาส์ = การ์ดลอยขึ้นนิดหน่อย (กฎเดียวกับการ์ดทั้งเว็บ · เจ้าของขอ 2026-10-09) · เฉพาะเครื่องที่ชี้เมาส์ได้ · ลดการเคลื่อนไหว = ไม่ลอย */
.rart-card, .rart-own { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .rart-card:hover, .rart-own:hover { transform: translateY(-4px); }
}
