/* =========================================================
   An Duy Bách Vạn Niên — adobevn.com
   Tối giản, chữ to, tương phản cao, mobile-first.
   ========================================================= */

:root {
  --red: #B3282D;
  --red-dark: #8E1F23;
  --red-soft: #F6E3E3;

  --bg: #FAF7F0;
  --surface: #FFFFFF;
  --surface-2: #FBF8F2;
  --border: #E3DDD1;
  --border-strong: #CFC7B6;

  --text: #1E1B16;
  --text-2: #4E483E;
  --text-3: #6E6759; /* đủ đậm để chữ nhỏ (ngày âm, chú thích) vẫn đạt AA */

  --sun: #C0392B;
  --good: #1E7A4B;
  --good-soft: #E7F3EC;
  --bad: #8A6A1F;
  --bad-soft: #F6EFDD;

  --shadow: 0 1px 2px rgba(30, 27, 22, .05), 0 6px 20px rgba(30, 27, 22, .06);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 9'%3E%3Cpath d='M1.5 1.75 6.5 6.75l5-5' fill='none' stroke='%236E6759' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1060px;
}

html[data-theme="dark"] {
  --red: #F0666B;
  --red-dark: #FF8A8E;
  --red-soft: #3A2022;

  --bg: #14120F;
  --surface: #1E1B17;
  --surface-2: #262219;
  --border: #38322A;
  --border-strong: #4B4339;

  --text: #F5F1E8;
  --text-2: #CFC7B8;
  --text-3: #98907F;

  --sun: #FF8A80;
  --good: #6EDBA0;
  --good-soft: #17301F;
  --bad: #E5C264;
  --bad-soft: #2E2712;

  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 9'%3E%3Cpath d='M1.5 1.75 6.5 6.75l5-5' fill='none' stroke='%2398907F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 640px) { body { font-size: 18px; } }

h1, h2, h3 { line-height: 1.25; margin: 0; font-weight: 700; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 16px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:where(button, select, input, a):focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* ---------------- Header ---------------- */

.site-header {
  background: var(--surface);
  border-bottom: 2px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { color: var(--red); display: flex; flex: 0 0 auto; }
.brand-mark svg { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }

.brand-name {
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -.01em;
  color: var(--red);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tagline {
  font-size: .8rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  flex: 0 0 auto;
  background: var(--surface-2);
  color: var(--text-2);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--border-strong); color: var(--text); }
.theme-icon { font-size: 1.05rem; line-height: 1; }
@media (max-width: 480px) { .theme-label { display: none; } .theme-toggle { padding: 9px 12px; } }

/* ---------------- Card / section ---------------- */

main { padding-block: 20px 40px; display: grid; gap: 20px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 16px;
}

@media (min-width: 640px) { .card { padding: 28px 26px; } }

.section-title {
  font-size: 1.32rem;
  color: var(--red);
  margin-bottom: 14px;
}
.section-note { color: var(--text-3); font-size: .92rem; margin: 0 0 14px; }
.section-title + .cal-toolbar, .section-title + .conv-grid { margin-top: 16px; }

/* ---------------- Dải MIỄN PHÍ / PHI LỢI NHUẬN ---------------- */

.free-banner {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  text-align: center;
  background: var(--red-soft);
  border: 2px solid var(--red);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--red);
  line-height: 1.4;
}

.free-strong {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: .01em;
}

.free-dot { font-weight: 800; opacity: .55; }

.free-sub {
  flex-basis: 100%;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-2);
}

@media (min-width: 720px) {
  .free-sub { flex-basis: auto; }
  .free-sub::before { content: "· "; opacity: .55; }
}

/* ---------------- Hero: HÔM NAY ---------------- */

.hero { text-align: center; border-top: 5px solid var(--red); }

.hero-title {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-3);
}

.clock-block { margin-top: 6px; }

.clock {
  font-size: clamp(3.2rem, 20vw, 6.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.clock-zone {
  font-size: .92rem;
  color: var(--text-3);
  letter-spacing: .04em;
  margin-top: 2px;
}

.solar-today {
  font-size: clamp(1.15rem, 4.6vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  margin: 14px 0 0;
}

.lunar-block {
  margin-top: 18px;
  padding: 18px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.lunar-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.lunar-day-big {
  font-size: clamp(2.6rem, 12vw, 3.6rem);
  font-weight: 800;
  color: var(--text-2);
  line-height: 1.05;
}

.lunar-sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-2);
}
.lunar-year-text { color: var(--red); }

.canchi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0 0;
}

.canchi-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
}
.canchi-item dt {
  font-size: .8rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.canchi-item dd {
  margin: 2px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.hours-block {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  text-align: left;
}
@media (min-width: 640px) { .hours-block { grid-template-columns: 1fr 1fr; } }

.hours-col {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.hours-good { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 30%, transparent); }
.hours-bad  { background: var(--bad-soft);  border-color: color-mix(in srgb, var(--bad) 30%, transparent); }

.hours-col h2 { font-size: 1.02rem; margin-bottom: 8px; }
.hours-good h2 { color: var(--good); }
.hours-bad h2 { color: var(--bad); }
.hours-hint { font-weight: 500; color: var(--text-3); font-size: .86rem; }

/* Lưới cột đều nhau — dùng flex-wrap thì các chip rộng ngắn khác nhau
   khiến cột thứ hai so le, nhìn rất lệch. */
.hours-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
  gap: 6px;
}
.hours-list li {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .94rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hours-list li b {
  color: var(--text);
  font-weight: 700;
  min-width: 2.6em;      /* "Tý" và "Thìn" cùng bề rộng → giờ thẳng cột */
  text-align: right;
}

/* ---------------- Buttons & controls ---------------- */

.btn {
  font: inherit;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  padding: 11px 18px;
  cursor: pointer;
  min-height: 46px;
}
.btn:hover { border-color: var(--border-strong); }

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
html[data-theme="dark"] .btn-primary { color: #1A1210; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn-block { width: 100%; margin-top: 12px; }

.nav-btn {
  font: inherit;
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 700;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--surface-2);
  color: var(--red);
  cursor: pointer;
}
.nav-btn:hover { border-color: var(--red); }

select, input[type="number"], input[type="text"] {
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-height: 46px;
  width: 100%;
  max-width: 100%;
}
select:hover, input:hover { border-color: var(--border-strong); }

/* Mũi tên tự vẽ thay cho mũi tên mặc định của trình duyệt: chừa đúng chỗ nên
   chữ không bao giờ dính vào mũi tên, và đổi màu theo nền sáng/tối. */
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: var(--select-arrow);
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 13px 9px;
  text-overflow: ellipsis;
}

/* ---------------- Lịch tháng ---------------- */

/* Mobile: bộ chọn tháng–năm chiếm trọn một hàng để chữ "Năm 2026" luôn đủ chỗ,
   hàng dưới là ‹ / Hôm nay / › . Từ 640px trở lên gom hết về một hàng. */
.cal-toolbar {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 8px;
}

.cal-picker {
  display: flex; gap: 8px; min-width: 0;
  grid-column: 1 / -1; grid-row: 1;
}
.cal-picker select { flex: 1 1 0; min-width: 0; }

#prevMonth { grid-column: 1; grid-row: 2; }
.today-btn { grid-column: 2; grid-row: 2; }
#nextMonth { grid-column: 3; grid-row: 2; }

@media (min-width: 640px) {
  .cal-toolbar { grid-template-columns: 48px 1fr 48px auto; }
  #prevMonth { grid-column: 1; grid-row: 1; }
  /* width:100% là bắt buộc — margin-inline:auto tự nó vô hiệu hoá stretch
     của grid item, khiến bộ chọn co về fit-content và chữ bị chật. */
  .cal-picker { grid-column: 2; grid-row: 1; width: 100%; max-width: 420px; margin-inline: auto; }
  #nextMonth { grid-column: 3; grid-row: 1; }
  .today-btn { grid-column: 4; grid-row: 1; }
}

.cal-caption {
  text-align: center;
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--text);
  margin: 14px 0 10px;
}
.cal-caption .cc-lunar { color: var(--text-3); font-weight: 600; font-size: .92rem; display: block; }

.cal-grid-head, .cal-grid {
  display: grid;
  /* minmax(0,1fr): cho phép cột hẹp hơn nội dung, tránh tràn ngang trên máy nhỏ */
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.cal-grid-head {
  margin-bottom: 4px;
}
.cal-grid-head div {
  text-align: center;
  font-size: .84rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding-block: 4px;
}
.cal-grid-head .dow-sun { color: var(--sun); }

.cal-cell {
  position: relative;
  width: 100%;
  min-height: clamp(58px, 12vw, 86px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2px;
  min-width: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  overflow: hidden;
}
.cal-cell:hover { border-color: var(--red); }

.cal-cell .d-solar {
  font-size: clamp(1.12rem, 5vw, 1.45rem);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.cal-cell .d-lunar {
  font-size: clamp(.78rem, 3.3vw, .88rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cal-cell.other { opacity: .38; }
.cal-cell.sunday .d-solar { color: var(--sun); }
.cal-cell.moon { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.cal-cell.moon .d-lunar { color: var(--red); font-weight: 700; }

.cal-cell.today {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 30%, transparent);
}
.cal-cell.today .d-solar, .cal-cell.today .d-lunar { color: #fff; }
html[data-theme="dark"] .cal-cell.today .d-solar,
html[data-theme="dark"] .cal-cell.today .d-lunar { color: #1A1210; }

.cal-cell.selected { border-color: var(--text); border-width: 2px; }

/* Máy rất hẹp: thu hẹp lề của thẻ lịch để 7 cột có thêm chỗ thở. */
@media (max-width: 479px) {
  #lich-thang { padding-inline: 10px; }
  .cal-grid-head, .cal-grid { gap: 3px; }
  .cal-cell { border-radius: 8px; }
}

/* Dưới 360px, hai ô cạnh nhau không đủ chỗ cho "Năm 2026" ở cỡ chữ lớn.
   Xếp dọc thay vì thu nhỏ chữ — người lớn tuổi vẫn đọc được. */
@media (max-width: 359px) {
  .cal-picker { flex-direction: column; }
}

.cal-legend {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin-top: 14px;
  font-size: .88rem;
  color: var(--text-3);
}
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.dot-today { background: var(--red); }
.dot-moon { background: var(--red-soft); border: 1px solid var(--red); }
.dot-sun { background: var(--sun); }

/* ---- Panel chi tiết ngày ---- */

.day-detail {
  margin-top: 16px;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 16px;
}
.day-detail[hidden] { display: none; }

.dd-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px; margin-bottom: 12px;
}
.dd-solar { font-size: 1.24rem; font-weight: 800; color: var(--red); }
.dd-weekday { font-size: 1rem; color: var(--text-2); font-weight: 600; }

.dd-rows { display: grid; gap: 8px; margin: 0; }
@media (min-width: 640px) { .dd-rows { grid-template-columns: repeat(2, 1fr); } }
.dd-row {
  display: flex; gap: 8px; align-items: baseline;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
}
.dd-row dt { color: var(--text-3); font-size: .9rem; min-width: 92px; }
.dd-row dd { margin: 0; font-weight: 700; }

.dd-hours { margin-top: 12px; }
.dd-hours h4 { margin: 0 0 6px; font-size: 1rem; color: var(--good); }

.dd-close {
  background: none; border: none; font: inherit; cursor: pointer;
  color: var(--text-3); font-weight: 700; padding: 4px 8px; border-radius: 8px;
}
.dd-close:hover { color: var(--red); background: var(--red-soft); }

/* ---------------- Đổi lịch ---------------- */

.conv-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .conv-grid { grid-template-columns: 1fr 1fr; } }

.conv-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 16px;
}
.conv-box h3 { font-size: 1.08rem; color: var(--red); margin-bottom: 12px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span { font-size: .84rem; color: var(--text-3); font-weight: 600; }

.check {
  display: flex; align-items: center; gap: 9px;
  margin-top: 12px; font-size: .96rem; font-weight: 600; color: var(--text-2);
  cursor: pointer;
}
.check input { width: 22px; height: 22px; accent-color: var(--red); cursor: pointer; }

.conv-result {
  display: block;
  margin-top: 12px;
  min-height: 1px;
}
.conv-result:empty { display: none; }
.conv-result .res-main {
  font-size: 1.22rem; font-weight: 800; color: var(--red);
}
.conv-result .res-sub { font-size: .96rem; color: var(--text-2); }
.conv-result.error {
  background: var(--red-soft);
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--red);
  font-weight: 600;
}

/* ---------------- Giờ thế giới ---------------- */

.tz-search { position: relative; margin-bottom: 16px; }

.tz-suggest {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
  list-style: none; margin: 0; padding: 4px;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  max-height: 300px; overflow-y: auto;
}
.tz-suggest[hidden] { display: none; }
.tz-suggest li { padding: 0; }
.tz-suggest button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  font: inherit; font-weight: 600;
  background: none; border: none; cursor: pointer;
  color: var(--text); padding: 10px 12px; border-radius: 8px;
}
.tz-suggest button:hover, .tz-suggest button:focus { background: var(--red-soft); color: var(--red); }
.tz-suggest .tz-empty { padding: 10px 12px; color: var(--text-3); }

.clock-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
}

.tz-card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 12px 10px;
}
.tz-card.is-home { border-color: var(--red); border-width: 2px; background: var(--red-soft); }

.tz-city {
  display: flex; align-items: center; gap: 7px;
  font-size: 1rem; font-weight: 700; color: var(--text);
  padding-right: 20px;
  white-space: nowrap; overflow: hidden;
}
.tz-name { overflow: hidden; text-overflow: ellipsis; }

/* Quốc kỳ vẽ bằng SVG — hiện được trên mọi hệ điều hành, kể cả Windows
   (emoji cờ Unicode thì Windows chỉ hiện ra hai chữ cái). */
.tz-flag {
  flex: 0 0 auto;
  display: inline-flex;
  width: 24px;
  height: 16px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
}
html[data-theme="dark"] .tz-flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, .28); }

.tz-flag svg { display: block; width: 100%; height: 100%; }

/* Nước chưa có hình cờ: hiện mã 2 chữ cái cho gọn. */
.tz-flag-code {
  align-items: center;
  justify-content: center;
  background: var(--surface);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--text-3);
}
.tz-time {
  font-size: 1.62rem; font-weight: 800; color: var(--red);
  font-variant-numeric: tabular-nums; line-height: 1.2;
  letter-spacing: -.01em;
}
.tz-meta {
  display: flex; flex-wrap: wrap; gap: 4px 8px;
  font-size: .84rem; color: var(--text-3); font-weight: 600;
}
.tz-offset { color: var(--text-2); }
.tz-daytag { color: var(--text-3); }
.tz-daytag.diff { color: var(--red); }

.tz-remove {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: none; background: none; cursor: pointer;
  color: var(--text-3); font-size: 1.05rem; line-height: 1;
  border-radius: 8px;
}
.tz-remove:hover { color: var(--red); background: var(--red-soft); }

/* ---------------- Giới thiệu & hỏi đáp ---------------- */

.prose p {
  margin: 0 0 12px;
  color: var(--text-2);
  max-width: 68ch;
}
.prose p strong { color: var(--text); }

.prose p:last-child { margin-bottom: 0; }

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: 22px;
  text-align: center;
  color: var(--text-3);
  font-size: .94rem;
}
.site-footer p { margin: 0; }
.site-footer .foot-free {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 8px;
}
.site-footer .foot-free strong { color: var(--red); font-weight: 800; }
.site-footer .foot-note { font-size: .86rem; margin-top: 4px; }

/* ---------------- Motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .theme-toggle, .cal-toolbar, .tz-search, #gio-the-gioi, #doi-lich { display: none; }
  .card { box-shadow: none; border-color: #999; break-inside: avoid; }
}
