/* =========================================================================
   Landing giá nông sản (theo mẫu "Giá cà phê hôm nay") — dùng token của nsh.css
   ========================================================================= */
.nsh-lp { background: var(--nsh-bg); }
.nsh-num { font-variant-numeric: tabular-nums; }
.nsh-lp__main { display: flex; flex-direction: column; gap: 32px; padding: 20px 0 72px; }
.nsh-lp .col-inner { margin: 0; }
/* Màn rộng: bỏ đệm 15px của cột để mép khối giá trùng mép logo / ô tìm kiếm ở header (row Flatsome = 1210px). */
@media (min-width: 1240px) { .nsh-lp .col { padding-left: 0; padding-right: 0; } }
.nsh-lp a:not(.entry-content a) { text-decoration: none; }


.nsh-lp__panel { background: #fff; border: 1px solid var(--nsh-line); border-radius: 24px; overflow: hidden; }
.nsh-lp__top { padding: 26px 28px 22px; display: flex; flex-direction: column; gap: 18px; border-bottom: 1px solid var(--nsh-line-2); }
.nsh-lp__titlebar { display: flex; flex-wrap: nowrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.nsh-lp__titlebar h1 { flex: 1 1 0; min-width: 0; margin: 0; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; color: var(--nsh-ink); }
.nsh-lp__share { flex: 0 0 auto; }
.nsh-lp__share, .nsh-lp__sharebtn {
	font: inherit; font-size: 14px; font-weight: 600; color: #3b4636; background: #fff; border: 1px solid var(--nsh-btn-line); border-radius: 999px;
	padding: 0 16px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; margin: 0; text-transform: none; letter-spacing: 0;
}
.nsh-lp__share:hover, .nsh-lp__sharebtn:hover { border-color: var(--nsh-green); color: var(--nsh-green); background: #fff; }
.nsh-lp__share.is-done, .nsh-lp__sharebtn.is-done { border-color: var(--nsh-green); color: var(--nsh-green); }

.nsh-lp__hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.nsh-lp__main-price { display: flex; flex-direction: column; gap: 6px; }
.nsh-lp__main-label { font-size: 14px; color: var(--nsh-muted); }
.nsh-lp__main-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.nsh-lp__big { font-size: clamp(36px, 4.6vw, 56px); line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.nsh-lp__unit { font-size: 22px; font-weight: 600; color: #4a5445; }
.nsh-lp__pill { font-size: 18px; font-weight: 700; color: #fff; border-radius: 10px; padding: 6px 12px; background: var(--nsh-flat); }
.nsh-lp__pill.is-down { background: #d92d20; }
.nsh-lp__pill.is-up { background: var(--nsh-up); }
.nsh-lp__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.nsh-lp__chip { border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.nsh-lp__chip.is-orange { background: var(--nsh-orange-tint); }
.nsh-lp__chip.is-orange .nsh-lp__chip-label { color: #8a4a12; }
.nsh-lp__chip.is-green { background: var(--nsh-green-tint); }
.nsh-lp__chip.is-green .nsh-lp__chip-label { color: #2e5a24; }
.nsh-lp__chip.is-gray { background: #f0f2ec; }
.nsh-lp__chip.is-gray .nsh-lp__chip-label { color: #4a5445; }
.nsh-lp__chip-label { font-size: 12px; }
.nsh-lp__chip-val { font-size: 16px; font-weight: 700; }
.nsh-lp__chip-val .is-chg { font-size: 13px; }

.nsh-lp__split { display: flex; flex-wrap: wrap; gap: 20px; padding: 24px 28px; }
.nsh-lp__col { min-width: 0; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; }
.nsh-lp__h2 { margin: 0 0 10px; font-size: 20px; font-weight: 700; color: var(--nsh-ink); }

.nsh-lp__table { font-size: 15px; font-variant-numeric: tabular-nums; }
/* bảng nằm trong khung viền bo góc như thẻ bảng ở trang chủ (đầu bảng nền xanh nhạt, hàng ngăn bằng đường mảnh) */
/* mọi khung bảng trong landing (bảng giá, ma trận, thế giới, kỳ hạn) dùng chung 1 kiểu thẻ: viền, bo 16px, tiêu đề 16px trong ô đầu thẻ */
.nsh-lp__card, .nsh-lp__fut { border: 1px solid var(--nsh-line); border-radius: 16px; overflow: hidden; background: #fff; }
.nsh-lp__card { flex: 1 1 auto; display: flex; flex-direction: column; }
.nsh-lp__card > .nsh-lp__h2, .nsh-lp__fut-head { margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--nsh-line-2); }
.nsh-lp__card > .nsh-lp__h2, .nsh-lp__fut-head .nsh-lp__h2 { margin: 0; font-size: 16px; line-height: 1.35; }
.nsh-lp__row:last-child, .nsh-lp__mrow:last-child { border-bottom: 0; }
.nsh-lp__row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--nsh-line-2); align-items: center; transition: background 0.15s; }
.nsh-lp__row:hover { background: var(--nsh-row-hover); }
.nsh-lp__row--head { padding: 11px 20px; background: var(--nsh-head-bg); border-bottom: 0; font-size: 12px; font-weight: 700; color: var(--nsh-head-ink); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.nsh-lp__row--head:hover { background: var(--nsh-head-bg); }
.nsh-lp__row .is-right { text-align: right; }
.nsh-lp__row .is-num { font-weight: 700; }
.nsh-lp__row .is-chg { font-weight: 600; }
.is-chg.is-up { color: var(--nsh-up); }
.is-chg.is-down { color: #d92d20; }
.is-chg.is-flat, .is-chg.is-none { color: var(--nsh-flat); }

.nsh-lp__group { display: flex; flex-direction: column; }
.nsh-lp__group-head { display: flex; justify-content: space-between; gap: 10px; padding: 11px 20px; background: var(--nsh-head-bg); font-size: 12px; font-weight: 700; color: var(--nsh-head-ink); text-transform: uppercase; letter-spacing: 0.04em; }
.nsh-lp__group-head span { font-weight: 600; text-transform: none; letter-spacing: 0; }
.nsh-lp__group-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--nsh-line-2); font-size: 15px; }
.nsh-lp__group-row:last-child { border-bottom: 0; }
.nsh-lp__group-row > span:first-child { color: #4a5445; }
.nsh-lp__note { font-size: 12px; color: var(--nsh-muted); }
.nsh-lp__card > .nsh-lp__note { display: block; margin-top: auto; padding: 12px 20px; border-top: 1px solid var(--nsh-line-2); line-height: 1.5; }

.nsh-lp__futs { border-top: 1px solid var(--nsh-line-2); padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; }
.nsh-lp__split + .nsh-lp__futs { border-top: 0; padding-top: 0; }
.nsh-lp__futs > .nsh-lp__note { font-size: 13px; }
.nsh-lp__fut { display: flex; flex-direction: column; }
.nsh-lp__fut-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.nsh-lp__fut-head > span { font-size: 13px; color: var(--nsh-muted); }
.nsh-lp__fut-box { overflow-x: auto; }
.nsh-lp__fut-table { min-width: 900px; font-size: 15px; }
.nsh-lp__fut-row { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; padding: 14px 20px; border-top: 1px solid var(--nsh-line-2); transition: background 0.15s; }
.nsh-lp__fut-row:hover { background: var(--nsh-row-hover); }
.nsh-lp__fut-row--head { background: var(--nsh-fut-bg, var(--nsh-orange)); color: var(--nsh-fut-ink, #2a1405); font-size: 12px; font-weight: 700; padding: 11px 20px; border-top: 0; }
.nsh-lp__fut-row--head:hover { background: var(--nsh-fut-bg, var(--nsh-orange)); }
.nsh-lp__fut-row .is-right { text-align: right; }
.nsh-lp__fut-row .is-strong { font-weight: 700; }

.nsh-lp__article { background: #fff; border: 1px solid var(--nsh-line); border-radius: 24px; padding: 32px 36px; }
.nsh-lp__article > :not(.nsh-lp__content) { margin-top: 22px; }
.nsh-lp__article .nsh-lp__content { padding: 0; }
.nsh-lp__h3 { margin: 8px 0 0; font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--nsh-ink); }
.nsh-lp__tags, .nsh-lp__shares { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.nsh-lp__tags { padding-top: 18px; border-top: 1px solid var(--nsh-line-2); }
.nsh-lp__tags b, .nsh-lp__shares b { margin-right: 4px; }
.nsh-lp__chipbtn { font-size: 13px; font-weight: 600; color: #3b4636; background: var(--nsh-bg); border: 1px solid var(--nsh-line); border-radius: 999px; padding: 6px 12px; }
.nsh-lp__chipbtn:hover { border-color: var(--nsh-green); color: var(--nsh-green); }
.nsh-lp__chipbtn.is-day { font-size: 14px; background: #fff; border-color: var(--nsh-btn-line); border-radius: 12px; padding: 0 14px; min-height: 40px; display: inline-flex; align-items: center; }
.nsh-lp__sharebtn { width: 40px; padding: 0; }
.nsh-lp__sharebtn.is-text { width: auto; padding: 0 12px; font-size: 13px; font-weight: 700; }
.nsh-lp__days, .nsh-lp__related { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; border-top: 1px solid var(--nsh-line-2); }
.nsh-lp__daylist { display: flex; flex-wrap: wrap; gap: 8px; }
.nsh-lp__reltrack { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.nsh-lp__reltrack::-webkit-scrollbar { display: none; }
.nsh-lp__rel { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.nsh-lp__relimg { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--nsh-green-tint); }
.nsh-lp__relimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.nsh-lp__rel:hover .nsh-lp__relimg img { transform: scale(1.04); }
.nsh-lp__relt { font-size: 16px; line-height: 1.4; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nsh-lp__rel:hover .nsh-lp__relt { color: var(--nsh-green); }
.nsh-lp__reld { font-size: 12px; color: var(--nsh-muted); }

@media (max-width: 900px) {
	.nsh-lp__reltrack { grid-auto-columns: calc((100% - 32px) / 3); }
	.nsh-lp__col { flex-basis: 100% !important; }
}
@media (max-width: 560px) {
	.nsh-lp__main { padding: 14px 0 48px; }
	/* chuẩn hoá khung trên điện thoại: top / cột / khối kỳ hạn / article cùng đệm 16px */
	.nsh-lp__top { padding: 16px; }
	.nsh-lp__split, .nsh-lp__futs { padding: 16px; gap: 16px; }
	.nsh-lp__split + .nsh-lp__futs { padding-top: 0; }
	.nsh-lp__article { padding: 16px; }
	.nsh-lp__panel, .nsh-lp__article { border-radius: 16px; } /* đệm đã giảm nên bo góc 24px → 16px cho cân */
	.nsh-lp__chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
	.nsh-lp__chip { min-width: 0; }
	.nsh-lp__reltrack { grid-auto-columns: 100%; }
	.nsh-lp__titlebar h1 { font-size: 22px; }
	.nsh-lp__share { width: 40px; padding: 0; }
	.nsh-lp__share-t { display: none; }
}

/* Bảng ma trận: loại × vùng / mức giá */
.nsh-lp__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nsh-lp__matrix { min-width: calc(150px + var(--n, 3) * 138px); font-variant-numeric: tabular-nums; }
.nsh-lp__mrow { display: grid; grid-template-columns: minmax(110px, 1.2fr) repeat(var(--n, 3), minmax(128px, 1fr)); gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--nsh-line-2); align-items: center; }
.nsh-lp__mrow:hover { background: var(--nsh-row-hover); }
.nsh-lp__mrow--head { padding: 11px 20px; background: var(--nsh-head-bg); border-bottom: 0; font-size: 12px; font-weight: 700; color: var(--nsh-head-ink); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.nsh-lp__mrow--head:hover { background: var(--nsh-head-bg); }
.nsh-lp__mrow .is-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.nsh-lp__mrow--head .is-right { display: block; }
.nsh-lp__mrow .is-num { font-weight: 700; white-space: nowrap; }
.nsh-lp__mrow > * { min-width: 0; }
.nsh-lp__mrow small { white-space: nowrap; }
.nsh-lp__mrow small { font-size: 11.5px; font-weight: 600; line-height: 1.2; }
.nsh-lp__mrow [role=rowheader] { font-weight: 500; }
@media (max-width: 549px) { .nsh-lp__mrow { grid-template-columns: 138px repeat(var(--n, 3), 150px); } }

/* Bài viết liên quan: PC 4 · tablet 3 · mobile 1, mũi tên 2 bên mép ngoài cùng */
.nsh-lp__relwrap { position: relative; }
.nsh-lp__relbtn { position: absolute; top: calc(50% - 34px); z-index: 3; width: 34px; height: 34px; margin: 0; padding: 0; min-height: 0; border-radius: 999px; border: 1px solid #dce2db; background: #fff; color: var(--nsh-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(20, 32, 15, 0.16); transition: all 0.2s; }
.nsh-lp__relbtn--prev { left: -18px; }
.nsh-lp__relbtn--next { right: -18px; }
.nsh-lp__relbtn:hover:not(:disabled) { border-color: var(--nsh-green); color: var(--nsh-green); }
.nsh-lp__relbtn:disabled { opacity: 0.4; cursor: default; }
.nsh-lp__relwrap:not(.has-nav) .nsh-lp__relbtn { display: none; }
@media (max-width: 1023px) { .nsh-lp__relbtn--prev { left: 6px; } .nsh-lp__relbtn--next { right: 6px; } }
@media (max-width: 560px) { .nsh-lp__relbtn { width: 32px; height: 32px; } }
.nsh-lp__relbtn svg { width: 16px; height: 16px; }
.nsh-lp__reltrack { cursor: grab; -webkit-user-select: none; user-select: none; overscroll-behavior-x: contain; }
.nsh-lp__reltrack.is-dragging, .nsh-lp__reltrack.is-animating { scroll-snap-type: none; }
.nsh-lp__reltrack.is-dragging { cursor: grabbing; }
.nsh-lp__reltrack.is-dragging a { pointer-events: none; }
.nsh-lp__rel img { -webkit-user-drag: none; }

/* điện thoại: đệm hai bên của ô vừa phải để bảng không bị chật */
@media (max-width: 560px) {
	/* giống bảng trang chủ trên điện thoại: chữ 15 → 14px, đệm 12px 16px, đầu bảng 9px 16px */
	.nsh-lp__table, .nsh-lp__fut-table, .nsh-lp__group-row { font-size: 14px; }
	.nsh-lp__card > .nsh-lp__h2 { padding: 16px; }
	.nsh-lp__row, .nsh-lp__mrow, .nsh-lp__fut-row { padding: 12px 16px; gap: 10px; }
	.nsh-lp__row--head, .nsh-lp__mrow--head, .nsh-lp__fut-row--head { padding: 9px 16px; }
	.nsh-lp__matrix { min-width: calc(162px + var(--n, 3) * 160px); }
}

/* điện thoại: cột co giãn theo dữ liệu (bảng dạng table). Cột rộng bằng ô dài nhất, cột đầu nhận phần dư, các hàng thẳng cột dọc.
   Đặt cuối file để thắng các luật nền ở trên. */
@media (max-width: 549px) {
	.nsh-lp__table, .nsh-lp__fut-table { display: table; width: 100%; min-width: 0; border-spacing: 0; }
	.nsh-lp__table [role=row], .nsh-lp__fut-table [role=row] { display: table-row; padding: 0; }
	.nsh-lp__table [role=row] > *, .nsh-lp__fut-table [role=row] > * { display: table-cell; vertical-align: middle; padding: 12px 0 12px 20px; border-top: 1px solid var(--nsh-line-2); white-space: nowrap; }
	.nsh-lp__table [role=row]:first-child > *, .nsh-lp__fut-table [role=row]:first-child > * { padding-top: 9px; padding-bottom: 9px; border-top: 0; }
	.nsh-lp__table [role=row] > :first-child, .nsh-lp__fut-table [role=row] > :first-child { padding-left: 16px; text-align: left; }
	.nsh-lp__table [role=row] > :last-child, .nsh-lp__fut-table [role=row] > :last-child { padding-right: 16px; }
	.nsh-lp__table:not(.nsh-lp__matrix) [role=row] > :first-child, .nsh-lp__matrix [role=row] > :first-child { width: 100%; white-space: normal; min-width: 120px;}
	.nsh-lp__matrix [role=row]:first-child > :first-child { white-space: nowrap; }
	.nsh-lp__mrow .is-right > b, .nsh-lp__mrow .is-right > small { display: block; }
	.nsh-lp__card, .nsh-lp__fut { border-radius: 12px; } /* thẻ nằm trong khung ngoài 16px nên bo nhỏ hơn */
	.nsh-lp__fut-head { padding: 16px; }
	.nsh-lp__group-head { padding: 9px 16px; }
	.nsh-lp__group-row { padding: 12px 16px; }
	.nsh-lp__card > .nsh-lp__note { padding: 12px 16px; }
	/* nền đầu bảng đặt lên từng ô (kèm bóng 1px phủ khe) để không hiện vạch dọc mảnh giữa các ô do làm tròn điểm ảnh */
	.nsh-lp__row--head > *, .nsh-lp__mrow--head > * { background: var(--nsh-head-bg); box-shadow: 1px 0 0 var(--nsh-head-bg); }
	.nsh-lp__fut-row--head > * { background: var(--nsh-fut-bg, var(--nsh-orange)); box-shadow: 1px 0 0 var(--nsh-fut-bg, var(--nsh-orange)); }
}
