/* =====================================================   AUDIT !important — 2026-08-26. ĐỪNG "dọn" 12 chỗ dưới đây.
   Đợt dọn design system đã soát từng cái; TẤT CẢ đều cần thiết:

     dòng   25  .lenis-smooth        thư viện lenis yêu cầu, không phải style của ta
     dòng  543  .langdd__menu ::before  base `.lang button + button::before` là
                (0,1,3) — CAO HƠN override (0,1,2). Không có !important thì vạch
                "|" vẫn hiện trong dropdown.
     dòng 1393  @media reduced-motion   accessibility — DESIGN-SYSTEM.md §9 cho phép
     dòng 1764-65 .vcard__media img     phải thắng inline `transform` do JS parallax
                ghi vào style="" — specificity KHÔNG bao giờ thắng inline.
                (check-design-system.py:76 đã whitelist 'transform:none'.)
     dòng 2741-2753 .page-hero .breadcrumb ×7   HÀNG RÀO, không phải rác:
                gioi-thieu.css:60 khai `#gt-hero .breadcrumb` = (1,1,0), cao hơn
                `.page-hero .breadcrumb` = (0,2,0). Bỏ !important ⇒ ID thắng ⇒
                mất ruy-băng 3 màu. Lỗi này ĐÃ TỪNG xảy ra: xem comment ở
                giai-thuong-chung-nhan.css:33 ("set background:var(--green);
                shorthand → XOÁ HẲN").

   Bài học: !important ở file shell là hàng rào chống trang con đè, khác hẳn
   !important trong index.css (đã gỡ 34/35 vì chỉ là chẩn đoán nhầm specificity).
   ============================================================ */

/* =====================================================   BAF — common.css  (shared shell: tokens · header · menu overlay ·
   buttons · footer · contact · utilities)

   REDESIGN — Farm-Minerals visual language (2026):
   premium · industrial · clean · editorial · spacious · high contrast.
   Neutral grayscale + white carry the page; a single green is the
   accent; red is quarantined to anfarm/Food moments only.
   Rules: maxw 1320 · sections ~48–76px · radius scale 4–8px (by size) · borders &
   shadows almost entirely removed · body 18/1.8 · heading wt 600–700 ·
   editorial (not marketing) type · images dominant · hover = scale /
   opacity / subtle translate only.
   Vanilla, WordPress-portable. Single typeface: Plus Jakarta Sans (Vietnamese subset;
   Be Vietnam Pro kept only as a glyph fallback).
   ============================================================ */

/* Design tokens + @font-face now live in tokens.css (LAYER 1). Load it
   BEFORE this file:  tokens.css → common.css → <page>.css */


/* ---------- reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth}
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto !important}
.lenis.lenis-smooth [data-lenis-prevent]{overscroll-behavior:contain}
.lenis.lenis-stopped{overflow:hidden}
body{
  margin:0; background:var(--bg); color:var(--ink-2);
  font-family:var(--font-body);
  /* FB4 vòng 2 "tăng nhẹ font-weight toàn web": 400 -> 450. Nửa bậc chứ không
     phải cả bậc (500 sẽ thành semi-bold, đậm quá mức "nhẹ").
     Bước 450 CHỈ có được vì <link> font đã đổi sang trục biến thiên
     (wght@200..800); bản cũ nạp weight rời rạc 300/400/500… nên 450 sẽ bị làm
     tròn về 400 và thay đổi này vô hiệu. Hai thứ đi kèm nhau. */
  font-weight:450; line-height:1.8; font-size:18px;          /* body 18 / 1.8 */
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img{max-width:100%; height:auto; display:block}
/* Photo/raster sharpening pass. Keep vector marks untouched so brand SVGs remain clean.
   2026-08-26: loại thêm logo THƯƠNG HIỆU dạng raster (assets/images/logo-brand/*.png|jpg).
   Chúng là mảng màu PHẲNG, không có chi tiết để sharpen — mà contrast/saturate lại DỊCH MÀU:
   nền đỏ baked-in của brand-anfarm.png (#E00005 = --brand-anfarm) render ra #E80000, lệch hẳn
   với panel CSS cùng token → lộ ô vuông đỏ khác tông giữa thẻ (m-brands trang chủ,
   .tps-block__chip). Bỏ lọc ở đây thì logo và nền khớp đúng 1 màu.
   (logo-partner/* vẫn còn bị lọc — nếu muốn logo đối tác sạch tương tự thì mở rộng
   :not([src*="logo-partner"]), nhưng đó là ĐỔI PIXEL trên cả dải marquee nên tách riêng.) */
img:not([src*=".svg"]):not([src*=".gif"]):not([src*="logo-brand"]){
  filter:url("../images/filters/sharpen.svg#baf-raster-sharpen") contrast(1.035) saturate(1.025);
}
a{color:inherit; text-decoration:none}
button{font-family:inherit; cursor:pointer}

/* headings — Fraunces display serif: mềm, ấm, contrast quang học theo cỡ chữ.
   SOFT 50 = bo tròn terminal (bớt "AI-default"); tracking gần 0 (serif không cần âm sâu). */
/* FB4 vòng 3 "tăng thêm font-weight cho tiêu đề": rule GỐC 700 -> 750. Nhiều
   tiêu đề lớn (.f-hero__title, .cform__title) không tự khai weight nên ăn theo
   đây. Giữ 750 < 800 của tiêu đề section để còn phân cấp, không cào bằng. */
h1,h2,h3,h4{
  margin:0; color:var(--head); font-weight:750; line-height:var(--lh-title); letter-spacing:-.015em;
  font-family:var(--font-display);
  font-optical-sizing:auto;
  font-variation-settings:"SOFT" 50, "WONK" 0;
}
/* Chữ nhỏ dạng heading (nhãn thẻ, sitemap, tiêu đề card mini) giữ Plus Jakarta Sans cho dễ đọc.
   Fraunces chỉ toả sáng ở display-scale → nơi nhỏ dùng sans sạch hơn. */
.eyebrow,.vcard__label,.story__tag,.ncard__title,.ncard__cat,.fgroup__h,
.ir-card__cat,.stat__label,.m-partner__title,.pcard__desc{
  font-family:var(--font-body);
  font-variation-settings:normal;
}
/* Heading display-scale lớn nhất → thêm chút WONK cho cá tính (g một-tầng, nét vẩy) */
.m-3f__intro h2,.m-intro h2,.m-news__title,.m-ir__head h2,
.m-prod__head h2,.footer__brand h2{
  font-variation-settings:"SOFT" 60, "WONK" 1;
}
/* điểm nhấn italic Fraunces — nét mềm, ấm; dùng rất tiết chế (1 cụm/heading) */
.accent-italic{
  font-style:italic;
  font-variation-settings:"SOFT" 80, "WONK" 1;
  color:var(--green);
  letter-spacing:-.005em;
}
p{margin:0}
::selection{background:var(--green); color:#fff}
/* Vòng focus NỀN cho toàn site (đã có sẵn từ trước — chỉ đổi sang token 26/08).
   Màu tách thành --ring để sau này đổi màu nhấn không phải lần từng rule focus;
   9 rule focus riêng của component (vòng trắng trong menu tối, --pin trên bản
   đồ, .gc-btn…) có specificity cao hơn nên vẫn thắng, không đụng tới. */
:focus-visible{outline:2px solid var(--ring); outline-offset:3px}

/* ---------- layout ---------- */
.container{width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gut)}
.section{padding-block:var(--section)}
/* 09/09/2026 · khách "tổng thể tablet dọc khoảng cách giữa các section hơi rộng": nhịp
   section 72–100 → 48–64px ở 561–860 (mọi .section + các khối tính theo --section). */
@media (min-width:561px) and (max-width:860px){
  :root{--section:clamp(48px,7vw,64px)}
  /* 09/09 (rà trang con): .subpage .section dùng --sec-sub (52–80) nên không hưởng
     nhịp 48–64 của home → hạ cùng tỉ lệ ~0.75. tin-tuc.css override riêng trên body
     class (thắng :root) nên trang tin giữ 36–56 của nó. */
  :root{--sec-sub:clamp(40px,6vw,56px); --sec-sub-tight:clamp(28px,4.2vw,40px)}
}
/* 09/09/2026 · khách (tablet dọc) "lề trái tiêu đề hơi nhỏ, nằm sát lề": gutter trang
   5vw = 38px ở 768 → 6.5vw = 50px (561–1024 màn dọc). Áp toàn site vì --gut là token. */
@media (min-width:561px) and (max-width:1024px) and (orientation:portrait){
  :root{--gut:clamp(32px,6.5vw,64px)}
}

/* eyebrow — plain editorial micro-label (decorative line removed) */
.eyebrow{
  display:block; font-size:13px; font-weight:600;
  letter-spacing:.2em; text-transform:uppercase;
  color:var(--green); margin:0 0 22px;
}
.eyebrow--num{color:var(--muted)}
.section-lead{max-width:var(--maxw-sec-lead); color:var(--muted); font-weight:500; font-size:clamp(17px,1.3vw,19px); line-height:1.7}
/* Tiêu đề section subpage — TRỎ VÀO token tiêu đề chung (2026-07-08 polish-sync)
   để khớp hệ trang chủ (m-3f/m-prod/m-news…). Trước đây khai thang riêng
   clamp(30px,4.6vw,54px)+lh base 1.12 → lệch nhịp với trang chủ (48px/lh 1.22/ls -.03em). */
.headline{
  font-size:var(--fs-sec-title);
  font-weight:var(--fw-sec-title);
  letter-spacing:var(--ls-title);
  line-height:var(--lh-title);
  /* FB 08/03 (PDF khách): title CAPSLOCK đồng nhất toàn site — text nguồn giữ
     sentence-case (SEO/data-en), chỉ render hoa. FB 08/05: 1.22 hoá ra CHƯA đủ
     trần cho dấu HOA khi title wrap 2 dòng → token leading nâng lên 1.3. */
  text-transform:uppercase;
}
.headline--sm{font-size:clamp(21px,2.4vw,30px); line-height:var(--lh-title); text-transform:uppercase}
/* FB 08/03: title chỉ 1 màu — điểm nhấn màu trong headline quy về màu tiêu đề */
.headline .accent-italic{color:inherit}
/* h1–h4 và p đều margin:0 (reset ở trên) → headline dính sát câu dẫn ngay dưới nếu
   không set margin riêng. Khoảng cách chuẩn cho mọi câu dẫn theo sau .headline. */
.headline + .section-lead,
.headline + .sp-cat__desc,
.headline + .mscard__desc{
  margin-top: clamp(16px,2vw,22px);
}

/* ---------- BUTTONS — "Button 17" (Google) ----------
   FB 9/2026 (khách): "Đổi style button sang style 17 trong getcssscan.com/css-
   buttons-examples" — chốt áp HOÀN TOÀN (kể cả chữ thường 14px/500).
   Nguyên bản Button 17: nền TRẮNG, bo 24px, KHÔNG viền, bóng 3 lớp xám
   (60,64,67), chữ xám đậm 14px/500 letter-spacing .25px; hover = nền tint rất
   nhạt + chữ chuyển sang MÀU BRAND + bóng nở; active = bóng nở to hơn nữa.
   → đúng ý FB [a] cũ "hover đổi màu chứ không fade": không có opacity nào.

   API màu GIỮ NGUYÊN (biến thể chỉ khai 2 biến, không viết :hover):
     --btn-c    màu brand của nút → lúc hover pha 7% vào trắng làm nền tint
                (tương đương #F6F9FE của Google trên nền xanh Google)
     --btn-ink  màu CHỮ lúc hover — bản deep đủ tương phản trên nền gần trắng
                (--green-deep 6.3:1 · --red-deep 7.0:1 ở 14px/500).
   Chữ lúc NGHỈ là --ink trung tính (Google dùng #3c4043), không phải màu brand:
   đúng nhịp "nghỉ trung tính → hover lộ màu" của nguyên bản.
   Bóng giữ đúng số của Google (xám trung tính, không nhuộm xanh) vì đó là
   thứ làm nút này đọc ra "Button 17"; --sh-* của nhà là bóng thẻ, không cùng vai.
   Bỏ chấm tròn ::before (chữ ký FM cũ) và bỏ nhấc translateY — Button 17
   không có cả hai, nút chỉ phản hồi bằng nền/chữ/bóng. */
.btn{
  --btn-c:var(--green); --btn-ink:var(--green-deep);
  --bg:var(--white); --fg:var(--ink);
  --btn-sh:var(--sh-btn);
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  height:48px; padding:2px 24px; border:0; border-radius:var(--r-btn);
  background:var(--bg); color:var(--fg);
  box-shadow:var(--btn-sh);
  font-size:14px; font-weight:500; letter-spacing:.25px; text-transform:none;
  line-height:normal; text-align:center; max-width:100%;
  user-select:none; touch-action:manipulation;
  transition:box-shadow 280ms cubic-bezier(.4,0,.2,1), background var(--t-2) var(--ease),
             color var(--t-2) var(--ease), transform 270ms cubic-bezier(0,0,.2,1);
}
.btn:hover{
  --bg:color-mix(in srgb, var(--btn-c) 7%, var(--white));
  --fg:var(--btn-ink);
  --btn-sh:var(--sh-btn-hover);
}
.btn:active{
  --btn-sh:var(--sh-btn-active);
}
.btn--sm{height:42px; padding:2px 18px; font-size:13px}
/* Các biến thể BỀ MẶT cũ (cream/light/outline/outline-light/outline-olive) gộp
   về cùng một mặt trắng: Button 17 chỉ có MỘT bề mặt, trên nền tối trắng vẫn
   đúng. Class giữ lại để markup 29 trang không phải sửa. */
.btn--cream,.btn--light,.btn--outline-light,.btn--outline-olive,.btn--outline{ --bg:var(--white)}
.btn--red{ --btn-c:var(--red); --btn-ink:var(--red-deep)}
/* SOLID — Button 17 MẶT ĐẶC (khách 09/09/2026: "thiết kế lại màu button phù hợp với nền
   trắng nhưng vẫn giữ đúng style"): trên thẻ/form nền trắng, mặt trắng chìm mất → nền
   = --btn-c, chữ trắng; hover nền = --btn-ink (bản deep), chữ vẫn trắng; bóng/kích
   thước/bo/chữ y hệt .btn. Là NGOẠI LỆ duy nhất được khai :hover vì đổi bề mặt, không
   đổi màu brand. Dùng cho nút gửi form (.cform__submit, .js-order-submit). */
.btn--solid{ --bg:var(--btn-c); --fg:var(--white)}
.btn--solid:hover{ --bg:var(--btn-ink); --fg:var(--white)}
/* ghost = link có padding, không nền/bóng → chỉ đổi màu chữ khi hover */
.btn--ghost{ --bg:transparent; --fg:var(--green); box-shadow:none; padding-inline:2px}
.btn--ghost:hover{ --bg:transparent; --fg:var(--green-deep); box-shadow:none}
.btn--ghost:active{box-shadow:none}

/* NÚT ICON TRÒN — Button 17 dạng tròn (khách 09/09/2026: "nút cuộn trái/phải và
   phân trang về cùng style với button hiện tại"). Dùng cho mũi tên carousel Sản
   phẩm + Tin (home), slider ảnh Giải thưởng, video Meatshop và prev/next của 4
   pager. Cùng bề mặt trắng, bóng token, hover tint 7% + đổi màu icon như .btn;
   KHÔNG lift/scale (ngữ pháp hover của site). Icon = .ico mask hoặc <svg>
   currentColor, 20px. Gắn class vào phần tử đã có class riêng (vị trí/khoảng cách
   vẫn do class riêng lo); rule riêng đó KHÔNG được khai lại nền/màu/bóng. */
.btn-ico{
  --btn-c:var(--green); --btn-ink:var(--green-deep);
  --bg:var(--white); --fg:var(--ink); --btn-sh:var(--sh-btn);
  display:inline-grid; place-items:center;
  width:48px; height:48px; padding:0; border:0; border-radius:50%;
  background:var(--bg); color:var(--fg); box-shadow:var(--btn-sh); cursor:pointer;
  user-select:none; touch-action:manipulation;
  transition:box-shadow 280ms cubic-bezier(.4,0,.2,1), background var(--t-2) var(--ease),
             color var(--t-2) var(--ease), opacity var(--t-2) var(--ease), visibility 0s linear;
}
.btn-ico:hover:not(:disabled){
  --bg:color-mix(in srgb, var(--btn-c) 7%, var(--white));
  --fg:var(--btn-ink);
  --btn-sh:var(--sh-btn-hover);
}
.btn-ico:active:not(:disabled){ --btn-sh:var(--sh-btn-active) }
.btn-ico:disabled{ opacity:.42; cursor:default }
.btn-ico--sm{ width:40px; height:40px }
.btn-ico .ico{ width:20px; height:20px }
.btn-ico > svg{ width:20px; height:20px }

/* arrow link — mũi tên trượt + chữ đậm màu (cùng ngôn ngữ hover-đổi-màu) */
.link-arrow{display:inline-flex; align-items:center; gap:10px; font-weight:600; color:var(--green); font-size:16px; transition:color var(--t-2) var(--ease)}
.link-arrow svg{width:18px; height:18px; transition:transform var(--t-2) var(--ease)}
.link-arrow:hover{color:var(--green-deep)}
.link-arrow:hover svg{transform:translateX(6px)}

/* =====================================================   ICON SYSTEM — file SVG trong assets/images/icons/ làm CSS mask
   → icon đơn-màu, tự ăn theo currentColor (trắng ở footer, xanh khi hover).
   Bổ sung icon mới: thêm file vào folder + 1 dòng .ico--<tên> ở đây.
   ============================================================ */
.ico{
  display:inline-block; flex:none; background:currentColor;
  -webkit-mask:var(--ico) center/contain no-repeat; mask:var(--ico) center/contain no-repeat;
}
/* FB 2026-07-13: glyph search lấp KÍN viewBox 42×42 (chạm 4 mép) → mask contain khít
   1:1 khiến anti-alias XÉN cạnh trên vòng kính ("bị cắt phần trên"). Box to hơn 1 chút
   + mask-size 84% cho glyph lề trong ~1.6px → hết xén, icon "thở" hơn. */
.ico--search{ --ico:url(../images/icons/search.svg);      width:20px; height:20px; -webkit-mask-size:84%; mask-size:84% }
.ico--chev  { --ico:url(../images/icons/next.svg);        width:22px; height:22px }   /* › */
.ico--arrow { --ico:url(../images/icons/right-arrow.svg); width:18px; height:18px }   /* → */
.ico--up    { --ico:url(../images/icons/down-arrow.svg);  width:20px; height:20px; transform:rotate(180deg) }
.ico--down  { --ico:url(../images/icons/down-arrow.svg);  width:14px; height:14px }   /* ↓ tải file (QHCĐ) */
.ico--loc   { --ico:url(../images/icons/location.svg);    width:17px; height:17px }   /* footer contact */
.ico--phone { --ico:url(../images/icons/phone-call.svg);  width:16px; height:16px }
.ico--mail  { --ico:url(../images/icons/mail.svg);        width:16px; height:16px }
.ico--facebook{ --ico:url(../images/icons/facebook-f.svg); width:20px; height:20px }   /* FAB — monochrome 'f' glyph (mask); full-colour facebook.svg blob doesn't mask cleanly */
.ico--external{ --ico:url(../images/icons/external.svg);   width:11px; height:11px; margin-left:5px; vertical-align:baseline; opacity:.7 }   /* ↗ link ra site ngoài / mở tab mới (J2 — Cơ hội nghề nghiệp) */
.ico.is-flip{ transform:scaleX(-1) }   /* ‹ = next.svg lật ngang cho nút prev */
.link-arrow:hover .ico--arrow{transform:translateX(6px)}

/* =====================================================   HEADER — minimal corporate bar
   ☰ Menu + stock (left) · logo (center) · VI|EN + search (right)
   ============================================================ */
/* floating island header — a frosted white pill nổi trên banner.
   .header = wrapper trong suốt tạo lề (top + 2 bên) · .header__inner = viên pill. */
.header{
  position:sticky; top:0; z-index:var(--z-header);
  padding:14px var(--gut) 0;
  background:none; border:0;
  /* cuộn xuống → lề wrapper co về 0 để pill nở thành bar full-width (xem .is-scrolled) */
  transition:padding var(--t-3) var(--ease);
}
.header__inner{
  /* độ ăn sâu của 2 mũi nhọn — tỉ lệ theo chiều cao khung, khớp Polygon 3.svg (54/238 ≈ .23) */
  --hex-cut:calc(var(--head-h) * .23);
  position:relative; z-index:0;
  height:var(--head-h);
  /* 2026-07-14 ĐỒNG BỘ LỀ: mép pill TRÙNG với NỘI DUNG section (gutter-inset), không
     tràn ra mép box max-width nữa (trước dính mép hero đã nudge; nay hero về gutter
     nên pill cũng thu vào gutter). max-width = maxw − 2·gut → pill = đúng bề rộng
     content chuẩn. is-scrolled vẫn thả 100vw để bar cuộn tràn (rule riêng thắng). */
  max-width:calc(var(--maxw) - 2 * var(--gut));
  /* 2026-07-23 (client "dàn header cho đều"): gap grid = khoảng hở ĐỐI XỨNG 2 bên
     logo. Cụm nav neo mép TRONG cột (space-between bên dưới) nên hở trái = hở phải =
     gap này, KHÔNG lệ thuộc bề rộng cụm nav (trước lệch 65 vs 80 do cụm trái dài hơn). */
  display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:clamp(28px,3.1vw,54px);
  /* cộng --hex-cut vào lề để MENU / tìm kiếm không lọt vào phần mũi nhọn */
  /* 2026-07-23 (client "menu đè logo"): hạ base padding 34→22 → 2 cụm nav dồn ra
     mép pill, nới khoảng hở quanh logo giữa. Vẫn giữ --hex-cut chống lọt mũi nhọn. */
  padding-inline:calc(clamp(12px,1.4vw,22px) + var(--hex-cut));
  transition:height var(--t-3) var(--ease), max-width var(--t-3) var(--ease), padding var(--t-3) var(--ease);
}
/* đăng ký --cap-w là <length> để trình duyệt NỘI SUY được giá trị biến →
   2 mũ lục giác rút lại mượt khi pill morph thành bar. Trình duyệt cũ không
   có @property vẫn đổi hình đúng, chỉ mất bước chuyển mượt. */
@property --cap-w{ syntax:'<length>'; inherits:false; initial-value:0px }
/* KHUNG LỤC GIÁC (ribbon Polygon 3.svg) — 2 lớp chồng sau nội dung:
   ::before = nền + đổ bóng nổi (island) · ::after = kính mờ thụt 1px để lộ viền sáng. */
/* mask 3 lớp = 2 "mũ" SVG bo góc ở 2 đầu (khoá theo chiều cao) + 1 dải giữa co giãn.
   → mũi nhọn giữ đúng độ sâu .23·h ở mọi bề rộng, nhưng 3 góc mỗi đầu được bo tròn (Q).
   mask điều khiển cả drop-shadow lẫn backdrop-filter nên bóng + kính mờ ôm theo góc bo. */
.header__inner::before,
.header__inner::after{
  content:''; position:absolute; inset:0;
  --cap-l:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 100' preserveAspectRatio='none'%3E%3Cpath d='M40,0L33,0Q23,0,18.82,9.08L4.18,40.92Q0,50,4.18,59.08L18.82,90.92Q23,100,33,100L40,100Z' fill='black'/%3E%3C/svg%3E");
  --cap-r:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0L7,0Q17,0,21.18,9.08L35.82,40.92Q40,50,35.82,59.08L21.18,90.92Q17,100,7,100L0,100Z' fill='black'/%3E%3C/svg%3E");
  --cap-w:calc(var(--head-h) * .40);
  -webkit-mask:var(--cap-l) left center/var(--cap-w) 100% no-repeat,
              var(--cap-r) right center/var(--cap-w) 100% no-repeat,
              linear-gradient(#000,#000) center/calc(100% - 2*var(--cap-w) + 2px) 100% no-repeat;
  mask:var(--cap-l) left center/var(--cap-w) 100% no-repeat,
       var(--cap-r) right center/var(--cap-w) 100% no-repeat,
       linear-gradient(#000,#000) center/calc(100% - 2*var(--cap-w) + 2px) 100% no-repeat;
}
/* FB 2026-07-07 "thanh bar trắng quá": rim ::before mang sheen brand green ở 2 đầu,
   kính ::after ngả mint — pill đọc là "kính BAF" chứ không phải dải trắng rỗng. */
.header__inner::before{               /* lớp viền + bóng — drop-shadow bám theo hình lục giác */
  z-index:-2;
  /* FB 2026-07-08 (Cách 1 frosted glass): viền DỊU — hạ 2 vệt green đậm ở 2 đầu
     (đọc như "khối màu thô") xuống chớm-nhạt, hairline trắng đều → vẫn "kính BAF"
     chứ không dải trắng rỗng, nhưng hết chói. */
  background:linear-gradient(105deg,
    rgba(0,139,68,.20) 0%, rgba(255,255,255,.78) 16%,
    rgba(255,255,255,.72) 84%, rgba(0,139,68,.18) 100%);
  filter:drop-shadow(0 10px 22px rgba(16,22,15,.22)) drop-shadow(0 2px 6px rgba(16,22,15,.12));
  transition:filter var(--t-2) var(--ease), background var(--t-2) var(--ease), --cap-w var(--t-3) var(--ease);
}
.header__inner::after{                /* tấm kính mờ ĐẶC — tách hẳn nội dung khỏi banner */
  z-index:-1; inset:1px;
  /* FB 2026-07-08: nâng đục 58→~82% + blur mạnh hơn → banner sáng KHÔNG còn lọt
     qua loang lổ ("nửa trong suốt nửa đặc"); ngả mint rất nhẹ giữ tông brand. */
  background:linear-gradient(112deg,
    rgba(255,255,255,.86) 0%, rgba(248,252,249,.82) 46%, rgba(240,248,243,.80) 100%);
  backdrop-filter:saturate(150%) blur(22px);
  -webkit-backdrop-filter:saturate(150%) blur(22px);
  transition:background var(--t-2) var(--ease), --cap-w var(--t-3) var(--ease);
}
/* SIGNAL BEAM — thanh tiến trình đọc trang chạy dọc mép dưới pill (initScrollProgress
   ghi --sp 0→1 lên .header). Nét hi-tech mảnh: ray mờ + tia brand green scaleX.
   Nằm giữa 2 mũ lục giác (inset --hex-cut) nên không lòi ra phần mũi nhọn. */
.header__beam{
  position:absolute; left:calc(var(--hex-cut) + 10px); right:calc(var(--hex-cut) + 10px);
  bottom:0; height:2px; border-radius:2px; overflow:hidden;
  background:rgba(0,139,68,.14); pointer-events:none;
}
.header__beam i{
  position:absolute; inset:0; border-radius:inherit;
  transform:scaleX(var(--sp,0)); transform-origin:left;
  background:linear-gradient(90deg, var(--green), var(--green-bright));
}
/* SPLIT NAV (2026-07-13 ref layout): 2 cụm ôm logo GIỮA — cụm trái = lang + nửa
   nav, brand ở cột auto giữa, cụm phải = nửa nav + tìm kiếm. DOM order tự nhiên
   (side--left → brand → side--right) khớp grid 1fr|auto|1fr nên KHÔNG cần gán lại
   grid-column: auto-placement + justify-self start/center/end fan ra 2 mép. */
.header__side{
  /* 2026-07-23 "dàn header cho đều": side lấp đầy cột 1fr + space-between → tiện ích
     (lang/search) dồn ra MÉP NGOÀI, dải nav neo MÉP TRONG (sát logo) → hở quanh logo
     bằng grid-gap ở cả 2 bên, cân đối. gap = khoảng cách tối thiểu tiện ích ↔ nav. */
  display:flex; align-items:center; justify-content:space-between; gap:clamp(14px,1.6vw,26px); min-width:0;
}
.header__side--left{ justify-self:stretch }
.header__side--right{ justify-self:stretch }
.menu-btn{
  display:inline-flex; align-items:center; gap:11px;
  background:none; border:0; padding:8px 2px; color:var(--ink);
  font-size:13px; font-weight:700; letter-spacing:0; text-transform:uppercase;
  line-height:1;
  transition:color var(--t-1) var(--ease), opacity var(--t-1) var(--ease);
}
.menu-btn__bars{display:inline-flex; flex-direction:column; gap:4px; width:22px}
.menu-btn__bars i{height:2px; background:currentColor; transition:var(--t-2) var(--ease)}
.menu-btn:hover{color:var(--green)}
.menu-btn:hover .menu-btn__bars i:nth-child(2){width:62%}

/* FULL NAV — FB 2026-07-07 R3 "1 là menu, 2 là show hết": desktop hiện ĐỦ 7 mục
   (khớp menu overlay) và ẨN nút MENU → hết trạng thái lai "vừa menu vừa show 1 ít".
   Dưới 1240px ẩn nguyên dải, nút MENU quay lại (overlay là nhà của mobile).
   Cột trái grid chỉ ~420–500px (logo neo GIỮA 1fr|auto|1fr) → gap + font phải
   co giãn theo vw, không giá trị cứng; label dùng bản ngắn (Quy mô, Bền vững…). */
.header__nav{display:flex; align-items:center; gap:clamp(9px,.85vw,18px); min-width:0}
.header__nav a{
  position:relative; isolation:isolate;   /* stacking context riêng → pill z-index:-1 nằm SAU chữ nhưng TRƯỚC nền kính header (không bị nền frosted nuốt) */
  white-space:nowrap; padding:7px 0; line-height:1;
  font-size:clamp(12px,.55vw + 5px,13px); font-weight:700; color:var(--ink);
  transition:color var(--t-2) var(--ease);
}
/* Hover R2 (2026-07-08): bỏ gạch chân wipe → VIÊN THUỐC (pill) mint bo tròn hiện
   sau chữ. ::after out-of-flow (inset âm + z-index:-1) nên KHÔNG đổi layout/đo
   nav — an toàn cho ràng buộc không-tràn 1240→1920. Scale+fade cho cảm giác nảy nhẹ. */
.header__nav a::after{
  content:""; position:absolute; inset:-4px -12px; z-index:-1; border-radius:999px;   /* FB 2026-07-13: -11→-16; 2026-07-14 -16→-12 để pill KHÔNG đè nhau mà nav vẫn vừa breakpoint 1240 (bleed nhỏ hơn → cần gap nhỏ hơn) */
  background:color-mix(in srgb, var(--green) 20%, transparent);
  transform:scale(.82); opacity:0; transform-origin:center;
  transition:transform var(--t-2) var(--ease), opacity var(--t-2) var(--ease);
}
/* chữ hover/active dùng --head (green đậm ≥7:1 trên kính mint); viên pill mint mờ nền */
.header__nav a:hover{color:var(--head)}
.header__nav a:hover::after, .header__nav a.is-on::after{transform:scale(1); opacity:1}
.header__nav a.is-on{color:var(--head)}
.header__nav a.is-on::after{background:color-mix(in srgb, var(--green) 28%, transparent)}
/* MỖI breakpoint đúng 1 nguồn điều hướng (FB R3): desktop = dải nav đủ 7 mục,
   nút MENU ẩn; hẹp hơn = hamburger, dải nav ẩn NGUYÊN KHỐI (không rụng lẻ tẻ). */
/* IA 2026-07-22: ngưỡng 1240 → 1320. Nhãn cấp 1 mới dài hơn bộ cũ ("Thương hiệu –
   Sản phẩm", "Lĩnh vực kinh doanh") và mỗi mục thêm caret, nên ở 1245px dải trái
   chỉ còn cách logo 19px — đọc như đang đè. Đo lại ở 1320: khoảng hở ~55px. */
@media (min-width:1320px){
  .menu-btn{display:none}
  /* FB 2026-07-13 R-split: LOGO về GIỮA (cột auto), nav tách 3+3 ôm 2 bên logo,
     lang ở mép trái · tìm kiếm ở mép phải. DOM order side--left→brand→side--right
     đã khớp grid 1fr|auto|1fr nên chỉ cần justify-self ở .header__side; brand giữ
     .brand{justify-self:center} mặc định. Không còn hack grid-column/grid-row. */
  /* FB "bên trái dồn trái, bên phải dồn phải + giảm spacing": side CO theo nội dung
     (bỏ width:100%/flex spread) → justify-self start/end (đặt sẵn) neo cụm lang+nav
     về mép TRÁI và cụm nav+search về mép PHẢI; gap nav nhỏ lại cho gọn → khoảng
     trống dồn vào GIỮA quanh logo. */
  /* gap > 2× pill-bleed (12px mỗi bên = 24px) → pill hover/active KHÔNG đè nhau
     (client 2026-07-14 "tăng spacing lại để không bị đè lên"); min 28px vẫn lọt
     breakpoint 1240 (leftClear≈55−2·gap, giữ gap≤30 ở 1240 để không đè logo), nở
     tới 44px ở màn rộng nơi user thấy chồng pill. */
  /* IA 2026-07-22: 6 mục cấp 1 (thay 6 nhãn ngắn cũ) + caret → dải nav dài hơn.
     Hạ trần gap 44→34 để cụm trái/phải không chạm logo ở 1240–1440. */
  /* 2026-07-23 "dàn header cho đều": nav = display:contents → 3 mục thành con TRỰC
     TIẾP của .header__side, để space-between RẢI ĐỀU [lang·mục·mục·mục] khắp nửa
     trái (và [mục·mục·mục·search] nửa phải) thay vì dồn cả cụm sát logo. Hở quanh
     logo = grid-gap (đối xứng), các mục cách nhau đều, không đè nhau. */
  .header__nav{ display:contents }
  .header__side{ column-gap:clamp(10px,1.1vw,20px) }   /* khoảng cách TỐI THIỂU giữa các mục — nhỏ ở màn hẹp để cụm trái (nhãn dài) không chạm logo */
}
@media (max-width:1319px){
  .header__nav{display:none}

  /* SỬA 27/08 — tiện ích ôm lấy logo thay vì dạt ra mép.
     .header__side dựa vào `space-between` CỘNG dải nav làm điểm tựa mép trong để
     đẩy lang/search ra MÉP NGOÀI (xem ghi chú ở .header__side). Dưới 1320px chính
     media query này lại `display:none` dải nav ⇒ space-between mất điểm tựa, con
     duy nhất còn lại dồn về ĐẦU container = mép TRONG, ôm sát logo — đúng ngược
     ý đồ. Đo ở 1024px: VI ở 355→426 và tìm kiếm ở 598→632, trong khi mép phải
     của header là 941. Ở 390px tìm kiếm cũng hụt 27px so với mép.

     Ở dải này bỏ lưới 3 cột, dùng MỘT hàng flex:
       · .header__side--left → display:contents để MENU và VI thành con trực tiếp
         của hàng flex. Bắt buộc: VI nằm trong container BÊN TRÁI ở DOM, không thể
         chuyển sang cụm phải bằng CSS nếu nó vẫn bị bọc trong container đó;
       · MENU nhận margin-right:auto → đẩy toàn bộ phần còn lại sang phải;
       · logo tách khỏi luồng, canh giữa tuyệt đối theo .header__inner (vốn đã
         position:relative, dòng 255) nên vẫn đúng tâm viewport y như trước.
     Kết quả: MENU sát trái · logo chính giữa · VI + tìm kiếm sát phải.
     .header__beam là position:absolute nên không thành flex item. */
  .header__inner{ display:flex; align-items:center }
  .header__side--left{ display:contents }
  .menu-btn{ margin-right:auto }
  .brand{ position:absolute; left:50%; top:50%; translate:-50% -50% }
  .header__side--right{ flex:0 0 auto; justify-content:flex-end }
}

/* =====================================================   HEADER DROPDOWN (IA 2026-07-22) — 6 mục cấp 1, mỗi mục thả panel con.
   Sơ đồ client có cấp 2 (và cấp 3 ở "Công bố thông tin") nên dải nav phẳng
   cũ không còn diễn tả đủ. Panel mở bằng :hover VÀ :focus-within → dùng được
   bằng bàn phím mà không cần JS; initHeaderNav chỉ đồng bộ aria-expanded.

   ⚠ .header__nav a (ở trên) áp cho MỌI <a> con, kể cả trong panel — panel phải
   tự huỷ viên pill ::after và đặt lại font/padding, nếu không mỗi dòng con sẽ
   có bong bóng mint đè lên nhau.
   ============================================================ */
.hnav__item{position:relative; display:flex; align-items:center}
.hnav__top{display:inline-flex; align-items:center; gap:7px; cursor:pointer}
.hnav__caret{
  display:inline-block; width:7px; height:7px; flex:none; margin-top:-3px;
  border-right:1.8px solid currentColor; border-bottom:1.8px solid currentColor;
  opacity:.58; transform:rotate(45deg);
  transition:transform var(--t-2) var(--ease), opacity var(--t-2) var(--ease);
}
.hnav__item:hover > .hnav__top .hnav__caret,
.hnav__item:focus-within > .hnav__top .hnav__caret{
  opacity:.95; transform:rotate(-135deg) translate(-1px,-1px);
}

/* padding-top = CẦU HOVER trong suốt: chuột đi từ link xuống panel không rơi
   qua khe hở (nếu đẩy panel xuống bằng top: sẽ mất hover giữa chừng). */
.hnav__panel{
  position:absolute; top:100%; left:50%; z-index:20;
  transform:translateX(-50%);
  padding-top:16px; min-width:246px;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity var(--t-2) var(--ease), visibility var(--t-2), translate var(--t-2) var(--ease);
  translate:0 -6px;
}
.hnav__item:hover > .hnav__panel,
.hnav__item:focus-within > .hnav__panel{
  opacity:1; visibility:visible; pointer-events:auto; translate:0 0;
}
.hnav__panel > ul{
  list-style:none; margin:0; padding:10px;
  border-radius:16px;
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(150%) blur(20px);
  -webkit-backdrop-filter:saturate(150%) blur(20px);
  border:1px solid rgba(0,139,68,.16);
  box-shadow:0 18px 40px rgba(16,22,15,.18), 0 3px 10px rgba(16,22,15,.10);
}
.hnav__panel > ul::before{content:none}
.hnav__panel li{margin:0}
.hnav__panel a{
  display:block; padding:8px 12px; border-radius:10px;
  font-size:13.5px; font-weight:600; line-height:1.35;
  color:var(--ink); white-space:normal;
  transition:background var(--t-1) var(--ease), color var(--t-1) var(--ease);
}
.hnav__panel a::after{content:none}   /* huỷ viên pill kế thừa từ .header__nav a */
.hnav__panel a:hover{background:color-mix(in srgb, var(--green) 12%, transparent); color:var(--head)}
/* ĐANG Ở TRANG NÀY — dùng ĐÚNG ngữ pháp "đang chọn" sẵn có của site
   (.langdd__menu button[aria-pressed], .selectpop__opt[aria-selected]): nền xanh
   16% + chữ --head + đậm hơn, thêm vạch dọc để phân biệt với trạng thái hover
   12% ở ngay trên. aria-current do initHeaderNav suy từ URL lúc chạy. */
.hnav__panel a[aria-current="page"]{
  background:color-mix(in srgb, var(--green) 16%, transparent);
  color:var(--head); font-weight:800;
  box-shadow:inset 3px 0 0 var(--green);
}
/* cấp 3 (Định kỳ · Bất thường) — thụt vào, gạch dọc dẫn hướng */
.hnav__sub{list-style:none; margin:2px 0 4px; padding:0 0 0 12px; border-left:1px solid rgba(0,139,68,.18)}
.hnav__sub a{font-size:12.5px; font-weight:500; padding:6px 10px; color:color-mix(in srgb, var(--ink) 78%, transparent)}

.brand{display:inline-flex; align-items:center; justify-self:center}
.brand img{height:50px; width:auto; transition:transform var(--t-2) var(--ease)}
.brand:hover img{transform:scale(1.05)}
.brand:active img{transform:scale(.97)}
/* cụm phải hơi rộng hơn cụm trái để search tách khỏi nav; brand vẫn giữa nhờ cột auto */
.header__side--right{ gap:clamp(14px,1.6vw,26px) }

/* vạch ngăn dọc — tách vùng "nhà đầu tư" (chip cổ phiếu) khỏi vùng "tiện ích" (ngôn ngữ + tìm kiếm) */
.header__divider{
  width:1px; height:18px;
  background:rgba(16,22,15,.14);
  border-radius:1px;
  flex:0 0 auto;
}

/* stock widget — FB 2026-07-07: chip ĐẶC brand green (khối màu corporate/fintech
   duy nhất trên pill) thay viên kính trắng — header hết "trắng quá nhiều",
   màu brand hiện diện đúng chỗ dữ liệu nhà đầu tư. */
.stock{
  display:inline-flex; align-items:center; gap:8px;
  height:34px; padding:0 12px;
  color:#fff; font-size:12px; line-height:1;
  /* nền hạ 1 nấc so với --green thuần: trắng 12px bold trên #008B44 chỉ đạt ~4.4:1 —
     var(--green)→var(--green) cho ≥5.2:1 (AA) mà mắt vẫn đọc là brand green tươi. */
  background:linear-gradient(120deg, var(--green), var(--green));
  border:1px solid color-mix(in srgb, var(--green) 60%, #fff);
  border-radius:999px;
  /* FB 2026-07-08: hạ quầng sáng lớn → chip ngồi ÊM trên tấm kính đặc, không
     "đè thô" (glow to trước đây khiến khối xanh nảy khỏi header). */
  box-shadow:0 3px 9px -5px rgba(0,105,58,.5);
  transition:background var(--t-1) var(--ease), color var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease), transform var(--t-1) var(--ease);
}
.stock:hover{box-shadow:0 5px 13px -6px rgba(0,105,58,.6); transform:translateY(var(--lift-1))}
/* chấm mã niêm yết — TĨNH: giá là UI tham chiếu (title đã ghi "UI tĩnh").
   Bỏ nhịp "pulse" vì nó ngụ ý dữ liệu realtime — gây hiểu nhầm khi số cố định.
   Bật lại animation stock-pulse khi đã nối feed giá thật. */
.stock__live{
  width:7px; height:7px; flex:0 0 auto;
  border-radius:50%; background:#7FE0A8;
  box-shadow:0 0 0 3px rgba(127,224,168,.25);
}
.stock__code{font-weight:700; letter-spacing:0; color:rgba(255,255,255,.92)}
.stock__price{font-weight:700; color:#fff; font-variant-numeric:tabular-nums}
.stock__chg{
  color:var(--green-deep); font-weight:800; font-size:10.5px; letter-spacing:0;
  background:rgba(255,255,255,.94); border-radius:4px; padding:3px 6px;
  font-variant-numeric:tabular-nums;
}

/* lang toggle — minimal text control */
.lang{
  display:inline-flex; align-items:center; gap:0;
  height:34px; font-size:12px; font-weight:700;
  color:var(--muted);
}
.lang button{
  position:relative; z-index:1;
  background:none; border:0; padding:0 5px;
  font:inherit; font-size:12px; font-weight:700;
  color:var(--muted); border-radius:0;
  letter-spacing:0; line-height:1;
  transition:color var(--t-2) var(--ease), transform var(--t-2) var(--ease);
  cursor:pointer;
}
.lang button:hover{transform:translateY(var(--lift-1))}
.lang button:active{transform:translateY(0)}
.lang button + button::before{
  content:"|";
  display:inline-block;
  margin-right:10px;
  color:#C9CEC9;
  font-weight:500;
}
.lang button[aria-pressed="true"]{
  color:var(--ink);
  background:transparent;
  box-shadow:none;
}
.lang button:hover{color:var(--green)}

/* ===== LANGUAGE DROPDOWN (2026-07-13 ref style: cờ + mã + caret → panel chọn) =====
   .langdd bọc trigger + `.langdd__menu` (mang class .lang nên $$('.lang button')
   trong main.js vẫn bắt 2 nút VI/EN → applyLang/initLang KHÔNG đổi). initLangMenu
   lo mở/đóng + đồng bộ nhãn qua baf:langchange. Menu-foot mobile giữ .lang phẳng. */
.langdd{ position:relative; display:inline-flex }
.langdd__trigger{
  display:inline-flex; align-items:center; gap:7px;
  background:none; border:0; padding:7px 8px; cursor:pointer;
  color:var(--ink); font-size:13px; font-weight:700; line-height:1;
  border-radius:10px; transition:background var(--t-1) var(--ease), color var(--t-1) var(--ease);
}
.langdd__trigger:hover{ color:var(--head); background:color-mix(in srgb, var(--green) 12%, transparent) }
.langdd__flag{
  width:20px; height:14px; flex:0 0 auto; border-radius:3px;
  background:center/cover no-repeat; box-shadow:0 0 0 1px rgba(16,22,15,.14) inset;
}
.langdd__code{ letter-spacing:.02em }
/* caret = 2 cạnh vuông xoay 45° (không cần asset); mở → lật lên */
.langdd__caret{
  width:7px; height:7px; margin-left:1px; opacity:.65;
  border-right:2px solid currentColor; border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-1px); transition:transform var(--t-2) var(--ease);
}
.langdd.is-open .langdd__caret{ transform:rotate(-135deg) translateY(1px) }
/* cờ trigger theo data-lang wrapper · cờ option cố định theo modifier */
.langdd[data-lang="vi"] .langdd__trigger .langdd__flag,.langdd__flag--vi{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Crect width='30' height='20' fill='%23DA251D'/%3E%3Cpath fill='%23FF0' d='M15 4L16.35 8.15L20.71 8.15L17.18 10.71L18.53 14.85L15 12.29L11.47 14.85L12.82 10.71L9.29 8.15L13.65 8.15z'/%3E%3C/svg%3E");
}
.langdd[data-lang="en"] .langdd__trigger .langdd__flag,.langdd__flag--en{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Crect width='30' height='20' fill='%23012169'/%3E%3Cpath d='M0 0L30 20M30 0L0 20' stroke='%23fff' stroke-width='4'/%3E%3Cpath d='M0 0L30 20M30 0L0 20' stroke='%23C8102E' stroke-width='2'/%3E%3Cpath d='M15 0V20M0 10H30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M15 0V20M0 10H30' stroke='%23C8102E' stroke-width='3.5'/%3E%3C/svg%3E");
}
/* panel — override .lang (đang inline-flex ngang) thành cột thả xuống */
.langdd__menu{
  position:absolute; top:calc(100% + 10px); left:0; z-index:var(--z-header);
  display:flex; flex-direction:column; align-items:stretch; gap:2px;
  height:auto; min-width:120px; padding:6px;
  background:rgba(255,255,255,.97); border-radius:14px;
  box-shadow:0 16px 36px rgba(16,22,15,.18), 0 0 0 1px rgba(16,22,15,.06);
  -webkit-backdrop-filter:blur(14px) saturate(150%); backdrop-filter:blur(14px) saturate(150%);
  opacity:0; transform:translateY(-6px) scale(.98); transform-origin:top left;
  pointer-events:none; transition:opacity var(--t-1) var(--ease), transform var(--t-1) var(--ease);
}
.langdd.is-open .langdd__menu{ opacity:1; transform:none; pointer-events:auto }
.langdd__menu button{
  display:flex; align-items:center; gap:9px; width:100%;
  padding:8px 10px; border-radius:9px; color:var(--ink);
  font-size:13px; font-weight:700; text-align:left; letter-spacing:0;
  transition:background var(--t-1) var(--ease), color var(--t-1) var(--ease);
}
.langdd__menu button::before{ content:none !important }   /* bỏ vạch "|" của .lang trong dropdown */
.langdd__menu button:hover{ transform:none; background:color-mix(in srgb, var(--green) 12%, transparent); color:var(--head) }
.langdd__menu button[aria-pressed="true"]{ color:var(--head); background:color-mix(in srgb, var(--green) 16%, transparent) }

/* lang toast */
.lang-toast{
  position:fixed; bottom:32px; left:50%; transform:translateX(-50%) translateY(12px);
  background:var(--ink); color:#fff;
  font-size:13px; font-weight:600; letter-spacing:.02em;
  padding:10px 20px; border-radius:100px;
  opacity:0; transition:opacity var(--t-2) var(--ease), transform var(--t-2) var(--ease);
  pointer-events:none; z-index:var(--z-toast); white-space:nowrap;
}
.lang-toast.is-show{opacity:1; transform:translateX(-50%) translateY(0)}
.icon-btn{
  display:inline-grid; place-items:center; width:34px; height:34px;
  background:transparent; border:0; color:var(--ink); transition:opacity var(--t-1) var(--ease), color var(--t-1) var(--ease), transform var(--t-1) var(--ease);
}
.icon-btn:hover{transform:scale(1.1)}
.icon-btn:active{transform:scale(.95)}
.icon-btn:hover{color:var(--green)}
.icon-btn svg{width:20px; height:20px}

/* =====================================================   MENU OVERLAY — LEFT PANEL (FM layout) — green-deep, editorial.
   Panel ~48vw on the left; live page stays visible on the right.
   Nav stacked, no dividers, sized so all items fit (no scroll).
   ============================================================ */
.menu{
  position:fixed; top:0; left:0; bottom:0; z-index:var(--z-menu);
  /* IA 2026-07-22: drawer 580 → 860px. Nội dung đổi từ 6 link phẳng sang CÂY
     2 cấp (6 nhóm × 2–4 mục); ở 580px lưới bị bóp còn ~170px/cột, nhãn dài như
     "Thương hiệu – Sản phẩm" vỡ 4 dòng. 860px cho 2 cột thở ~380px. */
  width:min(860px,64vw); background:var(--green-deep); color:#fff;
  display:flex; flex-direction:column;   /* top bar (fixed) + body (flex:1) — robust vs. the absolute .menu__decor child */
  opacity:0; visibility:hidden; transform:translateX(-100%);
  transition:transform var(--t-4) var(--ease), opacity var(--t-3) var(--ease), visibility var(--t-4);
  overflow:hidden;
}
.menu.is-open{opacity:1; visibility:visible; transform:none}
body.menu-open::before{
  content:""; position:fixed; inset:0; z-index:var(--z-backdrop);
  background:rgba(0,0,0,.5); pointer-events:auto;
  opacity:1;
}
/* ĐÓNG must land exactly where the header MENU button sits, so the toggle
   appears to stay in place when the overlay opens. The two live in different
   coordinate systems (MENU = centred max-width pill · ĐÓNG = left-docked panel),
   so we rebuild MENU's inset from the same vars the header uses. */
.menu__top{
  /* Vertical: header adds 14px top padding above a --head-h pill. Mirror it —
     border-box: (head-h + 14) − 14 padding = head-h centred area, so the close
     icon's centre = 14 + head-h/2, identical to MENU. */
  height:calc(var(--head-h) + 14px); padding-top:14px;
  display:flex; align-items:center; justify-content:flex-start;
  /* Horizontal: MENU's left inset from the viewport =
       gutter
       + pill max-width centring offset (0 until viewport > maxw + 2·gut)
       + pill inner padding  (mirrors .header__inner  padding-inline)
       + menu-btn's 2px       (mirrors .menu-btn      padding-left).
     Keep these in sync if the header padding values change. */
  /* 09/09/2026 · khách "nút đóng trùng vị trí nút menu": công thức trên là bản
     ước lượng, lệch ~5px ở mobile vì header có padding riêng theo mốc. Nay JS
     (initMenu) đo hộp thật của .js-menu-open lúc mở và ghi --menu-x/--menu-y/
     --menu-h; công thức cũ chỉ còn là fallback khi biến chưa có. */
  padding-left:var(--menu-x, calc(
    var(--gut)
    + max(0px, (100vw - var(--gut) * 2 - var(--maxw)) / 2)
    + clamp(20px, 2.2vw, 34px)
  ));
  padding-right:var(--gut);
  border-bottom:1px solid var(--line-light);
}
.menu__close{
  background:none; border:0; color:#fff;
  /* cùng KHUNG với .menu-btn (padding 8/2 · hộp icon 22px · gap 11 · 13px) để dấu ×
     đè đúng lên 3 gạch và nhãn ĐÓNG bắt đầu đúng cột chữ MENU. */
  display:inline-flex; align-items:center; gap:11px; padding:8px 2px;
  font-size:13px; font-weight:700; letter-spacing:0; text-transform:uppercase; line-height:1;
  transition:color var(--t-1) var(--ease);
}
/* Khi JS đã đo được nút MENU: vùng nội dung của thanh top = đúng hộp MENU
   (đỉnh --menu-y, cao --menu-h) → align-items:center đặt ĐÓNG trùng hộp ấy.
   Tổng chiều cao thanh giữ nguyên (--head-h + 14px) nên viền dưới không nhảy. */
.menu__top.has-anchor{
  padding-top:var(--menu-y);
  padding-bottom:calc(var(--head-h) + 14px - var(--menu-y) - var(--menu-h));
}
/* trước: opacity:.55 — hover làm nút MỜ ĐI, ngược trực giác (tương tác đáng lẽ
   phải sáng lên). Nay đổi sang mint, cùng bảng chữ-phụ-trên-nền-xanh của menu. */
.menu__close:hover{color:var(--green-mint)}
.menu__close svg{width:14px; height:14px; margin-inline:4px}   /* 14 + 4×2 = 22 = bề ngang 3 gạch */

/* body */
.menu__body{
  position:relative; z-index:1;   /* nav sits above the .menu__decor watermark */
  flex:1; min-height:0;           /* fill all height below the top bar */
  display:flex; flex-direction:column;
  padding:clamp(24px,4vh,48px) clamp(32px,4vw,56px);
  overflow:hidden;                /* items are distributed to fit → no scroll */
}
/* nav fills the body but items pack to the TOP with a fixed gap, so the list
   reads tight instead of spread edge-to-edge. gap is now the real spacing
   (no longer just a min floor), so lowering it visibly tightens the items. */
/* IA 2026-07-22: overlay chuyển từ DANH SÁCH 6 link phẳng → CÂY 2 CẤP (6 nhóm ×
   2–4 mục con, riêng "Công bố thông tin" có cấp 3). Một cột dọc không còn đủ
   chỗ nên chuyển sang LƯỚI 3 cột; .menu__body vẫn overflow:hidden ở desktop,
   nhưng mobile phải cho cuộn (rule ở cuối khối) vì cây cao hơn màn hình. */
.menu__nav{
  flex:1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  align-content:start; gap:clamp(20px,3vh,34px) clamp(24px,3vw,48px);
  width:100%; counter-reset:nav-item;
}
.mgroup{counter-increment:nav-item; min-width:0}

/* ── cấp 1: nhóm ───────────────────────────────────────────── */
.mgroup__top{
  position:relative; display:flex; align-items:baseline; gap:14px;
  font-size:clamp(17px,1.45vw,23px); font-weight:700;
  line-height:1.18; letter-spacing:-.01em; color:#fff;
  text-decoration:none;
  transition:transform var(--t-3) var(--ease), opacity var(--t-2) var(--ease);
}
/* số thứ tự — giữ nét cũ, nay đếm theo NHÓM chứ không theo từng link */
.mgroup__top::before{
  content:counter(nav-item,decimal-leading-zero);
  font-size:11px; font-weight:700; letter-spacing:.12em;
  color:rgba(255,255,255,.3); flex:none; margin-top:4px;
  transition:color var(--t-2) var(--ease);
}
.mgroup__top:hover{transform:translateX(10px)}   /* transform, not padding → no layout thrash */
.mgroup__top:hover::before{color:#fff}

/* ── cấp 2 + 3: mục con ────────────────────────────────────── */
/* 09/09/2026 · khách "khoảng cách mục con quá to — theo luật tiệm cận (Gestalt
   proximity)": khoảng cách TRONG nhóm phải nhỏ hơn hẳn khoảng cách GIỮA nhóm để
   mắt gom đúng cụm. Đo trước: li cao 32px trong khi link chỉ 18px (link
   inline-block nằm trên baseline của line-box li → thừa ~13px mỗi dòng) + gap 7
   → bước dòng ~39px, gần bằng khoảng cách nhóm. Sửa: link display:block (li ôm
   sát link), gap 7 → 4, cha→con 12 → 8; khoảng giữa nhóm giữ 20–34px. */
.mgroup__sub{
  list-style:none; margin:12px 0 0; padding:0 0 0 34px;   /* 34px = thẳng hàng dưới nhãn, sau cột số */
  display:grid; gap:10px;   /* 09/09 vòng 3: 4 → 7 → 10 (khách vẫn thấy nhỏ); nhóm↔nhóm 20–34 vẫn lớn hơn */
}
.mgroup__sub a{
  display:block;
  font-size:clamp(13px,1.02vw,15px); font-weight:500; line-height:1.35;
  color:rgba(255,255,255,.72); text-decoration:none;
  transition:color var(--t-2) var(--ease), transform var(--t-2) var(--ease);
}
.mgroup__sub a:hover{color:#fff; transform:translateX(6px)}
.mgroup__sub2{list-style:none; margin:5px 0 2px; padding:0 0 0 13px; display:grid; gap:5px;
  border-left:1px solid rgba(255,255,255,.22)}
.mgroup__sub2 a{font-size:clamp(12px,.92vw,13.5px); color:rgba(255,255,255,.55)}

/* 09/09/2026 · khách "menu tablet NGANG tăng khoảng cách giữa các hàng 1,2 / 3,4 / 5,6":
   861–1280 gap hàng 20–34 → 44–60px (gap cột giữ). */
@media (min-width:861px) and (max-width:1280px){
  .menu__nav{row-gap:clamp(34px,5.5vh,44px)}   /* vòng 2: "tăng hơi nhiều" 44–60 → 34–44 */
}
/* 09/09/2026 · khách "menu tablet dọc dàn rộng ra, text to hơn chút": 621–860 lưới 2
   cột vẫn giữ nhưng nới lề thân, gap cột lớn hơn, tên nhóm 21px, mục con 15px. */
@media (min-width:621px) and (max-width:860px){
  /* vòng 3 (khách nhắc lại "dàn rộng ra, text to hơn"): lề thân 24–40, gap cột 40–80,
     nhóm 22px, con 16px. */
  .menu__body{padding-inline:clamp(24px,4vw,40px)}
  /* vòng 4 (khách "thưa ra hơn chút nữa"): gap hàng 22–32 → 30–42, cha→con 14, con↔con 13 */
  .menu__nav{gap:clamp(30px,4.4vh,42px) clamp(40px,8vw,80px)}
  .mgroup__top{font-size:22px}
  .mgroup__sub{margin-top:14px; gap:13px}
  .mgroup__sub a{font-size:16px}
}
@media (max-width:620px){
  .menu__nav{grid-template-columns:1fr}
  /* cây 6 nhóm cao hơn viewport điện thoại → mở khoá cuộn (desktop vẫn vừa khít) */
  .menu__body{overflow-y:auto; -webkit-overflow-scrolling:touch}
  /* 09/09/2026 · khách "nội dung con thành 2 cột" rồi "bỏ số 01 02, design lại
     cho đỡ rối": trên điện thoại mỗi nhóm là một KHỐI — tên nhóm sát lề trái,
     không số thứ tự, mục con lưới 2 cột thẳng cột với tên nhóm (bỏ thụt 34px),
     nhóm ngăn nhau bằng hairline mảnh thay vì khoảng trắng lớn. Mục có cấp 3
     chiếm trọn hàng. Bỏ hover trượt ngang kẻo chạm cột kề. Desktop giữ nguyên. */
  .menu__nav{gap:0}
  /* 09/09 · khách "mobile: menu con nào bấm được mới show ra + tăng khoảng cách":
     nhóm thành ACCORDION — bấm tên nhóm mở/đóng mục con (JS initMenu gắn .is-open,
     chỉ 1 nhóm mở), mũi tên ⌄ ở cuối tên nhóm; đệm nhóm 18/20 → 22/24. */
  /* vòng 3 (khách): nhóm dàn dài hơn 22/24 → 26/28, font nhóm 17 → 18, con 13 → 14, con 1 CỘT. */
  .mgroup{padding:26px 0 28px; border-bottom:1px solid rgba(255,255,255,.12)}
  .mgroup__top{position:relative; padding-right:32px; cursor:pointer}
  .mgroup__top::after{
    content:""; position:absolute; right:6px; top:50%; width:9px; height:9px;
    border-right:2px solid rgba(255,255,255,.7); border-bottom:2px solid rgba(255,255,255,.7);
    transform:translateY(-70%) rotate(45deg); transition:transform var(--t-2) var(--ease);
  }
  .mgroup.is-open .mgroup__top::after{transform:translateY(-30%) rotate(-135deg)}
  .mgroup__sub{display:none}
  .mgroup.is-open .mgroup__sub{display:grid}
  .mgroup:first-child{padding-top:6px}
  .mgroup:last-child{border-bottom:0}
  .mgroup__top{gap:0; font-size:18px}
  .mgroup__top::before{display:none}
  .mgroup__top:hover{transform:none}
  /* tiệm cận: cha→con 8px, con↔con 4px (cùng cụm) · nhóm↔nhóm 34px + hairline (khác cụm).
     Chữ mục con 13px cho đỡ rối (khách), nhãn dài ít xuống dòng hơn. */
  .mgroup__sub{padding-left:0; margin-top:14px; grid-template-columns:1fr; row-gap:11px}
  .mgroup__sub a{font-size:15.5px; line-height:1.35; color:rgba(255,255,255,.8)}   /* vòng 4: 14 → 15.5 (khách "to lên chút") */
  .mgroup__sub > li:has(.mgroup__sub2){grid-column:1 / -1}
  .mgroup__sub a:hover{transform:none}
}

/* stagger khi mở menu — handled by the transition-based reveal further below
   (.js .menu__nav a → .menu.is-open …). The old `animation:navIn … both`
   reveal was removed: animation-fill-mode:both pinned later items at the
   keyframe's from{opacity:0} whenever the keyframes were throttled or
   interrupted, so items 05–07 (biggest delays) could stay invisible. */

/* tri-hexagon mark (Group 1.svg) — faint corner watermark, bottom-right.
   Purely decorative: absolute + pointer-events:none + z-index:0 behind the
   nav, so it never affects menu-item layout or visibility. Kept upright.
   09/09/2026: khách "bỏ texture ở dưới menu" = bỏ VÂN CỎ (grain) của panel —
   class grass-tex đã gỡ khỏi <nav class="menu"> trên 22 trang; watermark này GIỮ. */
.menu .menu__decor{
  position:absolute; bottom:-70px; right:-70px; z-index:0;
  width:clamp(300px,48vw,560px); pointer-events:none;
  opacity:.04; filter:brightness(0) invert(1);          /* ~4% white corner watermark */
}
.menu__decor img{width:100%; height:auto; display:block}
/* 09/09/2026 · khách "tablet dọc cho logo chìm trong menu to lên": 561–860 panel
   rộng 100% nhưng watermark theo clamp 48vw ≈ 370px → nâng lên ~78vw (max 640),
   đẩy góc ra ngoài mép nhiều hơn để vẫn là góc chìm, không thành hình chính. */
@media (min-width:561px) and (max-width:860px){
  .menu .menu__decor{ width:min(78vw,640px); bottom:-110px; right:-110px; }
}

/* =====================================================   MENU UTILITY RAIL — stock chip + language toggle docked at the panel
   base. Mirrors the header tools that are CSS-hidden below 860px so market
   data + ngôn ngữ stay reachable in the menu. Direct child of .menu →
   .grass-tex > * gives it position:relative (above the texture ::before);
   flex:0 0 auto → fixed band while .menu__body (flex:1) fills the space
   above. z-index:1 keeps it over the .menu__decor watermark (z:0).
   ============================================================ */
.menu__foot{
  flex:0 0 auto; z-index:1;
  /* desktop: the language toggle already lives in .header__side--left, so the
     menu's copy is redundant → hidden. The @media (max-width:860px) block below
     hides the header copy and reveals this rail, so each appears exactly once. */
  display:none; align-items:flex-end; justify-content:space-between; gap:20px;
  padding:clamp(16px,2.6vh,24px) clamp(32px,4vw,56px) clamp(22px,3.4vh,36px);
  border-top:1px solid var(--line-light);
}
/* stock chip — richer than the header pill: code + change on top, price below */
.menu__stock{
  display:inline-flex; flex-direction:column; gap:5px; min-width:0;
  color:#fff; line-height:1.2;
}
.menu__stock-top{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px; font-weight:700; letter-spacing:.04em;
}
/* live dot — bright mint reads on --green-deep; STATIC (giá là UI tham chiếu,
   không phải feed realtime → không pulse để tránh ngụ ý dữ liệu trực tiếp). */
.menu__stock-live{
  width:7px; height:7px; flex:0 0 auto; border-radius:50%;
  background:var(--green-live); box-shadow:0 0 0 3px rgba(111,208,140,.22);
}
.menu__stock-code{color:rgba(255,255,255,.9); transition:color var(--t-1) var(--ease)}
.menu__stock-chg{
  color:var(--green-deep); background:var(--green-live);
  font-size:10.5px; font-weight:800; letter-spacing:0;
  padding:2px 6px; border-radius:4px; font-variant-numeric:tabular-nums;
}
.menu__stock-price{
  font-size:clamp(19px,2.2vw,22px); font-weight:800; letter-spacing:-.01em;
  font-variant-numeric:tabular-nums;
}
.menu__stock-price small{font-size:12px; font-weight:600; opacity:.7}
.menu__stock-note{font-size:11px; color:rgba(255,255,255,.5)}
.menu__stock:hover .menu__stock-code{color:#fff}
/* language toggle — reuse .lang (JS-bound via initLang), recoloured for the
   dark panel. The .lang base colours (--muted/--ink) are tuned for the light
   header; here everything is white-on-green. */
.menu__lang{display:inline-flex; flex-direction:column; align-items:flex-end; gap:8px; flex:0 0 auto}
.menu__lang-label{
  font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:rgba(255,255,255,.5);
}
.menu__foot .lang{height:auto}
.menu__foot .lang button{color:rgba(255,255,255,.55); font-size:13px}
.menu__foot .lang button[aria-pressed="true"]{color:#fff}
.menu__foot .lang button:hover{color:#fff}
.menu__foot .lang button + button::before{color:rgba(255,255,255,.3)}

/* =====================================================   FOOTER — CPF layout: left company info (~35%) + sitemap panel
   (~65%, var(--green), docked to right + bottom edges, top-left radius).
   bg.png texture overlays the whole footer (faint, bottom-left).
   ============================================================ */
.footer{
  position:relative; color:#fff; overflow:hidden;   /* deep forest, đậm hơn --green-deep */
  /* nền xanh SÁT lề dưới (không padding-bottom ở .footer) — khoảng thoáng nằm
     BÊN TRONG mỗi cụm (padding-bottom của brand + panel) để "đẩy text lên" mà
     nền vẫn chạm đáy. */
  padding-top:clamp(56px,7vw,80px); padding-bottom:0;
  /* FB 2026-07-07 "đậm quá, thiếu chiều sâu": bỏ fill phẳng — 3 lớp có ánh sáng.
     Lớp 1 KHOÁ 110px đỉnh = forest phẳng (mối nối .footer-treeline giữ nguyên
     một màu), lớp 2 quầng brand green giữa footer tạo chiều sâu, lớp 3 nền. */
  background:
    linear-gradient(180deg, var(--green-forest) 0, rgba(2,74,40,0) 110px),
    radial-gradient(72% 60% at 32% 38%, rgba(0,139,68,.38), rgba(0,139,68,0) 72%),
    linear-gradient(180deg, var(--green-forest), #023B20 100%);
  /* FB 2026-07-08: ĐÃ BỎ lưới caro hairline trắng (2 linear-gradient chéo nhau) ở nền
     footer theo yêu cầu — chỉ còn lớp khoá đỉnh + quầng brand-green + nền forest. */
}
/* texture overlay — cỏ tự nhiên phủ toàn footer, rất mờ (chỉ là texture, không cạnh
   tranh nội dung). GIỮ NGUYÊN .14 soft-light = .footer-treeline::after → chung một mặt cỏ. */
.footer::before{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:url(../images/grass-texture.jpg) center/cover no-repeat;
  opacity:.14; mix-blend-mode:soft-light;
}

/* =====================================================   CỎ KẾT NỐI — treeline mask (SVG khách gửi) nối section trên (Tin tức)
   chìm vào footer forest. Cùng màu --green-forest + cùng texture cỏ như
   footer → thân dải liền một mặt với footer, chỉ đỉnh cây răng cưa lộ trên
   nền Tin tức (xanh nhạt). Là SIBLING ngay trước <footer>: footer có
   overflow:hidden nên không thể đặt bên trong (sẽ bị cắt phần nhô lên).
   Kéo lên bằng margin âm = chiều cao → đáy dải trùng đúng mép footer.
   ============================================================ */
.footer-treeline{
  --tl-h:clamp(38px,4.2vw,68px);      /* cùng knob với .video-treeline / .intro-treeline */
  position:relative; z-index:1;
  isolation:isolate;                 /* soft-light của texture chỉ trộn trong dải */
  width:100%; height:var(--tl-h);
  margin-top:calc(-1 * var(--tl-h)); /* trùm đáy Tin tức, không đẩy footer xuống */
  margin-bottom:-1px;                /* xoá hairline khi gặp footer */
  pointer-events:none;
  background:var(--green-forest);     /* KHOÁ cùng màu footer → liền mạch */
  /* mask: đáy đặc = thân, đỉnh răng cưa rỗng = lộ nền Tin tức phía sau */
  -webkit-mask:url(../images/treeline-mask.slim.svg) bottom center/100% 100% no-repeat;
          mask:url(../images/treeline-mask.slim.svg) bottom center/100% 100% no-repeat;
}
/* cùng texture cỏ như footer — tự mask đúng hình cây (khớp pattern .video-treeline) */
.footer-treeline::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:url(../images/grass-texture.jpg) center/cover;
  opacity:.14; mix-blend-mode:soft-light;   /* = footer::before → cùng một mặt cỏ */
  -webkit-mask:url(../images/treeline-mask.slim.svg) bottom center/100% 100% no-repeat;
          mask:url(../images/treeline-mask.slim.svg) bottom center/100% 100% no-repeat;
}

/* footer rộng hơn các section khác 1 chút: max-width nhỉnh hơn + lề (gut) mỏng hơn → phần main to lên */
/* 2026-07-14 · ĐỒNG BỘ LỀ toàn site: footer dùng ĐÚNG chuẩn .container (maxw + gut)
   như section Giới thiệu/3F/… (trước rộng hơn +80px & gutter nhỏ hơn → lệch mép). */
.footer .container{max-width:var(--maxw); width:100%; margin-inline:auto; padding-inline:var(--gut); position:relative; z-index:1}
.footer__grid{
  position:relative; z-index:1;
  display:grid; grid-template-columns:1fr 2fr; align-items:stretch;   /* trái 1/3 · phải 2/3 */
}
/* LEFT — company info column */
/* padding-bottom = khoảng "đẩy text lên" cho cụm TRÁI (nền forest của .footer lấp
   phía dưới → vẫn sát đáy). Cân với panel để 2 cụm thoáng đáy đều + giữ hở line ~34. */
.footer__brand{padding:0 clamp(36px,4vw,64px) clamp(34px,3.2vw,46px) 0}
.footer__logo{height:60px; width:auto; margin-bottom:30px; filter:brightness(0) invert(1)}   /* +25% — mạnh hierarchy */
/* FB 08/03: capslock tên công ty + rớt dòng gọn (2 dòng cân: "Công ty Cổ phần" / "Nông nghiệp BAF Việt Nam")
   FB 08/05: max-width 24ch không đủ cho dòng 2 viết hoa → chữ vẫn rớt tuỳ tiện.
   Nay ngắt dòng CÓ NGHĨA cố định bằng <br /> trong HTML (mọi trang) + &nbsp; giữ
   "BAF VIỆT NAM" liền khối; nới max-width để dòng 2 nằm trọn 1 hàng. */
.footer__brand h2{font-size:clamp(17px,1.7vw,24px); font-weight:800; line-height:var(--lh-title); color:#fff; max-width:28ch; text-transform:uppercase; letter-spacing:.01em}
.footer__addr{margin-top:30px; display:grid; gap:11px; font-size:16px; color:rgba(255,255,255,.82)}
.footer__addr > *{display:flex; align-items:flex-start; gap:12px}
.footer__addr .ico{flex:none; margin-top:4px; opacity:.85}
.footer__addr a{color:rgba(255,255,255,.82); transition:color var(--t-1) var(--ease)}
.footer__addr a:hover{color:#fff}
/* social — circular, white-on-hover with green icon */
.footer__social{display:inline-flex; flex-wrap:wrap; gap:12px; margin-top:34px}
.footer__social a{
  display:inline-grid; place-items:center; width:42px; height:42px; border-radius:50%;
  border:1px solid rgba(255,255,255,.3); color:#fff;
  transition:background var(--t-2) var(--ease), color var(--t-2) var(--ease), transform var(--t-2) var(--ease), border-color var(--t-2) var(--ease);
}
.footer__social a:hover{background:#fff; color:var(--green-deep); border-color:#fff; transform:translateY(var(--lift-1))}
.footer__social svg{width:18px; height:18px; fill:currentColor}

/* RIGHT — sitemap panel docked to right + bottom (no gaps) */
/* RIGHT panel — dày hơn: row-gap nhỏ, heading↔links sát, child link gọn */
.footer__sitemap{
  position:relative;
  align-self:stretch;
  /* ánh sáng chéo nhẹ thay fill phẳng + hairline sáng mép trên — panel "nổi" có chiều sâu */
  background:linear-gradient(155deg, #0A9C53 0%, var(--green) 52%, #007C3C 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16);
  /* panel VUÔNG đáy → dock SÁT lề dưới (nền xanh chạm đáy). padding-bottom LỚN =
     đẩy legal/copyright LÊN, chừa nền xanh phía dưới. */
  border-radius:12px 12px 0 0;
  padding:clamp(40px,3.4vw,48px) clamp(44px,3.6vw,56px) clamp(44px,3.8vw,56px);
  display:flex; flex-direction:column;   /* groups on top · legal bar pinned to bottom */
}
.footer__groups{
  display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(20px,2vw,28px) clamp(24px,2vw,36px);
  align-content:start;
  /* tách cụm menu khỏi vạch legal. KHÔNG đụng margin-top:auto của .footer__legalbar
     (nó lo ghim cụm legal xuống đáy panel) — thêm khoảng hở ở ĐÂY là cách duy nhất
     vừa nới được vừa giữ nguyên cơ chế ghim đáy. */
  margin-bottom:clamp(30px,3.2vw,44px);
}
/* IN HOA theo yêu cầu khách 26/08 — cùng ngữ pháp CAPSLOCK của tiêu đề toàn site.
   text-transform kế thừa xuống <a> bên trong nên 4 tiêu đề có link cũng hoa theo. */
.fgroup__h{font-size:13.5px; font-weight:600; color:#fff; margin-bottom:10px;
  text-transform:uppercase; letter-spacing:.04em}
/* 18 → 15 → 13.5px. Cỡ này khách chọn để "THƯƠNG HIỆU – SẢN PHẨM" (chuỗi dài nhất,
   cần 209px ở 15px) nằm gọn 1 dòng ở khổ desktop thường. ĐÁNH ĐỔI ĐÃ BIẾT: tiêu đề
   nay NHỎ HƠN link con (15px) — phân cấp trông cậy vào IN HOA + weight + tracking
   chứ không phải cỡ chữ. Đừng "sửa lại cho hợp lý" ở đợt dọn sau. */
.fgroup ul{list-style:none; margin:0; padding:0; display:grid; gap:3px}   /* 2026-07-23: giảm spacing list con (thêm) */
.fgroup a{display:inline-block; font-size:15px; font-weight:400; letter-spacing:0; line-height:1.5; color:rgba(255,255,255,.82); transition:color var(--t-1) var(--ease), transform var(--t-1) var(--ease)}
.fgroup a:hover{color:#fff; transform:translateX(4px)}
/* Tiêu đề nhóm là LINK khi header có trang đích tương ứng (đồng bộ .hnav__top).
   ⚠ PHẢI đứng SAU `.fgroup a` ở trên: hai selector cùng specificity (0,2,0) nên
   thứ tự khai báo quyết định. Đảo lên trên là tiêu đề tụt về cỡ 15/400 của link con.
   Cũng phải huỷ transform: heading trượt ngang khi hover trông như lỗi. */
.fgroup__h a{
  display:inline; font:inherit; color:inherit;
  letter-spacing:inherit; line-height:inherit;
  transition:opacity .18s var(--ease);
}
.fgroup__h a:hover{color:#fff; transform:none; opacity:.78}
/* cấp 3 làm PHẲNG trong footer (IA 2026-07-22): Định kỳ · Bất thường thụt vào
   sau "Công bố thông tin" thay vì lồng <ul> — footer là danh sách quét nhanh,
   không phải cây điều hướng (cây đầy đủ nằm ở menu overlay + sitemap.html). */
.fgroup__sub{padding-left:12px; border-left:1px solid rgba(255,255,255,.20)}
.fgroup__sub a{font-size:13.5px; color:rgba(255,255,255,.62)}

/* LEFT column extra — stock stays on the left (dưới social).
   FB 2026-07-13 "cho chứng khoán nổi bật hơn": text phẳng → thẻ quote kính
   nổi trên nền forest (viền sáng + nhấc bóng), chấm LIVE nhấp nháy, giá phóng to.
   Số vẫn placeholder (nối API sau) — KHÔNG bịa % thay đổi. */
.footer__stock{
  margin-top:42px; width:fit-content; max-width:100%;   /* 2026-07-23: tăng khoảng cách để TÁCH khỏi cụm liên hệ phía trên */
  display:flex; flex-direction:column; align-items:flex-start; gap:11px;
  padding:22px 22px 22px; line-height:1.3;   /* 2026-07-23: tăng padding top & bottom cụm chứng khoán */
  background:linear-gradient(152deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
  border:1px solid rgba(255,255,255,.18);
  border-radius:14px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16), 0 10px 26px rgba(0,0,0,.20);
  -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
}
.fstock__code{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  color:rgba(255,255,255,.84);
}
.fstock__live{
  width:8px; height:8px; border-radius:50%; flex:none;
  background:var(--green-live); box-shadow:0 0 6px rgba(59,224,138,.9);
  animation:fstockPulse 2.1s var(--ease) infinite;
}
@keyframes fstockPulse{
  0%{box-shadow:0 0 6px rgba(59,224,138,.9), 0 0 0 0 rgba(59,224,138,.5)}
  70%{box-shadow:0 0 6px rgba(59,224,138,.9), 0 0 0 8px rgba(59,224,138,0)}
  100%{box-shadow:0 0 6px rgba(59,224,138,.9), 0 0 0 0 rgba(59,224,138,0)}
}
.fstock__price{
  font-size:29px; font-weight:800; color:#fff; line-height:1;
  letter-spacing:-.01em; font-variant-numeric:tabular-nums;
}
.fstock__price em{font-size:14px; font-weight:600; font-style:normal; color:rgba(255,255,255,.72); margin-left:6px}
.fstock__meta{display:flex; flex-wrap:wrap; gap:2px 16px}
.fstock__row{font-size:12.5px; color:rgba(255,255,255,.66)}
/* 2026-07-23 — layout quote 2 cột theo ảnh tham chiếu (giữ nguyên design system:
   thẻ kính, giá trắng đậm, nhãn xám, delta dùng token brand). Cột trái = nhãn "Cập
   nhật lúc" + giá; cột phải (canh phải) = nhãn "Thay đổi (%)" + delta. */
/* align-items:stretch + col space-between → nhãn canh TRÊN cùng hàng, giá & delta
   canh DƯỚI cùng hàng (client "canh dưới 2 cụm 34.700VNĐ / +250") */
.fstock__quote{display:flex; gap:clamp(22px,3vw,40px); align-items:stretch; width:100%}
.fstock__col{display:flex; flex-direction:column; justify-content:space-between; gap:8px; min-width:0}
.fstock__col--chg{margin-left:auto; align-items:flex-end; text-align:right}
.fstock__lbl{font-size:11.5px; letter-spacing:.01em; color:rgba(255,255,255,.60); white-space:nowrap}
.fstock__chg{font-size:20px; font-weight:800; line-height:1; font-variant-numeric:tabular-nums; white-space:nowrap}
.fstock__chg--up{color:var(--green-live)}
.fstock__chg--down{color:#FF7A7A}
.fstock__pct{font-size:12.5px; font-weight:600; margin-left:3px; opacity:.9}
@media (prefers-reduced-motion:reduce){ .fstock__live{animation:none} }

/* RIGHT panel bottom bar — legal links + copyright, full width of the panel */
.footer__legalbar{
  margin-top:auto;                       /* pin to the bottom of the panel (left column is taller) */
  /* 2026-07-23: giảm padding-top → đường line SÁT cụm legal phía dưới hơn phần category phía trên */
  padding-top:9px;                       /* 26/08: kéo vạch SÁT cụm legal (cũ 12–17px) */
  border-top:1px solid rgba(255,255,255,.18);
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 26px;
}
/* 2026-07-23: legal + copyright NHỎ LẠI BẰNG NHAU (trước 15 / 13) */
.footer__legal{display:flex; flex-wrap:wrap; gap:7px 20px}
.footer__legal a{font-size:13px; color:rgba(255,255,255,.82); transition:color var(--t-1) var(--ease)}
.footer__legal a:hover{color:#fff}
/* ---------- chữ ký MONA.Media (thay dòng bản quyền, 26/08) ----------
   Khối CSS dưới đây chép NGUYÊN VĂN từ snippet.html của bộ mona-signature
   để còn diff được với bản gốc khi Mona cập nhật; phần chỉnh riêng cho BAF
   nằm gọn ở rule --sig-* ngay sau (đúng chỗ mở rộng mà README chỉ định). */
.mona-sign{
  /* canh TRÁI theo yêu cầu khách 26/08 (bản gốc của Mona là canh giữa) — cả footer
     đọc theo một mép trái, chữ ký canh giữa sẽ lạc nhịp. */
  display:flex; align-items:center; justify-content:flex-start; gap:13px; flex-wrap:wrap;
  padding:15px 0 2px; margin-top:9px;
  border-top:1px solid var(--sig-line, rgba(255,255,255,.07));
}
.mona-sign span{
  font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--sig-label, #5A7B95);
}
.mona-sign a{ display:inline-flex; opacity:.9; transition:opacity .2s, transform .2s; }
.mona-sign a:hover{ opacity:1; transform:translateY(-1px); }
.mona-sign img{ height:19px; width:auto; display:block; }
@media(max-width:560px){ .mona-sign{ gap:9px; padding-top:18px; } }
/* BAF: mặc định #5A7B95 là xanh-xám lạnh, lạc trên nền xanh lá của footer.
   Vạch kẻ để nhạt hơn .footer__legalbar (.18) để hai đường không cùng trọng số. */
.footer .mona-sign{ --sig-label:rgba(255,255,255,.62); --sig-line:rgba(255,255,255,.12) }

/* (footer to-top removed — single scroll-top is the floating polygon FAB) */

/* ============ QH · TABS LOẠI CÔNG BỐ (2026-07-23) =====   Định kỳ / Bất thường rời khỏi menu → segmented tabs trong section CBTT.
   Điều khiển <select class="js-qh-type"> có sẵn (initQhTypeTabs). Dùng token
   design-system (green-soft / green / r-btn) — cùng ngôn ngữ .ni-sort trang tin. */
.qh-typetabs{
  display:inline-flex; flex-wrap:wrap; gap:6px; padding:5px;
  margin:clamp(16px,2.2vw,24px) 0 clamp(18px,2.4vw,26px);
  background:var(--green-soft); border-radius:var(--r-btn);
}
.qh-typetab{
  cursor:pointer; border:0; background:transparent; color:var(--muted);
  font-size:13.5px; font-weight:700; letter-spacing:.02em;
  padding:9px 18px; border-radius:var(--r-btn);
  transition:color var(--t-1) var(--ease), background var(--t-1) var(--ease);
}
.qh-typetab:hover{color:var(--head)}
.qh-typetab.is-active{color:#fff; background:var(--green)}
/* Chiều cao thật ~35px (9px đệm × 2 + 13.5px chữ) — hụt mốc chạm 44×44. Nới
   đệm DỌC ở mốc hẹp cho đủ 44. Lưu ý selector này nằm ở common.css chứ không
   phải quan-he-co-dong.css: trang Giải thưởng chèn .aw-years bằng JS với class
   `qh-typetabs aw-years` (main.js) và KHÔNG nạp quan-he-co-dong.css — sửa ở
   file trang sẽ trượt mất trang Giải thưởng. */
@media (max-width:768px){
  .qh-typetab{padding-block:13px}
}

/* floating contact — SVG polygon buttons; scroll-top has a scroll-progress border */
.group-contact{
  position:fixed; right:20px; bottom:20px; z-index:var(--z-fab);
  display:flex; flex-direction:column; align-items:flex-end; gap:6px;   /* tighter spacing between buttons */
}
.gc-btn{
  --gc-bg:var(--green);
  position:relative; isolation:isolate;
  display:inline-grid; place-items:center;
  width:60px; height:52px; padding:0;       /* flat-top hexagon (rotated 90°), maps 1:1 to viewBox */
  border:0; background:transparent; color:#fff;
  transform:translate3d(0,0,0);
  transform-origin:50% 50%;
  cursor:pointer;
  /* FB: khôi phục vòng lắc nhẹ gc-shake (client yêu cầu) — entrance stagger
     + burst lắc dịu tắt dần, nghỉ ~80% chu kỳ nên không giành chú ý liên tục. */
  animation:gc-enter .5s var(--ease) backwards, gc-shake 3.8s ease-in-out infinite;
  animation-delay:.05s;
  transition:transform var(--t-2) var(--ease), filter var(--t-2) var(--ease);
  will-change:transform;
}
/* focus bàn phím RÕ: vòng kép trắng + xanh ôm hộp nút (thấy được trên mọi nền).
   Trước đây outline:0 chỉ dựa vào transform lift → không đủ tín hiệu focus (WCAG 2.4.7). */
.gc-btn:focus-visible{outline:0; box-shadow:0 0 0 2px #fff, 0 0 0 4px var(--green); border-radius:10px}
/* entrance stagger */
.gc-btn:nth-child(2){animation-delay:.15s}
.gc-btn:nth-child(3){animation-delay:.25s}
.gc-btn::after{
  content:""; position:absolute; left:50%; bottom:1px; z-index:-1;
  width:34px; height:8px; border-radius:50%;
  background:rgba(16,22,15,.22);
  filter:blur(7px);
  transform:translateX(-50%);
  transition:opacity var(--t-2) var(--ease), transform var(--t-2) var(--ease), filter var(--t-2) var(--ease);
}
.gc-btn:hover,
.gc-btn:focus-visible{
  animation-play-state:paused;
  transform:translate3d(0,-4px,0) scale(1.05);
  filter:drop-shadow(0 13px 16px rgba(16,22,15,.2));
}
.gc-btn:hover::after,
.gc-btn:focus-visible::after{
  opacity:.92;
  filter:blur(8px);
  transform:translateX(-50%) scale(1.08);
}
.gc-btn:active{transform:translate3d(0,-1px,0) scale(.99)}
.gc-btn__shape{
  position:absolute; inset:0;
  width:100%; height:100%;
  overflow:visible;
  filter:drop-shadow(0 8px 10px rgba(16,22,15,.16));
}
/* rounded-corner hexagon path → corners already soft; no expanding stroke */
.gc-btn__fill{fill:var(--gc-bg)}
/* progress border — uses the SAME path as the fill so it follows the polygon
   outline EXACTLY (rides the rim, no drift). Thin light-green hairline (brand palette).
   Driven by window.scrollY in JS (no keyframes). pathLength=100 → dashoffset 100 (0%) … 0 (100%). */
.gc-btn__trace{
  fill:none;
  stroke:var(--green-live);                              /* light green — brand palette, not white */
  stroke-width:1.4;                            /* thin, subtle, premium (Dabaco) */
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-dasharray:100;
  stroke-dashoffset:100;
  vector-effect:non-scaling-stroke;            /* crisp 1px regardless of scaling */
  shape-rendering:geometricPrecision;          /* smooth joins + clean anti-aliasing */
  transition:stroke-dashoffset var(--t-1) linear;    /* smooths coarse scroll steps; not a loop */
}
.gc-btn__icon{
  position:relative; z-index:1;
  width:22px; height:22px;
  color:#fff;
  transition:transform var(--t-2) var(--ease);
}
.gc-btn:hover .gc-btn__icon,
.gc-btn:focus-visible .gc-btn__icon{transform:translateY(var(--lift-1)) scale(1.1)}
.gc-btn:active .gc-btn__icon{transform:translateY(0) scale(1)}
/* scroll-top arrow centered in the hexagon */
.gc--top .gc-btn__icon--up{align-self:center; margin-bottom:0}
/* GIỮ HƯỚNG LÊN khi hover: .ico--up là down-arrow XOAY 180°, nhưng transform hover
   chung (.gc-btn__icon) ghi đè cả rotate → mũi tên lật xuống ("đổi chiều"). Cộng lại
   rotate(180deg) vào hover/active của riêng nút scroll-top; translateY đặt TRƯỚC rotate
   nên cú nhấc 2px vẫn đi lên trên màn hình. */
.gc--top:hover .gc-btn__icon--up,
.gc--top:focus-visible .gc-btn__icon--up{transform:translateY(var(--lift-1)) rotate(180deg) scale(1.1)}
.gc--top:active .gc-btn__icon--up{transform:rotate(180deg)}
/* FB (client yêu cầu): tháp FAB trở lại 3 MÀU BRAND 3F —
   scroll-top XANH (Farm) · facebook NÂU (Feed) · phone ĐỎ (Food). */
.gc--top{--gc-bg:#008A43}
.gc--facebook{--gc-bg:#80331A}
.gc--phone{--gc-bg:#EB1C24}

/* lắc nhẹ gây chú ý — nghỉ ~80% chu kỳ rồi một burst wiggle dịu.
   Xoay thuần quanh tâm (transform-origin:50% 50%); biên độ tắt dần để
   nút "lắng lại" chứ không giật. Chỉnh biên độ (deg) cho mạnh/nhẹ hơn. */
@keyframes gc-shake{
  0%,80%,100%{transform:translate3d(0,0,0) rotate(0)}
  84%{transform:rotate(-6deg)}
  88%{transform:rotate(5deg)}
  92%{transform:rotate(-3.5deg)}
  96%{transform:rotate(2deg)}
}

@keyframes gc-enter{
  from{opacity:0; transform:translate3d(0,18px,0) scale(.7)}
  to{opacity:1; transform:translate3d(0,0,0) scale(1)}
}

/* ---------- micro-animations ---------- */
/* HEADER MORPH khi cuộn: pill lục giác nổi → bar kính full-width dính sát mép trên.
   Giữ BẤT BIẾN chiều cao dòng chảy = 88px (14 lề + 74 pill = 0 + 88 bar) ở mọi frame
   (padding-top và height cùng duration/easing) → hero (margin-top:-(head-h+14)) và
   mọi thứ bên dưới không xê dịch 1px nào khi vượt ngưỡng cuộn. */
.header.is-scrolled{ padding:0 }
.header.is-scrolled .header__inner{
  height:calc(var(--head-h) + 14px);   /* nuốt luôn 14px lề trên → mép trên chạm viewport */
  max-width:100vw;                     /* thả trần .container để bar tràn hết bề ngang */
  /* 2026-07-14 ĐỒNG BỘ LỀ: bar tràn 100vw nhưng NỘI DUNG (logo/nav) canh đúng
     content-left của .container (= (100vw−maxw)/2 + gut) → khi cuộn, logo/nav THẲNG
     HÀNG với nội dung các section, không thò ra mép như khi chỉ padding gut. */
  padding-inline:calc(max(0px, (100vw - var(--maxw)) / 2) + var(--gut));
}
.header.is-scrolled .header__inner::before,
.header.is-scrolled .header__inner::after{ --cap-w:0px }  /* mũ lục giác rút lại → chữ nhật */
.header.is-scrolled .header__inner::after{
  background:linear-gradient(112deg, rgba(255,255,255,.9), rgba(240,248,242,.86));
}
.header.is-scrolled .header__inner::before{
  background:linear-gradient(180deg, rgba(255,255,255,.7), rgba(0,139,68,.22));
  filter:drop-shadow(0 8px 18px rgba(16,22,15,.30)) drop-shadow(0 2px 5px rgba(16,22,15,.16));
}
/* IA 2026-07-22: stagger chuyển từ TỪNG LINK → TỪNG NHÓM (.mgroup). Bắt buộc,
   vì cây 2 cấp làm mọi <a> đều là con thứ 1 của cha nó (.mgroup / <li>) → mọi
   :nth-child(n) cũ sẽ khớp n=1 và cả menu hiện cùng lúc, mất hiệu ứng.
   Đặt reveal ở .mgroup còn tránh chọi transform với .mgroup__top:hover. */
.js .menu__nav .mgroup{opacity:0; transform:translateY(16px); transition:opacity var(--t-3) var(--ease), transform var(--t-3) var(--ease)}
.menu.is-open .menu__nav .mgroup{opacity:1; transform:none}
.menu.is-open .menu__nav .mgroup:nth-child(1){transition-delay:.06s}
.menu.is-open .menu__nav .mgroup:nth-child(2){transition-delay:.10s}
.menu.is-open .menu__nav .mgroup:nth-child(3){transition-delay:.14s}
.menu.is-open .menu__nav .mgroup:nth-child(4){transition-delay:.18s}
.menu.is-open .menu__nav .mgroup:nth-child(5){transition-delay:.22s}
.menu.is-open .menu__nav .mgroup:nth-child(6){transition-delay:.26s}

/* ---------- MICRO-ANIMATION DUY NHẤT TOÀN SITE: FADE-UP (2026-07) ----------
   Client: bỏ mớ hiệu ứng vào-màn lộn xộn (trượt trái/phải, line-reveal, wipe, tilt)
   → CHỈ 1 kiểu fade + trượt lên nhẹ, đồng bộ mọi trang, nhìn chuyên nghiệp.
   Cự ly NHẸ 16px + .55s (trước 46px/.8s "giật"); mọi biến thể --left/right/scale
   HỢP NHẤT về cùng fade-up này (giữ class cũ trong HTML nhưng hành vi như nhau). */
/* 08/05 vòng 3 — BỎ `filter:blur(6px)` khỏi hiệu ứng vào-màn.
   Lý do KHÔNG phải thẩm mỹ mà là BUG: `filter` ép phần tử lên GPU layer riêng.
   Khung ảnh nào vừa mang .reveal vừa có `overflow:hidden`+`border-radius` thì
   sau khi transition kết thúc trình duyệt còn giữ layer đó, và layer bị xén
   bằng HÌNH CHỮ NHẬT ⇒ mất bo góc; rê chuột vào mới repaint nên góc bo hiện ra
   (khách báo 3 lần, ảnh chụp gửi kèm). Đây là mẫu số chung của MỌI khung lỗi —
   quét harness `_frames.html` thấy 11/11 hàng "THIẾU" đều mang .reveal.
   Bỏ blur ⇒ không còn promote layer, và nhẹ hơn hẳn (blur chạy trên hàng trăm
   phần tử mỗi lần cuộn). Vào-màn vẫn y nguyên fade + trượt lên.
   Muốn khôi phục blur thì phải giữ nguyên khối "CON TỰ BO GÓC" ở cuối file. */
.reveal{transition:opacity var(--t-4) var(--ease), transform var(--t-4) var(--ease)}
.js .reveal,
.js .reveal--left,
.js .reveal--right,
.js .reveal--scale{opacity:0; transform:translateY(18px)}
.reveal[data-delay="1"]{transition-delay:.08s}
.reveal[data-delay="2"]{transition-delay:.16s}
.reveal[data-delay="3"]{transition-delay:.24s}
.reveal[data-delay="4"]{transition-delay:.32s}
.js .reveal.is-visible{opacity:1; transform:none}

/* Count-up numbers site-wide: tabular figures so the digit width is locked
   frame-to-frame while runCount() ticks → no horizontal "shiver" (award polish). */
.js-count{font-variant-numeric:tabular-nums; font-feature-settings:"tnum" 1}

/* FX PACK cũ (line-reveal .ln + wipe .fx-wipe + tilt) ĐÃ GỠ 2026-07: hợp nhất
   về 1 micro-animation fade-up (.reveal) cho đồng bộ. Hook .fx-lines/.js-wipe
   trong HTML nay được main.js gắn .reveal (fade-up) thay vì tách dòng/wipe. */

/* ---------- MICRO-INTERACTIONS (shared · 2026-07-08) ----------
   Lớp vi-hiệu-ứng dùng chung cho MỌI trang (common.css). CHỈ thêm
   anchor-landing + hover/press — không đụng layout. Bổ sung sự sống cho
   các trang tĩnh (pháp lý, sơ đồ) và tinh chỉnh chi tiết trên toàn site.
   Tôn trọng prefers-reduced-motion ở cuối khối. ------------------- */

/* neo cuộn mượt: đích #id dừng DƯỚI header dính (khớp offset initSmoothAnchors:
   pill --head-h + 14px pad + ~18 thở). Chỉ ảnh hưởng điểm dừng, không layout. */
[id]{scroll-margin-top:calc(var(--head-h) + 32px)}
/* trang có DẢI MỤC LỤC dính (.subnav): điểm dừng phải cộng thêm chiều cao thanh
   tab, nếu không tiêu đề section nằm khuất sau nó (feedback [d] 2026). Khớp với
   offset của initSmoothAnchors trong main.js. */
body:has(.subnav) [id]{scroll-margin-top:calc(var(--head-h) + 32px + var(--subnav-h))}

/* focus-visible có nhịp thở (a11y micro-delight) — mọi trang */
:focus-visible{transition:outline-offset var(--t-1) var(--ease), outline-color var(--t-1) var(--ease)}

@media (hover:hover){
  /* link trong prose pháp lý: đã có gạch chân tĩnh → chỉ nới offset + dịu màu */
  .legal-prose a:not(.btn){transition:color var(--t-1) var(--ease), text-underline-offset var(--t-1) var(--ease)}
  .legal-prose a:not(.btn):hover{color:var(--head); text-underline-offset:5px}

  /* link sơ đồ (không gạch chân sẵn) → gạch chân mọc từ trái */
  .sitemap__grid a{
    background-image:linear-gradient(currentColor,currentColor);
    background-size:0 1px; background-position:0 100%; background-repeat:no-repeat;
    transition:background-size var(--t-2) var(--ease), color var(--t-1) var(--ease);
    padding-bottom:1px;
  }
  .sitemap__grid a:hover{background-size:100% 1px; color:var(--head)}

  /* thẻ nội dung tĩnh nhấc nhẹ khi rê — điều khoản pháp lý + ô sơ đồ.
     GIỮ opacity .8s để KHÔNG nuốt fade của .reveal (các thẻ này cũng là .reveal):
     transform .35s cho cả entrance-slide lẫn hover-lift, opacity fade riêng .8s. */
  .legal-clause, .sitemap__grid > div{transition:opacity var(--t-5) var(--ease), transform var(--t-3) var(--ease)}
  .legal-clause:hover, .sitemap__grid > div:hover{transform:translateY(var(--lift-1))}
}

@media (prefers-reduced-motion: reduce){
  [id]{scroll-margin-top:calc(var(--head-h) + 32px)}   /* landing offset OK, chỉ tắt motion */
  body:has(.subnav) [id]{scroll-margin-top:calc(var(--head-h) + 32px + var(--subnav-h))}
  .legal-prose a, .sitemap__grid a,
  .legal-clause, .sitemap__grid > div,
  :focus-visible{transition:none}
}

/* ---------- responsive shell ---------- */
@media (max-width:1024px){
  .menu{width:min(560px,82vw)}
}
@media (max-width:860px){
  :root{--head-h:64px}
  .header__inner{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
  .brand img{height:42px}
  .menu-btn span:not(.menu-btn__bars){display:none}
  .menu-btn__bars{display:inline-flex}
  /* mobile header keeps only the search action; stock chip + language toggle
     move into the menu utility rail (.menu__foot). Scope the hide to the
     header — .lang is shared with the menu, so an unscoped .lang{display:none}
     would clobber the menu's language toggle too. Search stays visible and
     grows to a comfortable ~44px tap target. */
  .header__side--left .langdd{display:none}
  /* …and reveal the menu's utility rail so they live here instead (see .menu__foot) */
  .menu__foot{display:flex}
  .header__side--right .icon-btn{width:44px; height:44px}
  .header__side--right .icon-btn svg{width:22px; height:22px}
  .menu{width:100%}
  /* footer stacks: panel becomes full width, docked to bottom */
  .footer__grid{grid-template-columns:1fr}
  /* brand column — center everything on mobile */
  .footer__brand{padding:0 0 clamp(36px,8vw,48px); text-align:center}
  .footer__logo{margin-inline:auto}                    /* block img (img{display:block}) → text-align can't center it */
  .footer__brand h2{margin-inline:auto}
  .footer__addr{gap:12px}                              /* loc/phone/mail = ONE cluster, siết lại (margin-top:30px vẫn tách cụm rõ) */
  .footer__addr > *{justify-content:center; text-align:center}
  .footer__social{justify-content:center}
  /* 42×42 hụt mốc chạm 44×44 — lỗi lặp ở CẢ 21 trang, nhiều nhất toàn đợt rà
     soát. Chỉ nâng trong media query này: desktop dùng chuột, giữ nguyên 42px
     nên bố cục footer desktop không đổi một pixel. */
  .footer__social a{width:44px; height:44px}
  /* 09/09/2026 · khách "khung chứng khoán lệch trái": thẻ width:fit-content nằm
     trong cột text-align:center — text-align KHÔNG canh được hộp block, phải
     margin-inline:auto (cùng bẫy với logo ở trên). */
  .footer__stock{align-items:center; margin-inline:auto}
  /* sitemap — slimmer side padding + tighter rows so the 2-col list reads clean */
  .footer__sitemap{border-radius:12px 12px 0 0; padding:clamp(32px,6vw,44px) clamp(18px,4.5vw,28px)}
  .footer__groups{grid-template-columns:repeat(2,1fr); gap:22px 16px}
  .fgroup__h{margin-bottom:8px}
  .fgroup ul{gap:6px}
}
/* 09/09/2026 · khách (tablet dọc) vòng 3: "footer phần trên chưa ok, chỉnh giống
   layout mobile" → BỎ bố cục 2 cột (cụm trái + thẻ cổ phiếu) đã thử ở 2 vòng trước;
   561–860 dùng lại bản mobile canh giữa (rule ≤860 phía trên), thẻ cổ phiếu rộng
   full nhưng cap 520px canh giữa; chỉ giữ sitemap 3 cột. */
@media (min-width:561px) and (max-width:860px){
  .footer__stock{width:100%; max-width:420px; margin-inline:auto}   /* vòng 4: "ngắn lại chút" 520 → 420 */
  .footer__groups{grid-template-columns:repeat(3,1fr); gap:22px 18px}
}
@media (max-width:560px){
  .footer__sitemap{padding:28px clamp(16px,4vw,20px)}
  .footer__groups{gap:20px 14px}
  .fgroup a{font-size:13.5px; line-height:1.4}   /* 09/09: khách "mobile giảm size menu con 1 chút" (15 → 13.5) */
  .footer__stock{width:100%; max-width:none}   /* 09/09: khách "mobile cổ phiếu bằng width khung xanh (sitemap) bên dưới" */
  /* 09/09 · khách "giảm khoảng cách menu ở footer": nhóm↔nhóm 20 → 14, tiêu đề↔link 8 → 5, link↔link 3 → 1 */
  .footer__groups{gap:14px 12px}
  .fgroup__h{margin-bottom:5px}
  .fgroup ul{gap:1px}
}

/* =====================================================   MICRO-ANIMATIONS (FM) — link hover: SÁNG LÊN + NHÍCH PHẢI.
   (thay cho underline wipe cũ) · transform/color/opacity only ·
   reduced-motion an toàn.
   ============================================================ */
.footer__legal a, .fgroup a, .menu__tagline a, .link-inline{
  transition:color var(--t-1) var(--ease), transform var(--t-1) var(--ease), opacity var(--t-1) var(--ease);
}
.footer__legal a:hover, .fgroup a:hover, .menu__tagline a:hover, .link-inline:hover{
  transform:translateX(4px);   /* nhích phải; màu sáng do rule riêng bên dưới lo */
}
/* link generic trên nền sáng (template subpage) → sáng lên = brand green.
   Footer link đã tự brighten về #fff ở .footer__legal a:hover / .fgroup a:hover. */
.menu__tagline a:hover, .link-inline:hover{ color:var(--green); }

/* =====================================================   INTRO PRELOADER — vector trại cao tầng · logo DƯƠNG BẢN · % PHẢI-DƯỚI
   FB 07/07: bỏ video flycam ("giống KCN/BĐS") → intro.svg mô hình trại
   heo cao tầng (bản không heo), mood hi-tech. 3 popup Feed–Farm–Food
   pop theo % tải (JS gắn .is-p1/2/3). GPU (opacity/transform).
   ============================================================ */
.intro{
  position:fixed; inset:0; z-index:var(--z-preloader); background:var(--green-forest);
  overflow:hidden; opacity:1; visibility:visible;
  transition:opacity .7s var(--ease) .08s, visibility .7s var(--ease) .08s;   /* fade LÙI nhẹ + dài hơn = tan ÊM, không tắt phẳng */
}
/* GĐ2 THE REVEAL — chạm 100%: khu trại SÁNG BỪNG, glow nở, thanh tiến trình tan.
   Sáng bằng OPACITY (không filter brightness/saturate — tránh re-raster SVG nặng lúc chốt). */
.intro.is-full .intro__bg{opacity:.9; transition:opacity var(--t-3) var(--ease)}
.intro.is-full .intro__glow{opacity:1; transition:opacity var(--t-3) var(--ease)}
/* GĐ3 ZOOM-XUYÊN vào home — TINH CHỈNH cho MƯỢT: CHỈ .intro (cha) lo FADE một lần
   (BỎ opacity trên scene/core → hết cộng-dồn mờ khiến intro "biến mất" sớm); scene +
   lõi CHỈ scale (push về phía người xem, lõi nhỉnh hơn = gần hơn) cùng --ease và CÙNG
   transform-origin 50% 50% với home reveal → tiêu điểm KHÔNG nhảy, liền một cú máy. */
.intro.is-done{opacity:0; visibility:hidden; pointer-events:none}
.intro.is-done .intro__scene{transform:scale(1.09); transition:transform var(--t-5) var(--ease)}
.intro.is-done .intro__core {transform:translate(-50%,-50%) scale(1.13); transition:transform var(--t-5) var(--ease)}

/* ---------- SCENE: các lớp chiều sâu ---------- */
.intro__scene{position:absolute; inset:0; z-index:0; transform-origin:50% 50%}
/* KHÔNG animate blur/saturate (FB 07/08 "nặng quá, giật lag, số nhảy 0→93"): animate
   blur trên SVG 1.5MB fullscreen = re-raster mỗi frame → nghẽn compositor ~2s làm
   counter đói rAF → nhảy cóc. Giờ chỉ opacity + scale (thuần GPU, nhẹ). */
.intro__bg{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 62%;
  opacity:.7; will-change:transform,opacity;
  animation:introBg 1.6s var(--ease) both}
@keyframes introBg{
  from{opacity:0; transform:scale(1.06)}
  to  {opacity:.7; transform:scale(1)}
}
/* Cột sáng lên-xuống nay do VIDEO (.intro__bg = <video>) đảm nhận — xem index.html.
   Video decode ở media pipeline + layer GPU riêng → mượt, không re-raster như SVG-in-img.
   .intro__bg (object-fit/opacity/animation introBg) áp DÙNG CHUNG cho cả <img> & <video>. */
/* LÕI SÁNG sau lõi tiêu điểm — blend SCREEN chỉ CỘNG sáng. Nhiều mốc màu → hết
   "vệt vòng tròn đồng tâm" (FB 07/08 gradient mượt hơn, chiều sâu vô cực). */
.intro__glow{position:absolute; left:50%; top:31%; width:120vmax; height:120vmax; transform:translate(-50%,-50%);
  border-radius:50%; mix-blend-mode:screen; pointer-events:none;
  background:radial-gradient(circle at 50% 50%,
    rgba(39,174,96,.4) 0%, rgba(39,174,96,.27) 20%, rgba(39,174,96,.13) 42%,
    rgba(39,174,96,.045) 60%, transparent 76%);
  animation:introGlow 1s var(--ease) both;}
@keyframes introGlow{ from{opacity:0} to{opacity:.85} }   /* opacity-only: blend layer khỏi re-composite khi scale */
/* VIGNETTE tối rìa — blend MULTIPLY dồn mắt vào giữa (đẩy nền ra sau) */
.intro__vignette{position:absolute; inset:0; pointer-events:none; mix-blend-mode:multiply;
  background:radial-gradient(125% 95% at 50% 50%, transparent 42%, rgba(1,25,13,.5) 100%)}

/* ---------- LÕI TIÊU ĐIỂM: GOM logo · 3F · bar · % thành 1 khối giữa ---------- */
.intro__core{
  position:absolute; left:50%; top:27%; z-index:2; transform:translate(-50%,-50%);  /* logo + 3 chữ LÊN PHÍA TRÊN, tách khỏi khu trại chính */
  display:flex; flex-direction:column; align-items:center; text-align:center;
  gap:clamp(22px,4vh,42px); width:min(430px,84vw);
}
/* logo DƯƠNG BẢN (màu gốc) trên chip trắng — drop-in + settle */
.intro__logo{
  width:min(240px,60vw); height:auto;
  background:#fff; padding:clamp(12px,1.8vw,18px) clamp(16px,2.4vw,24px);
  border-radius:clamp(12px,1.6vw,18px); box-shadow:0 18px 46px rgba(0,26,12,.34);
  /* vào 1 lần rồi TRÔI khẽ lên-xuống mãi (introFloatUp). Cả 2 anim đều là transform;
     introFloatUp bắt đầu ở rest (0) nên bàn giao từ introLogo không giật. */
  animation:introLogo .7s var(--ease) both .1s, introFloatUp 6.5s ease-in-out 1.1s infinite;
}
@keyframes introLogo{
  from{opacity:0; transform:translateY(20px) scale(.96)}    /* RISE từ dưới — tịnh tiến lên */
  to  {opacity:1; transform:translateY(0)    scale(1)}
}
/* TRÔI TỊNH TIẾN NHẸ (FB 2026-07-08 (2)) — logo & cụm 3F trôi NGƯỢC chiều nhau,
   biên độ nhỏ + chu kỳ lệch → chiều sâu parallax, "sống" mà không giành chú ý.
   Mốc 0%/100% = rest nên nối liền mạch từ animation vào, loop không nhảy. */
@keyframes introFloatUp{
  0%,100%{transform:translate3d(0,0,0)}
  50%    {transform:translate3d(0,-7px,0)}
}
@keyframes introFloatDown{
  0%,100%{transform:translate3d(0,0,0)}
  50%    {transform:translate3d(0,6px,0)}
}
/* NHỊP 3F — Feed·Farm·Food bật lần lượt theo % (JS .is-on). Chấm sáng + nhãn rõ dần;
   màu nâu · xanh · đỏ = mạch giá trị BAF thay cho con số vô nghĩa. */
.intro__3f{display:flex; align-items:center; justify-content:center; gap:clamp(14px,3vw,30px);
  animation:introLogo .6s var(--ease) both .2s, introFloatDown 7.8s ease-in-out 1.2s infinite}
.intro__f{--fc:#fff; display:inline-flex; align-items:center; gap:.5em;
  font-size:clamp(17px,3vw,28px); font-weight:800; letter-spacing:.1em; text-transform:uppercase;
  color:rgba(255,255,255,.32);
  transition:color var(--t-3) var(--ease), transform var(--t-3) var(--ease);
  transform:translateY(12px) scale(.97)}   /* nghỉ: chìm nhẹ dưới slot */
.intro__f i{width:11px; height:11px; border-radius:50%; background:rgba(255,255,255,.2);
  box-shadow:0 0 0 0 var(--fc); transition:background var(--t-3) var(--ease), box-shadow var(--t-4) var(--ease)}
.intro__f.is-on{color:#fff; transform:translateY(0) scale(1.06)}   /* THẮP: tịnh tiến LÊN + to + sáng */
.intro__f.is-on i{background:var(--fc); box-shadow:0 0 18px 3px var(--fc)}
.intro__f--feed{--fc:#8A6A4A}   /* NÂU (bản sáng, đọc rõ trên nền forest) */
.intro__f--farm{--fc:#27AE60}   /* XANH sáng */
.intro__f--food{--fc:#EB1C24}   /* ĐỎ */
.intro__f--fertilizer{--fc:#E0A526}   /* VÀNG ĐẤT — mắt xích thứ 4, phân bón tuần hoàn (khách 2026-11-13) */
/* 4 chữ không vừa một hàng ở điện thoại → cho xuống dòng, thu cỡ chữ */
.intro__3f{flex-wrap:wrap; row-gap:10px}
.intro__core{width:min(680px,92vw)}   /* 430 → 680: đủ chỗ 4 chữ một hàng trên desktop */
@media (max-width:560px){ .intro__3f{gap:10px 16px} .intro__f{font-size:15px; letter-spacing:.08em} }

/* ---------- TIẾN TRÌNH góc dưới: thanh chạy trái→phải + số 0–99 góc phải ----------
   Neo cứng đáy màn hình, TÁCH khỏi .intro__core nên KHÔNG bị zoom-in cuốn theo lúc thoát.
   .intro__bar-fill chỉ transform:scaleX (GPU, không reflow width) — JS ghi --p 0→1.
   Số bám cùng --p (JS đếm 0→99). Tan mờ khi is-full/is-done. */
.intro__meter{
  position:absolute; left:0; right:0; bottom:0; z-index:3; pointer-events:none;
  display:flex; align-items:center; justify-content:flex-end;
  padding:0 clamp(18px,4vw,54px) clamp(16px,2.4vw,30px);
  opacity:0; animation:introMeterIn .7s var(--ease) .35s both;
}
.intro__bar{
  position:absolute; left:0; right:0; bottom:0; height:3px;
  background:rgba(255,255,255,.14); overflow:hidden;
}
.intro__bar-fill{
  display:block; height:100%; width:100%; transform-origin:0 50%;
  transform:scaleX(var(--p,0)); will-change:transform;
  background:linear-gradient(90deg,var(--brown-soft) 0%,var(--green-bright) 52%,var(--red) 100%);   /* dải 3F nâu→xanh→đỏ */
  box-shadow:0 0 14px 1px rgba(39,174,96,.45);
}
.intro__count{
  font-size:clamp(30px,6vw,58px); font-weight:800; line-height:1;
  letter-spacing:.02em; color:#fff; font-variant-numeric:tabular-nums;
  text-shadow:0 2px 20px rgba(0,0,0,.35);
}
.intro__count::after{content:'%'; font-size:.42em; font-weight:700; vertical-align:top;
  margin-left:.12em; opacity:.6}
@keyframes introMeterIn{ from{opacity:0; transform:translateY(8px)} to{opacity:1; transform:translateY(0)} }
/* Chạm 100% (is-full) hoặc thoát (is-done): tiến trình tan, nhường chỗ reveal khu trại. */
.intro.is-full .intro__meter,
.intro.is-done .intro__meter{opacity:0; transition:opacity var(--t-3) var(--ease)}

/* ---------- ZOOM-IN LIÊN KẾT vào HOME (FB 07/08 "zoom nhẹ vào homepage để liên kết") ----------
   Khi intro thoát (phóng to + mờ), nội dung home "tiến vào": scale 1.045→1 + fade.
   overflow-x:hidden chặn thanh cuộn ngang chớp lúc scale>1. JS gỡ class sau ~0.75s. */
body.home-reveal{overflow-x:hidden}
body.home-reveal .main{animation:homeReveal .85s var(--ease) both; transform-origin:50% 50%}   /* origin KHỚP scene intro (50% 50%) → tiêu điểm liền mạch, không giật */
@keyframes homeReveal{
  from{opacity:.55; transform:scale(1.025)}   /* NHẸ: settle 1.025→1 + fade dịu (đỡ tối→bừng) → êm, không "nặng" */
  to  {opacity:1;    transform:scale(1)}
}

/* ---------- reduced-motion ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important}
  .reveal{opacity:1; transform:none; filter:none}
  body.home-reveal .main{animation:none}
  .gc-btn{animation:none}   /* shake off; scroll-progress trace still works (scroll-driven) */
  .intro{display:none}            /* không chạy video intro khi giảm chuyển động */
}

/* =====================================================   MỐI NỐI SECTION (CHỦ YẾU CHO TRANG CHỦ)
   QUY TẮC (DESIGN-SYSTEM.md §5): không để 2 section giáp nhau bằng CẠNH
   THẲNG khác màu. Nối bằng 1 trong 3 công cụ:
     · .grass-join — cỏ kết nối (treeline) cho mối nối vào khối XANH ĐẬM
     · .flow-ramp  — dải gradient bắc cầu giữa 2 wash sáng
     · .wave-sep   — sóng + quầng overlay (--soft) — xem §NATURAL-FLOW
   ⚠ TRANG CON không cần: nền gradient liên tục trên .subpage .main + wash
   trong suốt (2026-07-15) nên không có cạnh màu; .subpage .flow-ramp còn bị
   display:none. Hiệu ứng SCROLL PHỦ (sticky reveal) đã GỠ 2026-07-22.
   ============================================================ */

/* CỎ KẾT NỐI dùng chung — tổng quát hoá .video-treeline/.footer-treeline
   (index.css/common.css) thành 1 component. SIBLING ngay TRƯỚC section đích:
   margin âm = chiều cao → dải trùm đáy section trên, không đẩy layout.
   --gj-fill = màu section XANH ĐẬM mà thân cỏ chìm vào (mặc định --green-deep). */
.grass-join{
  --gj-h:clamp(38px,4.2vw,68px);       /* cùng knob với .footer-treeline */
  --gj-fill:var(--green-deep);
  position:relative; z-index:2;
  isolation:isolate;                   /* soft-light của texture chỉ trộn trong dải */
  width:100%; height:var(--gj-h);
  margin-top:calc(-1 * var(--gj-h));   /* trùm đáy section trên, không đẩy xuống */
  margin-bottom:-1px;                  /* xoá hairline khi gặp section đích */
  pointer-events:none;
  background:var(--gj-fill);
  /* mask: đáy đặc = thân (nối vào section dưới), đỉnh răng cưa = lộ section trên */
  -webkit-mask:url(../images/treeline-mask.slim.svg) bottom center/100% 100% no-repeat;
          mask:url(../images/treeline-mask.slim.svg) bottom center/100% 100% no-repeat;
}
/* cùng texture cỏ như .grass-tex — thân dải liền một mặt với section đích */
.grass-join::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:url(../images/grass-texture.jpg) center/cover;
  opacity:.13; mix-blend-mode:soft-light;
  -webkit-mask:url(../images/treeline-mask.slim.svg) bottom center/100% 100% no-repeat;
          mask:url(../images/treeline-mask.slim.svg) bottom center/100% 100% no-repeat;
}
/* --flip: mối nối TỐI→SÁNG (răng chĩa xuống). Đặt SAU section tối, TRƯỚC section
   sáng; margin-bottom âm kéo section dưới lên trùm sau dải (cơ chế .intro-treeline). */
.grass-join--flip{
  margin-top:-1px;
  margin-bottom:calc(-1 * var(--gj-h));
  transform:scaleY(-1);
}

/* --soft: cỏ kết nối SÁNG→SÁNG — thân cỏ mang màu section ĐÍCH (đặt inline
   --gj-fill = màu section dưới, vd var(--sand)). Hai nền sáng gần màu nên
   thêm viền cỏ mảnh bằng drop-shadow (bám theo silhouette đã mask, không bị
   cắt) cho mối nối vẫn đọc được; texture soft-light vô hình trên nền sáng
   → chuyển multiply rất nhẹ (cùng lý do .grass-tex trên section sáng). */
.grass-join--soft{
  filter:drop-shadow(0 -1px 0 var(--green-line)) drop-shadow(0 -8px 16px rgba(4,40,20,.08));
}
/* vân neo VIEWPORT (fixed) cùng công thức section sáng — thân cỏ liền vân
   với section đích, không lệch scale tại đường butt-join */
.grass-join--soft::after{mix-blend-mode:multiply; opacity:.035; background-attachment:fixed}

/* DẢI GRADIENT BẮC CẦU — block trong flow đặt GIỮA 2 section wash sáng.
   --from = màu section trên · --to = màu section dưới (đặt inline qua style="").
   Mắt trôi qua mối nối thay vì gặp cạnh màu. */
.flow-ramp{
  position:relative;
  width:100%; height:clamp(48px,6vw,96px);
  margin-top:-1px; margin-bottom:-1px;   /* nuốt khe hairline 2 đầu */
  pointer-events:none;
  background:linear-gradient(180deg, var(--from,transparent) 0%, var(--to,transparent) 100%);
}
/* vân cỏ CHẠY XUYÊN ramp — cùng công thức fixed/multiply .05 với blanket
   rule .subpage .section::before (§GRASS TRÊN SECTION SÁNG): thiếu nó,
   ramp thành dải "sạch vân" giữa 2 section có vân → đọc như lỗi texture.
   chừa 1px MÉP DƯỚI: margin-bottom:-1px kéo section KẾ (nền trong suốt +
   vân riêng) đè lên px cuối của ramp — nếu ramp cũng vẽ vân ở đó thì
   multiply×multiply thành đường kẻ tối 1px. Mép TRÊN giữ 0: ramp (vẽ sau)
   che px cuối của section trước nên phải tự mang vân từ px đầu tiên. */
.flow-ramp{isolation:isolate}
.flow-ramp::after{
  content:""; position:absolute; inset:0 0 1px; pointer-events:none;
  background:url(../images/grass-texture.jpg) center/cover no-repeat fixed;
  opacity:.035; mix-blend-mode:multiply;
}

/* SCROLL PHỦ (sticky reveal) — ĐÃ GỠ 2026-07-22 theo yêu cầu client: kiểu
   cuộn "section sau trượt lên đè section trước" không dùng nữa trên trang con.
   Các trang giờ cuộn tuyến tính bình thường, mối nối xử lý bằng
   .grass-join / .flow-ramp / .wave-sep (§MỐI NỐI). Đừng tái lập .fx-pinwrap /
   .fx-pin / .fx-cover. */

/* =====================================================   NATURAL-FLOW DECOR SYSTEM (dùng lại toàn trang)
   Sóng chuyển tiếp · nền ấm · blob decor tạo chiều sâu.
   Triết lý: xoá ranh giới "khung chữ nhật" giữa các section —
   màu section dưới "chảy" lên đáy section trên bằng dải sóng.
   ============================================================ */

/* section warm-wash — thay nền trắng đặc */
.section--cream{background:var(--cream)}
.section--sand{background:var(--sand)}
.section--soft{background:var(--green-soft)}

/* wave divider — SVG sóng đặt tràn ngang, absolute ở mép section.
   fill của <path> = màu section KẾ TIẾP (đặt qua --wave-fill) nên
   trông như màu đó tràn lên. preserveAspectRatio:none → co giãn full-width. */
.wave-divider{
  position:absolute; left:0; right:0; z-index:2;
  width:100%; height:var(--wave-h);
  line-height:0; pointer-events:none;
}
.wave-divider svg{display:block; width:100%; height:100%}
.wave-divider svg path{fill:var(--wave-fill,#fff)}
.wave-divider--bottom{bottom:-1px}                 /* -1px: che khe sub-pixel */
.wave-divider--top{top:-1px; transform:scaleY(-1)} /* lật để sóng úp xuống */

/* blob decor — vệt gradient mờ tạo chiều sâu, luôn nằm SAU content */
.deco-blob{
  position:absolute; z-index:0; pointer-events:none;
  width:clamp(320px,46vw,680px); aspect-ratio:1;
  border-radius:50%;
  background:var(--blob-green);
  filter:blur(12px); opacity:1;
}
.deco-blob--brown{background:var(--blob-brown)}
.deco-blob--sand{background:var(--blob-sand)}

/* wave-sep — dải sóng ĐỘC LẬP đặt GIỮA 2 section (block trong flow).
   --top = màu section trên (nền của block) · --bot = màu section dưới
   (fill của path, "dâng" lên). Tự chứa, không phụ thuộc overflow section. */
.wave-sep{
  position:relative; z-index:1;
  width:100%; height:var(--wave-h);
  line-height:0; margin:0;
  background:var(--top,transparent);
}
/* Thanh nền màu --bot LÓT đáy divider (sau treeline): mép dưới SVG (viền AA) và khe
   giáp section được nền cùng màu --bot đỡ → xanh-liền-xanh, hết đường kẻ ở giữa. */
.wave-sep::before{
  content:""; position:absolute; left:0; right:0; bottom:0; height:16px;
  background:var(--bot,transparent); z-index:0;
}
/* fill đặt trên <svg> để KẾ THỪA vào nội dung <use>/<symbol> (selector path
   không xuyên được shadow tree của <use>); nội dung symbol không set fill riêng. */
.wave-sep svg{display:block; position:relative; z-index:1; width:100%; height:100%; fill:var(--bot,#fff)}
.wave-sep svg path{fill:var(--bot,#fff)}
/* overlap — kéo sóng lên đè mép section trên (dùng cho hero→3F: xanh cắn vào ảnh) */
.wave-sep--overlap{
  background:transparent;
  margin-top:calc(-1 * var(--wave-h) + 1px);
  z-index:3;
}
/* soft — sóng cao & thoải hơn cho các mối nối giữa trang (uốn lượn mềm mại);
   thêm quầng sáng mờ ở đáy sóng → nếp gấp có chiều sâu, không phẳng lì. */
.wave-sep--soft{ --wave-h:clamp(96px,12vw,184px); isolation:isolate }
.wave-sep--soft::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:46%;
  background:linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0));
  mix-blend-mode:soft-light; pointer-events:none;
}

/* =====================================================   FILM GRAIN — ĐÃ GỠ site-wide (2026-07-08 subpage-polish-sync).
   Trang chủ (clean/smooth R4) đã tắt lớp nhiễu này vì client chê "thô";
   nay đồng bộ ngôn ngữ "clean" đó ra 20 subpage → gỡ hẳn body::after grain
   khỏi layer chung thay vì chỉ tắt ở body.homepage. (Mobile vốn đã tắt.)
   ============================================================ */

/* =====================================================   GRASS-TEX — lớp texture cỏ tự nhiên, rất mờ (soft-light), phủ nền
   các khối XANH ĐẬM để tạo cảm giác thiên nhiên. Đặt trên phần tử đã
   position + overflow-hidden; nội dung (sibling sau ::before) tự nằm trên.
   ============================================================ */
.grass-tex{position:relative; isolation:isolate}
.grass-tex::before{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  /* texture NEO theo VIEWPORT (attachment:fixed) → cùng một tấm cỏ cho mọi khối xếp
     chồng (section + treeline divider) → texture liền mạch qua mối nối, không lệch. */
  background:url(../images/grass-texture.jpg) center/cover no-repeat;
  opacity:.13; mix-blend-mode:soft-light;
}
.grass-tex > *{position:relative}
/* menu overlay là position:fixed (ngoài flow) — grass-tex không được ép về relative,
   nếu không panel ẩn vẫn chiếm chỗ → tạo khoảng trống lớn trên trang. */
.menu.grass-tex{position:fixed}

/* wave-sep--grass — divider nối vào section XANH ĐẬM có cỏ: phủ CÙNG texture cỏ
   lên đúng hình treeline (mask) → cây cỏ chính là mặt section → nối liền mạch. */
.wave-sep--grass::after{
  content:""; position:absolute; inset:0; height:auto; z-index:1; pointer-events:none;
  /* PHỦ TOÀN treeline — ghi đè height:46% rò rỉ từ .wave-sep--soft::after (nếu không grass
     bị cắt ở 46% → tạo đường ngang trắng). background cỏ ghi đè luôn vệt sáng của --soft. */
  background:url(../images/grass-texture.jpg) center/cover;
  opacity:.13; mix-blend-mode:soft-light;
  -webkit-mask:url(../images/treeline-mask.slim.svg) center/100% 100% no-repeat;
          mask:url(../images/treeline-mask.slim.svg) center/100% 100% no-repeat;
}

/* =====================================================   GRASS TRÊN SECTION SÁNG — TRANG CON (.subpage), một nguồn chân lý
   Homepage phủ cỏ 2 công thức: khối TỐI = .grass-tex (soft-light .13),
   section SÁNG = multiply .05 (soft-light vô hình trên nền sáng — xem
   index.css "TEXTURE CỎ — SECTION NỀN SÁNG"). Trang con toàn section
   nền sáng (trắng/cream/sand/mint/sage) → dùng chung công thức multiply
   cho MỌI .section; khối tối duy nhất (pb-netzero) đã mang
   .grass-tex sẵn và không có class .section nên không dính rule này.
   page-hero không phải .section — banner giữ mặt phẳng poster.

   :where() → specificity ≈ 0: KHÔNG đè position/isolation riêng của CSS
   trang (qh-events…).
   z-index:-1 + isolation:isolate → texture nằm TRÊN nền section nhưng
   DƯỚI toàn bộ nội dung, kể cả con static — không cần lift `> *`
   (tránh vết xe đổ .grass-tex > * đè con absolute).
   attachment FIXED = đúng ý đồ .grass-tex: cùng MỘT tấm cỏ neo viewport
   cho mọi khối → nét (ảnh 1100×733 không bị cover phóng theo section
   dài) + vân liền mạch qua butt-join giữa các section sáng. */
.subpage :where(.section:not(.grass-tex)){position:relative; isolation:isolate}
.subpage :where(.section:not(.grass-tex))::before{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:url(../images/grass-texture.jpg) center/cover no-repeat fixed;
  opacity:.035; mix-blend-mode:multiply;
}


/* =====================================================   SHARED COMPONENT LIBRARY  ·  page-agnostic blocks for SUBPAGES
   Moved here from index.css so any page (not just the homepage) can
   use them by linking tokens.css + common.css. None of these appear
   in the homepage markup — see _subpage-template.html for usage.
     · .stat / .m-stats items  — KPI numbers (generic)
     · .m-vmv / .vcard         — Vision·Mission·Values sticky cards
     · .m-scale                — stats / proof band
     · .m-sustain / .scard     — 3-pillar ESG cards
   ============================================================ */

/* ---- KPI stat (generic; .m-stats layout panel is homepage-specific) ---- */
.stat {
  padding-bottom: clamp(16px, 1.8vw, 22px)
}

.stat+.stat {
  border-top: 1px solid rgba(255, 255, 255, .2);
  padding-top: clamp(16px, 1.8vw, 22px);
  padding-bottom: 0
}

.stat__num {
  font-size: clamp(40px, 3.6vw, 56px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -.01em
}

/* số giữ nguyên kích thước trong suốt lúc đếm (bỏ hiệu ứng pop to→nhỏ) */
.stat__num .js-count {
  display: inline-block
}

.stat__num .u {
  font-size: .55em;
  font-weight: 700;
  color: #fff
}

.stat__label {
  margin-top: 6px;
  font-size: clamp(12.5px, .9vw, 14px);
  color: rgba(255, 255, 255, .85);
  line-height: 1.3;
  font-weight: 600
}

/* =====================================================   S4 · TẦM NHÌN · SỨ MỆNH · GTCL — sticky stacked cards
   ============================================================ */
.m-vmv {
  --vcard-open: clamp(320px, 29vw, 408px);
  --vcard-closed: 64px;
  --vcard-gap: 12px;
  position: relative;
  background: linear-gradient(180deg, var(--flow-sage1) 0%, var(--flow-sage2) 100%);
  padding-block: clamp(68px, 8vw, 108px);
}

.m-vmv .container {
  position: relative;
  min-height: calc(100vh + var(--vcard-open) + var(--vcard-closed) * 2 + 220px);
}

.vmv-cards {
  position: sticky;
  top: calc(var(--head-h) + clamp(18px, 3vw, 42px));
  display: grid;
  gap: var(--vcard-gap);
  width: 92%;
  max-width: 1518px; /* was 1380; +10% to track --maxw */
  margin-inline: auto;
}

.vcard {
  position: relative;
  display: grid;
  grid-template-columns: 44% minmax(0, 56%);
  column-gap: clamp(40px, 4vw, 60px);
  align-items: stretch;
  height: var(--vcard-closed);
  border-radius: var(--r-card);   /* FB bo góc 08/05 vòng 2: 8px → 16px theo chuẩn home */
  overflow: hidden;
  isolation: isolate;
  background: var(--vc);
  color: #fff;
  box-shadow: 0 12px 32px rgba(16, 22, 15, .08);
  transform: translateY(0);
  opacity: .96;
  transition: height var(--t-4) var(--ease), transform var(--t-4) var(--ease), opacity var(--t-3) var(--ease), box-shadow var(--t-4) var(--ease), border-radius var(--t-4) var(--ease);
}

.vcard.is-active {
  height: var(--vcard-open);
  opacity: 1;
  transform: translateY(-4px);
  border-radius: 18px;   /* nhỉnh hơn base 16px một nấc — giữ nguyên "độ nở" cũ (8→10) */
  box-shadow: 0 20px 46px rgba(16, 22, 15, .16);
}

.vcard:not(.is-active) {
  cursor: default
}

.vcard--vision {
  --vc: #008A43
}

.vcard--mission {
  --vc: #80331A
}

.vcard--values {
  --vc: #EB1C24
}

/* MEDIA — line-art icon panel; icon centered, capped near source size (391px) */
.vcard__media {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-3) var(--ease)
}

.vcard.is-active .vcard__media {
  opacity: 1;
  pointer-events: auto
}

.vcard__media img {
  width: min(52%, 280px);
  height: auto;
  max-height: 72%;
  object-fit: contain;
  opacity: .92;
  transform: none !important;
  transition: none !important
}


/* CONTENT — own solid-color panel, vertically centered, fixed reading width */
.vcard__body {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding: 0 clamp(28px, 3vw, 46px);
  transition: padding var(--t-4) var(--ease), transform var(--t-4) var(--ease);
}

.vcard.is-active .vcard__body {
  grid-column: 2;
  align-items: flex-start;
  padding: clamp(36px, 3.2vw, 44px);
  max-width: 460px;
}

.vcard__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, .78);
}

.vcard.is-active .vcard__label {
  text-align: left
}

.vcard:not(.is-active) .vcard__label {
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  transform: translateX(calc(.16em / -2));
}

.vcard__title {
  font-size: clamp(16px, 1.75vw, 21px);
  font-weight: 700;
  line-height: var(--lh-title);
  letter-spacing: -.01em;
  color: #fff;
  max-width: 18ch;
}

.vcard.is-active .vcard__title {
  max-width: 420px;
  margin-top: 16px;
}

.vcard:not(.is-active) .vcard__title {
  display: none
}

.vcard__desc {
  margin: 0;
  max-width: 420px;
  font-size: clamp(13.5px, .92vw, 15px);
  line-height: 1.78;
  font-weight: 500;
  color: rgba(255, 255, 255, .9);
  transition: opacity .34s var(--ease), visibility 0s linear .34s, transform .42s var(--ease), max-height .58s var(--ease), margin .58s var(--ease);
}

.vcard .vvals {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  max-width: 440px;
  transition: opacity .34s var(--ease), visibility 0s linear .34s, transform .42s var(--ease), max-height .58s var(--ease), margin .58s var(--ease);
}

.vcard.is-active .vcard__desc,
.vcard.is-active .vvals {
  margin-top: 24px;
}

.vcard .vvals li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  list-style: none;
  color: rgba(255, 255, 255, .9);
  font-size: 13.5px;
  line-height: 1.62
}

.vcard .vvals b {
  font-size: 13px;
  min-width: 42px;
  color: #fff;
  font-weight: 700;
  letter-spacing: .04em
}

.vcard__desc,
.vcard .vvals {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  max-height: 0;
  overflow: hidden;
  transition: opacity .34s var(--ease), visibility 0s linear .34s, transform .42s var(--ease), max-height .58s var(--ease);
}

.vcard.is-active .vcard__desc,
.vcard.is-active .vvals {
  opacity: 1;
  visibility: visible;
  transform: none;
  max-height: 240px;
  transition-delay: 0s;
}

/* ICON — anchored near the heading, never drives card height */
.section-icon {
  position: absolute;
  z-index: 1;
  right: clamp(28px, 3vw, 48px);
  top: clamp(56px, 5vw, 70px);
  width: clamp(60px, 5.6vw, 80px);
  display: grid;
  place-items: center;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--t-3) var(--ease), transform var(--t-4) var(--ease);
}

.vcard.is-active .section-icon {
  opacity: 1;
  transform: translateY(0)
}

.section-icon img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: .3
}

@media (max-width:1024px) {
  .m-vmv {
    --vcard-open: clamp(286px, 36vw, 348px);
    --vcard-closed: 46px
  }

  .vmv-cards {
    width: 96%
  }

  .vcard {
    grid-template-columns: 42% minmax(0, 58%);
    column-gap: clamp(28px, 3.5vw, 40px);
  }

  .vcard__media img {
    width: min(58%, 220px);
  }

  .vcard__title {
    font-size: clamp(15px, 2.2vw, 19px)
  }

  .section-icon {
    width: clamp(56px, 7vw, 76px)
  }
}

@media (max-width:760px) {
  .m-vmv {
    padding-block: clamp(52px, 12vw, 72px)
  }

  .m-vmv .container {
    min-height: 0
  }

  .vmv-cards {
    position: relative;
    top: auto;
    width: 100%;
    --vcard-open: auto;
    --vcard-closed: auto;
    gap: 14px
  }

  .vcard,
  .vcard.is-active {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    transform: none;
  }

  .vcard__media,
  .vcard.is-active .vcard__media {
    position: relative;
    grid-row: 1;
    opacity: 1;
    aspect-ratio: 16/7;
    pointer-events: auto
  }

  .vcard__media img {
    width: min(38%, 160px);
  }

  .vcard__media::after {
    -webkit-mask: linear-gradient(180deg, rgba(0, 0, 0, .26), rgba(0, 0, 0, .66) 72%, #000);
    mask: linear-gradient(180deg, rgba(0, 0, 0, .26), rgba(0, 0, 0, .66) 72%, #000);
  }

  .vcard__body,
  .vcard.is-active .vcard__body {
    grid-column: 1;
    grid-row: 2;
    align-items: flex-start;
    max-width: none;
    padding: 4px clamp(24px, 7vw, 36px) clamp(26px, 7vw, 34px);
  }

  .vcard__label,
  .vcard:not(.is-active) .vcard__label {
    text-align: left;
    transform: none;
  }

  .vcard__title,
  .vcard:not(.is-active) .vcard__title,
  .vcard.is-active .vcard__title {
    display: block;
    max-width: 24ch;
    margin-top: 12px;
  }

  .vcard:not(.is-active) .vcard__label {
    display: block
  }

  .vcard__desc,
  .vcard .vvals,
  .vcard.is-active .vcard__desc,
  .vcard.is-active .vvals {
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: none;
    max-width: none;
    margin-top: 14px;
  }

  .section-icon {
    right: 24px;
    top: auto;
    bottom: 18px;
    width: 68px;
    opacity: .24;
    transform: none
  }

  .vcard.is-active .section-icon {
    transform: none;
    opacity: .24
  }
}

/* =====================================================   G3 · QUY MÔ & MINH CHỨNG (m-scale) — nền xanh nhạt, số liệu dẫn chứng
   ============================================================ */
.m-scale {
  background: linear-gradient(180deg, var(--flow-sage1) 0%, var(--flow-sage2) 100%)
}

.m-scale__inner {
  display: grid;
  gap: clamp(30px, 4vw, 54px)
}

.m-scale__head {
  max-width: 64ch
}

.m-scale__head .eyebrow {
  display: inline-block;
  margin-bottom: 14px
}

.m-scale__head h2 {
  /* 2026-07-15 · về THANG token section-title chung như home (trước hardcode 54px). */
  font-size: var(--fs-sec-title);
  font-weight: var(--fw-sec-title);
  letter-spacing: var(--ls-title);
  line-height: var(--lh-title)
}

.m-scale__lead {
  margin-top: 18px;
  max-width: var(--maxw-sec-lead);
  color: var(--ink-2);
  font-size: var(--fs-sec-lead);   /* 2026-07-13: token chung phụ đề section */
  line-height: 1.7
}

/* =====================================================   G3 · PHÁT TRIỂN BỀN VỮNG (m-sustain) — 3 trụ cột ESG (green·brown·olive)
   ============================================================ */
.m-sustain {
  background: linear-gradient(180deg, var(--flow-mint1) 0%, var(--flow-mint2) 100%)
}

.m-sustain__head {
  max-width: 64ch;
  margin-bottom: clamp(30px, 4vw, 54px)
}

.m-sustain__head .eyebrow {
  display: inline-block;
  margin-bottom: 14px
}

.m-sustain__head h2 {
  /* 2026-07-15 · về THANG token section-title chung như home (trước hardcode 54px). */
  font-size: var(--fs-sec-title);
  font-weight: var(--fw-sec-title);
  letter-spacing: var(--ls-title);
  line-height: var(--lh-title);
  /* FB4 2026: khối này chép tay thang token của .headline nhưng SÓT text-transform
     → là tiêu đề section duy nhất còn sentence-case ở #quyen-loi và #chien-luoc. */
  text-transform: uppercase
}

.m-sustain__lead {
  margin-top: 18px;
  max-width: var(--maxw-sec-lead);
  color: var(--ink-2);
  font-size: var(--fs-sec-lead);   /* 2026-07-13: token chung phụ đề section */
  line-height: 1.7
}

.sustain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.8vw, 26px)
}

@media (max-width:820px) {
  .sustain-grid {
    grid-template-columns: 1fr
  }
}

.scard {
  position: relative;
  background: var(--card-cream);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 42px);
  display: grid;
  gap: 12px;
  align-content: start;
  overflow: hidden;
  transition: transform var(--t-3) var(--ease), box-shadow var(--t-3) var(--ease)
}

.scard:hover {
  transform: translateY(var(--lift-2));
  box-shadow: 0 18px 40px -24px rgba(16, 22, 15, .42)
}

.scard__no {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  font-size: clamp(44px, 5vw, 72px);
  color: var(--green)
}

.scard--soc .scard__no {
  color: var(--brown)
}

.scard--gov .scard__no {
  color: var(--olive)
}

.scard__title {
  font-size: clamp(16px, 1.8vw, 22px)
}

.scard__desc {
  color: var(--ink-2);
  line-height: 1.7;
  font-size: 16px
}

.scard::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--green)
}

.scard--soc::after {
  background: var(--brown)
}

.scard--gov::after {
  background: var(--olive)
}

.eyebrow--light {
  color: var(--green-mint)
}

/* stats panel tái sử dụng trong m-scale: hàng ngang, tự xếp (không chiếm cột trái như ở Story) */
.m-scale .m-stats {
  display: flex;
  grid-column: auto;
  grid-row: auto;
  width: 100%;
  height: auto;
  flex-direction: row;
  align-self: stretch
}

.m-scale .stat {
  flex: 1;
  padding-bottom: 0
}

.m-scale .stat+.stat {
  border-top: 0;
  border-left: 1px solid rgba(255, 255, 255, .2);
  padding-top: 0;
  padding-left: clamp(20px, 2.2vw, 34px)
}

@media (max-width:640px) {
  .m-scale .m-stats {
    flex-direction: column
  }

  .m-scale .stat+.stat {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .2);
    padding-left: 0;
    padding-top: clamp(16px, 4vw, 22px)
  }
}

/* m-scale nằm trên nền SÁNG (sage gradient) — bộ màu mặc định của .stat được
   viết cho nền tối (3F story trang chủ): số trắng + hairline trắng gần như
   vô hình ở đây. Override mực tối, scope theo .m-scale để mọi subpage hưởng.
   (Đặt SAU media query trên để border-color thắng cả bản mobile.) */
.m-scale .stat__num { color: var(--head) }
.m-scale .stat__num .u { color: var(--green) }
.m-scale .stat__label { color: var(--muted) }
.m-scale .stat+.stat { border-color: var(--green-line) }

/* =====================================================   SUBPAGE PRIMITIVES  ·  page shell pieces the homepage doesn't need
   The homepage opens with a full-bleed video hero; every OTHER page
   opens with a .page-hero (breadcrumb + title + lead). Add <body
   class="subpage"> so .main tucks up under the floating header pill
   exactly like the homepage does.
   ============================================================ */
.subpage .main{
  /* pull content up under the floating pill (mirrors .homepage .main) so the
     .page-hero background fills the band behind the frosted header. */
  margin-top:calc(-1 * (var(--head-h) + 14px));
}

/* NHỊP DỌC TRANG CON (review 07/2026: "khoảng cách giữa các section còn rất
   lớn") — nén ~28% so với token --section và hạ chiều cao dải bắc cầu; các
   module tự khai padding (m-vmv) nén theo cùng tỷ lệ. Trang chủ
   (body.homepage) giữ nhịp thoáng --section. Selector (0,2,0) cố ý thắng
   .section/.flow-ramp (0,1,0) của layer chung theo specificity. */
.subpage .section{padding-block:var(--sec-sub)}
.subpage .m-vmv{padding-block:clamp(56px,7vw,88px)}

/* ---- SIẾT KHOẢNG GIỮA HAI SECTION CÙNG NỀN (2026-08-26 · FB khách) ----------
   Trang con dùng MỘT gradient liên tục ở .subpage .main, mọi .section--cream/
   --sand/--soft đều bị ép trong suốt (xem rule ngay dưới) → hai section liền nhau
   gần như luôn CÙNG MÀU, mà vẫn cộng đủ padding-bottom + padding-top = 96–144px
   trống. Nay siết padding-TOP của section đứng sau xuống --sec-sub-tight.

   Chỉ đụng padding-top của phần tử SAU: giữ nguyên padding-bottom của phần tử
   trước thì section đầu trang và section cuối trang vẫn thở đúng như cũ.

   NGOẠI LỆ — trả lại nhịp đầy đủ ở hai bên một dải TỰ SƠN NỀN. Đây là danh sách
   ĐẦY ĐỦ các section có background riêng trên trang con (soát 26/08); dải nào
   thêm sau phải bổ sung vào đây, nếu không mối nối của nó bị siết oan và ranh
   giới màu dính sát nội dung.
   ⚠ .m-sustain mang CẢ class .section (vd "m-sustain pb-strategy section") nên
   KHÔNG thể dựa vào việc "không phải .section" để nhận diện dải. */
/* Vế TRÁI gồm cả các khối full-bleed trong suốt KHÔNG mang class .section
   (.gt-3f, .htf-era, .lvkd-link) — chúng cũng nằm trên chính
   gradient đó nên mối nối phía sau chúng vẫn là "hai khối cùng màu". */
.subpage :is(.section,.gt-3f,.htf-era,.lvkd-link) + .section{
  padding-top:var(--sec-sub-tight);
}
/* Danh sách DẢI TỰ SƠN NỀN trên trang con (soát 26/08). .aw-trust KHÔNG có ở đây
   vì nó tô nền qua ::before và tự khai padding riêng — không đi qua .section.
   .pb-loop sơn nền TRẮNG (#tuan-hoan) nên cũng là dải, dù hiện có <template>
   chen giữa nó và section sau làm bộ chọn `+` không khớp. */
.subpage .section + :is(.m-sustain,.pb-quote,.pb-netzero,.pb-loop,.htf-vision,.lvkd-meatshop,.section--contact),
.subpage :is(.m-sustain,.pb-quote,.pb-netzero,.pb-loop,.htf-vision,.lvkd-meatshop) + .section{
  padding-top:var(--sec-sub);
}

/* =====================================================   2026-07-15 · ĐỒNG BỘ TRANG CON THEO STYLE HOME (yêu cầu client)
   Home content sections: KHÔNG eyebrow trên tiêu đề · KHÔNG "cỏ kết nối"
   giữa các section · KHÔNG texture cỏ phủ nền section · body copy 16/1.7 ·
   KHÔNG dải treeline rừng tối trước footer (home ẩn nó — index.css 5190).
   Kéo .subpage về đúng đó. GIỮ: banner page-hero, section riêng.
   Toàn bộ scope .subpage → trang chủ KHÔNG đổi. */
/* (1) bỏ eyebrow phụ đề NGAY TRÊN tiêu đề section (theo sau là h2/.headline).
   Tha badge card (vd "Tiêu điểm" ở tin-tuc — theo sau là div, không phải tiêu đề)
   và GIỮ eyebrow trong banner page-hero (legal). */
.subpage .eyebrow:has(+ h2),
.subpage .eyebrow:has(+ .headline){ display:none; }
.subpage .page-hero .eyebrow{ display:inline-block; }
/* (2) bỏ cỏ kết nối giữa các section (home nối bằng màu, không cỏ) */
.subpage .grass-join{ display:none; }
/* (3) bỏ texture cỏ phủ nền section — home để nền sạch */
.subpage :where(.section:not(.grass-tex))::before{ display:none; }
/* (4) body copy 16/1.7 như home (trước: base 18/1.8 + lead 17–19) */
.subpage .section{ font-size:16px; line-height:1.7; }
.subpage .section-lead{ font-size:16px; line-height:1.7; }
/* (5) bỏ dải treeline rừng TỐI trước footer — home ẩn nó (footer về đúng mép
   dark-green sạch như home; dải cỏ ở home là veil đáy m-video, riêng của home) */
.subpage .footer-treeline{ display:none; }
/* (6) bỏ texture cỏ ở NỀN footer (grass-texture .14 soft-light) — footer trang con
   nền dark-green phẳng sạch, không vân cỏ */
.subpage .footer::before{ display:none; }
/* (7) bỏ texture cỏ ở MỌI khối .grass-tex còn lại (pb-netzero…) — trừ MENU
   overlay (dùng chung với home). Item 3 chỉ bỏ ở .section (đã loại trừ .grass-tex). */
.subpage .grass-tex:not(.menu)::before{ display:none; }
/* (8) bỏ dải "flow-ramp" bắc cầu gradient+vân cỏ giữa các section (client: "đoạn
   thừa" → xoá hết). Section kề nhau gặp thẳng, không còn dải chuyển màu có texture. */
/* CHỐT CHẶN: giữ rule này dù markup đã dọn sạch — nếu ai lỡ thêm .flow-ramp
   vào trang con thì nó vẫn không phá nền gradient liên tục. */
.subpage .flow-ramp{ display:none; }
/* (9) NỀN LIÊN TỤC như home (client 2026-07-15): home nền = gradient mint↔trắng
   MƯỢT trên wrapper .home-flow (#E8F4EC↔#FFF), section TRONG SUỐT. Trước đây trang
   con dùng wash ĐẶC → khối màu gặp mép cứng (không liền). Nay: gradient home lên
   .subpage .main + wash trong suốt để nền CHẢY LIỀN qua các section.
   (Ngoại lệ fx-cover cũ đã bỏ cùng sticky reveal, 2026-07-22.) */
.subpage .main{
  background:linear-gradient(180deg, var(--eco) 0%, #FFFFFF 33%, var(--eco) 66%, #FFFFFF 100%);
}
.subpage .section--cream,
.subpage .section--sand,
.subpage .section--soft{ background:transparent; }
/* (bỏ ngoại lệ .fx-cover — sticky reveal đã gỡ 2026-07-22, mọi wash giờ trong suốt như nhau) */

/* PAGE HERO — "BANNER 2026" page opener (poster style, chuẩn hoá mọi trang con):
   sân khấu mint sáng · tiêu đề poster IN HOA nhiều màu · badge đỏ bo góc ·
   dải ruy-băng 3 màu (green→forest→red) ôm breadcrumb ở MÉP DƯỚI banner.
   padding-top clears the sticky pill; padding-bottom chừa chỗ cho ruy-băng. */
.page-hero{
  --crumb-h:clamp(52px,5.2vw,68px);   /* dải đồi cần cao hơn dải phẳng một chút */                       /* chiều cao dải ruy-băng */
  --ph-gap:clamp(22px,2.8vw,38px);                        /* khoảng thở trên ruy-băng — trang con override var này, KHÔNG override padding-bottom */
  --ph-pb:calc(var(--ph-gap) + var(--crumb-h));
  position:relative; isolation:isolate; overflow:hidden;
  padding-top:calc(var(--head-h) + 14px + clamp(18px,2.6vw,34px));
  padding-bottom:var(--ph-pb);
  background:
    radial-gradient(120% 150% at 14% -10%, rgba(255,255,255,.92) 0%, rgba(255,255,255,0) 55%),
    radial-gradient(90% 130% at 86% 6%, rgba(210,238,205,.85) 0%, rgba(210,238,205,0) 62%),
    linear-gradient(180deg, var(--bnr-mint) 0%, var(--bnr-mint2) 58%, var(--bnr-mint3) 100%);
}
.page-hero__inner{position:relative; z-index:1}
/* MỌI BANNER CÙNG CHIỀU CAO: khoá chiều cao vùng nội dung = chiều cao chùm ảnh art.
   padding-top/-bottom của .page-hero giống nhau ở mọi trang, nên inner bằng nhau ⇒
   banner bằng nhau. Trang có ảnh giữ nguyên; trang chỉ-chữ nở lên cho khớp, nội dung căn giữa. */
.page-hero__inner{min-height:clamp(220px,23vw,330px)}
.page-hero:not(.page-hero--art) .page-hero__inner{display:flex; flex-direction:column; justify-content:center}
.page-hero--art .page-hero__inner{align-content:center}
.page-hero .eyebrow{margin-bottom:16px}
/* BADGE — pill nhãn của banner. FB 08/04 (khách đợt 2): lấy ĐÚNG style pill
   danh mục ở section Tin tức trang chủ (.ncard__cat, index.css) — 11px/700,
   letter-spacing .06em, padding 6px 15px, bo tròn hết — chỉ đổi nền sang ĐỎ
   brand. Cỡ chữ giảm so với bản cũ (clamp 12→15px, ls .14em, bo 12px).
   Giữ box-shadow đỏ mềm: pill nằm trên nền mint cần chút nâng khối, khác
   .ncard__cat vốn nằm trên thẻ trắng. */
.page-hero__badge{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--red); color:#fff;
  font-family:var(--font-body); font-weight:700; text-transform:uppercase;
  font-size:11px; letter-spacing:.06em; line-height:1.25;
  padding:6px 15px; border-radius:999px;
  box-shadow:0 16px 34px -18px rgba(235,28,36,.6);
  margin-bottom:clamp(12px,1.4vw,18px);
  /* hero không --art dùng flex-column → align-items mặc định "stretch" kéo badge
     giãn hết bề ngang khối chữ; ép hug-content lại đúng vai trò 1 chip. */
  align-self:flex-start;
}
/* TIÊU ĐỀ POSTER — Plus Jakarta Sans Bold IN HOA, 1 màu xanh brand.
   line-height 1.28 (FB 08/04 khách đợt 2 — nới từ 1.16): chữ HOA tiếng Việt
   có dấu chồng tầng (Ề, Ữ, Ị) nên 1.16 làm hai dòng bị dính, đọc nặng.

   NGẮT DÒNG: từ ghép tiếng Việt viết RỜI bằng dấu cách ("kiến tạo", "mắt
   xích", "trang trại") nên trình duyệt coi mỗi âm tiết là một từ và cắt vô
   tư ở giữa → sai nghĩa. text-wrap:balance KHÔNG cứu được (nó cân độ dài
   dòng, không hiểu ngữ nghĩa). Cách xử lý ở markup: buộc các âm tiết trong
   một từ bằng &nbsp;, KHÔNG chèn <br> cứng — <br> đúng ở desktop sẽ đẻ ra
   dòng thứ 3 cụt ở mobile, còn &nbsp; chỉ cấm chỗ sai và để trình duyệt tự
   chọn chỗ đúng còn lại, nên đúng ở mọi khổ màn hình. */
.page-hero__title{
  font-size:clamp(26px,3.6vw,44px); line-height:var(--lh-title); letter-spacing:var(--ls-title);
  /* FB 08/04 (khách đợt 2, bổ sung): tiêu đề banner dùng XANH BRAND --green
     (#008B44 — token "brand lock") thay --head (#005C2E). --head là xanh đậm
     dùng cho heading trong thân trang; đặt ở banner thì tối hơn tone brand gốc.
     Chỉ đổi ở banner — heading thân trang site-wide vẫn giữ --head.
     Tương phản #008B44 trên nền mint ~3.4:1 — đạt AA cho chữ lớn (banner luôn
     ≥26px bold, vượt ngưỡng 18.66px bold), nên KHÔNG hạ cỡ chữ ở đây. */
  text-transform:uppercase; font-weight:var(--fw-sec-title); color:var(--green);   /* FB4 vòng 3 */
  max-width:22ch; text-wrap:balance;   /* không để 1 từ mồ côi ở dòng cuối */
}
/* FB 08/03 (PDF khách): title hero chỉ 1 màu (xanh --head) — trung hoà mọi span nhấn màu.
   Giữ class trong markup để vô hại; đổi ở đây là đổi toàn site. */
.page-hero__title .hl-red{color:inherit}
.page-hero__title .hl-green{color:inherit}
.page-hero__title .accent-italic{font-style:normal; color:inherit}
/* MÔ TẢ — FB 08/04 (khách đợt 2): giảm nhẹ cỡ chữ và đổi sang XANH ĐẬM
   var(--head) — cùng màu tiêu đề — thay cho --ink-2 (gần đen). */
.page-hero__lead{
  margin-top:clamp(12px,1.3vw,18px); max-width:56ch;
  color:var(--head); font-weight:500;
  font-size:clamp(13.5px,.95vw,15px); line-height:1.65;   /* phụ đề nhỏ hơn */
}
/* soft brand glow BEHIND the title (decor emphasizes the focal point) */
.page-hero__glow{
  position:absolute; z-index:0; top:-8%; right:-6%;
  width:clamp(320px,42vw,620px); aspect-ratio:1; border-radius:50%;
  background:var(--blob-green); filter:blur(14px); pointer-events:none;
}
/* legacy variants — hệ banner mint dùng chung; giữ class để markup cũ vô hại */
.page-hero--soft,.page-hero--plain{}

/* PHOTO VARIANT — banner ẢNH THẬT full-bleed + overlay gradient xanh, dùng khi
   trang cần mở đầu bằng hiện trường thay vì sân khấu mint (vd Meatshop —
   nhiều ảnh cửa hàng thật). Vẫn CÙNG khung .page-hero (ruy-băng breadcrumb,
   badge đỏ, h1 poster, lead) — chỉ đổi lớp NỀN, không phải hệ mới. */
.page-hero--photo{ background:#0B2015; }
.page-hero--photo .page-hero__media{
  position:absolute; inset:0; z-index:0;
}
.page-hero--photo .page-hero__media img{
  width:100%; height:100%; object-fit:cover; display:block;
  filter:saturate(.92);
}
.page-hero--photo .page-hero__media::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(115deg, rgba(0,42,22,.88) 0%, rgba(0,42,22,.64) 40%, rgba(0,58,30,.32) 72%, rgba(0,58,30,.2) 100%);
}
.page-hero--photo .page-hero__inner{
  display:flex; flex-direction:column; justify-content:center;
  min-height:clamp(280px,30vw,420px);
}
.page-hero--photo .page-hero__copy{ max-width:min(56ch,640px); }
.page-hero--photo .page-hero__title{ color:#fff; }
.page-hero--photo .page-hero__lead{ color:rgba(255,255,255,.86); }
.page-hero--photo .page-hero__glow{ display:none; }
/* (bỏ .page-hero__cta 2026-08-04 — quy ước khách đợt 2: BANNER KHÔNG CHỨA CTA) */
@media (max-width:640px){
  .page-hero--photo .page-hero__inner{ min-height:clamp(320px,88vw,420px); }
}

/* ART SLOT — cột hình bên phải (tháp cut-out / chùm cánh lá / lá bản đồ).
   Nằm TRONG flow (grid 2 cột) nên mobile tự xếp chồng, không đè chữ. */
.page-hero--art .page-hero__inner{
  display:grid; grid-template-columns:minmax(0,1.16fr) minmax(0,.84fr);
  gap:clamp(24px,4vw,56px); align-items:center;
}
.page-hero__copy{min-width:0}   /* cột chữ — bọc badge/h1/lead khi có art */
.page-hero__art{position:relative; display:flex; justify-content:center; align-items:center; min-width:0}
/* --flush: hình "đứng" ngay trên ruy-băng (tháp nhà máy ref #1) */
.page-hero__art--flush{align-self:end; margin-bottom:calc(var(--crumb-h) - var(--ph-pb))}
.page-hero__art--flush img{
  display:block; width:min(100%,480px);
  filter:drop-shadow(0 26px 40px rgba(4,40,20,.28));
  /* PNG cut-out chỉ tách nền TRỜI — hai mép dọc vẫn là ảnh cắt thô → phai mềm */
  -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 7%, #000 82%, transparent 99%);
          mask-image:linear-gradient(90deg, transparent 0, #000 7%, #000 82%, transparent 99%);
}

/* FLUSHART — biến thể "ảnh cut-out đứng trên ruy-băng, chữ 1 cột trái".
   Gom 2026-08-04 từ BA bản copy rời (gioi-thieu.css · giai-thuong-chung-nhan.css
   · lien-he.css). Ba bản lệch số ⇒ ảnh mỗi trang một cỡ (khách đợt 2: "trang
   giải thưởng hình bị nhỏ hơn các trang khác"). Số chuẩn = bản gioi-thieu.
   Bản gioi-thieu.css còn KHÔNG scope nên rò sang ban-lanh-dao/hanh-trinh —
   modifier này thay thế, ai cần thì gắn class, không ai bị dính ngoài ý muốn. */
.page-hero--flushart .page-hero__inner{ display:block }
.page-hero--flushart .page-hero__copy{ max-width:clamp(520px,54vw,680px) }
.page-hero--flushart .page-hero__art.page-hero__art--flush{
  position:absolute; z-index:1; align-self:auto; margin:0;
  right:0; bottom:0;
  width:clamp(380px,60%,860px); height:clamp(260px,34vw,420px);
  max-width:none; display:block;
}
.page-hero--flushart .page-hero__art--flush img{
  width:100%; height:100%; max-width:none; display:block;
  object-fit:cover; object-position:left center;
  filter:drop-shadow(0 26px 40px rgba(4,40,20,.28));
  /* mask trái NỚI RỘNG (0→40%) để hoà vào nền mint, thay viền cắt 7% mặc định */
  -webkit-mask-image:linear-gradient(90deg, transparent 0%, #000 40%, #000 92%, transparent 100%);
          mask-image:linear-gradient(90deg, transparent 0%, #000 40%, #000 92%, transparent 100%);
}
/* 09/09/2026 (khách, rà trang con — 6 trang flushart: gioi-thieu, ban-lanh-dao,
   giai-thuong, hanh-trinh, lien-he, linh-vuc):
   · MOBILE ≤560: "đổi lại text trên, hình dưới" — inner thành flex cột, copy order 1,
     art order 2 static, cao 170–240px. (Trước: mốc 720, ảnh nằm TRÊN chữ.)
   · TABLET 561–860: "giảm nhẹ font, width cụm text, size hình để text ít đè lên
     hình" — giữ bố cục đè nhưng copy ≤58%, tiêu đề 24–32px, ảnh 46% × 200–280px,
     mask trái nới tới 52% để phần chồng lên mờ hẳn. */
@media (max-width:560px){
  /* art là ANH EM đứng TRƯỚC .page-hero__inner (không nằm trong) → phải reorder ở
     cấp .page-hero: flex cột, inner order 1, art order 2. breadcrumb/glow absolute
     nên không tham gia flex. */
  .page-hero--flushart{display:flex; flex-direction:column}
  .page-hero--flushart .page-hero__inner{order:1; width:100%}
  .page-hero--flushart .page-hero__copy{max-width:none}
  /* 09/09 chiều, khách: "xích ảnh xuống để giấu phần cắt dưới hình vào cụm
     xanh đỏ nâu" — kéo đáy ảnh trùng đáy hero (margin âm = --ph-pb) như desktop,
     mép cắt nằm dưới chân đồi; cộng thêm --crumb-h vào chiều cao để phần ảnh lộ
     trên ruy-băng không hụt. Đồi SVG trong suốt phía trên nên ảnh "ló" qua khe
     đồi — đúng ngôn ngữ "hình đứng trên ruy-băng" của bản desktop. */
  .page-hero--flushart .page-hero__art.page-hero__art--flush{
    order:2; position:static; width:100%;
    height:calc(clamp(170px,48vw,240px) + var(--crumb-h));
    right:auto; bottom:auto; margin-top:16px; margin-bottom:calc(-1 * var(--ph-pb));
  }
}
@media (min-width:561px) and (max-width:860px){
  .page-hero--flushart .page-hero__copy{max-width:min(58%,460px)}
  .page-hero--flushart .page-hero__title{font-size:clamp(24px,3.4vw,32px)}
  .page-hero--flushart .page-hero__lead{font-size:14px; max-width:40ch}
  .page-hero--flushart .page-hero__art.page-hero__art--flush{
    width:clamp(300px,46%,420px); height:clamp(200px,28vw,280px);
  }
  .page-hero--flushart .page-hero__art--flush img{
    -webkit-mask-image:linear-gradient(90deg, transparent 0%, #000 52%, #000 92%, transparent 100%);
            mask-image:linear-gradient(90deg, transparent 0%, #000 52%, #000 92%, transparent 100%);
  }
}

/* LEAFART — biến thể "1 ảnh lá lớn bên phải". Cột lưới rộng hơn --art mặc định
   để khớp ĐÚNG tỷ lệ của .pb-hero__grid (phat-trien-ben-vung) — khách đợt 2
   yêu cầu tin tức & QHCĐ giống trang PTBV về bo góc và vị trí. */
.page-hero--leafart{--ph-gap:clamp(30px,3.6vw,48px)}   /* khớp nốt --ph-gap của .pb-hero */
.page-hero--leafart .page-hero__inner{
  grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
  gap:clamp(32px,5vw,72px);
}
/* Ngưỡng xuống 1 cột phải là 960px như .pb-hero (phat-trien-ben-vung.css), KHÔNG
   phải 860px của .page-hero--art chung: ở dải 861–960 các trang leafart còn giữ
   2 cột nên lá co lại ~190px trong khi bo góc vẫn 54px ⇒ ra khối gần tròn, khác
   hẳn PTBV lúc đó đã xuống 1 cột. max-width 640px = bản sao .pb-hero__visual. */
@media (max-width:960px){
  .page-hero--leafart .page-hero__inner{grid-template-columns:1fr; gap:clamp(20px,5vw,32px)}
  .page-hero--leafart .page-hero__art{order:2}
  .ph-leaf-visual{max-width:640px}
}

/* TRI — cụm BA lục giác ảnh xếp tam giác quanh hub xanh brand.
   Thay .ph-petals (4 cánh) 2026-08-04 theo khách đợt 2: "bỏ layout 4 ảnh,
   chỉnh về layout 3 ảnh tương tự shape ở home". Mượn nguyên hình học của
   cụm 3F trang chủ (.i3f — index.css): cùng clipPath lục giác bo góc
   #i3fHexRound, cùng tỷ lệ .866, cùng ngôn ngữ hub tròn gradient xanh.

   BẮT BUỘC: clip-path:url(#…) là document-scoped → trang nào dùng .ph-tri
   phải INLINE <svg><defs><clipPath id="i3fHexRound"> (copy từ index.html).
   Thiếu SVG thì ảnh ra HÌNH CHỮ NHẬT chứ không báo lỗi console.

   Bề ngang chốt ở ~340px: .page-hero__inner khoá min-height clamp(220px,23vw,330px)
   và MỌI BANNER PHẢI CÙNG CHIỀU CAO (xem chú thích §PAGE HERO ở trên) —
   cụm to hơn sẽ đội banner trang này cao hơn mọi trang khác. */
.ph-tri{
  /* --n / --hex-ar / vị trí 3 đỉnh / bề ngang hub: LẤY NGUYÊN số của .i3f
     (index.css) — bộ số này cho tam giác CÂN quanh hub (khoảng cách hub→mỗi
     đỉnh ~88px ở khung 330). Tự đặt số khác sẽ làm đỉnh trên dính hub hơn
     hai đỉnh dưới và cụm mất cân. */
  --n:39%;          /* bề ngang mỗi lục giác */
  --hex-ar:.866;    /* w:h của lục giác đứng đều */
  /* trần 330px = ĐÚNG min-height của .page-hero__inner → banner trang này cao
     bằng nhóm trang ảnh cut-out (558px @1440), không đội lên. */
  position:relative; width:min(100%,clamp(240px,25vw,330px));
  aspect-ratio:1; margin-inline:auto;
}
.ph-tri__node{
  position:absolute; width:var(--n); aspect-ratio:var(--hex-ar);
  /* drop-shadow (KHÔNG box-shadow) để bóng ôm đúng viền lục giác đã clip */
  filter:drop-shadow(0 18px 26px rgba(16,22,15,.28));
}
.ph-tri__node--a{ top:1%;     left:30.5% }   /* đỉnh TRÊN */
.ph-tri__node--b{ bottom:14%; left:7.5% }    /* DƯỚI-TRÁI */
.ph-tri__node--c{ bottom:14%; right:7.5% }   /* DƯỚI-PHẢI */
.ph-tri__ph{
  display:block; width:100%; height:100%;
  background:var(--green-soft);             /* nền chờ khi ảnh chưa tải */
  clip-path:url(#i3fHexRound);
}
.ph-tri__ph img{width:100%; height:100%; object-fit:cover; display:block}
/* hub — vòng tròn xanh brand ở tâm cụm, cùng ngôn ngữ .i3f__hub trang chủ */
.ph-tri__hub{
  position:absolute; z-index:2; left:50%; top:50%; width:31%; aspect-ratio:1;
  transform:translate(-50%,-50%);
  display:grid; place-content:center; justify-items:center; gap:4px;
  border-radius:50%;
  background:radial-gradient(circle at 40% 34%, var(--green) 0%, var(--green-deep) 82%);
  box-shadow:0 0 0 1px rgba(255,255,255,.22),
             0 0 24px 5px rgba(56,228,138,.38),
             0 22px 50px -22px rgba(0,0,0,.42);
}
.ph-tri__hub b{
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(20px,2.2vw,30px); line-height:1; color:#fff;
}
.ph-tri__hub i{
  font-style:normal; font-weight:600; font-size:clamp(8px,.62vw,10px);
  letter-spacing:.22em; text-transform:uppercase; color:rgba(255,255,255,.85);
}

/* LEAF — MỘT lá lớn ôm ảnh (bản đồ, aerial…) — bo 3 góc tròn, 1 góc gần vuông.
   FB 08/04 (khách đợt 2): chỉnh về ĐÚNG số của .pb-hero__frame (PTBV) — bo góc
   nhẹ hơn (7vw→6vw, trần 110→96px), tỷ lệ 4/3→16/10.5, bỏ trần cứng 440px để
   lá lấp đầy cột lưới như PTBV. Đi kèm .page-hero--leafart ở trên. */
.ph-leaf{
  /* KHÔNG set width — để auto như .pb-hero__frame: <figure> là khối block, bề
     ngang auto = bề ngang .ph-leaf-visual trừ margin mặc định 40px/bên của UA
     ⇒ 600-80 = 520px, đúng bằng PTBV. Đặt width:100% ở đây sẽ thành 600px rồi
     margin đẩy tràn sang phải (100% KHÔNG trừ margin). */
  --leaf-r:clamp(48px,6vw,96px);
  position:relative; overflow:hidden; aspect-ratio:16/10.5;
  border-radius:var(--leaf-r) var(--r-card) var(--leaf-r) var(--leaf-r);
  /* BẮT BUỘC — không phải trang trí (FB 08/05: "ẩn danh vẫn thấy không bo góc").
     overflow:hidden + border-radius chỉ xén con TRONG CÙNG lớp vẽ. Cha
     .page-hero__art mang .reveal → JS chạy transform khi cuộn → con bị đẩy lên
     GPU layer riêng → WebKit/Blink xén bằng HÌNH CHỮ NHẬT, ảnh trở lại vuông.
     isolation:isolate ép .ph-leaf tạo stacking context nên clip bo góc áp cùng
     nhóm vẽ với ảnh. .pb-hero__frame (PTBV) có sẵn dòng này từ redesign 2026-07
     — đó mới là lý do DUY NHẤT trang PTBV không dính lỗi, không phải khác số bo.
     Headless screenshot KHÔNG tái hiện được (không chạy reveal ⇒ không promote
     layer) — mọi lần verify bằng ảnh chụp đều PASS giả. */
  isolation:isolate;
  box-shadow:0 34px 70px -40px rgba(4,40,20,.45);
}
/* chốt chặn thứ hai: bo góc ngay trên ảnh (inherit ⇒ vẫn một nguồn --leaf-r),
   để cả khi trình duyệt bỏ qua clip của cha thì ảnh vẫn tự bo đúng 4 góc. */
.ph-leaf img{width:100%; height:100%; object-fit:cover; display:block; border-radius:inherit}
/* WRAPPER — bản sao của .pb-hero__visual (PTBV). BẮT BUỘC có nếu khung đi kèm
   .ph-leaf__badge: badge phải là ANH EM của <figure>, KHÔNG phải con.
   Lý do (FB 08/04 vòng 2 — "chưa giống ở chỗ bo góc"): .ph-leaf có
   overflow:hidden + góc bo 86px, nên badge đặt BÊN TRONG bị chính góc bo đó
   xén cụt đầu trái. Ở PTBV badge nằm ngoài khung nên nhô tự do ra mép và phủ
   lên góc bo — đó mới là hình khách thấy ở trang PTBV.
   border-radius hai bên vốn ĐÃ giống nhau từng pixel; khác nhau là ở DOM. */
.ph-leaf-visual{position:relative; width:100%}
/* thẻ định danh nổi góc dưới-trái ảnh — cùng ngôn ngữ .pb-hero__badge (PTBV,
   2026-07 redesign); dùng chung khi trang khác cũng đổi ph-petals → ph-leaf
   1 ảnh chủ đạo + danh từ riêng thay khẩu hiệu chung chung (2026-07-24). */
.ph-leaf__badge{
  position:absolute; left:clamp(14px,2vw,24px); bottom:clamp(14px,2vw,24px);
  display:flex; align-items:center; gap:12px;
  background:rgba(255,255,255,.93); backdrop-filter:blur(6px);
  border-radius:var(--r-btn); padding:10px 22px 10px 14px;
  box-shadow:0 18px 40px -24px rgba(4,40,20,.5);
}
.ph-leaf__badge img{width:32px; height:32px; flex:none}
.ph-leaf__badge b{display:block; font-size:13.5px; color:var(--head); font-weight:800; line-height:1.3}
.ph-leaf__badge span{
  display:block; margin-top:1px; font-size:11px; font-weight:700;
  letter-spacing:.06em; text-transform:uppercase; color:var(--muted);
}
/* biến thể "thẻ bản đồ": lá vuông nền trắng, ảnh contain (map dọc không bị crop) */
.ph-leaf--map{aspect-ratio:1; background:#fff; width:min(100%,350px)}
.ph-leaf--map img{object-fit:contain; padding:6%}

/* ---- Kiểu banner "THẺ SẢN PHẨM" (.tps-hero-brands) — 09/09/2026 chuyển từ
   thuc-pham-sach.css sang thư viện chung: là 1 trong 4 kiểu cụm ảnh banner khách
   chọn cho từng trang con (xem DESIGN-SYSTEM.md §Hero picker). Tên class giữ
   nguyên để không phải sửa markup trang Thực phẩm sạch. ---- */
.tps-hero-brands{
  position:relative; display:grid; grid-template-columns:1fr 1fr; align-items:end;
  gap:clamp(12px,1.8vw,24px); width:min(100%,clamp(340px,34vw,520px));
  margin-inline:auto; padding:clamp(14px,1.8vw,22px);
}
.tps-hero-brands::before{
  content:""; position:absolute; inset:7% 4% 0; border-radius:50%;
  background:radial-gradient(circle at 50% 62%, rgba(0,139,68,.18), rgba(0,139,68,0) 62%);
  z-index:0;
}
.tps-hero-brand{
  position:relative; z-index:1; min-height:clamp(230px,28vw,360px);
  display:flex; flex-direction:column; justify-content:space-between; align-items:center;
  padding:clamp(14px,1.5vw,20px); border:1px solid var(--green-line);
  border-radius:var(--r-card); background:rgba(255,255,255,.72);
}
.tps-hero-brand--kooltos{ transform:translateY(clamp(18px,2vw,28px)) }
.tps-hero-brand__logo{
  display:inline-flex; align-items:center; justify-content:center;
  width:100%; height:46px; border-radius:var(--r-sm); padding:8px 14px;
}
.tps-hero-brand--anfarm .tps-hero-brand__logo{ background:var(--brand-anfarm) }
.tps-hero-brand--kooltos .tps-hero-brand__logo{ background:var(--brand-kooltos) }
.tps-hero-brand__logo img{ max-height:28px; max-width:100%; width:auto; object-fit:contain; display:block }
.tps-hero-brand__pack{
  width:auto; max-width:100%; object-fit:contain; display:block;
  filter:drop-shadow(0 18px 28px rgba(16,22,15,.16));
}
.tps-hero-brand__pack--anfarm{ max-height:clamp(130px,15vw,210px) }
.tps-hero-brand__pack--kooltos{ max-height:clamp(170px,20vw,260px) }
@media (max-width:860px){
  .tps-hero-brands{ width:min(100%,520px); padding-top:0 }
}
@media (max-width:640px){
  .tps-hero-brands{ grid-template-columns:1fr; width:min(100%,340px) }
  .tps-hero-brand{ min-height:220px }
  .tps-hero-brand--kooltos{ transform:none }
}

/* NUMERAL — khối số poster ("30 NĂM" của ref #1): số đỏ khổng lồ + gạch chân */
.ph-num{margin-top:clamp(14px,1.8vw,24px)}
.ph-num__big{
  display:inline-block; font-family:var(--font-display); font-weight:700;
  font-size:clamp(54px,7.4vw,104px); line-height:1; letter-spacing:-.01em;
  color:var(--red);
  padding-bottom:.08em; border-bottom:4px solid var(--green);
}
.ph-num__big .u{color:var(--head)}
.ph-num__sub{
  margin-top:.5em; font-family:var(--font-display); font-weight:700;
  text-transform:uppercase; letter-spacing:.12em;
  font-size:clamp(14px,1.4vw,19px); color:var(--green);
}

/* BREADCRUMB — mặc định: dòng wayfinding lặng lẽ (bài viết, khối ngoài hero) */
.breadcrumb{
  display:flex; flex-wrap:wrap; align-items:center; gap:8px;
  margin-bottom:clamp(18px,2vw,26px);
  font-size:13px; font-weight:600; letter-spacing:.02em; color:var(--muted);
}
.breadcrumb a{color:var(--muted); transition:color var(--t-1) var(--ease)}
.breadcrumb a:hover{color:var(--green)}
.breadcrumb__sep{opacity:.5; user-select:none}
.breadcrumb [aria-current="page"]{color:var(--ink)}

/* BREADCRUMB TRONG HERO → DẢI ĐỒI 3 MÀU BRAND (chữ ký của hệ banner).
   BẮT BUỘC: <nav class="breadcrumb"> phải là CON TRỰC TIẾP của .page-hero
   (đặt TRƯỚC .page-hero__inner) để absolute bám đúng mép dưới banner.
   Nền = 1 SVG kéo giãn (preserveAspectRatio none): 3 LỚP ĐỒI chồng nhau
   theo ngôn ngữ "đồi cỏ" của site — KHÔNG copy dải phẳng của ref.
   Màu = 3 màu mark tri-hexagon của logo BAF:
   đồi xanh #008B44 phía trước (ôm chữ) · đồi NÂU LOGO #81331A nhô giữa-phải
   · đồi đỏ #EB1C24 cao nhất ở góc phải. */
.page-hero .breadcrumb{
  position:absolute; left:0; right:0; bottom:0; z-index:2;
  height:var(--crumb-h); margin:0;
  padding-left:max(var(--gut), calc((100% - var(--maxw)) / 2 + var(--gut)));
  padding-right:var(--gut);
  flex-wrap:nowrap; white-space:nowrap; overflow:hidden;
  padding-top:calc(var(--crumb-h) * .14);   /* chữ hơi thấp — nằm trong thân đồi xanh */
  color:rgba(255,255,255,.85);
  /* Ruy-băng 3 màu giữ dáng layout ban đầu nhưng SVG dài hơn viewport.
     Hai mép path chạy ra ngoài khung để khi animation lắc ngang không bị lộ
     cạnh cong/quặp xuống ở lề trái/phải. */
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1680 64' preserveAspectRatio='none'%3E%3Cpath d='M640 64 C820 30 930 8 1100 15 C1245 21 1385 41 1520 38 C1600 36 1650 46 1680 64 Z' fill='%2381331A'/%3E%3C/svg%3E") !important;
  background-repeat:no-repeat !important; background-size:122% 100% !important; background-position:center bottom !important;
  animation:crumb-brown-bg .1s ease-in-out infinite alternate !important;
}
.page-hero .breadcrumb::before,
.page-hero .breadcrumb::after{
  content:""; position:absolute; left:-24%; right:-24%; top:0; bottom:0;
  display:block !important;
  background-repeat:no-repeat !important; background-size:100% 100% !important; background-position:center bottom !important;
  pointer-events:none; will-change:transform;
}
.page-hero .breadcrumb::before{ z-index:0; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 64' preserveAspectRatio='none'%3E%3Cpath d='M1180 64 C1320 30 1480 13 1628 16 C1760 19 1856 34 1920 52 L1920 64 Z' fill='%23EB1C24'/%3E%3C/svg%3E") !important; animation:crumb-red 10s ease-in-out infinite alternate !important }
.page-hero .breadcrumb::after{ z-index:1; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1680 64' preserveAspectRatio='none'%3E%3Cpath d='M0 13 C190 6 390 10 610 17 C850 25 1010 36 1185 45 C1360 54 1510 56 1680 57 L1680 64 L0 64 Z' fill='%23008B44'/%3E%3C/svg%3E") !important; animation:crumb-green 6s ease-in-out infinite alternate !important }
/* chữ breadcrumb nổi trên 3 đồi */
.page-hero .breadcrumb > *{ position:relative; z-index:2 }
@keyframes crumb-brown-bg{ from{background-position:72% bottom} to{background-position:38% bottom} }
@keyframes crumb-red{ from{transform:translateX(-10%)} to{transform:translateX(10%)} }
@keyframes crumb-brown{ from{transform:translateX(-7%)} to{transform:translateX(7%)} }
@keyframes crumb-green{ from{transform:translateX(7%)} to{transform:translateX(-7%)} }
@media (prefers-reduced-motion:reduce){
  .page-hero .breadcrumb,
  .page-hero .breadcrumb::before,
  .page-hero .breadcrumb::after{ animation:none }
}

/* Ruy-băng breadcrumb ở màn hẹp — SỬA LỖI CẮT CÂM CHỮ.
   Ruy-băng là dải cao cố định (--crumb-h) neo absolute ở mép dưới banner, nên
   nó buộc phải nowrap + overflow:hidden. Hệ quả: trên 6 trang có breadcrumb 3
   cấp, vệt cuối bị XÉN NGANG GIỮA CHỮ mà không có dấu "…" nào — vd Meatshop ở
   390px cần 523px chỗ, chỉ có 342px. Không ai phát hiện suốt nhiều vòng feedback
   vì body{overflow-x:hidden} (dòng 59) nuốt luôn thanh cuộn lẽ ra phải hiện.

   Cách chữa: cho XUỐNG DÒNG ở mốc hẹp, đồng thời nâng --crumb-h để dải đồi cao
   thêm đúng bằng chỗ cần cho dòng thứ hai. PHẢI nâng --crumb-h chứ không chỉ
   bỏ nowrap: --ph-pb của .page-hero tính theo --crumb-h, nếu dải cao lên mà
   phần chừa không đổi thì chữ breadcrumb sẽ đội lên đè vào lead của banner.

   Chọn mốc 560px: breadcrumb dài nhất site (Meatshop, 58 ký tự) cần ~486px kể
   cả gutter, nên mọi trang đều an toàn dưới 560. 560 là mốc common.css đã dùng
   sẵn — không đẻ thêm breakpoint mới. */
@media (max-width:560px){
  .page-hero{ --crumb-h:clamp(66px,17vw,84px) }
  .page-hero .breadcrumb{
    flex-wrap:wrap; white-space:normal;
    row-gap:2px; font-size:12px;
    align-content:center;
    padding-top:0;
  }
}
.page-hero .breadcrumb a{color:rgba(255,255,255,.85)}
.page-hero .breadcrumb a:hover{color:#fff}
.page-hero .breadcrumb [aria-current="page"]{color:#fff}

/* menu: mark the current page in the overlay nav */
.menu__nav a[aria-current="page"]{opacity:1}
.menu__nav a[aria-current="page"]::before{color:#fff}
.menu__nav a[aria-current="page"] span{
  box-shadow:inset 0 -2px 0 rgba(255,255,255,.55);
}

@media (max-width:860px){
  .page-hero{padding-top:calc(var(--head-h) + 14px + clamp(14px,3.5vw,24px))}
  /* art xếp XUỐNG DƯỚI chữ, thu nhỏ — không đè copy trên màn hẹp */
  .page-hero--art .page-hero__inner{grid-template-columns:1fr; gap:clamp(20px,5vw,32px)}
  .page-hero__art{order:2}
  /* (leafart đã xuống 1 cột từ 960px ở §LEAFART — dòng cũ tại đây là thừa) */
  .ph-tri{width:min(78vw,340px)}
  .page-hero .breadcrumb{font-size:12px}
}

/* =====================================================   MARQUEE — 2 hàng chạy ngược chiều, pause khi hover cả dải, nhân đôi item để
   loop liền mạch (-50%). Chuyển từ index.css (dải logo Đối tác) lên đây 2026-07-24
   để trang con dùng lại được (vd nhuong-quyen-meatshop.html — gallery ảnh
   Meatshop). Item cụ thể (.plogo/.ms-photo…) định kiểu riêng ở layer trang.
   ============================================================ */
.marquee{
  position:relative; overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__row{ position:relative; overflow:hidden }
.marquee__row + .marquee__row{ margin-top:clamp(6px,1vw,18px) }
.marquee__track{
  display:flex; width:max-content; align-items:center;
  animation:marq 23s linear infinite;
  will-change:transform; backface-visibility:hidden; transform:translateZ(0);
}
.marquee__row--rev .marquee__track{ animation-direction:reverse }
.marquee:hover .marquee__track{ animation-play-state:paused }
@keyframes marq{
  from{ transform:translate3d(0,0,0) }
  to{ transform:translate3d(-50%,0,0) }
}
@media (prefers-reduced-motion:reduce){
  .marquee__track{ animation:none; flex-wrap:wrap; justify-content:center; width:auto; gap:44px }
}

/* =====================================================   SUBNAV — DẢI MỤC LỤC toàn khổ · sticky wayfinding cho trang con dài
   Markup:  <nav class="subnav js-subnav">
              <div class="subnav__track">
                <span class="subnav__label" data-en="On this page">Trên trang này</span>
                <a href="#…">…</a> …
              </div>
            </nav>
   initCgtSpy (main.js, hook .js-subnav) gắn .is-active theo section
   và cuộn .subnav__track khi khay tràn ngang.
   Ngôn ngữ (redesign 07/2026 v5 — nền XANH liền ruy-băng):
   thanh mục lục TOÀN KHỔ mang màu var(--green) — ĐÚNG màu lớp đồi
   dưới cùng của ruy-băng breadcrumb; hairline trắng mờ ở MÉP TRÊN
   tách khay tab khỏi dòng breadcrumb (2 tầng thông tin, 1 dải màu);
   margin-top:-1px giữ nguyên để hairline đè đúng mối nối.
   Mục đang xem HẠ TÔNG (v4 chip kem bị chê nổi quá): chữ trắng đặc
   + gạch KEM ngắn dưới nhãn — cùng ngôn ngữ gạch brand của
   .news-tab / .ni-tab và cùng tông sợi tiến trình ở đáy.
   ============================================================ */
.subnav{
  /* dính DƯỚI header: header cuộn cao = var(--head-h) + 14px (nuốt lề trên),
     nên top phải = head-h + 13px (chừa 1px đè khít) — nếu để head-h - 1px thì
     header che mất ~15px mép trên thanh tab khi cuộn. */
  position:sticky; top:calc(var(--head-h) + 13px); z-index:var(--z-subnav);
  width:100%;
  background:var(--green-soft);                 /* nền xanh brand NHẠT (style Vinamilk) */
  border-bottom:1px solid var(--green-line);    /* hairline mảnh tách khỏi nội dung dưới */
}
/* hàng nội dung — căn theo .container, đồng thời là khay cuộn ngang khi chật */
.subnav__track{
  display:flex; align-items:stretch; gap:2px;
  width:100%; max-width:var(--maxw); margin-inline:auto;
  padding:0 var(--gut);                 /* không đệm dọc → tab & gạch nằm SÁT đáy thanh */
  overflow-x:auto; scrollbar-width:none;
}
.subnav__track::-webkit-scrollbar{display:none}

.subnav a{
  --chip-h:38px;                        /* thanh tab thấp gọn */
  position:relative; z-index:0; flex:none;
  display:inline-flex; align-items:center; justify-content:center;
  min-height:var(--chip-h);
  padding:0 clamp(16px,2vw,24px);
  font-size:13.5px; font-weight:600; letter-spacing:.01em;
  color:var(--muted); text-decoration:none; white-space:nowrap;
  transition:color var(--t-2) var(--ease);
}
.subnav a:hover{color:var(--head)}
.subnav a:focus-visible{outline:2px solid var(--green); outline-offset:2px; border-radius:var(--r-sm)}
/* căn mép chữ tab ĐẦU TIÊN thẳng hàng với breadcrumb (bỏ đệm trái riêng của nó) */
.subnav a:first-child{padding-left:0}

/* đang xem — CHỈ chữ xanh brand đậm, KHÔNG có gạch dưới */
.subnav a.is-active{color:var(--green); font-weight:700}

@media (max-width:560px){
  .subnav a{font-size:11px; letter-spacing:.05em}
}
@media (prefers-reduced-motion:reduce){
  .subnav a{transition:none}
}

/* =====================================================   SEARCH OVERLAY  ·  lớp phủ tối toàn màn hình, ô search ở giữa
   Global (mọi trang) — markup do initSearchOverlay chèn vào <body>.
   ============================================================ */
.ovsearch{
  position:fixed; inset:0; z-index:var(--z-overlay);
  display:grid; grid-template-rows:1fr; align-items:start; justify-items:center;
  padding:clamp(90px,18vh,200px) var(--gut) 40px;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity var(--t-2) var(--ease), visibility var(--t-2) var(--ease);
}
.ovsearch.is-open{opacity:1; visibility:visible; pointer-events:auto}

.ovsearch__scrim{
  position:absolute; inset:0;
  background:rgba(8,16,11,.82); backdrop-filter:blur(4px);
}
.ovsearch__close{
  position:absolute; top:clamp(18px,3vw,30px); right:clamp(18px,3vw,30px); z-index:2;
  display:inline-flex; align-items:center; gap:8px;
  width:46px; height:46px; justify-content:center; border-radius:50%;
  color:rgba(255,255,255,.85); background:rgba(255,255,255,.08);
  transition:background var(--t-1) var(--ease), color var(--t-1) var(--ease), transform var(--t-1) var(--ease);
}
.ovsearch__close:hover{background:rgba(255,255,255,.16); color:#fff; transform:rotate(90deg)}
.ovsearch__close svg{width:20px; height:20px}

/* cột giữa: ô search + gợi ý */
.ovsearch__inner{
  position:relative; z-index:1; width:min(680px,100%);
  transform:translateY(-14px); opacity:0;
  transition:transform var(--t-3) var(--ease), opacity var(--t-3) var(--ease);
}
.ovsearch.is-open .ovsearch__inner{transform:translateY(0); opacity:1}

/* thanh search trắng, pill, ở giữa */
.ovsearch__form{
  display:flex; align-items:center; gap:14px;
  background:var(--white); border-radius:var(--r-btn);
  padding:6px 22px; box-shadow:0 24px 60px -20px rgba(0,0,0,.5);
}
.ovsearch__form .ico--search{width:22px; height:22px; color:var(--green); flex:none}
.ovsearch__input{
  flex:1; min-width:0; border:0; background:transparent;
  font-family:var(--font-body); font-size:clamp(17px,2vw,21px); font-weight:500;
  color:var(--ink); padding:18px 0;
}
.ovsearch__input::placeholder{color:var(--muted); opacity:.75}
.ovsearch__input:focus{outline:none}

/* panel gợi ý dưới thanh search */
.ovsearch__out{
  margin-top:14px; background:var(--white); border-radius:var(--r-card);
  overflow:hidden; max-height:0; opacity:0;
  transition:max-height var(--t-2) var(--ease), opacity var(--t-2) var(--ease), margin var(--t-2) var(--ease);
}
.ovsearch.has-results .ovsearch__out{max-height:60vh; opacity:1; overflow-y:auto}
.ovsearch__meta{
  padding:14px 22px; font-size:13px; color:var(--muted); font-weight:500;
  border-bottom:1px solid var(--line-light);
}
.ovsearch__meta kbd{
  font-family:var(--font-body); font-size:11px; font-weight:700; color:var(--head);
  background:var(--cream); padding:2px 7px; border-radius:var(--r-sm);
}
.ovsearch__empty{padding:22px; font-size:15px; color:var(--muted)}

/* hàng kết quả gợi ý */
.ovres{
  display:flex; align-items:center; gap:14px;
  padding:16px 22px; transition:background var(--t-1) var(--ease);
}
.ovres + .ovres{border-top:1px solid var(--line-light)}
.ovres:hover{background:var(--eco)}   /* xanh nhạt — cùng màu hover hàng với .pb-table/.qh-table (FB 26/08) */
.ovres__kicker{
  flex:none; min-width:96px;
  font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--green);
}
.ovres__title{
  flex:1; font-family:var(--font-display); font-weight:700;
  font-size:clamp(16px,1.7vw,19px); color:var(--head); line-height:var(--lh-title);
}
.ovres__title mark{background:var(--green-soft); color:var(--head); padding:.02em .16em; border-radius:var(--r-sm)}
.ovres__arw{flex:none; width:16px; height:16px; color:var(--muted);
  transform:translateX(-4px); opacity:0; transition:opacity var(--t-1) var(--ease), transform var(--t-1) var(--ease)}
.ovres:hover .ovres__arw{opacity:1; transform:translateX(0); color:var(--green)}

@media (max-width:560px){
  .ovres__kicker{min-width:0; display:none}
}
@media (prefers-reduced-motion:reduce){
  .ovsearch, .ovsearch__inner, .ovsearch__out, .ovsearch__close{transition:none}
}

/* ============ INFO-FIG — infographic/brochure export chính thức =====   Ảnh có chữ nướng sẵn đứng MỘT MÌNH trong <figure>, không kề copy trùng nội
   dung; đổi bản VI/EN qua data-en-src (main.js I18N_ATTRS). Quymo_VN/ENG đã
   dựng native thành .gt-ffs (gioi-thieu.css — chỉ /gioi-thieu dùng);
   giữ layer này cho brochure export khác. */
.info-fig{margin:clamp(26px,3.4vw,44px) auto 0; max-width:720px}
.info-fig img{width:100%; height:auto; display:block; border-radius:var(--r-card); box-shadow:0 24px 48px -32px rgba(4,40,20,.35)}
.info-fig figcaption{margin-top:10px; text-align:center; color:var(--muted); font-size:13px}

/* (Bảng .m-ffs cũ đã gỡ 07/2026 — chỉ còn /gioi-thieu dùng nên infographic
   Quy mô FFF chuyển thành 3 thẻ mắt xích .gt-ffs ở layer trang, gioi-thieu.css.) */

/* =====================================================   SIGNATURE QUOTE — câu nói dấu ấn dùng chung (F1: mỗi chuyên trang
   có "một câu nói hay"). Rút gọn từ .pb-quote (PTBV) thành component
   site-wide → Chuỗi 3F, Quy mô… dùng lại không lặp CSS.
   ============================================================ */
.sig-quote{background:linear-gradient(180deg, var(--flow-mint2, var(--flow-cream)) 0%, var(--bg) 100%)}
.sig-quote__inner{
  position:relative; max-width:860px; margin-inline:auto; text-align:center;
  padding-top:clamp(34px,4.4vw,56px);
}
.sig-quote__mark{
  position:absolute; top:-12px; left:50%; transform:translateX(-50%);
  font-family:var(--font-display); font-weight:700; line-height:1;
  font-size:clamp(80px,10vw,132px); color:var(--green); opacity:.18;
  pointer-events:none; user-select:none;
}
.sig-quote blockquote{
  margin:0; font-family:var(--font-display); font-weight:500;
  color:var(--head); font-size:clamp(21px,2.7vw,33px); line-height:1.42;
  text-wrap:balance;
}
.sig-quote figcaption{margin-top:clamp(16px,2vw,24px)}
.sig-quote__name{font-weight:800; color:var(--ink); font-size:15.5px}
.sig-quote__role{margin-top:3px; color:var(--muted); font-size:13.5px; font-weight:600}

/* =====================================================   OUTLET CARD — thẻ điểm bán dùng chung cho các bộ lọc "nơi mua"
   (Meatshop #he-thong, Thực phẩm sạch #he-thong-phan-phoi). Markup do
   initOutletLocator() trong main.js sinh ra, nên class phải nằm ở LAYER
   CHUNG — để ở CSS riêng của một trang thì trang kia sẽ mất style.
   ============================================================ */
.outlet-card{
  padding:20px 22px; border-radius:var(--r-card);
  background:var(--white); border:1px solid var(--line-light);
  transition:transform var(--t-3) var(--ease), border-color var(--t-3) var(--ease);
}
.outlet-card:hover{ transform:translateY(var(--lift-1)); border-color:var(--green) }
.outlet-card__name{ font-size:17px; font-weight:700; color:var(--head); margin:0 0 6px }
.outlet-card__addr{ font-size:15px; line-height:1.6; color:var(--ink-2); margin:0 }
.outlet-card__addr a{ color:var(--green-deep); font-weight:600; text-decoration:none }
.outlet-card__addr a:hover{ text-decoration:underline }
.outlet-card__tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px }
.outlet-card__prov,
.outlet-card__type{
  display:inline-block; padding:4px 12px; border-radius:999px;
  font-size:13px; font-weight:600; margin-bottom:8px;
}
.outlet-card__prov{ background:var(--cream); color:var(--green-deep) }
.outlet-card__type{ background:var(--eco-lite); color:var(--ink-2) }

/* ------------------------------------------------------------
   BỘ LỌC ĐIỂM BÁN DÙNG CHUNG (G17)
   Một component cho cả hai trang: Meatshop (#he-thong) và Thực phẩm sạch
   (#he-thong-phan-phoi). Trước đây markup/CSS bị nhân đôi (.ms-net__* vs
   .tps-net__*); nay gộp về .outlet-filter / .outlet-list / .outlet-locator.
   JS initOutletLocator bám theo ID (#ms-* / #tps-*) nên đổi class không ảnh hưởng.
   .outlet-locator--map = biến thể có bản đồ bên trái (Meatshop, G10).
   ------------------------------------------------------------ */
.outlet-locator{
  display:grid; gap:clamp(24px,3vw,44px); align-items:start;
  margin-top:clamp(26px,3vw,40px);
}
.outlet-locator--map{ grid-template-columns:minmax(0,340px) minmax(0,1fr); }
.outlet-locator__map{
  margin:0; position:sticky; top:96px;
  border-radius:var(--r-card); overflow:hidden;
  background:var(--white); border:1px solid var(--line-light);
}
.outlet-locator__map img{ width:100%; height:auto; display:block }
.outlet-locator__map figcaption{
  padding:12px 16px; font-size:13.5px; color:var(--muted);
  text-align:center; border-top:1px solid var(--line-light);
}

/* chip hệ thống siêu thị (thuc-pham-sach.html — opts.chains) — cùng ngôn ngữ pill
   với .prodcat__chip (danh mục sản phẩm) để đọc như một hệ thống component. */
.outlet-chips{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px }
.outlet-chips:empty{ display:none }
.outlet-chip{
  padding:9px 16px; border-radius:999px; font:inherit; font-size:14px; font-weight:600;
  color:var(--head); background:var(--white); border:1px solid var(--line-light); cursor:pointer;
  transition:background var(--t-1) var(--ease), color var(--t-1) var(--ease), border-color var(--t-1) var(--ease);
}
.outlet-chip:hover{ border-color:var(--green) }
.outlet-chip[aria-pressed="true"]{ background:var(--green); color:#fff; border-color:var(--green) }

.outlet-filter{ display:flex; flex-wrap:wrap; gap:12px; align-items:center }
.outlet-locator .outlet-filter{ margin-top:0 }
.outlet-filter__search{
  flex:1 1 260px; display:flex; align-items:center; gap:10px;
  padding:12px 18px; border-radius:999px;
  background:var(--white); border:1px solid var(--line-light);
}
.outlet-filter__search input{
  flex:1; border:0; background:none; font:inherit; font-size:15px;
  color:var(--head); outline:none; min-width:0;
}
.outlet-filter__search input::placeholder{ color:var(--muted) }
.outlet-filter__select{
  padding:12px 18px; border-radius:999px; font:inherit; font-size:15px;
  font-weight:600; color:var(--head); cursor:pointer;
  background:var(--white); border:1px solid var(--line-light);
}
.outlet-filter__count{ font-size:14px; color:var(--muted); margin-left:auto }

.outlet-list{
  list-style:none; margin:clamp(20px,2.4vw,30px) 0 0; padding:0;
  display:grid; gap:clamp(12px,1.4vw,16px);
  grid-template-columns:repeat(3,1fr);
}
.outlet-locator--map .outlet-list{ grid-template-columns:repeat(2,1fr) }
.outlet-empty{
  margin-top:24px; padding:36px 24px; text-align:center;
  border-radius:var(--r-card); background:var(--white);
  border:1px dashed var(--line); color:var(--muted); font-size:15px;
}
@media (max-width:1100px){ .outlet-list{ grid-template-columns:repeat(2,1fr) } }
@media (max-width:860px){
  .outlet-locator--map{ grid-template-columns:1fr }
  .outlet-locator__map{ position:static; max-width:440px }
}
@media (max-width:640px){
  .outlet-list{ grid-template-columns:1fr }
  .outlet-filter__count{ margin-left:0 }
}


/* =====================================================   OUTLET LOCATOR — viền rõ để PHÂN BIỆT thẻ + PAGER CHUNG TOÀN SITE
   09/09/2026 vòng 3 (khách chốt): trang HIỆN TẠI = KHUNG TRÒN trắng + bóng
   Button 17 (--sh-btn), chữ xanh đậm; số khác là số trần; prev/next là MŨI TÊN
   TRẦN không khung (không .btn-ico) — hover đổi màu xanh, disabled mờ. (Vòng 1
   là khung tròn + mũi tên trong khung; vòng 2 gạch chân — cả hai đã bỏ.)
   ============================================================ */
.outlet-card{ border-color:var(--green-line) }
:is(.outlet-pager, .prodcat__pager, .ni-pager, .qh-pager){
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px;
  margin-top:clamp(22px,2.8vw,40px);
}
:is(.outlet-pager, .prodcat__pager, .ni-pager, .qh-pager)[hidden]{ display:none }
:is(.outlet-pager__btn, .prodcat__pager-btn, .ni-pager__btn, .qh-pager__btn):not(.btn-ico){
  min-width:40px; height:40px; padding:0 8px;
  display:inline-flex; align-items:center; justify-content:center;
  font:inherit; font-size:14px; font-weight:600; color:var(--head);
  background:transparent; border:0; border-radius:50%; cursor:pointer;
  transition:color var(--t-1) var(--ease), background var(--t-2) var(--ease), box-shadow 280ms cubic-bezier(.4,0,.2,1), opacity var(--t-1) var(--ease);
}
:is(.outlet-pager__btn, .prodcat__pager-btn, .ni-pager__btn, .qh-pager__btn):hover:not(:disabled):not(.is-current):not(.btn-ico){ color:var(--green) }
:is(.outlet-pager__btn, .prodcat__pager-btn, .ni-pager__btn, .qh-pager__btn):focus-visible{ outline:2px solid var(--green); outline-offset:2px }
:is(.outlet-pager__btn, .prodcat__pager-btn, .ni-pager__btn, .qh-pager__btn).is-current{
  color:var(--green-deep); font-weight:700; cursor:default;
  background:var(--white); box-shadow:var(--sh-btn);
}
:is(.outlet-pager__btn, .prodcat__pager-btn, .ni-pager__btn, .qh-pager__btn):disabled:not(.btn-ico){ opacity:.42; cursor:default }
/* prev/next: mũi tên trần, cùng ô 40px với số; icon theo màu chữ (mask currentColor) */
:is(.outlet-pager__nav, .prodcat__pager-nav, .ni-pager__nav, .qh-pager__nav) .ico{ width:20px; height:20px }
:is(.outlet-pager__gap, .prodcat__pager-gap, .ni-pager__gap, .qh-pager__gap){
  min-width:24px; text-align:center; color:var(--muted); font-weight:700; user-select:none;
}

/* =====================================================   CLIP BO GÓC — CHỐNG "XÉN VUÔNG" (FB 08/05)
   =====================================================   Triệu chứng khách báo: "card tin tức mặc định không bo, hover mới bo tròn".
   Nguyên nhân: overflow:hidden + border-radius chỉ xén con TRONG CÙNG lớp vẽ.
   Ảnh con có transform:scale khi hover ⇒ trình duyệt promote nó lên GPU layer
   riêng ⇒ xén bằng HÌNH CHỮ NHẬT. Lúc hover có repaint nên góc bo mới hiện ra —
   đúng như khách mô tả. isolation:isolate ép khung cha tạo stacking context nên
   clip bo góc được áp cùng nhóm vẽ với con.

   Danh sách = MỌI khung tự xén bo góc có CON bị transform (quét toàn bộ
   assets/css/). Khung chỉ tự transform bản thân (.scard, .sp-sku, .pb-commit__item,
   .modal__dialog) KHÔNG nằm đây: transform của chính nó không phá clip của nó.

   CẢNH BÁO cho lần sau: headless screenshot KHÔNG tái hiện được lỗi này (không
   hover, không chạy reveal ⇒ không promote layer). Verify bằng ảnh chụp sẽ PASS
   giả. Thêm khung media bo góc + ảnh zoom mới ⇒ thêm selector vào đây.

   Ba khung cùng triệu chứng từng nằm ngoài danh sách vì markup đã bị gỡ:
   .nf__media (tin-tuc), .pb-story__media (ptbv), .qh-3f__media (qhcd). 08/05 đã
   XOÁ HẲN phần CSS chết đó khỏi 3 file layer-3 → nay không còn selector nào để
   nhắc. Nếu dựng lại các khối trên thì viết lại CSS VÀ thêm vào danh sách dưới. */
:is(
  .header__beam,          /* common   — thanh tiến trình, <i> scaleX  */
  .ncard__media,          /* index + tin-tuc — CARD TIN TỨC (khách báo) */
  .atl__thumb,            /* bai-viet — thumb "bài mới nhất"         */
  .aw-card__media,        /* giai-thuong — ảnh giải thưởng           */
  .gt-ov__pic,            /* gioi-thieu  — cụm ảnh tổng quan         */
  .cgt-area,              /* lvkd     — card vùng chăn nuôi          */
  .qh-rep,                /* qhcd     — thẻ báo cáo (đã có inline)   */
  .pb-tile,               /* ptbv     — ô ảnh lưới                   */
  .nf-peek__viewport      /* tin-tuc  — khung slider Tiêu điểm       */
){ isolation:isolate }

/* ---- LỚP PHÒNG THỦ 2 (08/05 vòng 2) — CON TỰ BO GÓC ----------------------
   Khách BÁO LẠI đúng triệu chứng cũ sau khi đã có isolation:isolate ở trên
   ⇒ isolate KHÔNG đủ: nó chỉ tạo stacking context, không ép trình duyệt áp
   clip BO GÓC lên layer con đã bị promote. Cách chắc ăn là không phụ thuộc
   clip của cha nữa: cho chính ảnh con bo góc BẰNG cha (`inherit`). Ảnh lấp
   đầy khung 100%×100% nên hai đường bo trùng khít — không đổi hình dạng,
   chỉ thêm một đường phòng thủ.
   Chỉ áp cho ảnh LẤP ĐẦY khung. Ảnh nằm trong khung con riêng (.cgt-area,
   .nfp-card) xử lý ở CSS trang tương ứng.

   DANH SÁCH DƯỚI KHÔNG PHẢI GÕ TAY — quét bằng harness `_frames.html`: duyệt
   mọi trang, tìm phần tử có `overflow:hidden` + radius ≥6px mà CON TRỰC TIẾP là
   img/video lấp ≥90% khung, rồi so radius cha với radius con. Chạy lại harness
   đó sau khi thêm khối media mới; hàng nào in "THIẾU" thì thêm selector vào đây. */
:is(
  /* đợt 1 — khung có ảnh zoom khi hover */
  .ncard__media,
  .atl__thumb,
  .aw-card__media,
  .gt-ov__pic,
  .qh-rep,
  .pb-tile,
  /* đợt 2 (khách báo lần 3) — khung KHÔNG có transform ở con, vẫn mất bo góc:
     bản thân khung mang .reveal nên bị promote lúc vào-màn */
  .gt-msg__media,          /* ban-lanh-dao — chân dung Chủ tịch        */
  .pp__photo,              /* ban-lanh-dao — ô chân dung lãnh đạo      */
  .htf-ms__media,          /* hanh-trinh   — ảnh mốc sự kiện           */
  .tps-brand-intro__banner,/* tps/thsp/san-pham — banner anfarm·Kooltos*/
  .lvkd-editorial__media,  /* lvkd         — ảnh editorial             */
  .lvkd-ms2-intro__media,  /* lvkd         — poster Meatshop 1:1       */
  .ms-photo,               /* meatshop     — ảnh dải marquee           */
  .pb-cover,               /* ptbv         — bìa báo cáo               */
  .pb-hero__frame,         /* ptbv         — khung lá hero             */
  .art-cover__frame,       /* bai-viet     — ảnh bìa bài               */
  .pmodal__photo,          /* ban-lanh-dao — ảnh trong modal tiểu sử   */
  .mdet__media             /* index        — ảnh trong panel bản đồ    */
) > img{ border-radius:inherit }

/* Slider Tiêu điểm: KHÔNG dùng cách trên — track trượt ngang nhiều thẻ, bo
   từng thẻ sẽ lộ góc tròn giữa khung lúc đang trượt. Thay vào đó promote
   CHÍNH khung cắt lên layer ⇒ bo góc thành thuộc tính của layer, luôn đúng. */
.nf-peek__viewport{ will-change:transform }


/* =====================================================   FORM LIÊN HỆ + POPUP CẢM ƠN — CHUYỂN TỪ utility.css SANG ĐÂY (2026-08-26)
   Lý do: khối form của trang Liên hệ nay đóng CUỐI 10 trang (thay dải .m-cta cũ
   theo FB khách), nhưng .cform/.cfact/.modal/.thanks trước nằm ở utility.css —
   file mà 7 trang trong số đó KHÔNG nạp (bai-viet · gioi-thieu · hanh-trinh ·
   phat-trien-ben-vung · quan-he-co-dong · thong-cao-bao-chi · tin-baf) → form
   hiện ra không có style. Cách khác là nhét thêm <link utility.css> vào 7 trang,
   nhưng thế là tải kèm cả §error-page/§search/§sitemap/§apply-modal không dùng.
   Chuyển hẳn 2 section dùng-chung vào common.css: 1 request, không CSS thừa.
   THỨ TỰ CASCADE giữ nguyên đối với common.css (đặt ở CUỐI file, đúng chỗ nó
   từng đứng khi utility.css nạp sau); .amodal ở utility.css §4b vẫn nạp sau nên
   vẫn đè được như cũ.
   ============================================================ */
/* =====================================================   3. CONTACT FORM  (lien-he.html)
   Two-column on desktop: intro rail + the form card.
   ============================================================ */
.cform__wrap{
  display:grid; gap:clamp(30px,4vw,64px);
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  align-items:start;
}
@media (max-width:900px){ .cform__wrap{grid-template-columns:1fr} }

/* left rail: quiet contact facts */
/* FB 08/03 (PDF tr.7): title CAPSLOCK — THÔNG TIN LIÊN HỆ */
.cform__aside h2{font-size:clamp(24px,2.6vw,32px); color:var(--head); letter-spacing:var(--ls-title); text-transform:uppercase}
.cform__aside p{margin-top:14px; color:var(--muted); font-size:16.5px; line-height:1.75; max-width:42ch}
.cform__facts{margin-top:clamp(24px,3vw,36px); display:flex; flex-direction:column; gap:20px}
.cfact{display:flex; gap:14px; align-items:flex-start}
.cfact__ico{
  flex:none; width:46px; height:46px; border-radius:50%;
  display:grid; place-items:center;
  background:var(--green); color:#fff;
  transition:transform var(--t-2) var(--ease);
}
.cfact:hover .cfact__ico{transform:translateY(var(--lift-1))}
.cfact__ico .ico{width:19px; height:19px}
.cfact__label{display:block; font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted)}
.cfact__val{margin-top:3px; font-size:16px; color:var(--head); font-weight:600; line-height:1.5}
.cfact__val a{color:inherit; transition:color var(--t-1) var(--ease)}
.cfact__val a:hover{color:var(--green)}

/* working-hours block — balances the aside against the taller form card */
.cform__hours{
  margin-top:clamp(26px,3vw,36px); padding-top:clamp(22px,2.6vw,30px);
  border-top:1px solid var(--line-light); max-width:42ch;
}
.cform__hours-label{
  display:block; margin-bottom:12px;
  font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted);
}
.cform__hours-row{
  display:flex; justify-content:space-between; gap:16px;
  padding:7px 0; font-size:15px; color:var(--ink-2);
}
.cform__hours-row + .cform__hours-row{border-top:1px dashed var(--line-light)}
.cform__hours-row b{color:var(--head); font-weight:700}

/* the form card */
.cform{
  background:var(--white); border-radius:var(--r-card);
  padding:clamp(22px,2.8vw,36px);
  box-shadow:0 1px 0 var(--line-light);
}
/* 2026-08-26 (khách: "cho khoảng cách các form trong form liên hệ nhỏ lại, giảm
   height của form nội dung"): siết nhịp dọc trong thẻ form. Khoảng hở giữa các ô
   16–22 → 12–16, đệm trong ô 14 → 12, và ô Nội dung 140 → 104px.
   KHÔNG động vào chiều cao ô nhập (padding 12px + font 16px ≈ 46px): dưới ~44px
   là chạm ngưỡng vùng chạm trên di động. */
.cform__row{
  display:grid; gap:clamp(12px,1.5vw,16px);
  grid-template-columns:1fr 1fr; margin-bottom:clamp(12px,1.5vw,16px);
}
@media (max-width:560px){ .cform__row{grid-template-columns:1fr} }

.field{display:flex; flex-direction:column; gap:6px; margin-bottom:clamp(12px,1.5vw,16px)}
.cform__row .field{margin-bottom:0}
.field__label{
  font-size:13px; font-weight:700; letter-spacing:.03em; color:var(--head);
}
.field__label .req{color:var(--red); margin-left:2px}
.field__input,
.field__area{
  font-family:var(--font-body); font-size:16px; color:var(--ink);
  background:var(--bg); border:1px solid var(--line); border-radius:var(--r);
  padding:12px 15px; width:100%;
  transition:border-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease), background var(--t-2) var(--ease);
}
.field__area{min-height:104px; resize:vertical; line-height:1.6}
.field__input::placeholder,
.field__area::placeholder{color:var(--muted); opacity:.7}
.field__input:focus,
.field__area:focus{
  outline:none; background:var(--white);
  border-color:var(--green); box-shadow:0 0 0 4px rgba(0,139,68,.08);
}
/* native + JS validation error state */
.field.is-error .field__input,
.field.is-error .field__area{
  border-color:var(--red); box-shadow:0 0 0 4px rgba(235,28,36,.07);
}
.field__error{
  font-size:12.5px; color:var(--red); font-weight:600;
  height:0; overflow:hidden; opacity:0; transition:opacity var(--t-1) var(--ease);
}
.field.is-error .field__error{height:auto; opacity:1}

/* ---- VI TƯƠNG TÁC FORM (2026-08-26) ---------------------------------------
   Form nay đóng CUỐI 10 trang nên là khối được tương tác nhiều nhất site. */
/* nhãn sáng theo ô đang gõ — cho biết con trỏ đang ở đâu mà không cần nhìn viền */
.field:focus-within .field__label{ color:var(--green) }
.field__label{ transition:color var(--t-1) var(--ease) }
/* ô báo lỗi rung NGANG một nhịp: đủ để mắt bắt được, không đẩy layout vì là
   transform. Chỉ chạy khi lỗi VỪA xuất hiện (animation, không phải transition). */
@keyframes fieldNudge{
  0%,100%{ transform:translateX(0) }
  25%{ transform:translateX(-4px) }
  75%{ transform:translateX(4px) }
}
.field.is-error .field__input,
.field.is-error .field__area{ animation:fieldNudge .26s var(--ease) }
/* ô đồng ý: checkbox mặc định của trình duyệt không có nhịp chuyển; accent-color
   đã đúng màu brand, thêm phóng nhẹ khi hover/tick cho có phản hồi */
.cform__consent input{ transition:transform var(--t-1) var(--ease) }
.cform__consent:hover input{ transform:scale(1.12) }
.cform__consent a{ transition:color var(--t-1) var(--ease), text-decoration-color var(--t-1) var(--ease) }
.cform__consent a:hover{ color:var(--green-deep) }
@media (prefers-reduced-motion:reduce){
  .field.is-error .field__input,
  .field.is-error .field__area{ animation:none }
  .cform__consent:hover input{ transform:none }
}

.cform__consent{
  display:flex; gap:11px; align-items:flex-start;
  margin:2px 0 clamp(14px,1.8vw,18px); font-size:14px; color:var(--muted); line-height:1.55;
}
.cform__consent input{margin-top:3px; accent-color:var(--green); width:16px; height:16px; flex:none}
.cform__consent a{color:var(--green); text-decoration:underline; text-underline-offset:2px}

.cform__submit{width:100%; justify-content:center}
.cform__submit[aria-busy="true"]{opacity:.7; pointer-events:none}

/* =====================================================   4. THANK-YOU MODAL  (reusable overlay)
   Hidden by default; JS toggles .is-open on .modal.
   ============================================================ */
.modal{
  position:fixed; inset:0; z-index:var(--z-modal);
  display:grid; place-items:center; padding:24px;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity var(--t-2) var(--ease), visibility var(--t-2) var(--ease);
}
.modal.is-open{opacity:1; visibility:visible; pointer-events:auto}
.modal__scrim{
  position:absolute; inset:0;
  background:rgba(11,20,14,.52); backdrop-filter:blur(3px);
}
.modal__dialog{
  position:relative; z-index:1; width:min(480px,100%);
  background:var(--white); border-radius:var(--r-card);
  padding:clamp(34px,4vw,52px) clamp(28px,3.4vw,44px);
  text-align:center;
  transform:translateY(14px) scale(.97);
  transition:transform var(--t-3) var(--ease);
  overflow:hidden;
}
.modal.is-open .modal__dialog{transform:translateY(0) scale(1)}
/* soft glow behind the check — same decor idiom as the heroes */
.modal__dialog::before{
  content:""; position:absolute; z-index:0; top:-40%; left:50%;
  transform:translateX(-50%); width:130%; aspect-ratio:1; border-radius:50%;
  background:var(--blob-green); opacity:.5; filter:blur(18px); pointer-events:none;
}
.modal__dialog > *{position:relative; z-index:1}

/* animated tick */
.thanks__check{
  width:78px; height:78px; margin:0 auto clamp(18px,2vw,24px);
  border-radius:50%; background:var(--green); color:#fff;
  display:grid; place-items:center;
}
.thanks__check svg{width:38px; height:38px; fill:none; stroke:#fff; stroke-width:3;
  stroke-linecap:round; stroke-linejoin:round}
.thanks__check path{
  stroke-dasharray:36; stroke-dashoffset:36;
  transition:stroke-dashoffset .5s var(--ease) .15s;
}
.modal.is-open .thanks__check path{stroke-dashoffset:0}

.thanks__title{font-size:clamp(24px,2.8vw,30px); color:var(--head); letter-spacing:-.01em}
.thanks__lead{margin-top:12px; color:var(--muted); font-size:16px; line-height:1.7}
.thanks__actions{margin-top:clamp(24px,3vw,32px); display:flex; gap:12px; justify-content:center; flex-wrap:wrap}

.modal__close{
  position:absolute; top:14px; right:14px; z-index:2;
  width:38px; height:38px; border-radius:50%;
  display:grid; place-items:center; color:var(--muted);
  background:transparent; transition:background var(--t-1) var(--ease), color var(--t-1) var(--ease);
}
.modal__close:hover{background:var(--cream); color:var(--head)}
.modal__close svg{width:18px; height:18px; stroke:currentColor; stroke-width:2; fill:none; stroke-linecap:round}

@media (prefers-reduced-motion:reduce){
  .modal__dialog,.thanks__check path,.shit{transition:none}
}

/* ============================================================
   5. XEM TRƯỚC PDF (.pdfv)  — khung xem dùng chung mọi trang
   Biến thể của .modal §4: khung ĐẶC (không glow), rộng gần hết
   màn để đọc được trang A4, thanh tiêu đề + nút mở tệp gốc trên
   cùng. Markup do initPdfPreview() dựng, không nằm trong HTML.
   ============================================================ */
.pdfv__dialog{
  width:min(1080px,100%); height:min(88svh,900px);
  padding:0; text-align:left;
  display:flex; flex-direction:column; overflow:hidden;
}
.pdfv__dialog::before{display:none}   /* bỏ quầng sáng của modal cảm ơn */

.pdfv__bar{
  display:flex; align-items:center; gap:14px;
  padding:14px 62px 14px clamp(16px,2vw,24px);   /* chừa chỗ nút đóng góc phải */
  border-bottom:1px solid var(--line); background:var(--cream);
}
.pdfv__title{
  flex:1; min-width:0; font-family:var(--font-display); font-weight:700;
  color:var(--head); font-size:clamp(14px,1.3vw,16.5px); line-height:1.4;
}
.pdfv__open{
  flex:none; display:inline-flex; align-items:center;
  padding:8px 16px; border-radius:var(--r-btn);
  box-shadow:inset 0 0 0 1.5px var(--green-line);
  font-size:13px; font-weight:800; color:var(--head); white-space:nowrap;
  transition:background var(--t-2) var(--ease), color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease);
}
.pdfv__open:hover{background:var(--green); color:#fff; box-shadow:inset 0 0 0 1.5px var(--green)}
/* KHÔNG XOÁ THEO KẾT QUẢ GREP HTML: .pdfv__open do initPdfPreview() dựng lúc chạy,
   không có trong file .html nào — quét dead-CSS bằng cách tìm class trong HTML sẽ
   kết luận nhầm là chết (đã bị gỡ một lần 26/08/2026, phải khôi phục). */
.pdfv__open[hidden]{display:none}   /* display:inline-flex ở trên nuốt mất thuộc tính hidden */
.pdfv .modal__close{top:50%; transform:translateY(-50%); right:12px; background:var(--white)}
.pdfv .modal__close:hover{background:var(--sand)}

.pdfv__body{position:relative; flex:1; min-height:0; background:var(--surface-cool)}
.pdfv__frame{display:block; width:100%; height:100%; border:0}
/* vệt chờ khi trình xem PDF còn tải (tệp báo cáo 12–56 MB) */
.pdfv__body.is-loading::after{
  content:""; position:absolute; inset:0;
  background:var(--surface-cool) url(../images/logo%20icon.svg) center/38px no-repeat;
  opacity:.5; animation:pdfv-pulse 1.2s var(--ease) infinite alternate;
}
@keyframes pdfv-pulse{from{opacity:.28}to{opacity:.6}}

/* trang giấy minh hoạ — tài liệu chưa nối tệp thật */
.pdfv__body.is-demo{overflow:auto; background:var(--surface-cool)}
.pdfv__demo{display:flex; justify-content:center; height:100%; padding:clamp(20px,3vw,40px)}
/* Tờ A4 lấy CHIỀU CAO làm chuẩn (height + aspect-ratio) để luôn lọt trong khung,
   không phải cuộn mới thấy hết — bản demo chỉ có một trang. */
.pdfv__sheet{
  height:100%; aspect-ratio:1/1.414; width:auto; max-width:100%;
  background:var(--white); border-radius:var(--r-sm);
  box-shadow:0 24px 60px -30px rgba(1,45,23,.45);
  padding:clamp(28px,4vw,52px);
  display:flex; flex-direction:column; align-items:flex-start; gap:14px;
}
.pdfv__sheet-logo{width:clamp(96px,10vw,132px); height:auto}
.pdfv__sheet-t{
  margin-top:auto; font-family:var(--font-display); font-weight:700;
  color:var(--head); font-size:clamp(18px,2vw,24px); line-height:var(--lh-title);
}
.pdfv__sheet-note{color:var(--muted); font-size:14px; line-height:1.6}
.pdfv__sheet-lines{display:block; width:100%; margin-top:8px}
.pdfv__sheet-lines i{display:block; height:8px; border-radius:var(--r-sm); background:var(--line); margin-top:10px}
.pdfv__sheet-lines i:nth-child(3){width:82%}
.pdfv__sheet-lines i:nth-child(6){width:58%}

@media (max-width:720px){
  .pdfv{padding:0}
  .pdfv__dialog{width:100%; height:100svh; border-radius:0}
  /* 09/09: sheet A4 (height:100% + aspect-ratio + max-width) gãy tỉ lệ trên phone →
     để bề ngang cầm trịch, cao theo tỉ lệ, không dãn. */
  .pdfv__sheet{width:100%; height:auto; max-height:100%}
  }


/* ---- NỀN KHỐI LIÊN HỆ CUỐI TRANG CON (2026-08-26 · FB khách "đổi màu nền cho
   section liên hệ trong các trang con để cho nó tách ra so với các section trên").
   Khối form dùng CHUNG markup với lien-he.html; phân biệt bằng modifier
   .section--contact chỉ đặt ở 8 trang con — lien-he.html giữ .section--cream nên
   KHÔNG ăn rule này (trang đó vốn đã là trang liên hệ, không cần tách).
   Vì sao cần: đuôi gradient .subpage .main là trắng → mint rất nhạt, mà thẻ .cform
   nền TRẮNG → khối form chìm hẳn vào nền. Mint --green-soft đủ tối để thẻ trắng
   nổi lên, vẫn cùng họ xanh brand.
   Rule .subpage .section--cream{background:transparent} ở §SUBPAGE có cùng
   specificity (0,2,0); rule này đứng SAU trong file nên thắng. */
/* 2026-08-26 vòng 3: khối liên hệ nay đóng CUỐI MỌI TRANG CON (19 trang, gồm cả
   sitemap · tìm kiếm · 3 trang pháp lý · 404/500) — trước chỉ có 8 trang.
   GIỮ tiền tố .subpage: khách đã chốt KHÔNG thêm vào trang chủ, mà mọi trang có
   khối này đều mang body.subpage (đã soát đủ 19). Từng bỏ .subpage đi để phủ luôn
   trang chủ rồi trả lại — nếu sau này thêm vào trang chủ (body.homepage) thì phải
   bỏ tiền tố ở CẢ 9 rule dưới đây, thiếu một cái là ra khối form không nền.
   Nền = artwork màn intro (thành phố isometric nét mảnh). Dùng bản POSTER TĨNH
   intro-lines-poster.jpg (82KB, frame 0 của intro-lines.webm) — khách yêu cầu
   "không chuyển động", và đây cũng là lý do KHÔNG lấy intro.svg: file đó 1.5MB
   với 111 đường động, nặng gấp 18 lần mà phần động thì không dùng tới.
   background-attachment để MẶC ĐỊNH (scroll): `fixed` là hiệu ứng parallax —
   vừa trái yêu cầu, vừa giật trên di động.
   Lớp phủ xanh đậm ở trên giữ tương phản chữ trắng: chỗ sáng nhất của ảnh sau
   khi phủ ~.7 vẫn cho ~7:1 với chữ trắng. Ảnh neo BOTTOM vì cụm thành phố nằm ở
   đáy khung, cắt kiểu cover thì phải giữ được đáy. */
.subpage .section--contact{
  /* 2026-08-26 vòng 2 (khách: "2 section liên hệ và footer màu gần giống nhau,
     không tách ra rõ ràng"): NÂNG SÁNG dải này.
     Gốc lỗi: footer là forest #024A28→#023B20, còn lớp phủ artwork em đặt ở vòng
     trước dùng tông tối rgba(0,58,30,.64–.80) — nó kéo dải liên hệ từ --green-deep
     xuống gần đúng vùng sáng của footer, hai dải dính thành một mảng.
     Nay lớp phủ đổi sang tông XANH BRAND SÁNG HƠN (#0A7A3E) nên dải nổi lên trên
     footer thành hai bậc rõ.
     Chọn độ sáng trong một CỬA SỔ HẸP, có tính:
       · sáng hơn footer đủ để tách: cần tỉ lệ ≥2 với L(footer)=.051 → L ≥ .151
       · vẫn đủ tối cho chữ trắng AA (4.5:1)                        → L ≤ .183
     Cấu hình này cho L≈.166 → tách footer 2.15:1, chữ trắng 4.86:1. Đổi số ở đây
     phải kiểm lại CẢ HAI đầu, nới một bên là hỏng bên kia. */
  background:
    linear-gradient(180deg, rgba(10,122,62,.80) 0%, rgba(10,122,62,.66) 46%, rgba(10,122,62,.76) 100%),
    url("../images/intro-lines-poster.jpg") center bottom / cover no-repeat,
    var(--green-deep);
  color:#fff;
}

/* Cột trái trên nền tối — theo đúng khuôn của các dải tối sẵn có (.pb-netzero,
   .htf-vision): chữ TRẮNG ĐẶC toàn bộ. (Vòng 1 dùng câu dẫn trắng 82% + nhãn phụ
   --green-mint; vòng 2 nâng sáng nền nên cả hai đều trượt AA — xem ghi chú ở
   .cfact__label bên dưới.)
   Thẻ .cform giữ nguyên nền TRẮNG nên tự nổi khối trên dải tối, không phải sửa. */
.subpage .section--contact .cform__aside h2{ color:#fff }
/* Nền sáng hơn nên --green-mint chỉ còn 3.50:1 — TRƯỢT AA. Chữ phụ chuyển về
   trắng đặc; phân cấp giữ bằng CỠ và tracking (nhãn 12px HOA giãn chữ vs giá trị
   16px/600), không bằng màu. Đừng hạ opacity để "cho nhạt": .90 là rơi xuống
   4.03:1, cũng trượt. */
.subpage .section--contact .cform__aside p{ color:#fff }
.subpage .section--contact .cfact__label{ color:#fff }
.subpage .section--contact .cfact__val{ color:#fff }
.subpage .section--contact .cfact__val a:hover{ color:var(--green-mint) }
/* vòng icon: nền --green (xanh brand) đặt trên --green-deep là xanh-trên-xanh,
   gần như mất hình. Đổi sang chip trắng mờ — cùng cách .m-cta__actions từng làm
   với nút viền trên dải tối. */
.subpage .section--contact .cfact__ico{ background:rgba(255,255,255,.14); color:#fff }
/* CHẶN chữ trắng tràn vào thẻ form: .section--contact đặt color:#fff cho cả dải
   (để mọi chữ lẻ trong cột trái tự sáng), nhưng .cform là thẻ nền TRẮNG. Mọi
   chữ trong đó hiện đều tự khai màu nên chưa lộ, song chỉ cần thêm một dòng
   không khai màu là biến thành trắng-trên-trắng — vô hình. */
.subpage .section--contact .cform{ color:var(--ink) }
.subpage .section--contact .cform__hours{ border-top-color:rgba(255,255,255,.22) }

/* ---- MŨI TÊN & ẢNH TRONG THẺ — nhịp dùng chung (2026-08-26) ----------------
   Trước đây mỗi khối tự khai chuyển động mũi tên (.link-arrow, .i3f__node, .bt…)
   nên chỗ có chỗ không. Một rule chung: mọi .ico--arrow nằm trong link/nút đều
   trượt khi hover phần tử cha, dùng --t-2 như hệ nút.
   :where() độ ưu tiên 0 → khối nào đã tự khai biên độ riêng vẫn thắng. */
:where(a, button) .ico--arrow{ transition:transform var(--t-2) var(--ease) }
:where(a, button):hover .ico--arrow,
:where(a, button):focus-visible .ico--arrow{ transform:translateX(5px) }


/* =====================================================   SELECTPOP — POPUP LỰA CHỌN DÙNG CHUNG (2026-08-26)

   Popup của <select> do HỆ ĐIỀU HÀNH vẽ, không nằm trong DOM → CSS
   không với tới. Component này thay MẶT NGOÀI của select bằng nút +
   panel HTML thật, còn <select> gốc vẫn ở lại làm NGUỒN DỮ LIỆU
   (giá trị + sự kiện `change`). Nhờ vậy mọi code đang bám vào select
   không phải sửa: initOutletLocator (đọc .value), initMsMap/initTpsMap
   (ghim bản đồ set .value rồi dispatch 'change'), applyLang (đổi text
   <option> qua data-en).

   Bật cho một select: thêm `data-selectpop` (xem initSelectPop, main.js).
   Không có JS → select native hiện nguyên vẹn, trang vẫn dùng được.

   Ngôn ngữ thị giác lấy nguyên từ .langdd__menu (popup duy nhất đang có
   trên site): nền trắng .97 + blur, bo 14px, bóng 2 lớp, item bo 9px,
   hover = xanh 12%, đang chọn = xanh 16% + chữ --head. Hai popup phải
   đọc như MỘT hệ, đừng bịa thang màu/bóng mới cho cái thứ hai.

   Panel portal thẳng ra <body> + position:fixed vì hai lý do:
   ① .outlet-filter--ms có overflow:hidden (bo góc thanh lọc) → panel
     absolute sẽ bị CẮT CỤT; ② bản đồ bên trái là position:sticky, panel
     nằm trong luồng sẽ chui xuống dưới nó.
   ============================================================ */

/* select thật: còn trong DOM (value + change + applyLang) nhưng không vẽ.
   Chỉ ẩn khi JS đã dựng xong nút thay thế (.is-selectpop trên wrapper). */
.selectpop-native{ display:none }

/* NÚT MỞ — mang luôn class của select cũ (.outlet-filter__select…) nên
   thừa hưởng nguyên vị trí/nền/viền/màu chữ mà trang đã khai. Ở đây chỉ
   lo phần select native không làm được: layout chữ + mũi tên. */
.selectpop__btn{
  display:inline-flex; align-items:center; gap:8px;
  font:inherit; text-align:left; cursor:pointer; appearance:none;
  /* <select> có hộp dòng RIÊNG (~1.2), không ăn line-height thân trang. Nút thì
     có → cao hơn ô tìm kiếm bên cạnh ~7px nếu để mặc định (đo ở .qh-filters). */
  line-height:1.25;
  transition:color var(--t-1) var(--ease), background var(--t-1) var(--ease);
}
.selectpop__value{
  flex:1 1 auto; min-width:0;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
/* mũi tên: .ico--chev là "›" — xoay 90° thành "⌄", mở thì lật lên (cùng
   ngữ pháp với .langdd__caret, chỉ khác là dùng icon có sẵn). */
.selectpop__btn .ico--chev{
  width:16px; height:16px; flex:0 0 auto; opacity:.62;
  transform:rotate(90deg);
  transition:transform var(--t-2) var(--ease), opacity var(--t-1) var(--ease);
}
.selectpop__btn[aria-expanded="true"] .ico--chev{ transform:rotate(-90deg); opacity:1 }
.selectpop__btn:focus-visible{ outline:2px solid var(--ring); outline-offset:-2px }

/* PANEL — vị trí (top/left/width/max-height) do JS đặt inline, CSS chỉ lo mặt */
.selectpop{
  position:fixed; z-index:var(--z-popover); top:0; left:0;
  display:flex; flex-direction:column; max-width:min(92vw,380px); padding:6px;
  background:rgba(255,255,255,.97); border-radius:14px;
  box-shadow:0 16px 36px rgba(16,22,15,.18), 0 0 0 1px rgba(16,22,15,.06);
  -webkit-backdrop-filter:blur(14px) saturate(150%); backdrop-filter:blur(14px) saturate(150%);
  opacity:0; transform:translateY(-6px) scale(.98); transform-origin:top left;
  pointer-events:none;
  transition:opacity var(--t-1) var(--ease), transform var(--t-1) var(--ease);
}
.selectpop[hidden]{ display:none }   /* [hidden] mặc định là display:none, nhưng display:flex ở trên đè mất */
.selectpop.is-open{ opacity:1; transform:none; pointer-events:auto }
/* bung LÊN khi thiếu chỗ bên dưới → gốc biến hình đổi theo cho đúng hướng */
.selectpop[data-place="top"]{ transform-origin:bottom left; transform:translateY(6px) scale(.98) }
.selectpop[data-place="top"].is-open{ transform:none }

.selectpop__head{
  display:none; align-items:center; justify-content:space-between; gap:10px;
  padding:6px 8px 8px; font-size:12px; font-weight:800;
  letter-spacing:.08em; text-transform:uppercase; color:var(--muted);
}

/* ô lọc — chỉ dựng khi danh sách dài (ngưỡng ở initSelectPop) */
.selectpop__search{
  display:flex; align-items:center; gap:8px; margin:2px 2px 6px; padding:8px 10px;
  border-radius:10px; background:var(--eco-lite);
  border:1px solid color-mix(in srgb, var(--green) 14%, transparent);
}
.selectpop__search .ico--search{ width:16px; height:16px; flex:0 0 auto; opacity:.55 }
.selectpop__search input{
  flex:1 1 auto; min-width:0; border:0; background:none; outline:none;
  font:inherit; font-size:14px; color:var(--head);
}
.selectpop__search input::placeholder{ color:var(--muted); font-weight:500 }

.selectpop__list{
  list-style:none; margin:0; padding:0; min-height:0;
  overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin;
}
/* nhãn <optgroup> — không bấm được, chỉ chia nhóm (QHCĐ: Định kỳ / Bất thường) */
.selectpop__group{
  padding:10px 10px 4px; font-size:11.5px; font-weight:800;
  letter-spacing:.08em; text-transform:uppercase; color:var(--muted);
}
.selectpop__group + .selectpop__opt{ margin-top:0 }
.selectpop__opt{
  display:flex; align-items:center; gap:10px; width:100%;
  padding:9px 10px; border:0; border-radius:9px; background:none; cursor:pointer;
  font:inherit; font-size:14px; font-weight:600; color:var(--ink); text-align:left;
  transition:background var(--t-1) var(--ease), color var(--t-1) var(--ease);
}
.selectpop__opt:hover,
.selectpop__opt.is-active{ background:color-mix(in srgb, var(--green) 12%, transparent); color:var(--head) }
.selectpop__opt[aria-selected="true"]{
  background:color-mix(in srgb, var(--green) 16%, transparent);
  color:var(--head); font-weight:700;
}
.selectpop__opt:focus-visible{ outline:2px solid var(--ring); outline-offset:-2px }
.selectpop__opt-label{ flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
/* dấu tick = 2 cạnh vuông xoay 45°, không tốn asset (cùng thủ pháp .langdd__caret) */
.selectpop__tick{
  width:6px; height:11px; flex:0 0 auto; margin-right:3px;
  border-right:2px solid currentColor; border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-1px);
  opacity:0; transition:opacity var(--t-1) var(--ease);
}
.selectpop__opt[aria-selected="true"] .selectpop__tick{ opacity:1 }
.selectpop__empty{
  padding:18px 12px; text-align:center; font-size:13.5px; color:var(--muted);
}
.selectpop__empty[hidden]{ display:none }

/* MOBILE — bảng trượt từ đáy (JS gắn .selectpop--sheet và XOÁ vị trí inline).
   Làm bằng class chứ không bằng @media vì vị trí do JS đặt inline: media query
   muốn thắng inline thì phải !important — thứ house rule §9 đã cấm. */
.selectpop-veil{
  position:fixed; inset:0; z-index:var(--z-popover);
  background:rgba(16,22,15,.42); opacity:0;
  transition:opacity var(--t-2) var(--ease);
}
.selectpop-veil.is-open{ opacity:1 }
.selectpop--sheet{
  top:auto; right:0; bottom:0; left:0;
  max-width:none; max-height:min(72vh,560px);
  padding:10px 12px calc(12px + env(safe-area-inset-bottom));
  border-radius:18px 18px 0 0;
  transform:translateY(14px); transform-origin:bottom center;
  transition:opacity var(--t-2) var(--ease), transform var(--t-2) var(--ease);
}
.selectpop--sheet .selectpop__head{ display:flex }
/* nút đóng chỉ có nghĩa ở bảng trượt — desktop đã có Esc / bấm ra ngoài */
.selectpop__close{
  display:none; width:30px; height:30px; flex:0 0 auto;
  border:0; border-radius:50%; background:color-mix(in srgb, var(--green) 10%, transparent);
  color:var(--head); font-size:20px; line-height:1; cursor:pointer;
  transition:background var(--t-1) var(--ease);
}
.selectpop__close:hover{ background:color-mix(in srgb, var(--green) 18%, transparent) }
.selectpop--sheet .selectpop__close{ display:grid; place-items:center }
.selectpop--sheet .selectpop__opt{ padding:13px 12px; font-size:15px }
.selectpop--sheet .selectpop__search{ margin-inline:0 }

@media (prefers-reduced-motion:reduce){
  .selectpop{ transition:opacity var(--t-1) var(--ease); transform:none }
  .selectpop[data-place="top"]{ transform:none }
  .selectpop--sheet{ transform:none }
}

/* ↑ Dấu `}` này TỪNG BỊ THIẾU (từ đợt chuyển §SLIDER lên đây 26/08). Hậu quả:
   toàn bộ §SLIDER phía dưới bị nuốt vào trong @media (prefers-reduced-motion),
   nên slider dùng chung CHỈ có style khi người dùng bật giảm chuyển động. Trang
   Hành trình không lộ vì file trang còn giữ một bản sao; trang Giải thưởng dùng
   chung nhưng KHÔNG nạp file đó ⇒ slider ở đó sẽ hiện trần trụi ngay khi có
   khung nào đủ 2 ảnh. CSS không báo lỗi, console im lặng, pixel-diff cũng không
   thấy vì harness luôn chụp ở chế độ reduced-motion — đúng chế độ khiến rule
   hoạt động. Nay đã có tools/check-css-syntax.py canh đúng loại lỗi này. */

/* ============ §SLIDER ẢNH TRONG MỘT KHUNG — dùng chung (2026-08-26) =====   Chuyển từ hanh-trinh-phat-trien.css lên đây khi trang Giải thưởng dùng lại:
   quy ước "1 ảnh giữ nguyên khung, >1 ảnh tự thành slider" nay áp cho mọi trang.
   Giữ nguyên tiền tố .htf-* để KHỎI phải sửa initHtfMedia + 8 khung ở trang
   Hành trình — cùng lối đã làm với .qh-typetabs (tabs QHCĐ dùng lại ở đây).
   Khung chỉ cần hook .js-htf-media; JS dựng track/mũi tên/chấm khi có >1 <img>. */
.htf-slider{ position:relative; isolation:isolate }
.htf-slider__track{
  display:flex; width:100%; height:100%;
  transition:transform var(--t-4) var(--ease);
}
@media (prefers-reduced-motion:reduce){ .htf-slider__track{ transition:none } }
.htf-slider__slide{ flex:0 0 100%; width:100%; height:100% }
.htf-slider__slide img{ width:100%; height:100%; object-fit:cover; display:block; border-radius:inherit }

/* mũi tên — bề mặt/bóng/hover do .btn-ico (Button 17 tròn, JS gắn class) lo;
   ở đây chỉ còn VỊ TRÍ + vùng chạm. 09/09/2026 thay nền kem mờ cũ. */
.htf-slider__nav{
  position:absolute; top:50%; translate:0 -50%; z-index:2;
}
.htf-slider__nav:focus-visible{ outline:2px solid var(--green); outline-offset:2px }
.htf-slider__nav--prev{ left:10px }
.htf-slider__nav--next{ right:10px }
/* Nút ‹ › 40px (32px dưới 560px) — hụt mốc chạm 44×44, nên vùng bấm nới ở mọi
   khổ chứ không chỉ trong media query. */
.htf-slider__nav::after{
  content:""; position:absolute; left:50%; top:50%;
  width:44px; height:44px; transform:translate(-50%,-50%);
}

/* chấm chỉ vị trí — đặt trong lòng ảnh, đáy giữa */
.htf-slider__dots{
  position:absolute; left:50%; bottom:10px; translate:-50% 0; z-index:2;
  display:flex; gap:6px;
}
.htf-slider__dot{
  width:7px; height:7px; padding:0; border:0; border-radius:50%; cursor:pointer;
  background:rgba(255,255,255,.55);
  /* ảnh mốc có tấm nền SÁNG (2023: phông trắng) → chấm trắng chìm hẳn. Viền tối mờ
     giữ chấm đọc được trên mọi ảnh. Dùng box-shadow, KHÔNG dùng filter:drop-shadow:
     filter trên con của khung bo góc làm mất clip (xem §media). */
  box-shadow:0 0 0 1px rgba(0,0,0,.22), 0 1px 4px rgba(0,0,0,.4);
  transition:width var(--t-2) var(--ease), background var(--t-2) var(--ease);
  position:relative;
}
/* Chấm 7px với gap 6px ⇒ khoảng cách tâm-tâm chỉ 13px, nên KHÔNG THỂ có vùng
   bấm 44×44 mà không chồng lên chấm bên cạnh — chồng vùng bấm còn tệ hơn vùng
   bấm nhỏ vì bấm đâu cũng ra chấm khác. Nới HẾT CỠ theo chiều DỌC (44px, trục
   này rảnh) và chỉ lấn nửa gap theo chiều ngang ⇒ vùng bấm 13×44, không chồng
   nhau. Ai cần chính xác hơn vẫn có nút ‹ › hai bên đã đủ 44×44. */
.htf-slider__dot::after{
  content:""; position:absolute; left:50%; top:50%;
  width:calc(100% + 6px); height:44px; transform:translate(-50%,-50%);
}
.htf-slider__dot.is-active{ width:20px; border-radius:99px; background:#fff }
.htf-slider__dot:focus-visible{ outline:2px solid #fff; outline-offset:2px }

@media (max-width:560px){
  .htf-slider__nav.btn-ico{ width:32px; height:32px }   /* thắng .btn-ico--sm 40px */
  .htf-slider__nav--prev{ left:6px }
  .htf-slider__nav--next{ right:6px }
}
