/* ==========================================================================
   LeafCoupons — stylesheet toàn site
   Nạp qua wp_enqueue_style() từ lfc-content-installer.
   Mọi rule của site scope dưới .lfc để không đụng vào TT5.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. PRE-FLIGHT Twenty Twenty-Five
   Theo 03-KY-THUAT-DUNG-SITE.md — TT5 đẩy nội dung xuống 108px và bó
   max-width. Áp cho CẢ trang chủ lẫn 3 trang policy.
   -------------------------------------------------------------------------- */
/* Khoảng trắng 70px ở đỉnh: TT5 đặt margin-block-start trên <main>.
   Quy trình cũ nói rule này KHÔNG thắng và phải kéo wrapper bằng margin âm —
   nhưng đó là khi CSS nằm trong <style> giữa body. CSS site này nạp bằng
   wp_enqueue_style() ở <head> nên rule thẳng trên main thắng bình thường.
   Đã đo tại chỗ trên leafcoupons.com 07/08/2026: 70px → 0px. */
.wp-site-blocks main.wp-block-group{margin-block-start:0!important;margin-top:0!important}
.wp-site-blocks main .wp-block-group.alignfull{padding-top:0!important;padding-bottom:0!important}
.entry-content,.wp-block-post-content{margin-block-start:0!important;margin-block-end:0!important}
.lfc{margin-block-start:0!important;margin-block-end:0!important}

/* full-bleed — KHÔNG dùng hack 100vw / calc(50%-50vw), nó sinh cuộn ngang */
.wp-block-post-content.has-global-padding{padding-left:0!important;padding-right:0!important}
.lfc{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}

/* ẩn meta template thừa (title/byline/featured/categories render sau nội dung) */
main > .wp-block-group.alignfull.has-global-padding > :not(.wp-block-post-content){display:none!important}
/* ẩn "More posts" */
main > .wp-block-group.alignwide{display:none!important}

html,body{overflow-x:hidden}

/* --------------------------------------------------------------------------
   2. TOKEN
   Palette Goma duyệt 27/07 trên extractlabs.coupons: teal sâu + coral.
   -------------------------------------------------------------------------- */
.lfc{
  --ink:#12100e; --ink2:#4a463f; --muted:#8b857a;
  --paper:#ffffff; --alt:#faf8f4; --line:#e8e3d9;
  --brand:#0f4d47; --brand2:#146259; --mint:#7fd8c4;
  --coral:#e8563f; --coralink:#b83a26; --ok:#0f7a3d;
  --radius:14px;
  background:var(--paper); color:var(--ink);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased;
}
.lfc *{box-sizing:border-box}
.lfc a{color:inherit}
.lfc img{max-width:100%;height:auto;display:block}
.lfc .wrap{max-width:1080px;margin:0 auto;padding:0 20px}
.lfc .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* --------------------------------------------------------------------------
   3. HEADER
   TT5 header template part đã làm rỗng bằng code; header thật nằm ở đây.
   -------------------------------------------------------------------------- */
.lfc .lhead{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.94);
  backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.lfc .lhead .wrap{display:flex;align-items:center;gap:18px;padding-top:13px;padding-bottom:13px}
.lfc .logo{display:flex;align-items:center;gap:9px;font-weight:750;font-size:19px;
  letter-spacing:-.02em;text-decoration:none;color:var(--ink);flex:none}
.lfc .logo img{height:30px;width:auto;display:block}
.lfc .hsearch{flex:1;max-width:420px;position:relative}
.lfc .hsearch input{width:100%;padding:9px 14px 9px 36px;border:1px solid var(--line);
  border-radius:22px;font-size:14px;font-family:inherit;background:var(--alt);color:var(--ink)}
.lfc .hsearch svg{position:absolute;left:12px;top:10px;opacity:.45}
.lfc nav.top{display:flex;gap:18px;font-size:14px;color:var(--ink2);margin-left:auto}
.lfc nav.top a{text-decoration:none}
.lfc nav.top a:hover{color:var(--brand)}
@media(max-width:860px){.lfc nav.top{display:none}.lfc .hsearch{max-width:none}}

/* --------------------------------------------------------------------------
   4. HERO TRANG CHỦ — ảnh thật + scrim brand (chuẩn thị giác mục 6)
   -------------------------------------------------------------------------- */
.lfc .ihero{position:relative;color:#fff;overflow:hidden}
.lfc .ihero .ph{position:absolute;inset:0;background:#0d3a35 center 42%/cover no-repeat}
.lfc .ihero .scrim{position:absolute;inset:0;
  background:linear-gradient(100deg,rgba(15,77,71,.94) 0%,rgba(15,77,71,.88) 44%,rgba(15,77,71,.42) 100%);
  box-shadow:inset 0 -40px 60px -30px rgba(0,0,0,.5)}
.lfc .ihero .wrap{position:relative;z-index:2;padding:58px 20px 62px;text-align:center}
.lfc .kicker{font-size:12px;letter-spacing:.12em;text-transform:uppercase;
  opacity:.92;margin-bottom:14px;font-weight:600;color:var(--mint)}
.lfc .ihero h1{font-size:40px;line-height:1.15;margin:0 0 12px;letter-spacing:-.025em;font-weight:750}
.lfc .ihero p.lede{font-size:17px;opacity:.93;margin:0 auto 26px;max-width:620px}
.lfc .bigsearch{max-width:560px;margin:0 auto;position:relative}
.lfc .bigsearch input{width:100%;padding:15px 18px 15px 46px;border:0;border-radius:12px;
  font-size:16px;font-family:inherit;color:var(--ink)}
.lfc .bigsearch svg{position:absolute;left:16px;top:16px;opacity:.4}
.lfc .ihero .hint{font-size:13px;opacity:.75;margin-top:11px}
.lfc .trustrow{display:flex;gap:26px;justify-content:center;flex-wrap:wrap;margin-top:30px;font-size:13.5px;opacity:.93}
.lfc .trustrow span{display:flex;align-items:center;gap:7px}
.lfc .trustrow i{width:6px;height:6px;border-radius:50%;background:var(--mint);flex:none}
@media(max-width:900px){
  .lfc .ihero .wrap{padding:34px 20px 36px}
  .lfc .ihero h1{font-size:2.05rem;line-height:1.12;margin-bottom:10px}
  .lfc .ihero p.lede{font-size:15px;margin-bottom:18px}
  .lfc .trustrow{gap:10px;margin-top:18px;font-size:13px;flex-direction:column;align-items:center}
}

/* --------------------------------------------------------------------------
   5. SECTION chung
   -------------------------------------------------------------------------- */
.lfc .sec{padding:44px 0}
.lfc .sec.alt{background:var(--alt);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.lfc .shead{display:flex;justify-content:space-between;align-items:baseline;gap:14px;margin-bottom:20px;flex-wrap:wrap}
.lfc .shead h2{font-size:24px;margin:0;letter-spacing:-.02em}
.lfc .shead .note{font-size:13.5px;color:var(--muted)}
@media(max-width:900px){
  .lfc .sec{padding:30px 0}
  .lfc .shead{margin-bottom:14px}
  .lfc .shead h2{font-size:1.62rem}
}

/* --------------------------------------------------------------------------
   6. GRID BRAND (trang chủ)
   -------------------------------------------------------------------------- */
.lfc .chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}
.lfc .chip{background:#fff;border:1px solid var(--line);border-radius:20px;padding:6px 14px;
  font-size:13.5px;cursor:pointer;font-family:inherit;color:var(--ink2)}
.lfc .chip[aria-pressed="true"]{background:var(--brand);border-color:var(--brand);color:#fff}
.lfc .grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:14px}
.lfc .bcard{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;
  text-decoration:none;display:block;transition:transform .14s ease,box-shadow .14s ease}
.lfc .bcard:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(18,16,14,.09)}
.lfc .bcard .mono{width:42px;height:42px;border-radius:10px;display:flex;align-items:center;
  justify-content:center;font-weight:700;font-size:16px;color:#fff;margin-bottom:12px;letter-spacing:-.02em}
.lfc .bcard h3{margin:0 0 3px;font-size:16px;letter-spacing:-.01em}
.lfc .bcard .vert{font-size:12px;color:var(--muted);margin-bottom:11px}
.lfc .bcard .cdeal{font-size:14.5px;font-weight:700;color:var(--coralink);margin-bottom:2px}
.lfc .bcard .cnt{font-size:12.5px;color:var(--muted);margin-top:7px}
.lfc .empty{background:#fff;border:1px dashed var(--line);border-radius:var(--radius);
  padding:36px 24px;text-align:center;color:var(--ink2)}
.lfc .empty h3{margin:0 0 7px;font-size:17px;color:var(--ink)}
.lfc .empty p{margin:0;font-size:14.5px}

/* --------------------------------------------------------------------------
   7. HOW IT WORKS
   -------------------------------------------------------------------------- */
.lfc .howrow{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.lfc .how{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px}
.lfc .how .n{width:26px;height:26px;border-radius:50%;background:var(--brand);color:#fff;font-size:13px;
  display:flex;align-items:center;justify-content:center;font-weight:700;margin-bottom:11px}
.lfc .how h4{margin:0 0 6px;font-size:15.5px}
.lfc .how p{margin:0;font-size:14px;color:var(--ink2)}

/* --------------------------------------------------------------------------
   8. TRANG BRAND — hero
   -------------------------------------------------------------------------- */
.lfc .bhero{position:relative;color:#fff;overflow:hidden}
.lfc .bhero .ph{position:absolute;inset:0;background:#3a2a1c center/cover no-repeat}
.lfc .bhero .scrim{position:absolute;inset:0;
  background:linear-gradient(100deg,rgba(58,42,28,.95) 0%,rgba(58,42,28,.86) 42%,rgba(58,42,28,.36) 100%);
  box-shadow:inset 0 -40px 60px -30px rgba(0,0,0,.5)}
.lfc .bhero .wrap{position:relative;z-index:2;padding:52px 20px 50px;
  display:grid;grid-template-columns:1.15fr .85fr;gap:34px;align-items:center}
.lfc .bhero .vis{font-size:37px;line-height:1.16;margin:0 0 13px;letter-spacing:-.025em;font-weight:750}
.lfc .bhero .sub{font-size:16.5px;opacity:.93;margin:0 0 20px;max-width:53ch}
.lfc .herocta{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.lfc .btn{background:var(--coral);color:#fff;border:0;border-radius:11px;padding:14px 24px;
  font-size:16px;font-weight:650;text-decoration:none;display:inline-block;font-family:inherit;cursor:pointer}
.lfc .btn:hover{background:var(--coralink)}
.lfc .ratechip{font-size:13.5px;opacity:.92}
.lfc .revlink{display:block;margin-top:15px;font-size:13.5px;opacity:.85}
.lfc .offercard{background:#fff;color:var(--ink);border-radius:var(--radius);padding:24px;
  box-shadow:0 14px 34px rgba(0,0,0,.24)}
.lfc .offercard .lab{font-size:11.5px;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);font-weight:650}
.lfc .offercard .big{font-size:16px;font-weight:750;letter-spacing:.05em;text-transform:uppercase;
  color:var(--coralink);margin:9px 0 3px}
.lfc .stamp{display:inline-block;background:var(--coral);color:#fff;font-size:44px;font-weight:800;
  letter-spacing:-.03em;padding:6px 18px;border-radius:10px;margin:8px 0 12px;line-height:1.1}
.lfc .offercard blockquote{margin:0 0 12px;font-size:14.5px;color:var(--ink2);
  border-left:3px solid var(--line);padding-left:12px}
.lfc .offercard .code{font-family:ui-monospace,Menlo,monospace;background:var(--alt);
  border:1px dashed var(--line);border-radius:8px;padding:8px 14px;display:inline-block;
  font-size:16px;font-weight:700;letter-spacing:.04em}
.lfc .offercard .datel{font-size:12.5px;color:var(--muted);margin-top:13px}
.lfc .thumbs{display:flex;gap:9px;margin-top:16px}
.lfc .thumbs img,.lfc .thumbs i{flex:1;height:62px;border-radius:8px;background:rgba(255,255,255,.16);
  object-fit:cover;display:block}
@media(max-width:900px){
  .lfc .bhero .wrap{grid-template-columns:1fr;padding:26px 20px 30px;gap:18px}
  .lfc .bhero .vis{font-size:2.05rem;line-height:1.12;margin-bottom:10px}
  .lfc .bhero .sub{font-size:15px;margin-bottom:16px;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .lfc .kicker{margin-bottom:9px}
  .lfc .btn{padding:12px 20px;font-size:15px}
  .lfc .revlink{display:none}
  .lfc .offercard{padding:22px}
  .lfc .stamp{font-size:38px;margin:6px 0 10px}
  .lfc .thumbs{display:none}          /* ẩn thumbnail trên mobile — mục 3.2 */
}

/* --------------------------------------------------------------------------
   9. PRESS BAR — dữ kiện cho khách, không phải thành tích của mình
   -------------------------------------------------------------------------- */
.lfc .pressbar{background:var(--brand);color:#fff;font-size:14px}
.lfc .pressbar .wrap{display:flex;gap:22px;flex-wrap:wrap;padding:13px 20px;justify-content:center}
.lfc .pressbar span{display:flex;align-items:center;gap:7px}
.lfc .pressbar i{width:5px;height:5px;border-radius:50%;background:var(--mint);flex:none}

/* --------------------------------------------------------------------------
   10. DANH SÁCH DEAL
   -------------------------------------------------------------------------- */
.lfc .deal{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;
  margin-bottom:13px;display:grid;grid-template-columns:104px 1fr auto;gap:18px;align-items:center}
.lfc .deal .num{background:var(--brand);color:#fff;border-radius:10px;text-align:center;padding:13px 6px}
.lfc .deal.top .num{background:var(--coral)}
.lfc .deal .num b{display:block;font-size:26px;font-weight:800;letter-spacing:-.02em;line-height:1.1}
.lfc .deal .num span{font-size:11px;opacity:.9;letter-spacing:.05em;text-transform:uppercase}
.lfc .deal h3{margin:0 0 5px;font-size:16.5px}
.lfc .deal p{margin:0;font-size:14.5px;color:var(--ink2)}
.lfc .deal .datel{font-size:12.5px;color:var(--muted);margin-top:7px}
.lfc .reveal{background:#fff;border:1.5px solid var(--brand);color:var(--brand);border-radius:10px;
  padding:11px 18px;font-size:14.5px;font-weight:650;cursor:pointer;font-family:inherit;white-space:nowrap}
.lfc .reveal:hover{background:var(--brand);color:#fff}
@media(max-width:760px){
  .lfc .deal{grid-template-columns:76px 1fr;gap:13px;padding:16px}
  .lfc .deal .reveal{grid-column:1/-1}
}

/* --------------------------------------------------------------------------
   11. MỤC MA SÁT — accordion (bắt buộc dùng <details>, mục 3.1)
   -------------------------------------------------------------------------- */
.lfc details.fr{background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:10px;overflow:hidden}
.lfc details.fr summary{padding:16px 18px;cursor:pointer;font-weight:650;font-size:15.5px;
  list-style:none;display:flex;gap:10px;align-items:flex-start}
.lfc details.fr summary::-webkit-details-marker{display:none}
.lfc details.fr summary::before{content:"+";color:var(--coral);font-weight:800;font-size:19px;line-height:1.1;flex:none}
.lfc details.fr[open] summary::before{content:"\2013"}
.lfc details.fr .body{padding:0 18px 18px 44px}
.lfc details.fr .mech{font-size:14.5px;color:var(--ink2);margin:0 0 12px}
.lfc details.fr .mech b{color:var(--ink)}
.lfc details.fr .act{background:#eaf6ef;border-left:3px solid var(--ok);border-radius:8px;
  padding:11px 14px;font-size:14.5px}

/* --------------------------------------------------------------------------
   12. BẢNG "cái nào thắng cho đơn của bạn"
   -------------------------------------------------------------------------- */
.lfc table.pick{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden}
.lfc table.pick th{background:var(--alt);text-align:left;font-size:12px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted);padding:12px 14px}
.lfc table.pick td{padding:13px 14px;border-top:1px solid var(--line);font-size:14.5px;vertical-align:top}
.lfc table.pick td b{color:var(--coralink)}
@media(max-width:700px){.lfc table.pick th,.lfc table.pick td{padding:10px}.lfc table.pick td{font-size:13.5px}}

/* --------------------------------------------------------------------------
   13. CTA BAND / FAQ
   -------------------------------------------------------------------------- */
.lfc .band{background:linear-gradient(120deg,var(--brand),var(--brand2));color:#fff;
  border-radius:var(--radius);padding:28px;text-align:center}
.lfc .band h3{margin:0 0 8px;font-size:21px}
.lfc .band p{margin:0 0 18px;opacity:.9;font-size:15px}
.lfc .faq{background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:10px;padding:17px 18px}
.lfc .faq h4{margin:0 0 7px;font-size:15.5px}
.lfc .faq p{margin:0;font-size:14.5px;color:var(--ink2)}

/* --------------------------------------------------------------------------
   14. REVEAL MODAL — các bước thật, không đếm ngược giả (mục 7)
   -------------------------------------------------------------------------- */
.lfc-modal{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;padding:20px}
.lfc-modal[open],.lfc-modal.on{display:flex}
.lfc-modal .bg{position:absolute;inset:0;background:rgba(18,16,14,.62)}
.lfc-modal .box{position:relative;background:#fff;border-radius:16px;max-width:460px;width:100%;
  padding:26px;box-shadow:0 20px 50px rgba(0,0,0,.3);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:#12100e;
  max-height:90vh;overflow:auto}
.lfc-modal h3{margin:0 0 4px;font-size:19px;letter-spacing:-.01em}
.lfc-modal .sub{margin:0 0 16px;font-size:14px;color:#8b857a}
.lfc-modal .codebox{font-family:ui-monospace,Menlo,monospace;background:#faf8f4;border:1px dashed #e8e3d9;
  border-radius:10px;padding:13px 16px;font-size:19px;font-weight:700;letter-spacing:.06em;
  text-align:center;margin-bottom:16px}
.lfc-modal ol{margin:0 0 18px;padding-left:20px;font-size:14.5px;color:#4a463f}
.lfc-modal ol li{margin-bottom:6px}
.lfc-modal .go{display:block;background:#e8563f;color:#fff;text-align:center;text-decoration:none;
  border-radius:11px;padding:14px;font-weight:650;font-size:16px}
.lfc-modal .go:hover{background:#b83a26}
.lfc-modal .note{margin:12px 0 0;font-size:12.5px;color:#8b857a;text-align:center}
.lfc-modal .x{position:absolute;right:12px;top:10px;background:0;border:0;font-size:24px;
  line-height:1;color:#8b857a;cursor:pointer;font-family:inherit}

/* --------------------------------------------------------------------------
   15. TRANG POLICY — cột chữ
   -------------------------------------------------------------------------- */
.lfc .doc{max-width:760px;margin:0 auto;padding:44px 20px 52px}
.lfc .doc h1{font-size:31px;letter-spacing:-.025em;margin:0 0 6px}
.lfc .doc .upd{font-size:13.5px;color:var(--muted);margin:0 0 28px}
.lfc .doc h2{font-size:19.5px;letter-spacing:-.015em;margin:30px 0 9px}
.lfc .doc h3{font-size:16px;margin:22px 0 7px}
.lfc .doc p,.lfc .doc li{font-size:15.5px;color:var(--ink2)}
.lfc .doc ul{padding-left:20px}
.lfc .doc li{margin-bottom:6px}
.lfc .doc a{color:var(--brand);text-decoration:underline}
@media(max-width:900px){.lfc .doc{padding:26px 20px 34px}.lfc .doc h1{font-size:1.75rem}}

/* --------------------------------------------------------------------------
   16. FOOTER MỎNG — đúng MỘT footer trên trang (mục 8)
   Một dòng affiliate + link Privacy & Disclosure + Adults 21+. Không disclaimer dài.
   -------------------------------------------------------------------------- */
.lfc .lfoot{background:#12100e;color:#a9a396;font-size:13.5px;padding:30px 0}
.lfc .lfoot .wrap{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;align-items:flex-start}
.lfc .lfoot .brandcol{max-width:420px}
.lfc .lfoot .fname{margin-bottom:11px}
.lfc .lfoot .fname img{height:26px;width:auto;display:block}
.lfc .lfoot p{margin:0 0 7px}
.lfc .lfoot a{color:#d6d0c2}
.lfc .lfoot nav{display:flex;gap:16px;flex-wrap:wrap}
@media(max-width:700px){.lfc .lfoot .wrap{flex-direction:column;gap:14px}}
