/* Thành phần dùng chung: nút, thẻ, tag, ô tìm kiếm, callout. */
.btn { height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { height: 52px; padding: 0 28px; border: 0; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; }
.btn-primary:hover { filter: brightness(1.1); }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.tag.outline { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.tag.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.chip { height: 44px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); color: #fff; font-size: 14px; }
.chip:hover { background: rgba(255,255,255,.12); }

/* Ô tìm kiếm */
.searchbox { position: relative; }
.searchbox input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; background: var(--bg); font-size: 15px; }
.search-pop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 70; max-height: 420px; overflow: auto; margin: 0; padding: 6px; list-style: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(15,27,61,.22); }
.search-pop[hidden] { display: none; }
.search-pop a { display: block; padding: 10px 12px; border-radius: 10px; min-height: 44px; }
.search-pop a:hover, .search-pop a[aria-selected='true'] { background: var(--accent-soft); }
.search-pop strong { display: block; font-size: 14px; }
.search-pop span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.search-pop .pop-all { color: var(--accent-ink); font-weight: 600; font-size: 14px; text-align: center; }
.pop-empty { padding: 14px 12px; color: var(--muted); font-size: 14px; }
mark { background: var(--amber); color: #0F1B3D; border-radius: 3px; padding: 0 2px; }

/* Callout (điều kiện, ví dụ) */
.callout { display: flex; gap: 14px; padding: 18px 22px; border-radius: 16px; font-size: 15px; line-height: 1.65; margin: 22px 0; }
.callout .ico { flex: none; margin-top: 2px; }
.callout.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); }
.callout.example { background: var(--accent-soft); border: 1px solid var(--line); border-left: 4px solid var(--accent); color: var(--ink); }
code, .callout code { color: inherit; }

/* Ký hiệu / cách dùng (thu gọn) */
details.note { margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
details.note > summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; }
details.note > summary::-webkit-details-marker { display: none; }
details.note > summary::after { content: 'Mở rộng +'; font-weight: 500; font-size: 14px; color: var(--muted); }
details.note[open] > summary::after { content: 'Thu gọn –'; }
details.note[open] > summary { border-bottom: 1px solid var(--line); }
.note-body { padding: 16px 22px 20px; color: var(--ink-2); line-height: 1.75; }
blockquote { margin: 0; padding: 0; border: 0; }
