/* Giao diện theo tinh thần harvard.edu: nền trắng, chữ đen, điểm nhấn đỏ thẫm Harvard (#A51C30),
   tiêu đề dùng chữ có chân (Source Serif 4), nội dung dùng Public Sans, góc vuông, đường kẻ mảnh. */
:root {
  color-scheme: light;
  --crimson: #a51c30;
  --crimson-d: #7e1523;
  --navy: #1e1e1e;          /* chữ tiêu đề / nền tối */
  --navy-2: #111111;
  --indigo: #a51c30;        /* màu nhấn (liên kết, trạng thái chọn) */
  --lavender: #e9ddd8;
  --lavender-2: #f5efea;
  --sky: #f5efea;
  --blue: #8c6d3f;
  --orange: #a51c30;        /* nút chính */
  --orange-d: #7e1523;
  --yellow: #f2d9a0;
  --green: #2e7d5b;
  --red: #b3261e;
  --ink: #1e1e1e;
  --muted: #615b55;
  --line: #ddd7ce;
  --bg: #ffffff;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(30, 30, 30, .06);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--crimson); text-underline-offset: 3px; }
a:hover { color: var(--crimson-d); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0; font-weight: 600; letter-spacing: -.005em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600; border-radius: 2px; padding: 11px 20px; text-decoration: none; transition: background .12s, color .12s, border-color .12s; white-space: nowrap; letter-spacing: .01em; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-orange { background: var(--crimson); color: #fff; border-color: var(--crimson); box-shadow: none; }
.btn-orange:hover { background: var(--crimson-d); border-color: var(--crimson-d); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: #000; color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.btn-ghost:hover { border-color: var(--crimson); color: var(--crimson); }
.btn-danger { background: #fff; color: var(--red); border: 1px solid #e2b4b0; }
.btn-sm { padding: 6px 12px; font-size: 14px; }

.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.topbar::before { content: ""; display: block; height: 4px; background: var(--crimson); }
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--navy); text-decoration: none; white-space: nowrap; }
.logo em { font-style: normal; color: var(--crimson); }
.topnav { display: flex; gap: 2px; margin-left: 12px; }
.topnav a { padding: 8px 12px; border-radius: 0; font-weight: 600; font-size: 14px; color: var(--navy); text-decoration: none; border-bottom: 2px solid transparent; }
.topnav a.on, .topnav a:hover { background: transparent; color: var(--crimson); border-bottom-color: var(--crimson); }
.who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.who b { color: var(--navy); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--crimson); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 2px; box-shadow: var(--shadow); padding: 22px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 2px; background: var(--lavender-2); color: var(--crimson); letter-spacing: .02em; text-transform: uppercase; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: 14px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 2px; border: 1px solid #b9b2a8; background: #fff; color: var(--ink); outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--crimson); box-shadow: 0 0 0 2px rgba(165, 28, 48, .15); }
.msg { border-radius: 2px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
.msg.err { background: #fdecea; color: #8c1a2b; border-left: 3px solid var(--red); }
.msg.ok { background: #e7f3ed; color: #1d6a47; border-left: 3px solid var(--green); }

@media (max-width: 760px) {
  .topnav { display: none; }
  .who .name { display: none; }
  .wrap { padding: 0 16px; }
}
@media (max-width: 440px) {
  .logo span { display: none; }
  .who { gap: 8px; }
}
