/* CSS toàn cục tối thiểu mà component của UI cần, dùng chung cho mọi web.
   Nạp qua NmCoreStyles (sau CSS của web). Đường dẫn tương đối theo tệp này nên đúng cả dưới PathBase. */

/* Viền ô điều khiển (ô nhập, ô chọn, hộp chọn) ≥ 3:1 trên nền trắng và nền xám nhạt; :where ⇒ web nào khai lại ở :root thì web thắng. */
:where(:root) {
    --nm-control-border: #848b98;
    /* Nền nút chữ trắng ≥ 4.5:1: cam đậm bậc 700 của web (NM #c44d00, VTG #b44d08); web khai lại ở :root thì web thắng. */
    --nm-accent-grad: linear-gradient(135deg, var(--nm-brand-700, #c44d00) 0%, color-mix(in srgb, var(--nm-brand-700, #c44d00) 88%, #000) 100%);
    --nm-accent-grad-hover: linear-gradient(135deg, color-mix(in srgb, var(--nm-brand-700, #c44d00) 88%, #000) 0%, color-mix(in srgb, var(--nm-brand-700, #c44d00) 76%, #000) 100%);
}

/* Cờ quốc gia: Windows không có glyph cờ trong Segoe UI Emoji. unicode-range chỉ gồm dải
   Regional Indicator nên font chỉ tải khi trang có cờ. */
@font-face {
    font-family: 'Twemoji Country Flags';
    src: url('../fonts/TwemojiCountryFlags.woff2') format('woff2');
    font-display: swap;
    unicode-range: U+1F1E6-1F1FF;
}

/* Đặt cho phần tử hiện cờ khi nó (hoặc cha) có font-family riêng. */
.nm-flag {
    font-family: 'Twemoji Country Flags', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-style: normal;
    line-height: 1;
}

/* Mục menu đang chọn (NavItem, MenuNode). */
.nm-nav-pill-active {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: white !important;
    border-radius: 12px;
    box-shadow: 0 4px 12px -2px rgba(234, 88, 12, 0.3);
}
.nm-nav-pill-active svg { color: white !important; }

/* Ô biểu tượng của mục menu. */
.nm-icon-bubble {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #f5f3f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.nm-nav-pill-active .nm-icon-bubble {
    background: rgba(255,255,255,0.2);
}
