/* Bảng màu trống đồng: sơn mài đen, đồng thau, son đỏ, giấy dó */
.mgz-root {
  --mgz-ink: #17110d;
  --mgz-paper: #f5ede1;
  --mgz-paper-2: #ece0cd;
  --mgz-bronze: #a87632;
  --mgz-gold: #e9bf6c;
  --mgz-red: #a3241b;
  --mgz-deep: #1b130f;
  background: var(--mgz-paper);
  color: var(--mgz-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

.mgz-root figure { margin: 0; }
.mgz-root p { margin: 0 0 1.1em; }
.mgz-root h2 { margin: 0; }
.mgz-root img { display: block; max-width: 100%; height: auto; }

/* Cột chữ chuẩn */
.mgz-root .mgz-col { box-sizing: content-box; max-width: 44rem; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

/* Thanh tiến độ đọc: chỉ hiện khi có JS */
.mgz-progress {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 0;
  background: rgba(23, 17, 13, 0.12);
}
.mgz-root.mgz-js .mgz-progress { height: 4px; }
.mgz-progress-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--mgz-red), var(--mgz-gold));
  transform-origin: 0 50%;
}
.mgz-root.mgz-js .mgz-progress-bar { transform: scaleX(0); }

/* Cảnh mở đầu: điện thoại thì ảnh trọn khung, chữ nằm dưới */
.mgz-hero {
  background: var(--mgz-deep);
  color: var(--mgz-paper);
}
.mgz-hero-fig img {
  width: 100%;
  height: auto;
}
.mgz-hero-fig figcaption {
  padding: 10px 20px 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(245, 237, 225, 0.68);
  font-style: italic;
}
.mgz-hero-text {
  position: relative;
  padding: 28px 20px 44px;
}
.mgz-hero-mark {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, var(--mgz-gold) 0 2px, transparent 2px 7px);
  opacity: 0.85;
}
.mgz-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 8.4vw, 4.4rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff7ea;
  max-width: 18ch;
}
.mgz-root .mgz-sapo {
  margin: 20px 0 0;
  max-width: 44rem;
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(245, 237, 225, 0.88);
  border-left: 4px solid var(--mgz-red);
  padding-left: 14px;
}

/* Khối hỏi đáp */
.mgz-qa {
  position: relative;
  padding: 56px 0 8px;
}
.mgz-qhead {
  border-top: 3px solid var(--mgz-ink);
  padding-top: 18px;
  margin-bottom: 26px;
}
.mgz-num {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 12vw, 5rem);
  line-height: 0.9;
  font-weight: 700;
  color: var(--mgz-bronze);
  margin-bottom: 10px;
}
.mgz-root .mgz-q {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.22rem, 3.8vw, 1.55rem);
  line-height: 1.38;
  color: var(--mgz-red);
  margin: 0 0 12px;
}
.mgz-q strong { font-weight: 700; }
.mgz-lead strong { color: var(--mgz-red); }
.mgz-root .mgz-bridge {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 1.6em;
}
.mgz-role {
  border-left: 3px solid var(--mgz-bronze);
  padding-left: 14px;
}
.mgz-root .mgz-thanks {
  margin-top: 2em;
  padding-top: 18px;
  border-top: 1px solid var(--mgz-bronze);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  color: var(--mgz-red);
}
.mgz-endmark {
  display: block;
  width: 72px;
  height: 72px;
  margin: 40px auto 64px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, var(--mgz-bronze) 0 2px, transparent 2px 8px);
}

/* Thẻ trích dẫn lớn, đủ to để chụp màn hình */
.mgz-root .mgz-pull {
  box-sizing: border-box;
  position: relative;
  max-width: 56rem;
  margin: 40px auto;
  padding: 36px 20px;
  overflow: hidden;
}
.mgz-pull p {
  position: relative;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.65;
}
.mgz-pull-mark {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(233, 191, 108, 0.35) 0 2px, transparent 2px 10px);
}
.mgz-pull-quote {
  background: var(--mgz-deep);
  color: var(--mgz-paper);
}
.mgz-pull-quote em {
  display: block;
  margin: 18px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 5.6vw, 2.5rem);
  line-height: 1.22;
  color: var(--mgz-gold);
}
.mgz-pull-bronze {
  background: var(--mgz-paper-2);
  color: var(--mgz-ink);
  box-shadow: inset 0 6px 0 var(--mgz-bronze);
}
.mgz-pull-red {
  background: var(--mgz-red);
  color: #fff6ea;
}
.mgz-big {
  display: block;
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 5.4vw, 2.4rem);
  line-height: 1.22;
  font-weight: 700;
}
.mgz-pull-bronze .mgz-big { color: var(--mgz-red); }

/* Bốn thành tố sáng tạo: thẻ xếp dọc, rộng đúng bằng cột chữ */
.mgz-crew {
  max-width: calc(44rem + 40px);
  margin: 28px auto 36px;
  display: grid;
  gap: 14px;
}
.mgz-card {
  box-sizing: border-box;
  position: relative;
  padding: 26px 20px 22px;
  background: #fffaf2;
  box-shadow: inset 4px 0 0 var(--mgz-bronze), 0 1px 0 rgba(23, 17, 13, 0.08);
  overflow: hidden;
}
.mgz-card p { position: relative; margin: 0; }
.mgz-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22em;
  color: var(--mgz-red);
}
.mgz-card-ring {
  position: absolute;
  top: -34px;
  right: -34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(168, 118, 50, 0.28) 0 2px, transparent 2px 8px);
}

/* Bộ ảnh */
.mgz-root .mgz-gal {
  box-sizing: border-box;
  max-width: 76rem;
  margin: 44px auto;
  padding: 0;
}
.mgz-gal-grid {
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 150px;
}
.mgz-cell { position: relative; overflow: hidden; background: var(--mgz-paper-2); }
.mgz-cell picture { display: block; width: 100%; height: 100%; }
.mgz-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mgz-cell-tall { grid-row: span 2; }
.mgz-cell-wide { grid-column: 1 / -1; grid-row: span 2; }
.mgz-gal-b .mgz-gal-grid { grid-auto-rows: 200px; }
.mgz-gal figcaption {
  padding: 10px 20px 0;
  font-size: 0.86rem;
  line-height: 1.5;
  font-style: italic;
  color: #6a5a4b;
}
.mgz-root .mgz-wide {
  box-sizing: border-box;
  max-width: 76rem;
  margin: 44px auto;
  padding: 0;
}
.mgz-wide img { width: 100%; height: auto; }

/* Hiện dần khi cuộn tới, chỉ khi có JS */
.mgz-root.mgz-js [data-mgz-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.mgz-root.mgz-js [data-mgz-animate].mgz-visible {
  opacity: 1;
  transform: none;
}
.mgz-root.mgz-js .mgz-hero-text { animation: mgz-rise 0.7s ease-out both; }

@keyframes mgz-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.mgz-root a:focus-visible { outline: 3px solid var(--mgz-red); outline-offset: 3px; }

/* Màn rộng: ảnh bìa phủ màn hình, chữ đè lên */
@media (min-width: 768px) {
  .mgz-hero { position: relative; }
  .mgz-hero-fig { position: relative; }
  .mgz-hero-fig img {
    height: 92svh;
    min-height: 520px;
    object-fit: cover;
    object-position: center 30%;
  }
  .mgz-hero-fig::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(27, 19, 15, 0.1) 30%, rgba(27, 19, 15, 0.92) 100%);
  }
  .mgz-hero-fig figcaption {
    position: absolute;
    z-index: 2;
    top: 24px;
    right: 24px;
    max-width: 22rem;
    padding: 10px 14px;
    background: rgba(27, 19, 15, 0.62);
    color: rgba(245, 237, 225, 0.85);
  }
  .mgz-hero-text {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 5vw 7svh;
  }
  .mgz-root .mgz-gal { padding: 0 20px; }
  .mgz-root .mgz-wide { padding: 0 20px; }
  .mgz-gal-grid { gap: 8px; grid-auto-rows: clamp(200px, 22vw, 300px); }
  .mgz-gal-a .mgz-gal-grid { grid-template-columns: 2fr 3fr; }
  .mgz-gal-b .mgz-gal-grid { grid-template-columns: 3fr 2fr; grid-auto-rows: clamp(260px, 32vw, 460px); }
  .mgz-gal-d .mgz-gal-grid { grid-template-columns: 2fr 1fr; }
  .mgz-gal-d .mgz-cell-wide { grid-column: auto; grid-row: span 2; }
  .mgz-gal figcaption { padding: 12px 0 0; text-align: center; }
  .mgz-qa { padding-top: 80px; }
}

@media (min-width: 900px) {
  .mgz-root .mgz-pull { padding: 52px 56px; margin: 56px auto; }
}

@media (max-width: 760px) {
  .mgz-qa { padding-top: 44px; }
  .mgz-root .mgz-pull { margin: 32px 0; }
  .mgz-crew { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .mgz-root.mgz-js [data-mgz-animate] { opacity: 1; transform: none; transition: none; }
  .mgz-root.mgz-js .mgz-hero-text { animation: none; }
}

@media print {
  .mgz-root { background: #fff; color: #000; }
  .mgz-hero { background: #fff; color: #000; }
  .mgz-title { color: #000; }
  .mgz-root .mgz-sapo { color: #000; }
  .mgz-pull-quote { background: #fff; color: #000; }
  .mgz-pull-red { background: #fff; color: #000; }
}