/* Palette nhansu24h "teal-cam" (T-030) — SINH BỞI scripts/make_theme.py, không sửa tay.
   Đổi tông: sửa PALETTES trong make_theme.py → python3 scripts/make_theme.py teal-cam → scripts/build.py */
:root {
  --page-max: 1280px; /* bề rộng nội dung giữa */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-alt: #F5F7F8;
  --line: #E5E7EB;
  --line-soft: #F0F2F4;
  --line-strong: #8B95A1;
  --ink: #0F2A2E;
  --ink-2: #334155;
  --ink-body: #1F2937;
  --ink-lead: #374151;
  --ink-muted: #5B6472;
  --brand: #0F766E;
  --brand-strong: #0B4F4A;
  --brand-ink: #0B5D56;
  --brand-soft: #E6F4F2;
  --brand-soft-bg: #F0F9F8;
  --brand-line: #B6E0DA;
  --brand-light: #5EC4B6;
  --on-brand: #FFFFFF;
  --cta: #F97316;
  --on-cta: #1C1917;
  --accent: #F97316;
  --on-accent: #1C1917;
  --accent-ink: #C2410C;
  --accent-soft: #FFF4EC;
  --accent-line: #FED7AA;
  --info: #1D4ED8;
  --info-soft: #EFF6FF;
  --success: #15803D;
  --success-soft: #DCFCE7;
  --dark-bg: #062E2B;
  --dark-line: #1A4A46;
  --on-dark-muted: #C5D9D6;
  --hero-bg: #0B4F4A;
  --hero-ink: #FFFFFF;
  --hero-lead: #D5ECE8;
  --hero-muted: #A9D1CB;
  --hero-link: #FDBA74;
  --hero-line: #2E6B66;
  --hero-accent: #FB923C;
}
[data-tone="hero"] {
  background: var(--hero-bg) !important;
  color: var(--hero-ink);
  --ink: var(--hero-ink);
  --ink-2: var(--hero-ink);
  --ink-body: var(--hero-ink);
  --ink-lead: var(--hero-lead);
  --ink-muted: var(--hero-muted);
  --brand: var(--hero-link);
  --brand-ink: var(--hero-link);
  --line: var(--hero-line);
}
/* thẻ nền sáng trong hero → màu thường */
[data-tone="hero"] [style*="background: var(--surface)"], [data-tone="hero"] [style*="background: var(--surface-alt)"], [data-tone="hero"] [style*="background: var(--brand-soft)"], [data-tone="hero"] [style*="background: var(--accent-soft)"] {
  color: #0F2A2E;
  --ink: #0F2A2E;
  --ink-2: #334155;
  --ink-body: #1F2937;
  --ink-lead: #374151;
  --ink-muted: #5B6472;
  --brand: #0F766E;
  --brand-ink: #0B5D56;
  --line: #E5E7EB;
}

/* Bố cục hộp: toàn trang (header, hero, nội dung, footer) nằm trong cột --page-max, không tràn hai bên */
body > div[style*="font-family"] { max-width: var(--page-max); margin: 0 auto; }
/* Điểm nhấn màu 2: vạch dưới tiêu đề mục, viền thẻ khi rê chuột */
h2[style*="font-size: 22px"]::after, h2[style*="font-size: 24px"]::after, h2[style*="font-size: 26px"]::after,
h2[style*="font-size: 28px"]::after, h2[style*="font-size: 32px"]::after {
  content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--cta); margin-top: 10px;
}
[data-tone="hero"] h2::after, aside h2::after, details h2::after { display: none; }
a[style*="border-radius: 14px"]:hover, a[style*="border-radius: 16px"]:hover { border-color: var(--cta) !important; }
a[style*="border-radius: 14px"], a[style*="border-radius: 16px"] { transition: border-color .15s; }
/* Công cụ tính: ô đang nhập viền cam */
[id$="-tool"] input:focus, [id$="-tool"] select:focus { outline: 2px solid var(--cta); outline-offset: 1px; border-color: var(--cta) !important; }
[id$="-tool"] input[type=checkbox], [id$="-tool"] input[type=radio] { accent-color: var(--cta); }
/* Mục con (chip) trong hero: chữ teal đậm, chấm cam dẫn mắt; rê/chạm → nền cam nhạt viền cam; mục đang chọn nền cam */
[data-tone="hero"] a[style*="padding: 5px 12px; border-radius: 999px"] {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; box-sizing: border-box; padding: 6px 14px !important;
  border-color: transparent !important; color: var(--brand-ink) !important; font-size: 14px !important; font-weight: 600 !important;
  text-decoration: none !important; transition: background-color .15s, border-color .15s, color .15s;
}
[data-tone="hero"] a[style*="padding: 5px 12px; border-radius: 999px"]::before {
  content: ""; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 999px; background: var(--accent);
}
[data-tone="hero"] a[style*="padding: 5px 12px; border-radius: 999px"]:hover, [data-tone="hero"] a[style*="padding: 5px 12px; border-radius: 999px"]:focus-visible {
  background: var(--accent-soft) !important; border-color: var(--accent) !important; color: var(--accent-ink) !important;
}
[data-tone="hero"] a[style*="padding: 5px 12px; border-radius: 999px"][aria-current="page"] {
  background: var(--cta) !important; border-color: var(--cta) !important; color: var(--on-cta) !important;
}
[data-tone="hero"] a[style*="padding: 5px 12px; border-radius: 999px"][aria-current="page"]::before { background: var(--on-cta); }
