/* /tai-lieu-mien-phi.html — scoped to .p-resources (+ its modals, which mount on <body>) */

/* header art: two printable sheets */
.p-resources .cx-resart{ position:relative; justify-self:center; width:min(100%, 380px); height:280px; }
.p-resources .cx-resart__sheet{ position:absolute; display:grid; justify-items:center; align-content:start; gap:10px; width:62%; aspect-ratio:3/4; padding:16px 10px; border-radius:6px; box-shadow:0 18px 34px rgba(0,0,0,.35);
  background:linear-gradient(90deg, transparent 18px, rgba(230,70,90,.5) 18px 19px, transparent 19px), repeating-linear-gradient(0deg, rgba(124,140,220,.25) 0 1px, transparent 1px 12px), repeating-linear-gradient(90deg, rgba(124,140,220,.18) 0 1px, transparent 1px 12px), #fff; }
.p-resources .cx-resart__sheet--a{ left:4%; bottom:0; transform:rotate(-7deg); z-index:1; }
.p-resources .cx-resart__sheet--b{ right:2%; top:0; transform:rotate(6deg); }
.p-resources .cx-resart__h{ font-family:var(--ta-font-title); font-weight:700; font-size:16px; color:var(--ta-maroon-500); background:#fff; padding:0 6px; }
.p-resources .cx-resart__big{ display:flex; gap:6px; }
.p-resources .cx-resart__big b{ width:38px; height:42px; display:grid; place-items:center; border:1px solid rgba(124,140,220,.6); background:rgba(255,255,255,.75); font-family:var(--ta-font-hand); font-size:30px; color:#D22322; }
.p-resources .cx-resart__big b:nth-child(even){ color:#2B4FC9; }
.p-resources .cx-resart__row{ display:flex; gap:4px; }
.p-resources .cx-resart__row i{ width:26px; height:26px; display:grid; place-items:center; border-radius:50%; border:1.5px solid #D22322; font-style:normal; font-size:11px; font-weight:800; color:#D22322; background:#fff; }
.p-resources .cx-resart__row i:nth-child(-n+3){ background:#D22322; color:#fff; }
.p-resources .cx-resart__s{ font-family:var(--ta-font-script); font-size:26px; color:#0A6F8F; }
.p-resources .cx-resart__badge{ position:absolute; z-index:2; right:6%; bottom:10%; padding:8px 16px; border-radius:99px; font-weight:900; font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:#4A2A00; background:var(--ta-g-gold); box-shadow:var(--ta-sh-gold); transform:rotate(-6deg); }
@media (max-width:959px){ .p-resources .cx-resart{ display:none; } }
.p-resources .cx-hello{ display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:12px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25); font-size:14px; }
.p-resources .cx-hello .ta-ico{ width:17px; height:17px; color:#FDE68A; }
.p-resources .ta-pagehead__actions .ta-ico{ width:17px; height:17px; }

/* quota strip */
.p-resources .cx-quota{ margin-top:24px; }
.p-resources .cx-quota__bar{ display:grid; grid-template-columns:48px minmax(0,1fr); gap:12px 14px; align-items:center; padding:14px 16px; border-radius:var(--ta-r-xl); background:linear-gradient(90deg,#FFF6E3,#FFFDF8); border:1px solid #F0DDB8; box-shadow:var(--ta-sh-card); }
.p-resources .cx-quota__bar > .ta-btn{ grid-column:1 / -1; }
@media (min-width:768px){ .p-resources .cx-quota__bar{ grid-template-columns:48px minmax(0,1fr) auto; } .p-resources .cx-quota__bar > .ta-btn, .p-resources .cx-quota__meter{ grid-column:auto; } }
.p-resources .cx-quota__ico{ width:48px; height:48px; display:grid; place-items:center; border-radius:14px; color:#4A2A00; background:var(--ta-g-gold); box-shadow:var(--ta-sh-gold); }
.p-resources .cx-quota__ico .ta-ico{ width:22px; height:22px; }
.p-resources .cx-quota__txt b{ display:block; font-size:15px; color:var(--ta-text); }
.p-resources .cx-quota__txt small{ display:block; font-size:12.5px; color:var(--ta-muted); margin-top:2px; }
.p-resources .cx-quota__meter{ grid-column:1 / -1; width:100%; min-width:180px; height:10px; border-radius:99px; background:#EFE3CF; overflow:hidden; }
.p-resources .cx-quota__meter span{ display:block; height:100%; width:var(--p); border-radius:inherit; background:linear-gradient(90deg,#16A34A,#4ADE80); }
.p-resources .cx-quota__bar .ta-ico{ flex:0 0 auto; }
.p-resources .cx-quota__bar .ta-btn .ta-ico{ width:16px; height:16px; }

/* grid */
.p-resources .cx-resgrid .ta-res__body{ gap:6px; }
.p-resources .cx-res__desc{ font-size:12.5px; line-height:1.5; color:var(--ta-text-2); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.p-resources .cx-resgrid .ta-btn.is-got{ --_bg:var(--ta-green); --_bd:var(--ta-green); background:var(--ta-green); border-color:var(--ta-green); }
.p-resources .cx-soon{ opacity:.92; border-style:dashed; }
.p-resources .cx-soon .ta-res__media{ filter:saturate(.75); }
.p-resources .cx-soon__ribbon{ align-self:flex-start; display:inline-flex; align-items:center; gap:5px; padding:3px 9px; border-radius:99px; font-size:10.5px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; color:#7A4B00; background:#FFF4D6; border:1px dashed #E3B54A; }
.p-resources .cx-soon__ribbon .ta-ico{ width:12px; height:12px; }
.p-resources .cx-soon .ta-res__meta{ font-size:12px; line-height:1.45; }
.p-resources .cx-soon .ta-btn{ margin-top:auto; }
.p-resources .cx-soon .ta-btn .ta-ico{ width:14px; height:14px; }

/* how-to strip */
.p-resources .cx-how__list{ list-style:none; margin:0; padding:0; display:grid; gap:10px; grid-template-columns:1fr; }
@media (min-width:768px){ .p-resources .cx-how__list{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; } }
.p-resources .cx-how__list li{ display:flex; gap:12px; align-items:center; padding:14px 16px; border-radius:var(--ta-r-xl); color:#fff; background:var(--ta-tx-seigaiha), radial-gradient(120% 140% at 0% 0%, #A3151C, #5F0F13); background-size:36px 18px, auto; box-shadow:0 10px 22px rgba(60,10,14,.18); }
.p-resources .cx-how__n{ flex:0 0 auto; width:42px; height:42px; display:grid; place-items:center; border-radius:50%; font-family:var(--ta-font-display); font-weight:900; font-size:20px; color:#4A2A00; background:var(--ta-g-gold); }
.p-resources .cx-how__list b{ display:block; font-size:14.5px; color:#FFE7A3; }
.p-resources .cx-how__list small{ display:block; font-size:12.5px; color:rgba(255,246,225,.9); }
.p-resources .cx-resfaq .ta-acc__body a{ color:var(--ta-maroon-500); font-weight:800; text-decoration:underline; text-underline-offset:2px; }

/* modals (mounted on body) */
.cx-gate__in, .cx-limit__in{ display:grid; justify-items:center; gap:12px; text-align:center; padding:6px 4px 4px; }
.cx-gate__ico{ width:64px; height:64px; display:grid; place-items:center; border-radius:50%; color:#4A2A00; background:var(--ta-g-gold); box-shadow:var(--ta-sh-gold), 0 0 0 8px rgba(244,194,77,.18); }
.cx-gate__ico .ta-ico{ width:30px; height:30px; }
.cx-gate__t{ font-family:var(--ta-font-title); font-weight:700; font-size:21px; line-height:1.3; color:var(--ta-maroon-500); }
.cx-gate__d{ font-size:14px; line-height:1.6; color:var(--ta-text-2); }
.cx-gate .ta-btn--google{ gap:10px; }
.cx-gate__g{ width:24px; height:24px; display:grid; place-items:center; border-radius:50%; font-weight:900; color:#fff; background:conic-gradient(#EA4335 0 25%, #FBBC05 0 50%, #34A853 0 75%, #4285F4 0); }
.cx-gate .ta-divider-or{ width:100%; }
.cx-gate__gnote{ font-size:12.5px; line-height:1.5; color:var(--ta-muted); }
.cx-gate__row{ display:grid; grid-template-columns:1fr 1fr; gap:8px; width:100%; }
.cx-gate__perks{ list-style:none; margin:4px 0 0; padding:12px 14px; display:grid; gap:6px; width:100%; text-align:left; border-radius:14px; background:var(--ta-cream); font-size:13px; color:var(--ta-text-2); }
.cx-gate__perks li{ display:flex; gap:8px; align-items:flex-start; }
.cx-gate__perks .ta-ico{ width:15px; height:15px; margin-top:2px; color:var(--ta-green); flex:0 0 auto; }
.cx-lead__d{ font-size:14px; line-height:1.6; color:var(--ta-text-2); margin-bottom:12px; }
.cx-lead__alt{ font-size:13px; text-align:center; color:var(--ta-muted); }
.cx-linkbtn{ border:0; background:none; padding:0; color:var(--ta-ink-700); font-weight:800; text-decoration:underline; text-underline-offset:2px; }
.cx-lead .ta-btn .ta-ico{ width:17px; height:17px; }
.cx-thanks__quota{ display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:99px; background:#fff; border:1px solid #CDEFD8; font-size:13px; color:#166534; }
.cx-thanks__quota .ta-ico{ width:15px; height:15px; }
.cx-thanks__tips{ list-style:none; margin:0; padding:0; display:grid; gap:4px; font-size:13px; color:var(--ta-text-2); }
.cx-thanks__tips li{ display:flex; gap:6px; align-items:center; justify-content:center; }
.cx-thanks__tips .ta-ico{ width:14px; height:14px; color:var(--ta-green); }
.cx-limit .ta-countdown{ justify-content:center; }
