/* TaiChinhSo front-end styles ported from TrangEdu */
:is(.tks-reading,.tks-article-body,.td-post-content,.entry-content,.tdb-block-inner) .te-callout{box-sizing:border-box;max-width:100%;margin:20px 0;padding:3px 0 3px 18px;border-left:4px solid #d1d5db;background:transparent;color:inherit}
:is(.tks-reading,.tks-article-body,.td-post-content,.entry-content,.tdb-block-inner) .te-callout p{margin:0 0 10px}
:is(.tks-reading,.tks-article-body,.td-post-content,.entry-content,.tdb-block-inner) .te-callout p:last-child{margin-bottom:0}
:is(.tks-reading,.tks-article-body,.td-post-content,.entry-content,.tdb-block-inner) .te-codeBox{box-sizing:border-box;max-width:100%;margin:18px 0;padding:14px 16px;overflow-x:auto;border:1px solid rgba(15,23,42,.12);border-radius:8px;background:#f8fafc;color:#111827;font:13px/1.6 Consolas,Monaco,monospace;white-space:pre;tab-size:2}
:is(.tks-reading,.tks-article-body,.td-post-content,.entry-content,.tdb-block-inner) .te-codeBox code{display:block;padding:0;border:0;background:transparent;color:inherit;font:inherit;white-space:pre}
:is(.tks-reading,.tks-article-body,.td-post-content,.entry-content,.tdb-block-inner) .te-codeShell{max-width:100%;margin:18px 0;overflow:hidden;border:1px solid rgba(15,23,42,.12);border-radius:8px;background:#f8fafc}
:is(.tks-reading,.tks-article-body,.td-post-content,.entry-content,.tdb-block-inner) .te-codeShell .te-codeBox{margin:0;border:0;border-radius:0}
:is(.tks-reading,.tks-article-body,.td-post-content,.entry-content,.tdb-block-inner) .te-codeShell__header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;background:#eef2f7;border-bottom:1px solid #d8dee8;color:#475569;font-size:13px}
:is(.tks-reading,.tks-article-body,.td-post-content,.entry-content,.tdb-block-inner) .te-codeShell__language{font-weight:700}
:is(.tks-reading,.tks-article-body,.td-post-content,.entry-content,.tdb-block-inner) .te-codeShell__copy{border:0;background:transparent;color:#2563eb;font:inherit;font-weight:700;cursor:pointer}
:is(.tks-reading,.tks-article-body,.td-post-content,.entry-content,.tdb-block-inner) .trangedu-citation-group{display:inline-flex;align-items:center;max-width:142px;margin:0 2px;vertical-align:baseline;white-space:nowrap}
:is(.tks-reading,.tks-article-body,.td-post-content,.entry-content,.tdb-block-inner) .trangedu-citation{display:inline-flex;align-items:center;gap:4px;min-width:0;max-width:132px;padding:1px 6px;border:1px solid #d9dee7;border-radius:999px;background:#f3f4f6;color:#475569;font-size:11px;font-weight:600;line-height:1.45;text-decoration:none}
:is(.tks-reading,.tks-article-body,.td-post-content,.entry-content,.tdb-block-inner) .trangedu-citation:not(:first-child){display:none}
:is(.tks-reading,.tks-article-body,.td-post-content,.entry-content,.tdb-block-inner) .trangedu-citation__favicon{width:12px;height:12px;flex:0 0 12px;border-radius:2px;background:#d1d5db}
:is(.tks-reading,.tks-article-body,.td-post-content,.entry-content,.tdb-block-inner) img.trangedu-citation__favicon{display:block;margin:0;border:0;object-fit:contain;background:transparent}
:is(.tks-reading,.tks-article-body,.td-post-content,.entry-content,.tdb-block-inner) .trangedu-citation__name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:is(.tks-reading,.tks-article-body,.td-post-content,.entry-content,.tdb-block-inner) .trangedu-citation__count{color:#64748b;font-weight:700}
.trangedu-citation-popover{position:fixed;z-index:9999;width:min(320px,calc(100vw - 16px));padding:12px;border:1px solid #d8dee8;border-radius:12px;background:#fff;box-shadow:0 14px 35px #0002;color:#0f172a;font-size:13px;opacity:0;pointer-events:none}
.trangedu-citation-popover.is-visible{opacity:1;pointer-events:auto}
.trangedu-citation-popover__pager{display:flex;gap:6px;align-items:center;margin-bottom:12px}
.trangedu-citation-popover__pager span{margin-left:auto}
.trangedu-citation-popover__pager button{border:1px solid #d8dee8;border-radius:6px;background:#f8fafc;cursor:pointer}
.trangedu-citation-popover__pager button:disabled{opacity:.35}
.trangedu-citation-popover__source{display:flex;gap:8px;align-items:center;margin-bottom:8px;font-weight:700}
.trangedu-citation-popover__favicon{width:16px;height:16px;object-fit:contain;border-radius:3px}
.trangedu-citation-popover a{color:#0f172a;text-decoration:none}
.trangedu-citation-popover a:hover{text-decoration:underline}
.trangedu-citation-popover__title{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
/* Overrides for Taichinhso minimalist theme */
body.tks-minimal .tks-reading a.trangedu-citation{color:#16547f!important;text-decoration:none!important;background:#eef7f6;border-color:#d6e4ea}
.tks-reading .te-callout{border-left-color:#14a69d}
.tks-reading .te-codeShell__header{background:#eef7f6;color:#16547f}

/* TaiChinhSo Note v1.1: an information card, visually distinct from H2 headings. */
body.tks-minimal .tks-reading .te-callout,
.tks-reading.tks-article-body .te-callout {
  box-sizing: border-box;
  max-width: 100%;
  margin: 24px 0;
  padding: 17px 20px 18px;
  border: 1px solid #d7e8e5;
  border-radius: 10px;
  background: #f3f9f8;
  box-shadow: none;
  color: #23394b;
}
body.tks-minimal .tks-reading .te-callout::before,
.tks-reading.tks-article-body .te-callout::before {
  content: "GHI CHÚ";
  display: block;
  margin: 0 0 8px;
  color: #087f79;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: .05em;
}
body.tks-minimal .tks-reading .te-callout > p,
.tks-reading.tks-article-body .te-callout > p {
  margin: 0 0 10px;
  color: inherit;
  line-height: 1.73;
}
body.tks-minimal .tks-reading .te-callout > p:last-child,
.tks-reading.tks-article-body .te-callout > p:last-child { margin-bottom: 0; }
@media(max-width: 610px) {
  body.tks-minimal .tks-reading .te-callout,
  .tks-reading.tks-article-body .te-callout { padding: 14px 15px 16px; margin: 20px 0; }
}