/* ===== Minh An – kiểu chữ, màu sắc và logo dùng chung cho cả 3 trang ===== */
:root {
  --ma-font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ma-ink: #2b2118;        /* chữ chính – nâu gỗ đậm */
  --ma-muted: #6f6253;      /* chữ phụ */
  --ma-paper: #f7f2ea;      /* nền giấy dó */
  --ma-card: #fffdf9;       /* nền thẻ */
  --ma-line: #e6dccb;       /* đường kẻ */
  --ma-accent: #9c3f1d;     /* đỏ son */
  --ma-accent-dark: #7c2f13;
  --ma-gold: #c9973f;       /* vàng đồng */
  --ma-gold-soft: #f1dfb8;
  --ma-night: #160e09;      /* nền gian thiền */
}

body { font-family: var(--ma-font); }
button, input, select, textarea { font-family: inherit; }
a, button { touch-action: manipulation; }

/* Thanh đầu trang */
.ma-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Logo chữ "Minh An" */
.ma-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none;
  font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.ma-brand svg { width: 34px; height: 34px; flex: none; }
.ma-brand .ma-ring { stroke: var(--ma-gold); fill: none; }
.ma-brand .ma-lotus { fill: var(--ma-accent); }
.ma-brand.on-dark { color: var(--ma-paper); }
.ma-brand.on-dark .ma-lotus { fill: var(--ma-gold); }

/* Nút "← Trang chủ" */
.ma-home { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; box-sizing: border-box;
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--ma-line); background: var(--ma-card);
  color: var(--ma-ink); font: inherit; font-size: 17px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ma-home[hidden] { display: none; }
.ma-home:hover { border-color: var(--ma-accent); color: var(--ma-accent); }
.ma-home.on-dark { background: #ffffff14; border-color: #ffffff2e; color: var(--ma-paper);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ma-home.on-dark:hover { border-color: var(--ma-gold); color: var(--ma-gold); }
.ma-home:focus-visible, .ma-brand:focus-visible { outline: 3px solid var(--ma-gold); outline-offset: 2px; }
