/* ชิป SDG ใต้หัวข่าว ใช้เฉพาะในข่าว ไม่ไปทับไทล์หน้ารวมหรือช่องติ๊กหลังบ้าน
   แบ่งเป็นสองส่วน: กล่องเลขสีเป้าหมาย (ตัวเลขขาวทุกตัว) กับชื่อบนพื้นอ่อน
   เลขขาวเพราะบางสีทางการใช้ตัวหนังสือดำ บนมือถือกล่องเลขเลยกลืน */
.article-sdg {
  max-width: 1240px;
  margin-right: auto;
  margin-left: auto;
  background: transparent;
  padding: 14px 0 0;
}

.sdg-preview { background: #fbf8fc; }

.sdg-preview .sdg-status,
.sdg-preview .sdg-error { margin: 0 0 16px; color: #64596b; }

.sdg-preview .sdg-error { color: #7d4485; }

.sdg-preview .rb-grid { margin-top: 20px; }

.article-sdg-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.article-sdg-label,
.article-views,
.article-note {
  color: #64596b;
  font-weight: 400;
  line-height: 1.65;
}

.article-sdg-label {
  display: block;
  margin: 0;
  font-size: 13px;
}

.article-note { margin: 4px 0 0; font-size: 11px; }

.article-goals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.article-goal {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  max-width: 100%;
  background: transparent;
  text-decoration: none;
  color: #2a2130;
  transition: transform .2s;
}

.article-goal:hover { transform: translateY(-1px); }

.article-goal:focus-visible {
  outline: 2px solid #7d4485;
  outline-offset: 2px;
  border-radius: 99px;
}

.article-chip-face {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  min-height: 36px;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #f4ecf5;
}

.article-chip-number {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 40px;
  width: auto;
  height: auto;
  padding: 0 8px;
  border-radius: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.article-n-1 { background: #E5243B; color: #fff; }
.article-n-2 { background: #DDA63A; color: #fff; }
.article-n-3 { background: #4C9F38; color: #fff; }
.article-n-4 { background: #C5192D; color: #fff; }
.article-n-5 { background: #FF3A21; color: #fff; }
.article-n-6 { background: #26BDE2; color: #fff; }
.article-n-7 { background: #FCC30B; color: #fff; }
.article-n-8 { background: #A21942; color: #fff; }
.article-n-9 { background: #FD6925; color: #fff; }
.article-n-10 { background: #DD1367; color: #fff; }
.article-n-11 { background: #FD9D24; color: #fff; }
.article-n-12 { background: #BF8B2E; color: #fff; }
.article-n-13 { background: #3F7E44; color: #fff; }
.article-n-14 { background: #0A97D9; color: #fff; }
.article-n-15 { background: #56C02B; color: #fff; }
.article-n-16 { background: #00689D; color: #fff; }
.article-n-17 { background: #19486A; color: #fff; }

.article-chip-name {
  display: block;
  min-width: 0;
  max-width: 10em;
  padding: 6px 12px;
  overflow: hidden;
  background: transparent;
  color: #2a2130;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rb .rb-hero .meta { flex-wrap: wrap; }

.rb-hero .meta .article-views,
.article-views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
}

.article-views svg { flex: 0 0 16px; }

@media (max-width: 768px) {
  .article-sdg-label,
  .article-views { font-size: 12px; }
  .article-note { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .article-sdg * { transition: none; }
}
