/* GoKey — CSS chung cho trang dịch vụ (landing). Biến thể bố cục: .lokey-lp-<mục>--<biến thể>.
   Màu riêng từng trang ở landing-xx.css qua biến --lp-a (nhấn), --lp-t (nền nhạt), --lp-d (đậm). */
.lokey-lp-page { --lp-a: var(--r); --lp-t: #fff3f3; --lp-d: var(--r2); margin-block: 0 !important; } /* 04/12: không ép margin ngang = 0, để khối alignfull trải hết màn hình */
.lokey-lp { margin-block: 0 !important; padding-block: var(--sec); }
.lokey-lp--soft { background: var(--soft); }
.lokey-lp > * { box-sizing: border-box; }
.lokey-lp__title { margin-block: 0 12px !important; font-size: var(--fs-h2); }
.lokey-lp__lead { margin-block: 0 clamp(18px, 2vw, 28px) !important; margin-left: max(0px, calc((100% - var(--wrap)) / 2)) !important; max-width: 980px; color: var(--muted); font-size: var(--fs-md); }
.lokey-lp h3 { font-size: var(--fs-lg); margin: 0 0 6px; }
.lokey-lp p { margin-block: 0 0; }
.lokey-lp .lokey-icon { display: inline-flex; color: var(--lp-a); }
.lokey-lp-n1 { --n: 1; } .lokey-lp-n2 { --n: 2; } .lokey-lp-n3 { --n: 3; } .lokey-lp-n4 { --n: 4; } .lokey-lp-n5 { --n: 5; } .lokey-lp-n6 { --n: 6; } .lokey-lp-n7 { --n: 7; }
.lokey-lp-page .wp-block-group > * + * { margin-block-start: 0; }

/* ---------- HERO ---------- */
.lokey-lp-hero { padding-block: clamp(24px, 3.5vw, 56px); background: linear-gradient(180deg, var(--lp-t), #fff 85%); }
.lokey-lp-hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 64px); align-items: center; }
.lokey-lp-hero__text { display: flex; flex-direction: column; gap: 14px; }
.lokey-lp-hero__text > * { margin: 0 !important; }
.lokey-lp-hero__h1 { font-size: var(--fs-h1); line-height: 1.2; }
.lokey-lp-hero__h1 strong { color: var(--lp-a); }
.lokey-lp-hero__lead { font-size: var(--fs-md); color: var(--muted); }
.lokey-lp-hero__specs { display: block; padding: 0 !important; list-style: none; }
.lokey-lp-hero__specs li { display: inline-flex; margin: 0 8px 8px 0; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
.lokey-lp-hero__specs li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lp-a); }
.lokey-lp-hero__media .wp-block-image { margin: 0; }
.lokey-lp-hero__img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-h); }
.lokey-lp-hero--split-rev .lokey-lp-hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.lokey-lp-hero--split-rev .lokey-lp-hero__media { order: -1; }
.lokey-lp-hero--stack .lokey-lp-hero__in, .lokey-lp-hero--wide .lokey-lp-hero__in { grid-template-columns: 1fr; }
.lokey-lp-hero--stack .lokey-lp-hero__media { order: -1; }
.lokey-lp-hero--stack .lokey-lp-hero__img img, .lokey-lp-hero--wide .lokey-lp-hero__img img { aspect-ratio: 21 / 8; }
.lokey-lp-hero--stack .lokey-lp-hero__text, .lokey-lp-hero--wide .lokey-lp-hero__text { align-items: center; text-align: center; max-width: 980px; margin-inline: auto; }
.lokey-lp-hero--stack .lokey-lp-btns, .lokey-lp-hero--stack .lokey-lp-hero__specs, .lokey-lp-hero--wide .lokey-lp-hero__specs { justify-content: center; }
.lokey-lp-hero--stack .lokey-btns, .lokey-lp-hero--wide .lokey-btns { justify-content: center; }
.lokey-lp-hero--card .lokey-lp-hero__in { grid-template-columns: 1fr; position: relative; }
.lokey-lp-hero--card .lokey-lp-hero__media { grid-row: 1; grid-column: 1; }
.lokey-lp-hero--card .lokey-lp-hero__img img { aspect-ratio: 16 / 7; }
.lokey-lp-hero--card .lokey-lp-hero__text { grid-row: 1; grid-column: 1; align-self: end; justify-self: start; z-index: 1; width: min(640px, 92%); margin: 0 0 clamp(16px, 2.5vw, 32px) clamp(16px, 2.5vw, 32px) !important; padding: clamp(18px, 2.4vw, 32px); border-radius: 18px; background: rgba(255, 255, 255, .96); box-shadow: var(--shadow-h); }
.lokey-lp-hero--panel .lokey-lp-hero__text { padding: clamp(20px, 3vw, 40px); border-left: 6px solid var(--lp-a); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.lokey-lp-hero--panel .lokey-lp-hero__img img { aspect-ratio: 1; border-radius: 50% 20px 20px 20px; }
.lokey-lp-hero--frame .lokey-lp-hero__img img { box-shadow: 14px 14px 0 var(--lp-a); border-radius: 18px; }
.lokey-lp-hero--frame .lokey-lp-hero__specs li { border-color: var(--lp-a); }
.lokey-lp-hero--wide .lokey-lp-hero__media { margin-top: 8px; }
@media (max-width: 900px) {
	.lokey-lp-hero__in, .lokey-lp-hero--split-rev .lokey-lp-hero__in { grid-template-columns: 1fr; }
	.lokey-lp-hero__media, .lokey-lp-hero--split-rev .lokey-lp-hero__media, .lokey-lp-hero--stack .lokey-lp-hero__media { order: 2; }
	.lokey-lp-hero--card .lokey-lp-hero__text { grid-row: auto; width: 100%; margin: 0 !important; padding: 0; background: none; box-shadow: none; }
	.lokey-lp-hero--card .lokey-lp-hero__media { grid-row: 2; }
	.lokey-lp-hero__img img, .lokey-lp-hero--stack .lokey-lp-hero__img img, .lokey-lp-hero--wide .lokey-lp-hero__img img, .lokey-lp-hero--card .lokey-lp-hero__img img { aspect-ratio: 16 / 10; }
	.lokey-lp-hero--panel .lokey-lp-hero__img img { aspect-ratio: 16 / 10; border-radius: 18px; }
	.lokey-lp-hero--stack .lokey-lp-hero__text, .lokey-lp-hero--wide .lokey-lp-hero__text { align-items: stretch; text-align: left; }
	.lokey-lp-hero--panel .lokey-lp-hero__text { padding: 0 0 0 14px; box-shadow: none; border-radius: 0; background: none; }
	.lokey-lp-hero__specs { order: 9; }
}
@media (max-width: 600px) { .lokey-lp-hero__specs li { white-space: normal; } .lokey-lp-hero { padding-top: 18px; } }

/* ---------- TRẢ LỜI NHANH ---------- */
.lokey-lp-quick__box > * { margin: 0 !important; }
.lokey-lp-quick__q { font-size: var(--fs-xl) !important; }
.lokey-lp-quick__a { font-size: var(--fs-md); }
.lokey-lp-quick--box .lokey-lp-quick__box { max-width: 1100px; margin-inline: auto; padding: clamp(20px, 3vw, 36px); border: 2px solid var(--lp-a); border-radius: 20px; background: #fff; display: grid; gap: 10px; }
.lokey-lp-quick--chips .lokey-lp-quick__box { display: grid; gap: 10px; padding-left: 22px; border-left: 5px solid var(--lp-a); }
.lokey-lp-quick--list2 .lokey-lp-quick__box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px 40px; align-items: start; padding: clamp(18px, 2.5vw, 30px); border-radius: 20px; background: var(--lp-t); }
@media (max-width: 800px) { .lokey-lp-quick--list2 .lokey-lp-quick__box { grid-template-columns: 1fr; } }

/* ---------- TÌNH HUỐNG ---------- */
.lokey-lp-cases__grid { display: grid; gap: var(--gap); }
.lokey-lp-case { display: flex; flex-direction: column; gap: 8px; }
.lokey-lp-case > * { margin: 0 !important; }
.lokey-lp-case__d { color: var(--muted); font-size: var(--fs-sm); }
.lokey-lp-cases--grid .lokey-lp-cases__grid { grid-template-columns: repeat(3, 1fr); }
.lokey-lp-cases--grid .lokey-lp-case { padding: 22px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); border-top: 4px solid var(--lp-a); }
.lokey-lp-cases--list .lokey-lp-cases__grid { grid-template-columns: repeat(2, 1fr); counter-reset: c; gap: 0 40px; }
.lokey-lp-cases--list .lokey-lp-case { position: relative; padding: 16px 0 16px 56px; border-bottom: 1px solid var(--line); }
.lokey-lp-cases--list .lokey-lp-case::before { counter-increment: c; content: counter(c, decimal-leading-zero); position: absolute; left: 0; top: 14px; font: 700 26px/1 var(--ff-h); color: var(--lp-a); }
.lokey-lp-cases--list .lokey-lp-case__ic { display: none; }
.lokey-lp-cases--tiles .lokey-lp-cases__grid { grid-template-columns: repeat(3, 1fr); }
.lokey-lp-cases--tiles .lokey-lp-case { display: grid; grid-template-columns: 54px 1fr; gap: 4px 14px; padding: 18px; border-radius: 16px; background: var(--lp-t); }
.lokey-lp-cases--tiles .lokey-lp-case__ic { grid-row: 1 / span 2; display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 14px; background: #fff; }
.lokey-lp-cases--rows .lokey-lp-cases__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.lokey-lp-cases--rows .lokey-lp-case { flex-direction: row; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.lokey-lp-cases--rows .lokey-lp-case__ic { flex: none; margin-top: 2px; }
.lokey-lp-cases--rows .lokey-lp-case__t, .lokey-lp-cases--rows .lokey-lp-case__d { flex: 1; }
.lokey-lp-cases--rows .lokey-lp-case { display: grid; grid-template-columns: 30px 1fr; }
.lokey-lp-cases--rows .lokey-lp-case__ic { grid-row: 1 / span 2; }
@media (max-width: 1100px) { .lokey-lp-cases--grid .lokey-lp-cases__grid, .lokey-lp-cases--tiles .lokey-lp-cases__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .lokey-lp-cases__grid, .lokey-lp-cases--grid .lokey-lp-cases__grid, .lokey-lp-cases--tiles .lokey-lp-cases__grid, .lokey-lp-cases--list .lokey-lp-cases__grid, .lokey-lp-cases--rows .lokey-lp-cases__grid { grid-template-columns: 1fr; } }

/* ---------- VIỆC GOKEY LÀM + THỬ TRƯỚC ---------- */
.lokey-lp-work__in { display: grid; gap: var(--gap); }
.lokey-lp-work__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.lokey-lp-work__list li { position: relative; padding-left: 32px; }
.lokey-lp-work__list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--lp-a) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.lokey-lp-tips { padding: clamp(18px, 2.4vw, 28px); border-radius: 18px; background: #fffbe8; border: 1px solid #f1df9a; }
.lokey-lp-tips > * { margin: 0 !important; }
.lokey-lp-tips__t { margin-bottom: 10px !important; }
.lokey-lp-tips__list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.lokey-lp-work--cols .lokey-lp-work__in.has-tips { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.lokey-lp-work--cards .lokey-lp-work__list { grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.lokey-lp-work--cards .lokey-lp-work__list li { padding: 18px 18px 18px 50px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.lokey-lp-work--cards .lokey-lp-work__list li::before { left: 16px; top: 20px; }
.lokey-lp-work--checklist .lokey-lp-work__main { max-width: 1000px; }
.lokey-lp-work--checklist .lokey-lp-work__list li { padding: 12px 0 12px 36px; border-bottom: 1px dashed var(--line); }
.lokey-lp-work--checklist .lokey-lp-work__list li::before { top: 14px; }
.lokey-lp-work--checklist .lokey-lp-tips { max-width: 1000px; }
.lokey-lp-work--cards .lokey-lp-work__list li:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
@media (max-width: 1100px) { .lokey-lp-work--cards .lokey-lp-work__list { grid-template-columns: repeat(2, 1fr); } .lokey-lp-work--cards .lokey-lp-work__list li:last-child:nth-child(3n+1) { grid-column: auto; } .lokey-lp-work--cards .lokey-lp-work__list li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 800px) { .lokey-lp-work--cols .lokey-lp-work__in.has-tips, .lokey-lp-work--cards .lokey-lp-work__list { grid-template-columns: 1fr; } }

/* ---------- CÁC LOẠI ---------- */
.lokey-lp-types__grid { display: grid; gap: var(--gap); }
.lokey-lp-type > * { margin: 0 !important; }
.lokey-lp-type__d { color: var(--muted); font-size: var(--fs-sm); margin-top: 6px !important; }
.lokey-lp-types--cards .lokey-lp-types__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.lokey-lp-types--cards .lokey-lp-type { grid-column: span 4; }
.lokey-lp-types--cards .lokey-lp-n4 .lokey-lp-type, .lokey-lp-types--cards .lokey-lp-types__grid.lokey-lp-n4 > * { grid-column: span 3; }
.lokey-lp-types--cards .lokey-lp-types__grid.lokey-lp-n5 > :nth-child(n+4) { grid-column: span 6; }
.lokey-lp-types--cards .lokey-lp-types__grid.lokey-lp-n2 > * { grid-column: span 6; }
@media (max-width: 1100px) { .lokey-lp-types--cards .lokey-lp-types__grid > *, .lokey-lp-types--cards .lokey-lp-types__grid.lokey-lp-n4 > * { grid-column: span 6; } .lokey-lp-types--cards .lokey-lp-types__grid.lokey-lp-n3 > :last-child, .lokey-lp-types--cards .lokey-lp-types__grid.lokey-lp-n5 > :last-child { grid-column: 1 / -1; } .lokey-lp-types--cards .lokey-lp-types__grid.lokey-lp-n5 > :nth-child(4) { grid-column: span 6; } }
@media (max-width: 600px) { .lokey-lp-types--cards .lokey-lp-types__grid > * { grid-column: 1 / -1 !important; } }
.lokey-lp-types--cards .lokey-lp-type { padding: 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.lokey-lp-types--cards .lokey-lp-type__t { color: var(--lp-d); }
/* chủ site 04/12: không giấu thẻ trong dải cuộn ngang — mọi cỡ màn hình đều xếp lưới, hiện đủ */
.lokey-lp-types--chips .lokey-lp-types__grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lokey-lp-types--chips .lokey-lp-type { padding: 18px 20px; background: var(--lp-t); }
@media (max-width: 1100px) { .lokey-lp-types--chips .lokey-lp-types__grid > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 600px) { .lokey-lp-types--chips .lokey-lp-types__grid { grid-template-columns: minmax(0, 1fr); } }
.lokey-lp-types--chips .lokey-lp-type { border-radius: 20px; }
.lokey-lp-types__table { margin: 0; overflow-x: auto; }
.lokey-lp-types__table table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; }
.lokey-lp-types__table th { background: var(--lp-d); color: #fff; text-align: left; padding: 12px 16px; font-family: var(--ff-h); }
.lokey-lp-types__table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lokey-lp-types__table td:first-child { width: 28%; }
@media (min-width: 1101px) {
	.lokey-lp-types--chips .lokey-lp-types__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.lokey-lp-types--chips .lokey-lp-types__grid > * { grid-column: span 4; }
	.lokey-lp-types--chips .lokey-lp-types__grid.lokey-lp-n4 > * { grid-column: span 3; }
	.lokey-lp-types--chips .lokey-lp-types__grid.lokey-lp-n2 > *, .lokey-lp-types--chips .lokey-lp-types__grid.lokey-lp-n5 > :nth-child(n+4) { grid-column: span 6; }
}
@media (max-width: 600px) { .lokey-lp-types__table td { display: block; width: auto !important; } .lokey-lp-types__table td:first-child { padding-bottom: 0; border-bottom: 0; } .lokey-lp-types__table thead { display: none; } }

/* ---------- LƯU Ý ---------- */
.lokey-lp-notes__grid { display: grid; gap: var(--gap); }
.lokey-lp-note > * { margin: 0 !important; }
.lokey-lp-note__d { color: var(--muted); margin-top: 6px !important; }
.lokey-lp-notes--callout .lokey-lp-notes__grid { padding: clamp(20px, 3vw, 34px); border-radius: 20px; background: #fff; border-left: 6px solid var(--lp-a); box-shadow: var(--shadow); grid-template-columns: repeat(3, 1fr); }
.lokey-lp-notes--two .lokey-lp-notes__grid { grid-template-columns: repeat(2, 1fr); }
.lokey-lp-notes--two .lokey-lp-note { padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.lokey-lp-notes--two .lokey-lp-note:first-child { grid-column: 1 / -1; background: var(--lp-t); border-color: transparent; }
.lokey-lp-notes--numbered .lokey-lp-notes__grid { grid-template-columns: repeat(3, 1fr); counter-reset: n; }
.lokey-lp-notes--numbered .lokey-lp-note { position: relative; padding-top: 52px; }
.lokey-lp-notes--numbered .lokey-lp-note::before { counter-increment: n; content: counter(n); position: absolute; top: 0; left: 0; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--lp-d); color: #fff; font: 700 20px/1 var(--ff-h); }
@media (max-width: 900px) { .lokey-lp-notes--callout .lokey-lp-notes__grid, .lokey-lp-notes--numbered .lokey-lp-notes__grid, .lokey-lp-notes--two .lokey-lp-notes__grid { grid-template-columns: 1fr; } }

/* ---------- QUY TRÌNH ---------- */
.lokey-lp-steps { display: grid; gap: var(--gap); }
.lokey-lp-step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 16px; align-items: start; scroll-margin-top: calc(var(--head-h) + 20px); }
.lokey-lp-step > * { margin: 0 !important; }
.lokey-lp-step__n { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--lp-d); color: #fff; font: 700 20px/1 var(--ff-h) !important; }
.lokey-lp-step__body > * { margin: 0 !important; }
.lokey-lp-step__d { color: var(--muted); font-size: var(--fs-sm); margin-top: 4px !important; }
.lokey-lp-process--cards .lokey-lp-steps { grid-template-columns: repeat(var(--n, 4), 1fr); }
.lokey-lp-process--cards .lokey-lp-step { grid-template-columns: 1fr; padding: 22px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.lokey-lp-process--timeline .lokey-lp-steps { position: relative; max-width: 900px; gap: 22px; }
.lokey-lp-process--timeline .lokey-lp-steps::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: repeating-linear-gradient(var(--lp-a) 0 8px, transparent 8px 14px); }
.lokey-lp-process--timeline .lokey-lp-step__n { position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--soft); }
.lokey-lp-process--line .lokey-lp-steps { grid-template-columns: repeat(var(--n, 4), 1fr); position: relative; }
.lokey-lp-process--line .lokey-lp-steps::before { content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 3px; background: var(--lp-a); opacity: .35; }
.lokey-lp-process--line .lokey-lp-step { grid-template-columns: 1fr; position: relative; }
.lokey-lp-process--line .lokey-lp-step__n { box-shadow: 0 0 0 6px #fff; }
.lokey-lp--soft.lokey-lp-process--line .lokey-lp-step__n { box-shadow: 0 0 0 6px var(--soft); }
.lokey-lp-process--zigzag .lokey-lp-steps { grid-template-columns: repeat(2, 1fr); gap: 18px 40px; }
.lokey-lp-process--zigzag .lokey-lp-step { padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.lokey-lp-process--zigzag .lokey-lp-step:nth-child(even) { transform: translateY(28px); }
.lokey-lp-process--zigzag .lokey-lp-steps { padding-bottom: 28px; }
@media (max-width: 1000px) { .lokey-lp-process--cards .lokey-lp-steps, .lokey-lp-process--line .lokey-lp-steps { grid-template-columns: repeat(2, 1fr); } .lokey-lp-process--line .lokey-lp-steps::before { display: none; } }
@media (max-width: 600px) {
	.lokey-lp-process--cards .lokey-lp-steps, .lokey-lp-process--line .lokey-lp-steps, .lokey-lp-process--zigzag .lokey-lp-steps { grid-template-columns: 1fr; }
	.lokey-lp-process--zigzag .lokey-lp-step:nth-child(even) { transform: none; }
	.lokey-lp-process--zigzag .lokey-lp-steps { padding-bottom: 0; }
	.lokey-lp-process--cards .lokey-lp-step, .lokey-lp-process--line .lokey-lp-step { grid-template-columns: 40px minmax(0, 1fr); }
	.lokey-lp-step__n { width: 40px !important; height: 40px !important; font-size: 18px !important; }
	.lokey-lp-step { grid-template-columns: 40px minmax(0, 1fr); }
	.lokey-lp-process--timeline .lokey-lp-steps::before { left: 19px; }
}

/* ---------- GIÁ ---------- */
.lokey-lp-price__in { display: grid; gap: var(--gap); }
.lokey-lp-price__text > *, .lokey-lp-price__box > * { margin: 0 !important; }
.lokey-lp-price__list { margin: 0 0 18px !important; padding: 0; list-style: none; display: grid; gap: 10px; }
.lokey-lp-price__list li { position: relative; padding-left: 26px; }
.lokey-lp-price__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 3px; background: var(--lp-a); transform: rotate(45deg); }
.lokey-lp-price--box .lokey-lp-price__in { max-width: 1100px; padding: clamp(22px, 3vw, 40px); border-radius: 22px; background: #fff; border: 2px solid var(--lp-t); box-shadow: var(--shadow); }
.lokey-lp-price--split .lokey-lp-price__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
.lokey-lp-price--split .lokey-lp-price__box { padding: clamp(20px, 3vw, 34px); border-radius: 20px; background: var(--lp-t); }
.lokey-lp-price--ticket .lokey-lp-price__in { max-width: 1100px; margin-inline: auto; padding: clamp(22px, 3vw, 40px); border: 2px dashed var(--lp-a); border-radius: 22px; background: #fff; position: relative; }
.lokey-lp-price--ticket .lokey-lp-price__in::before, .lokey-lp-price--ticket .lokey-lp-price__in::after { content: ""; position: absolute; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--soft); border: 2px dashed var(--lp-a); }
.lokey-lp-price--ticket .lokey-lp-price__in::before { left: -16px; clip-path: inset(0 0 0 50%); }
.lokey-lp-price--ticket .lokey-lp-price__in::after { right: -16px; clip-path: inset(0 50% 0 0); }
.lokey-lp-page > .lokey-lp:not(.lokey-lp--soft).lokey-lp-price--ticket .lokey-lp-price__in::before, .lokey-lp-page > .lokey-lp:not(.lokey-lp--soft).lokey-lp-price--ticket .lokey-lp-price__in::after { background: #fff; }
@media (max-width: 800px) { .lokey-lp-price--split .lokey-lp-price__in { grid-template-columns: 1fr; } .lokey-lp-price--ticket .lokey-lp-price__in::before, .lokey-lp-price--ticket .lokey-lp-price__in::after { display: none; } }

/* ---------- ẢNH THỰC TẾ ---------- */
.lokey-lp-shots { display: grid; gap: 14px; }
.lokey-lp-shot { margin: 0 !important; }
.lokey-lp-shot img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.lokey-lp-shot figcaption { margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); text-align: center; }
.lokey-lp-gallery--grid .lokey-lp-shots { grid-template-columns: repeat(3, 1fr); }
.lokey-lp-gallery--grid .lokey-lp-shots.lokey-lp-n4 { grid-template-columns: repeat(4, 1fr); }
.lokey-lp-gallery--mosaic .lokey-lp-shots { grid-template-columns: repeat(4, 1fr); }
.lokey-lp-gallery--mosaic .lokey-lp-shot:first-child { grid-column: span 2; grid-row: span 2; }
.lokey-lp-gallery--mosaic .lokey-lp-shots.lokey-lp-n3 { grid-template-columns: 2fr 1fr; }
.lokey-lp-gallery--mosaic .lokey-lp-shots.lokey-lp-n3 .lokey-lp-shot:first-child { grid-column: 1; }
.lokey-lp-gallery--mosaic .lokey-lp-shots.lokey-lp-n4 .lokey-lp-shot:first-child { grid-row: span 1; grid-column: span 1; }
.lokey-lp-gallery--strip .lokey-lp-shots { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.lokey-lp-gallery--strip .lokey-lp-shot img { aspect-ratio: 3 / 4; }
@media (max-width: 900px) {
	.lokey-lp-gallery--grid .lokey-lp-shots, .lokey-lp-gallery--grid .lokey-lp-shots.lokey-lp-n4, .lokey-lp-gallery--mosaic .lokey-lp-shots, .lokey-lp-gallery--mosaic .lokey-lp-shots.lokey-lp-n3 { grid-template-columns: repeat(2, 1fr); }
	.lokey-lp-gallery--mosaic .lokey-lp-shot:first-child { grid-row: auto; grid-column: auto; }
	.lokey-lp-gallery--grid .lokey-lp-shot:last-child:nth-child(odd), .lokey-lp-gallery--mosaic .lokey-lp-shot:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.lokey-lp-gallery--grid .lokey-lp-shot:last-child:nth-child(odd) img, .lokey-lp-gallery--mosaic .lokey-lp-shot:last-child:nth-child(odd) img { aspect-ratio: 16 / 9; }
	.lokey-lp-gallery--strip .lokey-lp-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* hiện đủ, không cuộn ngang */
	.lokey-lp-shots.lokey-lp-n3 > .lokey-lp-shot:last-child:nth-child(odd), .lokey-lp-shots.lokey-lp-n5 > .lokey-lp-shot:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.lokey-lp-shots.lokey-lp-n3 > .lokey-lp-shot:last-child:nth-child(odd) img, .lokey-lp-shots.lokey-lp-n5 > .lokey-lp-shot:last-child:nth-child(odd) img { aspect-ratio: 16 / 9; }
}
@media (min-width: 901px) { .lokey-lp-gallery--mosaic .lokey-lp-shots.lokey-lp-n6 { grid-template-columns: repeat(3, 1fr); } .lokey-lp-gallery--mosaic .lokey-lp-shots.lokey-lp-n4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- CATALOG, KHU VỰC ---------- */
.lokey-lp-catalog .lokey-brands { margin-top: 6px; }
.lokey-lp-areas .lokey-areas { margin-top: 4px; }

/* ---------- HỎI ĐÁP (Rank Math FAQ: ngoài trang .rank-math-list-item, trong editor .rank-math-faq-item) ---------- */
.lokey-lp-faq .rank-math-list, .lokey-lp-faq .wp-block-rank-math-faq-block { display: grid; gap: 12px; }
.lokey-lp-faq .rank-math-list-item, .lokey-lp-faq .rank-math-faq-item { padding: 16px 20px 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.lokey-lp-faq .rank-math-question { margin: 0 0 8px !important; font-size: var(--fs-lg); }
.lokey-lp-faq .rank-math-answer { color: var(--muted); }
.lokey-lp-faq .rank-math-answer p { margin: 0; }
.lokey-lp-faq--center .lokey-lp-faq__head, .lokey-lp-faq--center .lokey-lp-faq__body { max-width: 960px; margin-inline: auto; }
.lokey-lp-faq--center .lokey-lp__title { text-align: center; }
.lokey-lp-faq--split .wp-block-group.lokey-lp-faq { }
.lokey-lp-faq--split { }
.lokey-lp-faq--split > .lokey-lp-faq__head { }
@media (min-width: 1001px) {
	.lokey-lp-faq--split { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2.2fr); gap: 40px; align-items: start; padding-inline: max(var(--pad), calc((100% - var(--wrap)) / 2)) !important; }
	.lokey-lp-faq--split > * { max-width: none !important; margin: 0 !important; }
	.lokey-lp-faq--split .lokey-lp-faq__head { position: sticky; top: calc(var(--head-h) + 20px); }
}
.lokey-lp-faq--numbered .rank-math-list, .lokey-lp-faq--numbered .wp-block-rank-math-faq-block { counter-reset: q; }
.lokey-lp-faq--numbered .rank-math-question::before { counter-increment: q; content: counter(q) ". "; color: var(--lp-a); }
.lokey-lp-faq--numbered .rank-math-list-item, .lokey-lp-faq--numbered .rank-math-faq-item { border: 0; border-bottom: 2px solid var(--lp-t); border-radius: 0; background: transparent; padding-inline: 0; }

/* Hero điện thoại: Gọi / Zalo ngay dưới H1 (máy 360×640) + giữ khác biệt từng biến thể */
@media (max-width: 900px) {
	.lokey-lp-hero__text { gap: 12px; }
	.lokey-lp-hero__h1 { order: 1; }
	.lokey-lp-hero__act { order: 2; }
	.lokey-lp-hero__lead { order: 3; }
	.lokey-lp-hero__act .lokey-btns { flex-direction: row !important; flex-wrap: nowrap; }
	.lokey-lp-hero__act .lokey-btn { flex: 1; width: auto !important; min-height: 46px; padding-inline: 10px; font-size: 15px; }
	/* stack / wide: ảnh tràn lề lên trên H1 */
	.lokey-lp-hero--stack .lokey-lp-hero__media, .lokey-lp-hero--wide .lokey-lp-hero__media { order: -1; margin-inline: calc(-1 * var(--pad)); }
	.lokey-lp-hero--stack .lokey-lp-hero__img img, .lokey-lp-hero--wide .lokey-lp-hero__img img { aspect-ratio: 16 / 8; border-radius: 0; box-shadow: none; }
	/* card: ảnh trước, ô chữ trắng đè mép dưới ảnh */
	.lokey-lp-hero--card .lokey-lp-hero__media { grid-row: 1; }
	.lokey-lp-hero--card .lokey-lp-hero__img img { aspect-ratio: 16 / 8; }
	.lokey-lp-hero--card .lokey-lp-hero__text { grid-row: 2; position: relative; margin-top: -42px !important; padding: 16px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
	/* split-rev: dải ảnh thấp ở trên */
	.lokey-lp-hero--split-rev .lokey-lp-hero__media { order: -1; }
	.lokey-lp-hero--split-rev .lokey-lp-hero__img img { aspect-ratio: 16 / 6; }
	/* panel: ảnh tròn nhỏ cạnh khung chữ */
	.lokey-lp-hero--panel .lokey-lp-hero__in { grid-template-columns: minmax(0, 1fr) 92px; align-items: start; }
	.lokey-lp-hero--panel .lokey-lp-hero__media { order: 0; grid-column: 2; grid-row: 1; }
	.lokey-lp-hero--panel .lokey-lp-hero__text { grid-column: 1; grid-row: 1; }
	.lokey-lp-hero--panel .lokey-lp-hero__img img { aspect-ratio: 1; border-radius: 50%; width: 92px; }
	/* frame: giữ khung bóng màu nhấn, ảnh vuông */
	.lokey-lp-hero--frame .lokey-lp-hero__img img { aspect-ratio: 1; box-shadow: 8px 8px 0 var(--lp-a); width: calc(100% - 8px); }
}
@media (max-width: 380px) { .lokey-lp-hero__act .lokey-btn { font-size: 14px; gap: 6px; } .lokey-lp-hero--panel .lokey-lp-hero__in { grid-template-columns: minmax(0, 1fr) 72px; } .lokey-lp-hero--panel .lokey-lp-hero__img img { width: 72px; } }
@media (max-width: 900px) { .lokey-lp-hero__text, .lokey-lp-hero__media { box-sizing: border-box; min-width: 0; } .lokey-lp-hero--card .lokey-lp-hero__text { width: auto !important; margin-inline: 8px !important; } }
@media (max-width: 900px) { .lokey-lp-hero--card .lokey-lp-hero__text { justify-self: stretch; margin-inline: 0 !important; padding: 14px 12px; } .lokey-lp-hero--card .lokey-lp-hero__act .lokey-btns { flex-wrap: wrap; } .lokey-lp-hero--card .lokey-lp-hero__act .lokey-btn { flex: 1 1 100%; } }

/* ---------- Ảnh chèn giữa trang + bớt ngợp chữ (03/12) ---------- */
.lokey-lp-media { margin: 0 !important; }
.lokey-lp-media img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-h); }
.lokey-lp-headsplit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: center; margin-bottom: clamp(22px, 3vw, 40px); }
.lokey-lp-headsplit .lokey-lp__lead { margin-left: 0 !important; margin-bottom: 0 !important; }
.lokey-lp-headsplit .lokey-lp-media img { aspect-ratio: 16 / 10; }
.lokey-lp-withmedia { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 56px); align-items: start; }
.lokey-lp-withmedia--rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.lokey-lp-withmedia--rev .lokey-lp-withmedia__side { order: -1; }
.lokey-lp-withmedia__side { position: sticky; top: calc(var(--head-h, 84px) + 20px); }
.lokey-lp-withmedia + .lokey-lp-work__in { margin-top: var(--gap); }
.lokey-lp-withmedia .lokey-lp-work__list { grid-template-columns: 1fr !important; }
.lokey-lp-withmedia .lokey-lp-notes__grid { grid-template-columns: 1fr !important; }
.lokey-lp-work--cards .lokey-lp-withmedia .lokey-lp-work__list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.lokey-lp-work--cards .lokey-lp-withmedia .lokey-lp-work__list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.lokey-lp-work--cards .lokey-lp-withmedia + .lokey-lp-work__in .lokey-lp-tips { max-width: none; }
.lokey-lp-work--cols .lokey-lp-withmedia + .lokey-lp-work__in.has-tips { grid-template-columns: 1fr; }
.lokey-lp-work__list li, .lokey-lp-note__d, .lokey-lp-case__d, .lokey-lp-type__d { line-height: 1.6; }
/* Ảnh cụm cuối: không chú thích, bo góc đều */
.lokey-lp-shot figcaption { display: none; }

/* Hỏi đáp dạng gập (JS thêm .is-faq-js; không JS thì mở hết) */
.is-faq-js .lokey-lp-faq .rank-math-list-item, .is-faq-js .lokey-lp-faq .rank-math-faq-item { padding-bottom: 16px; }
.is-faq-js .lokey-lp-faq .rank-math-question { position: relative; margin: 0 !important; padding-right: 44px; }
.lokey-faq-btn { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lokey-faq-btn:focus-visible { outline: 3px solid var(--key); outline-offset: 4px; border-radius: 6px; }
.is-faq-js .lokey-lp-faq .rank-math-question::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lp-t); color: var(--lp-d); font: 700 20px/1 var(--ff-h); }
.is-faq-js .lokey-lp-faq .is-open .rank-math-question::after { content: "–"; }
.is-faq-js .lokey-lp-faq .rank-math-answer { display: none; padding-top: 10px; }
.is-faq-js .lokey-lp-faq .is-open .rank-math-answer { display: block; }

@media (max-width: 900px) {
	.lokey-lp-headsplit, .lokey-lp-withmedia, .lokey-lp-withmedia--rev { grid-template-columns: 1fr; }
	.lokey-lp-withmedia__side { position: static; order: -1; }
	.lokey-lp-headsplit .lokey-lp-media { order: 2; }
	.lokey-lp-media img, .lokey-lp-headsplit .lokey-lp-media img { aspect-ratio: 16 / 10; }
	.lokey-lp-work--cards .lokey-lp-withmedia .lokey-lp-work__list { grid-template-columns: 1fr !important; }
	/* Ảnh đầu trang: dải ảnh lớn ở trên cùng cho mọi biến thể, H1 + Gọi / Zalo ngay dưới */
	.lokey-lp-hero__media, .lokey-lp-hero--split-rev .lokey-lp-hero__media, .lokey-lp-hero--stack .lokey-lp-hero__media, .lokey-lp-hero--panel .lokey-lp-hero__media { order: -1; grid-column: auto; grid-row: auto; }
	.lokey-lp-hero--panel .lokey-lp-hero__in { grid-template-columns: 1fr; }
	.lokey-lp-hero--panel .lokey-lp-hero__text { grid-column: auto; grid-row: auto; }
	.lokey-lp-hero__img img, .lokey-lp-hero--split-rev .lokey-lp-hero__img img, .lokey-lp-hero--panel .lokey-lp-hero__img img, .lokey-lp-hero--frame .lokey-lp-hero__img img { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; }
	.lokey-lp-hero--frame .lokey-lp-hero__img img { width: calc(100% - 8px); }
}

/* Sửa 04/12 (chủ site): hỏi đáp đánh số bị cắt chữ, các bước so le bị lệch, thẻ tình huống trên điện thoại icon cạnh tiêu đề */
.is-faq-js .lokey-lp-faq .rank-math-question { display: flex; align-items: baseline; gap: 6px; }
.is-faq-js .lokey-lp-faq .rank-math-question::before { flex: none; }
.lokey-faq-btn { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
.lokey-lp-process--zigzag .lokey-lp-step:nth-child(even) { transform: none; background: var(--lp-t); border-color: transparent; }
.lokey-lp-process--zigzag .lokey-lp-steps { padding-bottom: 0; align-items: stretch; }
@media (max-width: 700px) {
	.lokey-lp-cases--grid .lokey-lp-case { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 12px; padding: 16px 18px; }
	.lokey-lp-cases--grid .lokey-lp-case__ic { grid-column: 1; grid-row: 1; }
	.lokey-lp-cases--grid .lokey-lp-case__t { grid-column: 2; grid-row: 1; }
	.lokey-lp-cases--grid .lokey-lp-case__d { grid-column: 1 / -1; }
	.lokey-lp-cases--tiles .lokey-lp-case { grid-template-columns: 46px minmax(0, 1fr); align-items: center; }
	.lokey-lp-cases--tiles .lokey-lp-case__ic { grid-row: 1; width: 46px; height: 46px; }
	.lokey-lp-cases--tiles .lokey-lp-case__d { grid-column: 1 / -1; }
	.lokey-lp-cases--rows .lokey-lp-case { align-items: center; }
	.lokey-lp-cases--rows .lokey-lp-case__ic { grid-row: 1; }
	.lokey-lp-cases--rows .lokey-lp-case__d { grid-column: 1 / -1; }
}

/* Quy trình kiểu dòng thời gian (04/12): máy tính chia 2 cột — tiêu đề trái, các bước phải (hết lệch); đường nối dừng ở bước cuối */
.lokey-lp-process--timeline .lokey-lp-steps::before { display: none; }
.lokey-lp-process--timeline .lokey-lp-step { position: relative; }
.lokey-lp-process--timeline .lokey-lp-step:not(:last-child)::after { content: ""; position: absolute; left: 23px; top: 56px; bottom: -16px; width: 2px; background: repeating-linear-gradient(var(--lp-a) 0 8px, transparent 8px 14px); }
.lokey-lp-process--timeline .lokey-lp-step__n { box-shadow: 0 0 0 6px #fff; }
.lokey-lp--soft.lokey-lp-process--timeline .lokey-lp-step__n { box-shadow: 0 0 0 6px var(--soft); }
@media (min-width: 901px) {
	.lokey-lp-process--timeline { display: grid; grid-template-columns: minmax(0, 1fr) min(35%, 560px) min(60%, 980px) minmax(0, 1fr); column-gap: clamp(24px, 3vw, 56px); align-items: start; }
	.lokey-lp-process--timeline > * { margin: 0 !important; max-width: none !important; }
	.lokey-lp-process--timeline > .lokey-lp__title { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--head-h, 84px) + 24px); padding-top: 6px; }
	.lokey-lp-process--timeline > .lokey-lp__lead { grid-column: 2; grid-row: 2; }
	.lokey-lp-process--timeline > .lokey-lp-steps { grid-column: 3; grid-row: 1 / span 2; max-width: none; padding: clamp(20px, 2.4vw, 32px); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
	.lokey-lp--soft.lokey-lp-process--timeline > .lokey-lp-steps { background: #fff; }
	.lokey-lp-process--timeline .lokey-lp-step__n { box-shadow: 0 0 0 6px #fff !important; }
}
@media (max-width: 700px) { .lokey-lp-process--timeline .lokey-lp-step:not(:last-child)::after { left: 19px; top: 48px; } }

/* 04/12 (chủ site): số / icon nằm CÙNG DÒNG với tiêu đề ngắn, mô tả bên dưới — không xếp 3 tầng */
/* Các bước: kiểu thẻ, so le (mọi cỡ), kiểu đường ngang (khi đã bỏ đường nối ≤1000px) */
.lokey-lp-process--cards .lokey-lp-step, .lokey-lp-process--zigzag .lokey-lp-step { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 10px; align-items: center; }
.lokey-lp-process--cards .lokey-lp-step__body, .lokey-lp-process--zigzag .lokey-lp-step__body { display: contents; }
.lokey-lp-process--cards .lokey-lp-step__n, .lokey-lp-process--zigzag .lokey-lp-step__n { grid-column: 1; grid-row: 1; }
.lokey-lp-process--cards .lokey-lp-step__t, .lokey-lp-process--zigzag .lokey-lp-step__t { grid-column: 2; grid-row: 1; margin: 0 !important; }
.lokey-lp-process--cards .lokey-lp-step__d, .lokey-lp-process--zigzag .lokey-lp-step__d { grid-column: 1 / -1; grid-row: 2; margin: 0 !important; }
@media (max-width: 1000px) {
	.lokey-lp-process--line .lokey-lp-step { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 8px; align-items: center; }
	.lokey-lp-process--line .lokey-lp-step__body { display: contents; }
	.lokey-lp-process--line .lokey-lp-step__n { grid-column: 1; grid-row: 1; }
	.lokey-lp-process--line .lokey-lp-step__t { grid-column: 2; grid-row: 1; margin: 0 !important; }
	.lokey-lp-process--line .lokey-lp-step__d { grid-column: 1 / -1; grid-row: 2; margin: 0 !important; }
}
/* Lưu ý đánh số: ô số cạnh tiêu đề */
.lokey-lp-notes--numbered .lokey-lp-note { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 8px; align-items: center; padding-top: 0; }
.lokey-lp-notes--numbered .lokey-lp-note::before { position: static; grid-column: 1; grid-row: 1; }
.lokey-lp-notes--numbered .lokey-lp-note__t { grid-column: 2; grid-row: 1; }
.lokey-lp-notes--numbered .lokey-lp-note__d { grid-column: 1 / -1; grid-row: 2; }
/* Thẻ tình huống kiểu lưới: icon cạnh tiêu đề trên mọi cỡ màn hình */
.lokey-lp-cases--grid .lokey-lp-case { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 12px; }
.lokey-lp-cases--grid .lokey-lp-case__ic { grid-column: 1; grid-row: 1; }
.lokey-lp-cases--grid .lokey-lp-case__t { grid-column: 2; grid-row: 1; }
.lokey-lp-cases--grid .lokey-lp-case__d { grid-column: 1 / -1; }

/* 04/12: nút "Xem tất cả…" dưới lưới mẫu không dính sát thẻ (luật .lokey-lp p margin 0 đè mất) */
.lokey-lp .lokey-more { margin-top: clamp(26px, 2.6vw, 40px) !important; }
/* Ảnh từng loại chìa trong mục "Các loại…" */
.lokey-lp-type__img { margin: 0 0 14px !important; }
.lokey-lp-type__img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.lokey-lp-types--table .lokey-lp-type__thumb { display: block; width: 72px; height: 72px; margin-bottom: 8px; object-fit: cover; border-radius: 10px; }

/* ---------- Lưới tự xử lý mọi số thẻ (04/12) ----------
 * Lớp lokey-lp-nN được ghi vào nội dung lúc dựng trang → chủ site thêm / bớt thẻ trong trình soạn thảo thì lớp cũ vẫn còn.
 * Các quy tắc dưới đây đếm thẻ bằng CSS (:nth-child / :has), không dựa vào lớp nN: thêm thẻ thứ 7, 8… vẫn đều, không thẻ mồ côi. */
/* Lưới 3 cột (tình huống, lưu ý, ảnh): đổi sang 6 phần, hàng cuối thiếu thì giãn đầy */
@media (min-width: 1101px) {
	.lokey-lp-cases--grid .lokey-lp-cases__grid, .lokey-lp-cases--tiles .lokey-lp-cases__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	:is(.lokey-lp-cases--grid, .lokey-lp-cases--tiles) .lokey-lp-cases__grid > * { grid-column: span 2; }
	:is(.lokey-lp-cases--grid, .lokey-lp-cases--tiles) .lokey-lp-cases__grid > :last-child:nth-child(3n+1) { grid-column: 1 / -1; }
	:is(.lokey-lp-cases--grid, .lokey-lp-cases--tiles) .lokey-lp-cases__grid > :nth-last-child(2):nth-child(3n+1), :is(.lokey-lp-cases--grid, .lokey-lp-cases--tiles) .lokey-lp-cases__grid > :last-child:nth-child(3n+2) { grid-column: span 3; }
}
@media (min-width: 701px) and (max-width: 1100px) {
	:is(.lokey-lp-cases--grid, .lokey-lp-cases--tiles) .lokey-lp-cases__grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 901px) {
	:is(.lokey-lp-notes--callout, .lokey-lp-notes--numbered) .lokey-lp-notes__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	:is(.lokey-lp-notes--callout, .lokey-lp-notes--numbered) .lokey-lp-notes__grid > * { grid-column: span 2; }
	:is(.lokey-lp-notes--callout, .lokey-lp-notes--numbered) .lokey-lp-notes__grid > :last-child:nth-child(3n+1) { grid-column: 1 / -1; }
	:is(.lokey-lp-notes--callout, .lokey-lp-notes--numbered) .lokey-lp-notes__grid > :nth-last-child(2):nth-child(3n+1), :is(.lokey-lp-notes--callout, .lokey-lp-notes--numbered) .lokey-lp-notes__grid > :last-child:nth-child(3n+2) { grid-column: span 3; }
	.lokey-lp-notes--two .lokey-lp-notes__grid > :last-child:nth-child(even) { grid-column: 1 / -1; } /* thẻ 1 trải ngang, sau đó 2 cột → số chẵn ở cuối là lẻ hàng */
	/* Ảnh dạng lưới: đúng 4 ảnh → 4 cột; số khác → 3 cột, hàng cuối giãn đầy */
	.lokey-lp-gallery--grid .lokey-lp-shots, .lokey-lp-gallery--grid .lokey-lp-shots.lokey-lp-n4 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.lokey-lp-gallery--grid .lokey-lp-shots > * { grid-column: span 2; }
	.lokey-lp-gallery--grid .lokey-lp-shots > :last-child:nth-child(3n+1) { grid-column: 2 / span 4; }
	.lokey-lp-gallery--grid .lokey-lp-shots > :nth-last-child(2):nth-child(3n+1), .lokey-lp-gallery--grid .lokey-lp-shots > :last-child:nth-child(3n+2) { grid-column: span 3; }
	.lokey-lp-gallery--grid .lokey-lp-shots:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.lokey-lp-gallery--grid .lokey-lp-shots:has(> :nth-child(4):last-child) > * { grid-column: auto; }
	/* Mosaic: đếm bằng :has thay cho lớp n3 / n4 / n6 */
	.lokey-lp-gallery--mosaic .lokey-lp-shots:has(> :nth-child(3):last-child) { grid-template-columns: 2fr 1fr; }
	.lokey-lp-gallery--mosaic .lokey-lp-shots:has(> :nth-child(3):last-child) > :first-child { grid-column: 1; grid-row: span 2; }
	.lokey-lp-gallery--mosaic .lokey-lp-shots:has(> :nth-child(4):last-child) > :first-child, .lokey-lp-gallery--mosaic .lokey-lp-shots:has(> :nth-child(6):last-child) > :first-child { grid-row: span 1; grid-column: span 1; }
	.lokey-lp-gallery--mosaic .lokey-lp-shots:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, 1fr); }
	/* Quy trình dạng thẻ / đường ngang: mọi bước trên một hàng, bao nhiêu bước cũng được */
	.lokey-lp-process--cards .lokey-lp-steps, .lokey-lp-process--line .lokey-lp-steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}
@media (min-width: 901px) and (max-width: 1000px) {
	.lokey-lp-process--cards .lokey-lp-steps, .lokey-lp-process--line .lokey-lp-steps { grid-template-columns: repeat(2, 1fr); grid-auto-flow: row; }
}
/* Thẻ loại khoá: 3 thẻ / hàng (đúng 4 → 4, đúng 2 → 2), hàng cuối thiếu thì giãn đầy */
@media (min-width: 1101px) {
	:is(.lokey-lp-types--cards, .lokey-lp-types--chips) .lokey-lp-types__grid > *, :is(.lokey-lp-types--cards, .lokey-lp-types--chips) .lokey-lp-types__grid.lokey-lp-n4 > *, :is(.lokey-lp-types--cards, .lokey-lp-types--chips) .lokey-lp-types__grid.lokey-lp-n5 > :nth-child(n+4) { grid-column: span 4; }
	:is(.lokey-lp-types--cards, .lokey-lp-types--chips) .lokey-lp-types__grid > :last-child:nth-child(3n+1) { grid-column: span 12; }
	:is(.lokey-lp-types--cards, .lokey-lp-types--chips) .lokey-lp-types__grid > :nth-last-child(2):nth-child(3n+1), :is(.lokey-lp-types--cards, .lokey-lp-types--chips) .lokey-lp-types__grid > :last-child:nth-child(3n+2) { grid-column: span 6; }
	:is(.lokey-lp-types--cards, .lokey-lp-types--chips) .lokey-lp-types__grid:has(> :nth-child(4):last-child) > * { grid-column: span 3; }
}
@media (min-width: 601px) and (max-width: 1100px) {
	.lokey-lp-types--cards .lokey-lp-types__grid > *, .lokey-lp-types--cards .lokey-lp-types__grid.lokey-lp-n5 > :nth-child(4) { grid-column: span 6; }
	.lokey-lp-types--cards .lokey-lp-types__grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* Dải ảnh: tự chia cột theo số ảnh; 1–2 ảnh không phóng to hết khung */
.lokey-lp-gallery--strip .lokey-lp-shots { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.lokey-lp-gallery--strip .lokey-lp-shots:has(> :only-child) { max-width: 720px; margin-inline: auto; }
.lokey-lp-gallery--strip .lokey-lp-shots:has(> :nth-child(2):last-child) { max-width: 1100px; margin-inline: auto; }
.lokey-lp-gallery--strip .lokey-lp-shots:not(:has(> :nth-child(3))) .lokey-lp-shot img { aspect-ratio: 4 / 3; }
@media (max-width: 900px) {
	.lokey-lp-gallery--strip .lokey-lp-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lokey-lp-gallery--strip .lokey-lp-shots:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
	.lokey-lp-shots > .lokey-lp-shot:last-child:nth-child(odd):not(:only-child) { grid-column: 1 / -1; }
	.lokey-lp-shots > .lokey-lp-shot:last-child:nth-child(odd):not(:only-child) img { aspect-ratio: 16 / 9; }
}
/* Cụm ảnh dạng lưới (04/12, sau khi thêm hết ảnh đúng thư mục): ô ảnh luôn cùng cỡ, hàng cuối thiếu thì canh giữa
 * (không phóng to ô lẻ); ≥ 9 ảnh → 4 ảnh / hàng cho cụm ảnh đỡ dài; điện thoại 2 ảnh / hàng. Thay các quy tắc lưới 6 phần ở trên. */
.lokey-lp-gallery--grid .lokey-lp-shots, .lokey-lp-gallery--grid .lokey-lp-shots.lokey-lp-n4 { display: flex !important; flex-wrap: wrap; justify-content: center; }
.lokey-lp-gallery--grid .lokey-lp-shots > *, .lokey-lp-gallery--grid .lokey-lp-shots > :last-child:nth-child(odd), .lokey-lp-gallery--grid .lokey-lp-shots > :last-child:nth-child(3n+1), .lokey-lp-gallery--grid .lokey-lp-shots > :nth-last-child(2):nth-child(3n+1), .lokey-lp-gallery--grid .lokey-lp-shots > :last-child:nth-child(3n+2) { flex: 0 0 calc((100% - 2 * 14px) / 3); grid-column: auto; margin: 0; }
.lokey-lp-gallery--grid .lokey-lp-shots > * img, .lokey-lp-gallery--grid .lokey-lp-shot:last-child:nth-child(odd) img { aspect-ratio: 1; }
.lokey-lp-gallery--grid .lokey-lp-shots:has(> :nth-child(4):last-child) > *, .lokey-lp-gallery--grid .lokey-lp-shots:has(> :nth-child(9)) > * { flex-basis: calc((100% - 3 * 14px) / 4); }
@media (max-width: 900px) {
	.lokey-lp-gallery--grid .lokey-lp-shots > *, .lokey-lp-gallery--grid .lokey-lp-shots:has(> :nth-child(4):last-child) > *, .lokey-lp-gallery--grid .lokey-lp-shots:has(> :nth-child(9)) > *, .lokey-lp-gallery--grid .lokey-lp-shots > :last-child:nth-child(odd) { flex-basis: calc((100% - 14px) / 2); }
}
@media (max-width: 900px) { /* số ảnh lẻ: ảnh đầu trải ngang 16:9, còn lại 2 ảnh / hàng — không ảnh mồ côi */
	.lokey-lp-gallery--grid .lokey-lp-shots:has(> :last-child:nth-child(odd)) > :first-child { flex-basis: 100%; }
	.lokey-lp-gallery--grid .lokey-lp-shots:has(> :last-child:nth-child(odd)) > :first-child img { aspect-ratio: 16 / 9; }
}
/* Ảnh chủ site tự chèn vào cụm ảnh (chưa có lớp lokey-lp-shot — ngoài web theme tự gắn, trong trình soạn thảo dùng quy tắc này) */
.lokey-lp-shots > .wp-block-image { margin: 0 !important; }
.lokey-lp-shots > .wp-block-image img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
