/*
 * cong-cu-tuoi.css — Cụm Tết: Hợp tuổi + Tuổi xông đất.
 *
 * Chỉ nạp ở hai trang /cong-cu/hop-tuoi/ và /cong-cu/xong-dat/. Scope dưới
 * `.cc-tuoi` để không đụng trang khác. Bản sắc: giấy + ĐỎ SON (khớp theme).
 */

/* ═══════════════════════════════════════════════════════════════════════════
 * HAI NỀN — sửa 12/9/2026
 * ═══════════════════════════════════════════════════════════════════════════
 * Chủ dự án: *"có 2 giao diện sáng tối. e mới làm giao diện sáng thôi"*. Đúng:
 * tệp này vốn viết cứng một bộ màu giấy, không có lấy một dòng cho nền tối —
 * mà nền TỐI mới là nền MẶC ĐỊNH của theme. Ai chưa từng bấm đổi nền thì thấy
 * cả cụm Tết là một hòn đảo giấy trắng nằm giữa trang đêm.
 *
 * ⚠️ Chữa bằng cách lật BỘ MÀU CỤC BỘ, không đi sửa từng khối. Mọi khối bên
 * dưới đã đọc qua `--the`, `--muc`, `--vien`… nên chỉ cần một khối khai lại là
 * cả cụm đổi theo. Đây đúng lối theme đã dùng cho hệ thẻ bộ môn.
 *
 * ⚠️ NGOẠI LỆ CÓ CHỦ Ý — TẤM THIỆP GIỮ CHẤT GIẤY Ở CẢ HAI NỀN. Nó không phải
 * một khối giao diện, nó là TẤM THIỆP IN, và nó được tải về thành ảnh để gửi
 * cho người khác. Ảnh ấy đi ra khỏi site: nền đêm của trang không theo nó sang
 * Zalo. Nên `.tcard` tự giữ bộ màu giấy riêng (khai ở khối tông màu bên dưới).
 * ═══════════════════════════════════════════════════════════════════════════ */

/* Nền SÁNG (giấy điệp) — cũng là bộ màu của chính tấm thiệp. */
.cc-tuoi{ --son:#A9332A; --son-dam:#8C2620; --son-mo:#F0E0DA; --son-chu:#FFFFFF;
  --thuan:#1E7A44; --thuan-nen:#e7f2ea; --nghich:#A9332A; --binh:#93876E;
  --the:#FBF7EC; --the-noi:#FFFFFF; --vien:#DED2B6; --vien-dam:#CDBE97;
  --muc:#2A2114; --muc-nhat:#6E6353; --muc-mo:#9A8E77 }

/* Nền TỐI (mặc định của theme) — sắc dẫn đổi từ đỏ son sang vàng lá, đúng luật
   màu của theme: "son trên giấy, vàng trên nền đêm". */
:root:not([data-theme="light"]) .cc-tuoi{
  /* Chữ trên nút vàng phải là mực SẪM — trắng trên vàng lá đọc không ra. */
  --son:#DDB63D; --son-dam:#E8C860; --son-mo:rgba(221,182,61,.12); --son-chu:#20260C;
  --thuan:#5FC98C; --thuan-nen:rgba(95,201,140,.12); --nghich:#E8836D; --binh:#9AA0AE;
  --the:#11172C; --the-noi:#0E1426; --vien:rgba(48,58,90,.85); --vien-dam:rgba(221,182,61,.28);
  --muc:#F1E8D8; --muc-nhat:rgba(241,232,216,.78); --muc-mo:rgba(241,232,216,.55) }

/* Thẻ kết quả một cặp tuổi */
.cc-tuoi .kq{border:1px solid var(--vien);border-radius:16px;overflow:hidden;background:var(--the);margin:6px 0 22px}
.cc-tuoi .kq-dau{padding:18px 20px;border-left:5px solid var(--son);background:var(--the-noi)}
.cc-tuoi .kq-cap{font-size:13px;font-weight:600;color:var(--muc-nhat);margin:0 0 4px}
.cc-tuoi .kq-bac{font-family:var(--font-display,"Cormorant Garamond",Georgia,serif);font-weight:700;font-size:30px;line-height:1;color:var(--son-dam)}
.cc-tuoi .kq-hang{display:flex;align-items:center;gap:9px;margin-top:9px;font-size:14px;color:var(--muc-nhat)}
.cc-tuoi .dot{width:11px;height:11px;border-radius:50%;flex:none}
.cc-tuoi .dot.thuan{background:var(--thuan)} .cc-tuoi .dot.nghich{background:var(--nghich)} .cc-tuoi .dot.binh{background:var(--binh)}
.cc-tuoi .kq-than{padding:16px 20px;font-size:15px;line-height:1.65;color:var(--muc)}
.cc-tuoi .kq-rao{margin-top:11px;border-top:1px dashed var(--vien-dam);padding-top:11px;font-size:13.5px;font-style:italic;color:var(--muc-nhat)}
.cc-tuoi .kq-tet{margin-top:11px;font-size:13.5px;color:var(--son-dam);background:var(--son-mo);border-radius:9px;padding:9px 12px}

/* Danh sách xông đất: nên nhờ / cân nhắc */
.cc-tuoi .cot2{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:6px 0 20px}
@media(max-width:520px){.cc-tuoi .cot2{grid-template-columns:1fr}}
.cc-tuoi .lo{border:1px solid var(--vien);border-radius:14px;padding:15px 16px;background:var(--the-noi)}
.cc-tuoi .lo-tit{font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;margin:0 0 11px;display:flex;align-items:center;gap:8px}
.cc-tuoi .lo.tot .lo-tit{color:var(--thuan)} .cc-tuoi .lo.tranh .lo-tit{color:var(--son-dam)}
.cc-tuoi .tuoi{display:flex;flex-wrap:wrap;gap:7px}
.cc-tuoi .tuoi b{font-size:13.5px;font-weight:600;border-radius:999px;padding:5px 12px}
.cc-tuoi .lo.tot .tuoi b{background:var(--thuan-nen);color:var(--thuan)}
.cc-tuoi .lo.tranh .tuoi b{background:var(--son-mo);color:var(--son-dam)}
.cc-tuoi .lo .nam{font-weight:500;opacity:.75;font-size:.9em}
.cc-tuoi .lo-trong{color:var(--muc-mo);font-size:13.5px;font-style:italic}

/* Sáu bậc — bảng tham chiếu gọn */
.cc-tuoi .bac-bang{border:1px solid var(--vien);border-radius:14px;overflow:hidden;margin:6px 0 20px;background:var(--the)}
.cc-tuoi .bac-h{display:grid;grid-template-columns:auto 1fr;gap:12px;padding:11px 16px;border-bottom:1px solid var(--vien);align-items:baseline}
.cc-tuoi .bac-h:last-child{border-bottom:none}
.cc-tuoi .bac-ten{font-weight:700;font-size:14px;color:var(--muc);display:flex;align-items:center;gap:8px;white-space:nowrap}
.cc-tuoi .bac-cau{font-size:13.5px;color:var(--muc-nhat);line-height:1.5}

/* Lời rào chung (khối "về danh sách nên tránh" v.v.) */
.cc-tuoi .rao-lon{border:1px solid var(--vien);border-left:4px solid var(--son);border-radius:12px;
  padding:15px 17px;background:var(--the);margin:6px 0 20px;font-size:14.5px;line-height:1.66;color:var(--muc)}
.cc-tuoi .rao-lon b{color:var(--son-dam)}

/* Mời sang app (lằn cắt cho/bán) */
.cc-tuoi .moi-app{border:1px dashed var(--vien-dam);border-radius:14px;padding:16px 18px;background:var(--the);margin:6px 0 22px}
.cc-tuoi .moi-app .k{font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--son-dam)}
.cc-tuoi .moi-app h3{font-family:var(--font-display,"Cormorant Garamond",Georgia,serif);font-weight:700;font-size:20px;color:var(--son-dam);margin:5px 0 6px;line-height:1.15}
.cc-tuoi .moi-app ul{margin:8px 0 14px;padding-left:19px;color:var(--muc-nhat);font-size:14px}
.cc-tuoi .moi-app li{margin:3px 0}
.cc-tuoi .moi-app .btn-son{display:inline-flex;align-items:center;gap:7px;background:var(--son);color:var(--son-chu);border-radius:11px;
  padding:11px 22px;font-weight:700;font-size:15px;text-decoration:none}

/* Thanh chia sẻ */
.cc-tuoi .chia{display:flex;flex-wrap:wrap;gap:10px;margin:2px 0 8px}
.cc-tuoi .chia button{font-family:inherit;font-weight:700;font-size:14.5px;border-radius:11px;padding:11px 20px;cursor:pointer;border:1px solid var(--son)}
.cc-tuoi .chia .son{background:var(--son);color:var(--son-chu);border-color:var(--son)}
.cc-tuoi .chia .vien{background:transparent;color:var(--son-dam)}

/* Prose SEO (khối mo) — nhẹ, đọc dễ */
.cc-tuoi .hoc h2{font-family:var(--font-display,"Cormorant Garamond",Georgia,serif);font-weight:700;font-size:clamp(20px,3.4vw,25px);color:var(--son-dam);margin:26px 0 8px;line-height:1.15}
.cc-tuoi .hoc p{color:var(--muc);line-height:1.72;max-width:66ch;margin:0 0 .55rem;font-size:15.5px}

/* Ghi chú "chưa mở" khi xem thử (admin) */
.cc-tuoi .cho-duyet{border:1px solid var(--vien-dam);background:var(--son-mo);border-radius:12px;padding:13px 16px;margin-bottom:20px;
  font-size:14px;color:var(--son-dam)}
.cc-tuoi .cho-duyet b{font-weight:700}

/* Xông đất — kết quả theo NĂM SINH + cửu diệu (sau khi nạp cửu diệu 12/9) */
.cc-tuoi .xd-nho{border:1px solid var(--vien);border-radius:14px;padding:15px 17px;background:var(--the-noi);margin:6px 0 14px}
.cc-tuoi .lo-tit.tot{color:var(--thuan)}
.cc-tuoi .xd-cg{display:grid;grid-template-columns:auto 1fr;gap:9px 14px;padding:9px 0;border-bottom:1px solid var(--vien);align-items:baseline}
.cc-tuoi .xd-cg:last-of-type{border-bottom:none}
.cc-tuoi .xd-cg-ten{font-weight:700;color:var(--son-dam);white-space:nowrap;font-size:14px}
.cc-tuoi .xd-years{display:flex;flex-wrap:wrap;gap:6px 8px}
.cc-tuoi .xd-y{font-size:12.5px;background:var(--thuan-nen);color:var(--thuan);border-radius:8px;padding:4px 9px;white-space:nowrap}
.cc-tuoi .xd-y b{font-weight:700} .cc-tuoi .xd-y em{font-style:normal;opacity:.82;font-size:.92em}
.cc-tuoi .xd-ghi{margin:11px 0 0;font-size:12.5px;color:var(--muc-mo);font-style:italic}
.cc-tuoi .xd-khong{display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:14px;color:var(--muc-nhat);margin:0 0 18px}
.cc-tuoi .xd-khong-nhan{font-weight:700;color:var(--muc)}

/* ═══ MÁY TẠO THIỆP MỜI XÔNG ĐẤT (đòn lan truyền) ═══════════════════════════ */
.cc-tuoi .thiep-may{ --tson:#C0272D; --tson-dam:#8E1A16; --tvang:#D4A63F; --tvang-dam:#B07E22;
  --tgiay:#FCF3E2; --tgiay2:#F6E7C9;
  border:1px solid var(--vien);border-radius:16px;background:var(--the-noi);padding:20px 20px 22px;margin:10px 0 26px}
/* ⚠️ Màu viết cứng #5c1914 (đỏ sẫm) đứng chết một chỗ — nền đêm thì nó chìm
   nghỉm. Dùng sắc dẫn của nền: son trên giấy, vàng lá trên nền đêm. */
.cc-tuoi .tm-tit{font-family:var(--font-display,"Cormorant Garamond",Georgia,serif);font-weight:700;font-size:22px;color:var(--son-dam);margin:0 0 3px}
.cc-tuoi .tm-dan{font-size:13.5px;color:var(--muc-nhat);margin:0 0 15px}

/* Hàng chọn nhóm phong cách */
.cc-tuoi .tm-nhom{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.cc-tuoi .tm-nhom-nut{font-family:inherit;font-size:14px;font-weight:700;border:1px solid var(--vien-dam);
  background:var(--the);color:var(--muc-nhat);border-radius:999px;padding:8px 16px;cursor:pointer}
.cc-tuoi .tm-nhom-nut[aria-pressed="true"]{background:var(--son);color:var(--son-chu);border-color:var(--son)}

/* Chip chọn ngữ cảnh (nhóm vui / gen-z) */
.cc-tuoi .tm-canh{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.cc-tuoi .tm-chip{font-family:inherit;text-align:left;border:1px solid var(--vien-dam);background:var(--the);
  border-radius:12px;padding:8px 12px;cursor:pointer;display:flex;flex-direction:column;gap:1px;min-width:0}
.cc-tuoi .tm-chip[aria-pressed="true"]{border-color:var(--son);box-shadow:0 0 0 2px var(--son-mo) inset}
.cc-tuoi .tm-chip-ten{font-size:13px;font-weight:700;color:var(--son-dam)}
.cc-tuoi .tm-chip-ly{font-size:11px;color:var(--muc-mo)}

/* Ô sửa lời + tên */
.cc-tuoi .tm-field{display:block;margin:0 0 11px}
.cc-tuoi .tm-lbl{display:block;font-size:11.5px;font-weight:700;color:var(--muc-nhat);margin:0 0 4px}
.cc-tuoi .thiep-may, .cc-tuoi .thiep-may *{box-sizing:border-box}
.cc-tuoi .tm-loi,.cc-tuoi .tm-tenip{width:100%;max-width:100%;font-family:inherit;font-size:14.5px;color:var(--muc);
  border:1px solid var(--vien-dam);border-radius:10px;padding:10px 12px;background:var(--the-noi);resize:vertical}
.cc-tuoi .tm-loi:focus,.cc-tuoi .tm-tenip:focus{outline:none;border-color:var(--son);box-shadow:0 0 0 2px var(--son-mo)}

/* Xem trước + nút */
.cc-tuoi .tm-xemlbl{text-align:center;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muc-mo);margin:8px 0 7px}
.cc-tuoi .tm-nut-ghi{text-align:center;font-size:12px;color:var(--muc-mo);margin:9px 0 0}
.cc-tuoi .tm-xem{display:flex;justify-content:center;margin:6px 0 14px}
.cc-tuoi .tm-nut{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.cc-tuoi .tm-nut button{font-family:inherit;font-weight:700;font-size:15px;border-radius:11px;padding:11px 22px;cursor:pointer;border:1px solid var(--son)}
.cc-tuoi .tm-nut .son{background:var(--son);color:var(--son-chu)}
.cc-tuoi .tm-nut .vien{background:transparent;color:var(--tson-dam)}
.cc-tuoi .tm-nut button:disabled{opacity:.6;cursor:default}

/* ── TẤM THIỆP (khổ dọc 4:5) ── */
/* ⚠️ TẤM THIỆP TỰ GIỮ MỰC GIẤY, BẤT KỂ NỀN TRANG.
 *
 * Nền thiệp là giấy viết cứng (`--tgiay`). Nếu chữ trong thiệp cứ đọc `--muc`
 * chung của cụm thì sang nền tối nó thành CHỮ SÁNG TRÊN GIẤY — chìm hẳn. Đây
 * đúng cái bẫy luật theme đã ghi: *nền không đổi mà chữ đổi thì chữ chìm*.
 *
 * Và thiệp thì phải giữ giấy thật: nó được tải về thành ảnh gửi cho người khác,
 * mà ảnh ấy ra khỏi site rồi thì nền đêm của trang không đi theo.
 */
.cc-tuoi .tcard{
  --muc:#2A2114; --muc-nhat:#6E6353; --muc-mo:#9A8E77;
  --vien:#DED2B6; --vien-dam:#CDBE97; --the-noi:#FFFFFF;
  width:min(384px,100%);position:relative;overflow:hidden;border-radius:14px;color:var(--muc);padding:12px;
  background:radial-gradient(130% 90% at 50% -14%, #FFFBEF 0%, var(--tgiay) 46%, var(--tgiay2) 100%);
  box-shadow:0 16px 40px -20px rgba(120,20,12,.5)}
.cc-tuoi .tc-in{border:2px solid var(--tson);border-radius:10px;
  box-shadow:0 0 0 3px rgba(212,166,63,.3) inset;padding:16px 15px 14px;display:flex;flex-direction:column;text-align:center}
.cc-tuoi .tc-goc{position:absolute;width:12px;height:12px;border:2px solid var(--tvang-dam);z-index:2}
.cc-tuoi .tc-goc.g1{top:17px;left:17px;border-right:0;border-bottom:0}
.cc-tuoi .tc-goc.g2{top:17px;right:17px;border-left:0;border-bottom:0}
.cc-tuoi .tc-goc.g3{bottom:17px;left:17px;border-right:0;border-top:0}
.cc-tuoi .tc-goc.g4{bottom:17px;right:17px;border-left:0;border-top:0}
.cc-tuoi .tc-emo{font-size:21px;line-height:1;margin:1px 0 3px}
.cc-tuoi .tc-chuc{font-family:var(--font-display,"Cormorant Garamond",Georgia,serif);font-weight:700;font-size:12px;letter-spacing:.03em;color:var(--tvang-dam);margin:0 0 1px}
.cc-tuoi .tc-xuan{font-size:8.5px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:var(--tson);margin:0 0 9px}
/* ⚠️ `text-wrap:balance` — chủ dự án: *"font xấu lủng củng"*. Lời mời hay dài 8–12
   chữ, trình duyệt cắt dòng theo lối tham lam nên hay rớt đúng MỘT chữ xuống dòng
   hai ("...ghé nhà mình / nhé!"). Cân dòng thì hai dòng dài gần bằng nhau. */
.cc-tuoi .tc-tit{font-family:var(--font-display,"Cormorant Garamond",Georgia,serif);font-weight:700;font-size:19px;line-height:1.22;color:var(--tson-dam);margin:0 0 6px;
  text-wrap:balance;letter-spacing:-.005em}
.cc-tuoi .tc-line{font-size:11px;color:var(--muc);line-height:1.55;margin:0 0 5px;text-wrap:pretty}
.cc-tuoi .tc-animals{display:flex;gap:14px;justify-content:center;align-items:flex-start;margin:4px 0 8px;flex-wrap:wrap}
.cc-tuoi .tc-con{width:104px}
/* ⚠️ Huy hiệu chứa THẺ ẢNH THẬT, không phải ảnh nền. Ảnh nền thì bộ chụp phải tự
   co giãn lấy, và bản co giãn ấy mờ hơn hẳn — đúng chỗ chủ dự án bắt được:
   "lưu ảnh về mà nhoè hình 12 con giáp". */
.cc-tuoi .tc-medal{width:78px;height:78px;margin:0 auto 4px;border-radius:50%;
  display:grid;place-items:center;overflow:hidden;
  background-color:#FFFDF6;
  border:1px solid var(--tvang-dam);box-shadow:0 4px 12px -6px rgba(120,20,12,.28),0 0 0 3px rgba(212,166,63,.16)}
.cc-tuoi .tc-medal-anh{width:100%;height:100%;padding:7%;box-sizing:border-box;
  object-fit:contain;display:block}
.cc-tuoi .tc-ten{font-family:var(--font-display,"Cormorant Garamond",Georgia,serif);font-weight:700;font-size:13px;color:var(--tson-dam);line-height:1.1}
.cc-tuoi .tc-via{font-size:9.5px;color:var(--muc-nhat);margin-top:2px;line-height:1.35;min-height:26px}
/* ⚠️ Dãy năm KHÔNG được rớt dòng giữa chừng ("2023 · 2011 ·" rồi mới "1987" —
   nhìn như đứt quãng). Ô rộng 96px vừa đủ ba năm khi chữ hơi hẹp lại. */
.cc-tuoi .tc-nam{font-size:9.5px;color:var(--muc);font-weight:600;margin-top:3px;
  letter-spacing:-.01em;white-space:nowrap;font-variant-numeric:tabular-nums lining-nums}
.cc-tuoi .tc-rao{font-size:9px;color:var(--muc-nhat);font-style:italic;line-height:1.5;margin-top:11px;padding-top:8px}
.cc-tuoi .tc-cta{margin-top:8px;padding-top:8px;border-top:1px dashed var(--vien-dam);font-size:10px;color:var(--muc-nhat)}
.cc-tuoi .tc-cta b{color:var(--tson);font-weight:700}
.cc-tuoi .tc-chuc-them{font-size:10.5px;font-weight:600;font-style:italic;color:var(--tson-dam);margin:3px 0 0}
@media(max-width:420px){.cc-tuoi .tc-animals{gap:8px}.cc-tuoi .tc-con{width:96px}.cc-tuoi .tc-medal{width:70px;height:70px}}

/* Tông màu thiệp (đổi biến cục bộ trên .tcard) */
.cc-tuoi .tcard.mau-vang{--tson:#A9782A;--tson-dam:#7A5316;--tvang:#C9972F;--tvang-dam:#8A6318;--tgiay:#FBEFCF;--tgiay2:#EFDCAE}
.cc-tuoi .tcard.mau-xanh{--tson:#1E6B41;--tson-dam:#114D2C;--tvang:#C79A3B;--tvang-dam:#8A6318;--tgiay:#F1F5EC;--tgiay2:#DEEAD6}

/* Ô nhập đôi (tên gia chủ + tên người nhận) */
.cc-tuoi .tm-doi{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.cc-tuoi .tm-doi > .tm-field{min-width:0}
@media(max-width:520px){.cc-tuoi .tm-doi{grid-template-columns:1fr}}
.cc-tuoi .tm-ip{width:100%;max-width:100%;font-family:inherit;font-size:14.5px;color:var(--muc);border:1px solid var(--vien-dam);border-radius:10px;padding:10px 12px;background:var(--the-noi)}
.cc-tuoi .tm-ip:focus{outline:none;border-color:#C0272D;box-shadow:0 0 0 2px var(--son-mo)}

/* Chọn tông màu */
.cc-tuoi .tm-mau{display:flex;flex-wrap:wrap;gap:8px}
.cc-tuoi .tm-mau-nut{display:inline-flex;align-items:center;gap:7px;font-family:inherit;font-size:13px;font-weight:600;
  border:1px solid var(--vien-dam);background:var(--the);color:var(--muc-nhat);border-radius:10px;padding:6px 11px;cursor:pointer}
.cc-tuoi .tm-mau-nut[aria-pressed="true"]{border-color:var(--muc);color:var(--muc)}
.cc-tuoi .tm-mau-o{width:16px;height:16px;border-radius:50%;border:1px solid rgba(0,0,0,.15);flex:none}
.cc-tuoi .tm-mau-nut.mau-son .tm-mau-o{background:#C0272D}
.cc-tuoi .tm-mau-nut.mau-vang .tm-mau-o{background:#C9972F}
.cc-tuoi .tm-mau-nut.mau-xanh .tm-mau-o{background:#1E6B41}

/* Chọn tuổi mời (12 con giáp) */
.cc-tuoi .tm-tuoi{display:flex;flex-wrap:wrap;gap:6px}
.cc-tuoi .tm-tuoi-chip{font-family:inherit;font-size:12.5px;font-weight:600;border:1px solid var(--vien-dam);background:var(--the);
  color:var(--muc-nhat);border-radius:999px;padding:5px 11px;cursor:pointer;display:inline-flex;align-items:center;gap:5px}
.cc-tuoi .tm-tuoi-chip[aria-pressed="true"]{background:var(--son-mo);border-color:var(--son);color:var(--son-dam)}
.cc-tuoi .tt-hop{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--thuan);background:var(--thuan-nen);border-radius:5px;padding:1px 5px}
