/* Phần riêng của trang public. Màu chỉ dùng token (tokens.css), bố cục dùng lại components.css của web nội bộ. */

.lead { font-size: 15px; line-height: 1.6; color: var(--text-2); margin: 0; max-width: 820px; }
.lead.plain { color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.link { color: var(--link); }
.grow-1 { flex: 1 1 260px; min-width: 0; }

/* menu bên */
.tgbox { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--accent-line); border-radius: 12px;
  background: var(--accent-soft); text-decoration: none; color: var(--text); }
.tgbox:hover { border-color: var(--accent); }
.tgbox b { display: block; font-size: 13px; color: var(--strong); }
.tgbox small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.tgic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink); }
.tgic svg { stroke: currentColor; }
.snav a svg { stroke: currentColor; }
.pubme { justify-content: space-between; }
.langseg a { min-height: 30px; padding: 0 10px; font-size: 12px; font-weight: 600; }
:root[data-nav="mini"] .langseg { flex-direction: column; }
.statusbar .foot-r { margin-left: auto; display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* trang chủ */
.pubhero { display: flex; flex-direction: column; gap: 14px; padding: 26px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--info); }
.hero-t { margin: 0; font-size: 28px; line-height: 1.25; color: var(--strong); max-width: 760px; }
.btn svg { stroke: currentColor; }
.mbars { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mbars li { display: grid; grid-template-columns: 70px 1fr 72px; gap: 10px; align-items: center; }
.mbars b { text-align: right; }
.btbox { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.btbox:hover { border-color: var(--accent); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--gap); }
.step h3 { margin: 8px 0 0; font-size: 15px; color: var(--strong); }
.stepn { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: var(--info-bg); color: var(--info); font-weight: 700; font-size: 13px; font-family: var(--mono); }
.proof, .hiddenbox { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.proof h3, .hiddenbox h3 { margin: 0; font-size: 15px; color: var(--strong); }
.proof-ic { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: var(--accent-soft); color: var(--accent); }
.proof-ic svg { stroke: currentColor; }
.hiddenbox { border-color: var(--accent-line); }

/* nhật ký */
.logf { padding-bottom: 12px; justify-content: flex-start; }
.pager button { min-width: 36px; min-height: 36px; border: 1px solid var(--line-2); border-radius: 8px; background: transparent;
  color: var(--text); font: 600 15px var(--font); cursor: pointer; }
.pager button[disabled] { opacity: .4; cursor: default; }
.pager #log-page { padding: 0 8px; color: var(--muted); }
.pill.live { background: var(--pos-bg); color: var(--pos); }
.pill.rule { border: 1px dashed var(--accent-line); color: var(--info); }
.pill.sm { padding: 1px 8px; font-size: 11px; }

/* phương pháp */
.rules .proof-ic { width: 36px; height: 36px; }
.rkv { margin-top: 14px; }
.rkv .v { font-size: 18px; margin: 4px 0 2px; color: var(--strong); }
.risks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 24px; }
.risks li { display: flex; gap: 12px; align-items: flex-start; }
.risks b { color: var(--strong); }
.risks .card-sub { margin-top: 2px; }
.faq { display: flex; flex-direction: column; margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--line-soft); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--strong); }
.faq .card-sub { margin-top: 8px; }

/* liên hệ */
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.chan { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.chan:hover { border-color: var(--accent); }
.chan-v { font-family: var(--mono); font-size: 15px; color: var(--strong); overflow-wrap: anywhere; }
.mailform { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.mailform textarea { background: var(--field); border: 1px solid var(--field-line); border-radius: 10px; color: var(--text);
  font: 14px var(--font); padding: 10px 12px; resize: vertical; }
.topics { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics legend { margin-bottom: 8px; }
.topics label.chipbtn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; font-size: 13px; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics label.chipbtn:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--strong); font-weight: 600; }
.topics label.chipbtn:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.scam { border-color: var(--neg-dim); }
.dots { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--text-2); }

@media (max-width: 900px) {
  .sidebar .sidebox { display: none; }
  .sidebar .pubme { display: flex; flex-direction: row; }
}
@media (max-width: 640px) {
  .hero-t { font-size: 22px; }
  .pubhero { padding: 18px; }
  .statusbar .foot-r { margin-left: 0; }
}

/* backtest */
.kpis { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.side .tbl.compact th, .side .tbl.compact td { padding-left: 8px; padding-right: 8px; }
.side .tbl.compact th:first-child, .side .tbl.compact td:first-child { padding-left: 16px; }
.xax + .cap { margin-top: 14px; }

/* báo cáo tháng */
.share { gap: 10px; }
.share h2 { margin: 0; }
.sharecard { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line-2); display: block; }
.sharetext { margin: 0; padding: 12px; border-radius: 10px; background: var(--field); border: 1px solid var(--field-line);
  font: 12px/1.55 var(--mono); color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.pubme #theme-btn { margin-left: auto; }
