/* ============================================================
   CONCEPT "TUẦN LỄ CHUNG SỐNG" — dùng chung cho
     · trang riêng tuan-le-chung-song.html   (body.lp-chung-song)
     · LỚP ÁO LỄ HỘI của trang chủ            (body.theme-chung-song)
   Lớp áo lễ hội giống các trang web trang trí dịp Noel / Tết:
   dải thông báo, dây cờ đuôi nheo, lá rơi, khung giới thiệu, đồi + mặt trời ở chân trang.
   BẬT / TẮT: dòng <!--@bodyclass: theme-chung-song --> trong src/pages/index.html
   (xoá dòng đó + chạy build_pages.py → trang chủ về lại bộ màu "vườn cây").
   Mọi hoạ tiết là ảnh CẮT TỪ TRANH BÌA (tools/cutout.py).
   ============================================================ */

/* --- Bảng màu theo tranh bìa --------------------------------------- */
.lp-chung-song,
.theme-chung-song {
  --nen-kem:       #FFF6E8;
  --nen-xanh:      #FDEBD3;
  --nen-trang:     #FFFDF7;
  --chu:           #3B2314;
  --chu-nhat:      #5B4032;
  --chu-mo:        #7A604B;
  --la:            #D9471C;
  --la-dam:        #A8340F;
  --la-nhat:       #FBE3D6;
  --la-rat-nhat:   #FEF3EC;
  --la-icon:       #E35A2A;
  --nang:          #F7B733;
  --nang-dam:      #EF7F1A;
  --cam-tieu-de:   #D4521E;
  --vien:          #F2D7B8;
  --vien-nhat:     #F7E7D2;
  --vien-vang:     #E8C79A;
  --vien-la:       #F5C3A8;
  --o-liu-sau:     #4A2A17;
  --dat-do:        #C2410C;
  --font-tay:      Mali, Nunito, sans-serif;
}

/* Các phần chỉ có khi khoác áo lễ hội */
.cs-only { display: none; }
.theme-chung-song .cs-only { display: block; }

/* --- Đồi + mặt trời + chim ở chân trang (cả hai trang) -------------- */
.lp-foot { position: relative; background: var(--nen-xanh); }
.lp-hills { position: relative; height: clamp(150px, 17vw, 230px); }
.lp-hills svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; display: block; overflow: hidden; }
.lp-sun { position: absolute; left: 50%; bottom: 28%; width: clamp(190px, 22vw, 320px); transform: translateX(-50%); }
.lp-birds2 { position: absolute; right: 18%; top: 6%; width: clamp(90px, 9vw, 140px); opacity: .85; }
.lp-foot-note { position: relative; background: var(--o-liu-sau); color: #F3E3D3; margin-top: -2px; }
.lp-foot-note .wrap { padding-top: 6px; padding-bottom: 4px; display: flex; justify-content: center; text-align: center; }
.lp-foot-note p { margin: 0; font-style: italic; font-size: 14.5px; line-height: 1.6; max-width: 640px; }
.lp-chung-song .site-foot, .theme-chung-song .site-foot { background: var(--o-liu-sau); color: #FFF6E8; }
.lp-chung-song .site-foot .wrap, .theme-chung-song .site-foot .wrap { padding-top: 22px; }
.lp-chung-song .foot-line, .theme-chung-song .foot-line { font-family: var(--font-tay); font-weight: 600; }
.lp-chung-song .foot-sub, .theme-chung-song .foot-sub { color: #E9D3C2; }
@media (max-width: 575px) { .lp-birds2 { right: 8%; } }

/* ============================================================
   LỚP ÁO LỄ HỘI · TRANG CHỦ
   ============================================================ */
/* dải thông báo lễ hội trên cùng */
.fest-ribbon {
  background: var(--la); color: #FFF6E8; text-align: center;
  padding: 7px 16px; font-family: var(--font-tay); font-weight: 600; font-size: 14.5px; line-height: 1.4;
}
.theme-chung-song .fest-ribbon { display: block; }
.fest-ribbon i { font-style: normal; color: var(--nang); }
/* cả dải là một link: bấm vào mở trang Tuần lễ chung sống ở tab mới */
a.fest-ribbon { text-decoration: none; }
a.fest-ribbon:hover { background: var(--la-dam); color: #fff; }
a.fest-ribbon:focus-visible { outline: 2px solid var(--nang); outline-offset: -3px; }
/* mũi tên vẽ bằng SVG (ký tự ↗ bị iPhone đổi thành emoji) */
.fest-ribbon .fest-go { display: inline-block; vertical-align: -1px; margin-left: 8px; color: var(--nang); }

/* nút "Tuần lễ chung sống" trên header (luôn có) */
.nav a.nav-cs { background: #D9471C; color: #FFF6E8; }
.nav a.nav-cs i { font-style: normal; color: #F7B733; margin-right: 4px; }
.nav a.nav-cs:hover { background: #A8340F; color: #fff; }
/* hai nút còn lại ("Tìm kiếm sự kiện", "Đăng sự kiện"): trắng kem, viền cam, chữ cam (Hùng chọn 26/11) */
.theme-chung-song .nav a:not(.nav-cs) { background: #FFFDF7; color: #A8340F; box-shadow: inset 0 0 0 1.5px #F0B999; }
.theme-chung-song .nav a:not(.nav-cs):hover { background: #FEF0E6; color: #A8340F; box-shadow: inset 0 0 0 1.5px #E89A72; }

/* dây cờ đuôi nheo (cắt từ dây cờ trên mái lều trong tranh) thay dải dây lá */
.theme-chung-song .vine { display: none; }
/* dải viền: dây đèn + lá + cờ cắt từ mép trên bìa mới, ghép với bản lật gương để nối liền */

/* chữ + màu phần mở đầu */
.theme-chung-song .intro-title { font-family: var(--font-tay); font-weight: 700; }
.theme-chung-song .intro-title .d1 { color: var(--cam-tieu-de); }
.theme-chung-song .intro-title .d2 { color: var(--o-liu-sau); }
.theme-chung-song .intro svg path { stroke: #F09A6E; }
.theme-chung-song .intro svg ellipse { fill: #F09A6E; }
.theme-chung-song .search-title, .theme-chung-song .hot-title, .theme-chung-song .day-head, .theme-chung-song .flex-block h2 { font-family: var(--font-tay); }
.theme-chung-song .step-name { font-family: var(--font-tay); font-weight: 700; }
.theme-chung-song .band-wave path { fill: var(--nen-xanh); }
.theme-chung-song .day-head::after { background: #F0D3B5; }
.theme-chung-song .card { border-color: var(--vien); }
.theme-chung-song .deco { position: absolute; pointer-events: none; user-select: none; height: auto; }
.theme-chung-song .intro { position: relative; }
.theme-chung-song .fest-birds { width: 44px; top: -6px; right: 12%; opacity: .95; }

/* khung giới thiệu Tuần lễ chung sống */
.cs-promo { padding-top: 8px; padding-bottom: 8px; }
.theme-chung-song .cs-promo { display: grid; }
.cs-promo-in {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: 28px; border-radius: 26px; background: #FFF9EE; border: 1px solid #F2D6B3;
  box-shadow: 0 10px 30px rgba(110, 90, 30, .1);
}
.cs-promo-pic { margin: 0; background: #fff; padding: 10px 10px 14px; box-shadow: var(--bong-anh); transform: rotate(-1.6deg); }
.cs-promo-pic img { display: block; width: 100%; height: auto; }
.cs-promo-text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cs-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--bo-tron);
  background: #FFE9C2; border: 1px solid #F4C77A; color: #8A4A10; font-family: var(--font-tay); font-weight: 700; font-size: 14px;
}
.cs-pill i { font-style: normal; color: var(--nang-dam); }
.cs-promo h2 { margin: 0; font-family: var(--font-tay); font-weight: 700; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; color: var(--o-liu-sau); }
.cs-promo p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--chu-nhat); }
.cs-promo-go {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: var(--bo-tron);
  background: var(--o-liu-sau); color: #FFF8E6; font-family: var(--font-tay); font-weight: 700; font-size: 16px; text-decoration: none;
  box-shadow: 0 3px 0 #6E2309;
}
.cs-promo-go { background: var(--la); box-shadow: 0 3px 0 #6E2309; }
.cs-promo-go:hover { background: #A8340F; color: #fff; }
.cs-promo .fest-sprig { width: 96px; right: -18px; top: -40px; transform: rotate(14deg); }

/* pháo hoa bắn rải rác (js/festive.js): nở ra rồi tan dần */
.fest-leaves { position: fixed; inset: 0; pointer-events: none; z-index: 45; overflow: hidden; }
.fest-leaves img { position: absolute; height: auto; opacity: 0; will-change: transform, opacity; animation: phao-ban 2.8s ease-out forwards; }
@keyframes phao-ban {
  0%   { transform: scale(.12) rotate(var(--xoay, 0deg)); opacity: 0; }
  12%  { opacity: .95; }
  45%  { transform: scale(1) rotate(var(--xoay, 0deg)); opacity: .95; }
  100% { transform: scale(1.1) translateY(14px) rotate(var(--xoay, 0deg)); opacity: 0; }
}
.fest-toggle {
  position: fixed; left: 14px; bottom: 14px; z-index: 46; display: none;
  min-height: 38px; padding: 0 14px; border-radius: var(--bo-tron); border: 1px solid #E8C79A;
  background: rgba(255, 248, 228, .95); color: #A8340F; font: 600 13px var(--font-tay); cursor: pointer;
  box-shadow: 0 3px 10px rgba(80, 60, 20, .15);
}
.theme-chung-song .fest-toggle, .lp-chung-song .fest-toggle { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 1180px) { .theme-chung-song .fest-birds, .cs-promo .fest-sprig { display: none; } }
@media (max-width: 760px) {
  .cs-promo-in { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 18px; }
  .fest-ribbon { font-size: 13px; padding: 6px 10px; }
  /* điện thoại: tên tuần lễ một dòng, câu mô tả ngắn xuống dòng dưới, chữ nhỏ hơn */
  .fest-ribbon .fest-sep { display: none; }
  .theme-chung-song .fest-ribbon { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
  .fest-ribbon .fest-title { order: 1; }
  .fest-ribbon .fest-go { order: 2; margin-left: 6px; }
  .fest-ribbon .fest-long { order: 3; flex-basis: 100%; font-size: 11.5px; font-weight: 500; line-height: 1.35; opacity: .88; margin-top: 1px; text-wrap: balance; }
  .fest-ribbon .fest-long::first-letter { text-transform: uppercase; }
}
@media (prefers-reduced-motion: reduce) { .fest-leaves { display: none; } }

/* --- Tranh chân trang (theme 25/11): pháo hoa, hiện trọn, nối xuống chân trang nâu --- */
.lp-footer-art { background: var(--nen-kem); }
.lp-footer-art img { display: block; width: 100%; max-width: 1440px; height: auto; margin: 0 auto; }
.lp-foot { background: var(--nen-kem); }

/* ===== NỀN GIẤY MÀU NƯỚC cho cả web (25/11, theo tranh pháo hoa) ===== */
body.lp-chung-song, body.theme-chung-song {
  --nen-giay: #FCF0DC;
  background-color: var(--nen-giay);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .38 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 42% 420px at 0% 360px,   rgba(244, 143, 177, .30), rgba(244, 143, 177, 0) 70%),
    radial-gradient(ellipse 40% 460px at 100% 800px, rgba(186, 140, 230, .28), rgba(186, 140, 230, 0) 70%),
    radial-gradient(ellipse 44% 440px at 0% 1220px,  rgba(250, 200, 80, .30), rgba(250, 200, 80, 0) 70%),
    radial-gradient(ellipse 40% 420px at 100% 1590px, rgba(120, 200, 205, .24), rgba(120, 200, 205, 0) 70%),
    radial-gradient(ellipse 30% 300px at 55% 1000px, rgba(255, 175, 130, .16), rgba(255, 175, 130, 0) 70%);
  background-size: 220px 220px, 100% 1900px, 100% 1900px, 100% 1900px, 100% 1900px, 100% 1900px;
  background-repeat: repeat, repeat-y, repeat-y, repeat-y, repeat-y, repeat-y;
}
.lp-chung-song .band, .theme-chung-song .band { background: transparent; }
.lp-chung-song .band-wave, .theme-chung-song .band-wave { display: none; }
.lp-chung-song .sticky-top, .theme-chung-song .sticky-top { background: rgba(252, 240, 220, .93); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lp-chung-song .lp-nav { background: rgba(252, 240, 220, .95); }

/* Pháo hoa rải rác hai bên lề (js/phao-hoa.js), chỉ hiện khi lề đủ rộng, không đè chữ */
.phao-hoa { position: absolute; left: 0; top: 0; width: 100%; height: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.phao-hoa img { position: absolute; height: auto; opacity: .92; animation: phao-no 5.5s ease-in-out infinite; }
@keyframes phao-no { 0%, 100% { transform: scale(.94) rotate(var(--xoay, 0deg)); } 50% { transform: scale(1.04) rotate(var(--xoay, 0deg)); } }
@media (prefers-reduced-motion: reduce) { .phao-hoa img { animation: none; } }

/* Chân trang: chỉ còn hàng người ăn mừng; trên hoà vào nền giấy, dưới hoà vào nền nâu */
.lp-foot, .lp-footer-art { background: transparent; }
.lp-footer-art { position: relative; }
.lp-footer-art img { display: block; width: 100%; max-width: 1440px; height: auto; margin: 0 auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.6) 3%, #000 8%);
          mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.6) 3%, #000 8%); }
.lp-footer-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 20%; pointer-events: none;
  background: linear-gradient(to bottom, rgba(74,42,23,0) 0, rgba(74,42,23,.6) 60%, var(--o-liu-sau) 100%); }
@media (min-width: 1441px) {
  .lp-footer-art img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.6) 3%, #000 8%), linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.6) 3%, #000 8%), linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-composite: intersect;
  }
  .lp-footer-art { background: linear-gradient(to bottom, transparent 0 55%, var(--o-liu-sau) 100%); }
}

/* ===== TUẦN LỄ: hoa lá trang trí ở trang chủ → PHÁO HOA (25/11) =====
   Các hình vẽ nhành lá / mặt trời / dây leo là SVG có sẵn trong layout + index.html;
   khi khoác áo lễ hội: ẩn nét vẽ bên trong, lấy hình pháo hoa làm nền của chính khung SVG đó. */
.theme-chung-song .sprig-l > *, .theme-chung-song .sprig-r > *,
.theme-chung-song .deco-sun > *, .theme-chung-song .deco-vine > *,
.lp-chung-song .site-foot .wrap > svg > *, .theme-chung-song .site-foot .wrap > svg > * { display: none; }
.theme-chung-song .sprig-l, .theme-chung-song .sprig-r,
.theme-chung-song .deco-sun, .theme-chung-song .deco-vine,
.lp-chung-song .site-foot .wrap > svg, .theme-chung-song .site-foot .wrap > svg {
  background: center / contain no-repeat; overflow: visible;
}
.theme-chung-song .sprig-l { background-image: url("../img/icon-fw-hong-xanh.webp"); width: 46px; height: 46px; transform: translateY(-55%) rotate(-8deg); }
.theme-chung-song .sprig-r { background-image: url("../img/icon-fw-xanh-cam.webp");    width: 50px; height: 50px; transform: translateY(-45%) rotate(10deg); }
.theme-chung-song .deco-sun  { background-image: url("../img/icon-fw-xanh-la.webp"); width: 92px; height: 92px; left: -40px; top: -40px; opacity: 1; }
.theme-chung-song .deco-vine { background-image: url("../img/icon-fw-hong-ngoc.webp");    width: 92px; height: 92px; right: -34px; top: -46px; }
.lp-chung-song .site-foot .wrap > svg, .theme-chung-song .site-foot .wrap > svg { background-image: url("../img/icon-fw-cam.webp"); width: 40px !important; height: 40px !important; }
.cs-promo .fest-sprig { width: 116px; right: -30px; top: -46px; transform: rotate(-4deg); }

/* ===== Nút chọn phiên bản (js/phien-ban.js) ===== */
.phien-ban { position: fixed; right: 14px; bottom: 14px; z-index: 80; display: flex; align-items: center; gap: 4px;
  padding: 5px; border-radius: 999px; background: rgba(255, 252, 245, .96); border: 1px solid #EAD9C4;
  box-shadow: 0 6px 18px rgba(80, 50, 30, .18); font: 600 13px/1.2 var(--font-tay, sans-serif); }
.phien-ban .pb-nhan { padding: 0 6px 0 8px; color: #8A6A55; font-size: 12px; }
.phien-ban a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; color: #4A3326; text-decoration: none; white-space: nowrap; }
.phien-ban a small { font-weight: 500; opacity: .75; font-size: 11.5px; }
.phien-ban a:hover { background: #F6EBDD; }
.phien-ban a[aria-current] { background: #3E2A1E; color: #FFF8EE; cursor: default; }
.phien-ban .pb-cham { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.phien-ban .pb-1 { background: conic-gradient(#D9471C 0 25%, #E9467A 0 50%, #1FA3A0 0 75%, #F2B623 0); }
.phien-ban .pb-2 { background: conic-gradient(#F9B37A 0 25%, #F59BB8 0 50%, #8FD3D3 0 75%, #C1A6EC 0); }
@media (max-width: 560px) {
  .phien-ban { right: 8px; bottom: 8px; font-size: 12px; }
  .phien-ban .pb-nhan, .phien-ban a small { display: none; }
  .phien-ban a { padding: 7px 10px; }
}

/* Dây cờ (hình người dùng gửi 25/11) — là khối thường, không nằm đè lên gì */
.cs-bunting { display: block; width: min(440px, 82%); height: auto; margin: 0 auto -8px; pointer-events: none; }
.theme-chung-song .cs-bunting { display: block; }
.lp-cal .cs-bunting { margin: 0 auto 6px; width: min(267px, 52%); }   /* nhỏ lại 1/3 (21h06) */

/* Chân trang (25/11 16h40): pháo hoa NGUYÊN VẸN (hình người dùng gửi) trên nền giấy,
   bên dưới là hàng người ăn mừng (tranh đã xoá các mảnh pháo hoa bị cắt dở —
   tools/footer_people.py). Chỉ có NỀN hoà dần, hình không bị làm mờ. */
.fw-sky { position: relative; height: clamp(110px, 14vw, 200px); max-width: 1440px; margin: 0 auto -1px; }
.lp-footer-art .fw-sky img { position: absolute; display: block; height: auto; max-width: none; margin: 0;
  -webkit-mask-image: none; mask-image: none; animation: phao-no 6s ease-in-out infinite; }
.fw-sky .fs1 { left: 4%;  top: 6%;  width: clamp(62px, 9.5vw, 136px); --xoay: -6deg; }
.fw-sky .fs2 { left: 24%; top: 34%; width: clamp(50px, 7vw, 100px);  --xoay: 8deg; animation-delay: -1.4s; }
.fw-sky .fs3 { left: 44%; top: 0;   width: clamp(66px, 10.5vw, 150px); animation-delay: -2.6s; }
.fw-sky .fs4 { left: 66%; top: 30%; width: clamp(52px, 7.5vw, 108px); --xoay: -10deg; animation-delay: -.8s; }
.fw-sky .fs5 { left: 84%; top: 4%;  width: clamp(60px, 9.5vw, 136px); --xoay: 6deg; animation-delay: -3.3s; }
@media (prefers-reduced-motion: reduce) { .lp-footer-art .fw-sky img { animation: none; } }

/* chừa chỗ cho nút chọn phiên bản ở cuối trang */
.site-foot { padding-bottom: 72px; }

/* ===== CHÂN TRANG (25/11 17h): chuyển màu liền mạch, KHÔNG còn khối nâu đậm =====
   nền giấy của web → pháo hoa nguyên vẹn trên nền giấy → hàng người (mép trên hoà vào giấy)
   → đồi màu hoà dần vào màu kem ấm của chân trang → chân trang kem đậm dần, chữ nâu. */
.lp-chung-song, .theme-chung-song { --chan-1: #FBEBD3; --chan-2: #F3D7B3; --chan-chu: #4A2A17; --chan-mo: #7A5A44; }
.lp-footer-art::after { height: 24%; background: linear-gradient(to bottom, transparent 0, color-mix(in srgb, var(--chan-1) 70%, transparent) 55%, var(--chan-1) 100%); }
@media (min-width: 1441px) { .lp-footer-art { background: linear-gradient(to bottom, transparent 0 70%, var(--chan-1) 100%); } }
.lp-foot-note { background: var(--chan-1); color: var(--chan-mo); margin-top: -1px; }
.lp-foot-note .wrap { padding-top: 4px; padding-bottom: 0; }
.lp-chung-song .site-foot, .theme-chung-song .site-foot { background: linear-gradient(to bottom, var(--chan-1) 0, var(--chan-2) 100%); color: var(--chan-chu); }
.lp-chung-song .foot-sub, .theme-chung-song .foot-sub { color: var(--chan-mo); }

/* vùng pháo hoa chân trang chuyển dần từ nền web sang đúng màu giấy của tranh (#FDF1D7), nên mép trên tranh không lộ */
.lp-chung-song .lp-foot, .theme-chung-song .lp-foot { background: linear-gradient(to bottom, rgba(253,241,215,0) 0, #FDF1D7 clamp(110px, 14vw, 200px)); }

/* ===== 25/11 19h50 · Bản 1 =====
   Hoạ tiết cắt từ bìa (nhành lá mờ) → icon người dùng gửi: lá, trăng sao, bóng bay, hoa cỏ, chùm sao. */
@media (min-width: 901px) { .lp-chung-song .deco-birds { width: 74px; top: 8px; } }
.lp-chung-song .deco-sprig-l { width: 104px; transform: rotate(-6deg); }
.lp-chung-song .deco-sprig-r { width: 104px; }
.lp-chung-song .deco-wheat   { width: 104px; left: 0; top: 0; transform: rotate(-6deg); }
.lp-chung-song .deco-sprig-br{ width: 136px; right: 0; top: 10px; }
.theme-chung-song .fest-birds { width: 64px; top: -14px; }

/* Dải thông báo trên cùng: thanh màu nước hoà trộn theo khối chữ "CHUNG SỐNG" trên bìa
   (bìa có hoạ tiết khắp nơi nên không tách được nền trơn → dựng lại bằng các mảng màu loang + vân giấy) */
.lp-chung-song, .theme-chung-song {
  --nen-mau-nuoc:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(40% 180% at 10% 30%, rgba(255, 190, 70, .55), rgba(255, 190, 70, 0) 70%),
    radial-gradient(34% 200% at 38% 80%, rgba(255, 120, 170, .45), rgba(255, 120, 170, 0) 70%),
    radial-gradient(34% 200% at 64% 20%, rgba(80, 200, 190, .40), rgba(80, 200, 190, 0) 70%),
    radial-gradient(36% 180% at 92% 70%, rgba(255, 200, 60, .50), rgba(255, 200, 60, 0) 70%),
    linear-gradient(100deg, #DF5320 0%, #E4467A 24%, #9150B4 47%, #1F9A96 71%, #E6801E 100%);
}
.fest-ribbon, a.fest-ribbon:hover {
  background: var(--nen-mau-nuoc);
  color: #FFFFFF; text-shadow: 0 1px 2px rgba(60, 20, 40, .45);
}
a.fest-ribbon:hover { filter: brightness(1.06) saturate(1.05); color: #fff; }
.fest-ribbon i, .fest-ribbon .fest-go { color: #FFE58A; }
/* 3 ô "Biết đâu…" (21h00, theo người dùng): mảnh ghép chính mình = trăng sao · ước mơ đi lạc = khinh khí cầu trái tim · người đồng hành mới = vòng tròn trái tim */
.lp-chung-song .lp-maybe li::before { content: ""; width: 48px; height: 48px; background: left center / contain no-repeat url("../img/icon-trang.webp"); }
.lp-chung-song .lp-maybe li:nth-child(2)::before { background-image: url("../img/icon-khinh-khi-cau.webp"); }
.lp-chung-song .lp-maybe li:nth-child(3)::before { background-image: url("../img/icon-vong-tron-tim.webp"); }
.theme-chung-song .fest-birds { width: 84px; top: -20px; }

/* Nút "✦ Khám phá Tuần lễ chung sống" ở header: cùng thanh màu nước với dải trên cùng (20h01) */
.theme-chung-song .nav a.nav-cs, .theme-chung-song .nav a.nav-cs:hover {
  background: var(--nen-mau-nuoc); color: #FFFFFF; text-shadow: 0 1px 2px rgba(60, 20, 40, .45);
}
.theme-chung-song .nav a.nav-cs:hover { filter: brightness(1.06) saturate(1.05); }
.theme-chung-song .nav a.nav-cs i { color: #FFE58A; }
/* Điện thoại: nhãn "Tuần đầu mỗi tháng" canh phải */
/* Một cột (điện thoại / cửa sổ hẹp): tiêu đề "Tuần lễ chung sống" và nhãn "Tuần đầu mỗi tháng" cùng một hàng ngang (21h11) */
@media (max-width: 760px) {
  .cs-promo-text { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 10px; }
  .cs-promo-text h2 { order: 1; flex: 1 1 0; min-width: 0; }
  .cs-promo-text .cs-pill { order: 2; flex: none; }
  .cs-promo-text p, .cs-promo-text .cs-promo-go { order: 3; }
  .cs-promo-text p { flex-basis: 100%; }
}
@media (max-width: 440px) {
  .cs-promo-text .cs-pill { font-size: 12px; padding: 4px 9px; gap: 5px; }
  .cs-promo-text h2 { font-size: 27px; }
}
@media (max-width: 370px) { .cs-promo-text h2 { font-size: 23px; } .cs-promo-text .cs-pill { font-size: 11px; padding: 3px 8px; } }
/* 3 ô "Biết đâu…" cùng màu kem nhạt như ô 1 (21h06) */
.lp-chung-song .lp-maybe li, .lp-chung-song .lp-maybe li:nth-child(2), .lp-chung-song .lp-maybe li:nth-child(3) { background: #FFF9EE; }
/* Điện thoại: ảnh bìa không nghiêng để mép phải thẳng hàng với nhãn "Tuần đầu mỗi tháng" (21h08) */
@media (max-width: 760px) { .cs-promo-pic { transform: none; } }
/* Xuống dòng cân đối (21h10): giữ nguyên cỡ chữ; tiêu đề + đoạn canh giữa chia dòng đều,
   đoạn canh trái tránh chữ lẻ ở dòng cuối; khoảng cách chữ chỉ khít lại rất nhẹ. */
.lp-chung-song h1, .lp-chung-song h2, .lp-chung-song h3, .theme-chung-song h1, .theme-chung-song h2, .theme-chung-song h3,
.foot-line, .foot-sub, .lp-foot-note p, .lp-foot-sub, .lp-quote p, .lp-lead, .lp-chung-song .lp-intro p,
.theme-chung-song .intro p, .lp-soft, .lp-chung-song .lp-sec p, .lp-chung-song .lp-band p { text-wrap: balance; }
.lp-chung-song p, .theme-chung-song main p, .lp-chung-song li, .cs-promo p { text-wrap: pretty; }
.lp-chung-song p, .theme-chung-song .intro p, .cs-promo p, .lp-way p { word-spacing: -0.02em; }
/* Câu chân trang: khi phải xuống dòng thì xuống từ "được vun trồng…" (21h16) */
.foot-line .nb { display: inline-block; }
/* chữ trong các thẻ nhỏ cũng chia dòng đều */
.lp-way p, .lp-maybe li { text-wrap: balance; }
/* mục lục nay có 6 mục (thêm Tìm kiếm + Đăng sự kiện, 26/11) → "Quay về" chiếm trọn hàng cuối trên điện thoại
   (trước đây 4 mục xếp 2×2 nên dòng này đặt grid-column: auto) */
/* 3 ô "Biết đâu…" giữ 3 cột cả trên điện thoại (21h22) */
@media (max-width: 900px) {
  .lp-chung-song .lp-maybe { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 980px; gap: 10px; }
  .lp-chung-song .lp-maybe li { padding: 16px 14px; font-size: 15px; }
}
@media (max-width: 560px) {
  .lp-chung-song .lp-maybe { gap: 6px; }
  .lp-chung-song .lp-maybe li { padding: 10px 8px 12px; font-size: 12.5px; line-height: 1.45; border-radius: 14px; text-align: center; }
  .lp-chung-song .lp-maybe li::before { width: 34px; height: 34px; margin: 0 auto 6px; background-position: center; }
}
/* Hiện dần khi cuộn (js/hien-dan.js) */
/* dùng thuộc tính translate/scale riêng (không đụng transform) để ảnh nghiêng, ô so le giữ nguyên dáng */
.rv { opacity: 0; translate: 0 18px; transition: opacity .8s ease, translate .8s cubic-bezier(.2,.7,.2,1), scale .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rv-tre, 0s); }
.rv.in { opacity: 1; translate: none; }
.fw-sky img.rv { scale: .85; }
.fw-sky img.rv.in { scale: 1; }
.photos > figure.rv { scale: .96; }
.photos > figure.rv.in { scale: 1; }

/* Dấu ngắt nhẹ giữa các phần trang Tuần lễ: hai nét mảnh + ✦ ở giữa (21h24) */
#kha-the::before, #tim-thay-gi .wrap::before, #nhu-chinh-ban::before, #cung-buoc-vao .wrap::before {
  content: "✦"; display: block; width: 168px; margin: 0 auto 30px; text-align: center; font-size: 14px; line-height: 1;
  color: var(--nang-dam);
  background: linear-gradient(to right, transparent, rgba(212, 82, 30, .45)) left center / 64px 1px no-repeat,
              linear-gradient(to left, transparent, rgba(212, 82, 30, .45)) right center / 64px 1px no-repeat;
}
/* đoạn chữ rộng thêm chút để "Tuần Lễ Chung Sống là…" vừa 2 dòng (21h26) */
.lp-chung-song .lp-prose { max-width: 740px; }
/* ===== CHÂN TRANG (21h31): chữ ở trên, tranh người ăn mừng nằm CUỐI CÙNG của trang =====
   nền giấy của web → chuyển dần sang màu giấy của tranh (#FDF1D7) quanh phần chữ → pháo hoa → tranh (hết trang). */
.cs-art { display: none; }
.theme-chung-song .cs-art, .lp-chung-song .cs-art { display: block; }
.lp-chung-song .lp-foot, .theme-chung-song .lp-foot { background: transparent; }
.lp-foot-note { background: transparent; }
.lp-chung-song .site-foot, .theme-chung-song .site-foot {
  background: linear-gradient(to bottom, rgba(253, 241, 215, 0) 0, #FDF1D7 140px); padding-bottom: 0;
}
.site-foot .lp-footer-art { background: #FDF1D7; margin-top: 8px; }
.site-foot .lp-footer-art::after { content: none; }
.site-foot .lp-footer-art .ft-nguoi { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%); mask-image: linear-gradient(to bottom, transparent 0, #000 9%); }
@media (min-width: 1441px) {
  .site-foot .lp-footer-art { background: #FDF1D7; }
  .site-foot .lp-footer-art .ft-nguoi {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 9%), linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(to bottom, transparent 0, #000 9%), linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-composite: intersect;
  }
}
/* đoạn "Tuần Lễ Chung Sống là…": xuống dòng đúng chỗ "và dòng chảy" (21h39) */
.p-2dong .nb { display: inline-block; }
.lp-chung-song #kha-the .lp-prose { max-width: 760px; }
.rv-off .rv { transition: none !important; }
/* "…và dòng chảy…" luôn đúng 1 dòng trên máy tính / máy tính bảng (21h46):
   mỗi nửa câu không ngắt dòng; cửa sổ hẹp thì chữ nhỏ lại vừa đủ (tối đa 16.5px) */
@media (min-width: 720px) {
  .lp-chung-song #kha-the .lp-prose { max-width: none; }
  .p-2dong { font-size: min(16.5px, calc((100vw - 72px) / 45.5)); }
  .p-2dong .nb { white-space: nowrap; }
}
/* (21h51) Đoạn văn: bỏ "balance/pretty" — xuống dòng bình thường để các dòng dài đều nhau, đầy bề ngang;
   dòng cuối trơ 2–3 chữ thì js/xuong-dong.js khít khoảng cách chữ. Tiêu đề vẫn chia dòng cân đối. */
.lp-chung-song p, .lp-chung-song li, .theme-chung-song main p, .cs-promo p, .lp-foot-note p, .foot-sub,
.lp-foot-sub, .lp-soft, .lp-way p, .lp-maybe li, .theme-chung-song .intro p, .lp-quote p { text-wrap: wrap; }
.lp-chung-song p, .theme-chung-song .intro p, .cs-promo p, .lp-way p { word-spacing: normal; }
.lp-chung-song #kha-the .lp-prose p:not(.p-2dong) { max-width: 760px; margin-left: auto; margin-right: auto; }
.lp-chung-song p, .theme-chung-song p, .lp-chung-song .lp-maybe li { text-wrap: wrap !important; }
/* dải trên cùng: mũi tên → ngôi sao ✦ giống bên trái (21h53) */
.fest-ribbon i.fest-go { font-style: normal; margin-left: 8px; vertical-align: 0; }
/* ô nhỏ (3 ô "Biết đâu…") và câu trích lớn: chia dòng cân đối để không trơ 2 chữ cuối */
.lp-chung-song .lp-maybe li, .lp-chung-song .lp-quote p { text-wrap: balance !important; }
/* Cuối trang Tuần lễ (22h16): pháo hoa → ghi chú Festival → 1 đường kẻ → câu chân trang → Bản tin Cộng đồng · 2026 */
.lp-chung-song .site-foot .wrap > svg { display: none !important; }
.lp-chung-song .lp-foot-note .wrap { flex-direction: column; align-items: center; }
.lp-chung-song .lp-foot-note .wrap::before {
  content: ""; display: block; width: 44px; height: 44px; margin: 0 auto 12px;
  background: center / contain no-repeat url("../img/icon-fw-cam.webp");
}
.lp-chung-song .site-foot .wrap::before {
  content: ""; display: block; width: min(320px, 60%); height: 1px; margin: 4px auto 22px;
  background: linear-gradient(to right, transparent, rgba(212, 82, 30, .45) 20%, rgba(212, 82, 30, .45) 80%, transparent);
}
/* Trang chủ: đường ngắt giữa khung Tuần lễ và ô "Bạn muốn tìm gì hôm nay?" (22h17) — cùng kiểu dấu ngắt trang Tuần lễ */
.theme-chung-song .cs-promo::after {
  content: "✦"; display: block; width: 168px; margin: 98px auto 0; text-align: center; font-size: 14px; line-height: 1;
  color: var(--nang-dam);
  background: linear-gradient(to right, transparent, rgba(212, 82, 30, .45)) left center / 64px 1px no-repeat,
              linear-gradient(to left, transparent, rgba(212, 82, 30, .45)) right center / 64px 1px no-repeat;
}
/* ghi chú Festival: xuống dòng ở "Festival" (22h18); giữ cỡ chữ riêng, không theo công thức của đoạn "và dòng chảy" */
.lp-foot-note .p-note { font-size: 14.5px; }
@media (min-width: 720px) { .lp-foot-note .p-note .nb { white-space: nowrap; } }
