/* Khu vực đề xuất phía người xem; màu kế thừa theme. */
.fox40-recs { margin: 2rem 0; }
.fox40-recs[hidden] { display: none; }
.fox40-recs__title { font-size: 1.15em; margin: 0 0 .75rem; }
.fox40-recs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.fox40-recs .fox40-recs__item a { display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .75rem; align-items: start; padding: .85rem 1rem; border: 1px solid var(--f-border, rgba(127, 127, 127, .25)); border-radius: 14px; background: var(--f-surface, transparent); text-decoration: none; color: var(--f-text, inherit); height: 100%; line-height: 1.4; }
.fox40-recs__item a:hover, .fox40-recs__item a:focus-visible { border-color: currentColor; }
.fox40-recs__item img { grid-row: 1 / span 2; width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.fox40-recs__t { font-weight: 600; line-height: 1.35; }
.fox40-recs__why { color: var(--f-muted, inherit); font-size: .82em; }
.fox40-recs .fox40-recs__item:not(:has(img)) a { grid-template-columns: minmax(0, 1fr); }
.fox40-recs__item.is-locked a { border-style: dashed; }
/* Tab Nhận tin: chủ đề theo từng taxonomy, cây cha-con. */
.fox40-mkt-tax { margin: 0 0 1rem; padding: .75rem 1rem; border: 1px solid var(--f-border, rgba(127, 127, 127, .25)); border-radius: 12px; }
.fox40-mkt-tax > legend { padding: 0 .4rem; font-weight: 600; }
.fox40-mkt-tree { list-style: none; margin: 0; padding: 0; }
.fox40-mkt-tree .fox40-mkt-tree { margin: .2rem 0 .3rem; padding-left: 1.5rem; border-left: 1px dashed var(--f-border, rgba(127, 127, 127, .35)); }
.fox40-mkt-tree li { margin: .2rem 0; }
.fox40-mkt-topics { margin: 0 0 1.25rem; }
.fox40-mkt-tree label { display: inline-flex; gap: .5rem; align-items: flex-start; font-weight: 400; line-height: 1.45; }
.fox40-mkt-terms > .fox40-mkt-tax > .fox40-mkt-tree > li > label { font-weight: 600; }

/* Vị trí hiển thị: thẻ theo kiểu thẻ bài của theme (viền mảnh, bo 14px, nền mặt thẻ), bề rộng theo khung chứa.
 * Không dùng --f-radius-sm vì theme đặt biến đó cho nút dạng viên thuốc. */
.fox40-slot { margin: 2rem 0; }
.fox40-slot[hidden] { display: none; }
.fox40-slot.is-mid { margin: 1.5rem 0; }
.fox40-slot__title { font-size: 1.15em; margin: 0 0 .75rem; }
.fox40-slot__list { display: grid; gap: .625rem; }
.fox40-slot__list.is-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.fox40-slot__list.is-scroll { grid-auto-flow: column; grid-auto-columns: minmax(240px, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .25rem; }
.fox40-slot__list.is-scroll > * { scroll-snap-align: start; }
.fox40-slot a.fox40-slot__item { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: .75rem; row-gap: .2rem; align-items: start; padding: .85rem 1rem; border: 1px solid var(--f-border, rgba(127, 127, 127, .25)); border-radius: 14px; background: var(--f-surface, transparent); color: var(--f-text, inherit); text-decoration: none; line-height: 1.4; transition: border-color .15s ease; }
.fox40-slot a.fox40-slot__item:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.fox40-slot a.fox40-slot__item:hover, .fox40-slot a.fox40-slot__item:focus-visible { border-color: var(--f-accent, currentColor); }
.fox40-slot__item img { grid-row: 1 / span 2; width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.fox40-slot__item.is-locked { border-style: dashed; }
.fox40-slot__t { font-weight: 600; font-size: .98em; overflow-wrap: anywhere; }
.fox40-slot__why { color: var(--f-muted, inherit); font-size: .82em; line-height: 1.45; }
.fox40-slot__list.is-line a.fox40-slot__item { grid-template-columns: minmax(0, 1fr); padding: .6rem .9rem; border-left: 3px solid var(--f-accent, currentColor); border-radius: 0 10px 10px 0; }
.fox40-slot__list.is-line img { display: none; }
.fox40-slot__resume { margin: 0; padding: .65rem .9rem; border-left: 3px solid var(--f-accent, currentColor); background: var(--f-surface, transparent); border-radius: 0 10px 10px 0; }
.fox40-slot.is-float { margin: 0; }
.fox40-slot__bubble { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--f-accent, #1d4ed8); color: var(--f-accent-ink, #fff); font-weight: 700; box-shadow: var(--f-shadow, 0 6px 18px rgba(0, 0, 0, .2)); cursor: pointer; }
.fox40-slot__panel { background: var(--f-bg, #fff); color: var(--f-text, inherit); box-shadow: var(--f-shadow, 0 -6px 24px rgba(0, 0, 0, .18)); padding: .75rem 1rem 1rem; }
.fox40-slot__panel.is-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; max-height: 40vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
.fox40-slot__panel.is-popup { width: min(520px, calc(100vw - 32px)); max-height: 80vh; overflow-y: auto; border-radius: 16px; }
.fox40-slot__shade { position: fixed; inset: 0; z-index: 99; display: grid; place-items: center; background: rgba(0, 0, 0, .45); }
.fox40-slot__head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.fox40-slot__close { border: 0; background: none; color: inherit; font-size: 1.5rem; line-height: 1; padding: .25rem .5rem; cursor: pointer; }
.fox40-slot-preview { margin: 1rem 0; padding: .6rem .85rem; border: 2px dashed var(--f-accent, #c2410c); border-radius: 10px; font-size: .85em; color: var(--f-muted, inherit); }
