/* Giao diện dienbien — Thời tiết Điện Biên. Đỏ lịch sử, nhấn vàng.
   Sinh tự động bởi tools/themes/gen.py — sửa ở đó rồi chạy lại.
   Phối màu 60-30-10: nền #FBF8F8 (60%) · chủ đạo #BA2630 (30%) · nhấn #DC7F2E (analog, 10%).
   Cấu trúc: đầu trang ink · khối đầu trang bleed · tab boxed · bố cục left · thẻ border · chân trang ink · font sourceserif. */
@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@600;700&family=Source+Sans+3:wght@400;600;700&display=swap");

.theme-dienbien {
	--m4-500: #D42B37; --m4-600: #BA2630; --m4-700: #A02129; --m4-800: #7E1A21; --m4-900: #2A151B;
	--m4-amber: #DC7F2E; --m4-sun: #DC7F2E;
	--m4-cream: #FCF0F1; --m4-cream-2: #F9DFE1;
	--m4-bg: #FBF8F8; --m4-ink: #201820; --m4-ink-2: #4D464D; --m4-muted: #726870;
	--m4-line: #EADDDE; --m4-line-2: #F4EEEE;
	--m4-rain: #1D6FD1; --m4-cool: #1D6FD1;
	--tw-ink: #201820; --tw-ink-2: #4D464D; --tw-muted: #726870; --tw-line: #EADDDE; --tw-line-2: #F4EEEE;
	--tw-bg: #FBF8F8; --tw-brand: #BA2630; --tw-brand-600: #A02129; --tw-brand-700: #7E1A21;
	--tw-brand-50: #FCF0F1; --tw-brand-100: #F9DFE1; --tw-rain: #1D6FD1;
	--tt-acc: #DC7F2E; --tt-acc-text: #A25A1B; --tt-acc-50: #FBF0E6;
	--tt-rain-text: #1D6FD1;
	--chart-ink: #201820; --chart-muted: #726870; --chart-grid: rgba(32, 24, 32, 0.08);
	--chart-max: #A02129; --chart-min: #1D6FD1; --chart-rain: rgba(29, 111, 209, 0.5); --chart-rain-solid: #1D6FD1; --chart-pop: #1D6FD1;
	--m4-display: "Source Serif 4", "Be Vietnam Pro", system-ui, sans-serif;
	--tw-font: "Source Sans 3", "Be Vietnam Pro", system-ui, sans-serif;
	--m4-shadow: 0 1px 2px rgba(42, 21, 27, 0.05), 0 14px 30px -18px rgba(42, 21, 27, 0.28);
	--m4-shadow-lg: 0 24px 54px -26px rgba(42, 21, 27, 0.45);
	background: var(--m4-bg); color: var(--m4-ink); font-family: var(--tw-font);
}
.theme-dienbien a { color: var(--m4-700); }
.theme-dienbien a:hover { color: var(--m4-800); }
.theme-dienbien a:focus-visible, .theme-dienbien button:focus-visible, .theme-dienbien summary:focus-visible, .theme-dienbien [tabindex]:focus-visible { outline: 2px solid var(--m4-700); outline-offset: 2px; border-radius: 6px; }
.theme-dienbien .btn-primary, .theme-dienbien .tw-btn--primary { background: var(--m4-600); border-color: var(--m4-600); color: #fff; }
.theme-dienbien .btn-primary:hover, .theme-dienbien .tw-btn--primary:hover { background: var(--m4-800); border-color: var(--m4-800); color: #fff; }
.theme-dienbien input:focus, .theme-dienbien select:focus, .theme-dienbien textarea:focus, .theme-dienbien .form-control:focus { border-color: var(--m4-600); box-shadow: 0 0 0 3px rgba(186, 38, 48, 0.22); outline: 0; }
.theme-dienbien .m4-h2::before { background: var(--tt-acc); }
.theme-dienbien .m4-chip { background: var(--tt-acc-50); color: var(--tt-acc-text); }
.theme-dienbien .m4-pick__ico { color: var(--m4-700); background: var(--m4-cream); }
.theme-dienbien .m4-acc summary::after { color: var(--m4-700); }
.theme-dienbien .m4-hrow__pop b, .theme-dienbien .m4-moment--wet b, .theme-dienbien .m4-wave__rain b, .theme-dienbien .m4-gantt__rain b, .theme-dienbien .m4-table__rain { color: var(--tt-rain-text); }
.theme-dienbien .m4-hcell__pop i, .theme-dienbien .m4-gantt__rain i { background: var(--m4-rain); }
.theme-dienbien .m4-band__hi { fill: #A02129; }
.theme-dienbien .m4-band__lo { fill: var(--tt-rain-text); }
.theme-dienbien .m4-ticket__temp, .theme-dienbien .m4-feature__temp { color: var(--m4-700); }
.theme-dienbien .tw-nowcard { background: linear-gradient(150deg, var(--m4-800), var(--m4-600) 60%, var(--m4-500)); }
.theme-dienbien .m4-table thead th { background: var(--m4-cream); color: var(--m4-ink-2); }
.theme-dienbien .m4-table td, .theme-dienbien .m4-table th { border-color: var(--m4-line); }
.theme-dienbien .tw-places__list a { background: #fff; color: var(--m4-ink); box-shadow: inset 0 0 0 1px var(--m4-line); }
.theme-dienbien .tw-places__list a:hover { background: var(--m4-cream); color: var(--m4-800); }
.theme-dienbien .tw-crumbs a { color: var(--m4-700); }
.theme-dienbien .m4-h2, .theme-dienbien .m4-hero__title, .theme-dienbien .m4-hh__title, .theme-dienbien .tw-pagehead__title, .theme-dienbien .m4-tab b { font-family: var(--m4-display); }
.theme-dienbien .tw-header { background: var(--m4-900); border-bottom: 3px solid var(--tt-acc); }
.theme-dienbien .tw-header a { color: #fff; }
.theme-dienbien .tw-header .search-input { background: #fff; border: 1px solid transparent; color: var(--m4-ink); }
.theme-dienbien .tw-header .search-input:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }
.theme-dienbien .tw-header .tw-btn--soft { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.theme-dienbien .tw-header .tw-btn--soft:hover { background: #fff; color: var(--m4-800); }
.theme-dienbien .tw-header::before { display: none; }
.theme-dienbien .tw-header .dropdown-menu, .theme-dienbien .tw-places-menu { background: #fff; color: var(--m4-ink); border: 1px solid var(--m4-line); }
.theme-dienbien .tw-header .dropdown-menu a, .theme-dienbien .tw-places-menu a { color: var(--m4-ink); }
.theme-dienbien .tw-header .dropdown-menu a:hover, .theme-dienbien .tw-places-menu a:hover { background: var(--m4-cream); color: var(--m4-800); }
.theme-dienbien .m4-hero, .theme-dienbien .m4-hero[class*="m4-hero--"] { --h1: var(--m4-800); --h2: var(--m4-600); --h3: rgba(220, 127, 46, 0.55); }
.theme-dienbien .m4-hh { background: radial-gradient(90% 120% at 100% 0%, rgba(220, 127, 46, 0.5) 0, transparent 55%), linear-gradient(120deg, var(--m4-800), var(--m4-600) 65%, var(--m4-500)); }
.theme-dienbien .tw-pagehead { --g1: var(--m4-800); --g2: var(--m4-600); --g3: var(--m4-500); }
.theme-dienbien .m4-ticket, .theme-dienbien .m4-ticket:hover { color: var(--m4-ink); }
.theme-dienbien .m4-tabs { background: rgba(251, 248, 248, 0.94); border-bottom: 1px solid var(--m4-line); }
.theme-dienbien .m4-tab { border-radius: 6px; background: #fff; border: 1px solid var(--m4-line); }
.theme-dienbien .m4-tab:hover { border-color: var(--m4-600); background: #fff; }
.theme-dienbien .m4-tab.is-active, .theme-dienbien .m4-tab.is-active:hover { background: var(--m4-900); border-color: var(--m4-900); box-shadow: inset 0 -4px 0 var(--tt-acc); }
.theme-dienbien { --m4-radius: 12px; }
.theme-dienbien .m4-block, .theme-dienbien .tw-card { border: 1px solid var(--m4-line); box-shadow: none; }
.theme-dienbien { --ft-bg: #201820; }
.theme-dienbien .tw-footer { background: #201820; color: rgba(255, 255, 255, .82); }
.theme-dienbien .tw-footer h6 { color: #fff; }
.theme-dienbien .tw-footer a { color: rgba(255, 255, 255, .88); }
.theme-dienbien .tw-footer a:hover { color: #E8AC77; }
.theme-dienbien .tw-footer__bottom { border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .7); }
.theme-dienbien .tw-footer__wave { color: var(--ft-bg); }
