/* Phong Thủy Bảo Địa — plugin lich-am. Tạo tự động bởi wordpress/build/css-build.mjs từ CSS module của bản Next.js; sửa ở src/ rồi dựng lại. */
/* lich-am.module.css */
/* Phong Thủy Bảo Địa — Trang lịch âm */

.hm-lich-am-hero,
.hm-lich-am-calWrap,
.hm-lich-am-section {
  --l-bg: var(--c-bg);
  --l-card: var(--c-card);
  --l-gold: var(--c-gold);
  --l-gold-soft: var(--c-gold-soft);
  --l-text: var(--c-text);
  --l-muted: var(--c-muted);
  --l-line: color-mix(in srgb, var(--c-gold) 30%, transparent);
  --l-line-soft: color-mix(in srgb, var(--c-gold) 15%, transparent);
  --l-red: #e2604a;
  --l-blue: #5b8fe0;
  --l-violet: #a874e0;
  color: var(--l-text);
  font-family: var(--font-body, "Be Vietnam Pro", system-ui, sans-serif);
}

.hm-lich-am-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 28px;
}
.hm-lich-am-narrow {
  max-width: 1040px;
}
.hm-lich-am-cover {
  object-fit: cover;
}

/* ---------- Hero ---------- */
.hm-lich-am-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  background: var(--l-bg);
}
.hm-lich-am-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(45% 80% at 10% 50%, color-mix(in srgb, var(--c-glow) 25%, transparent), transparent 70%);
}
.hm-lich-am-heroArt {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(58%, 900px);
  z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.6) 25%, #000 50%), linear-gradient(0deg, transparent 0%, #000 30%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.6) 25%, #000 50%), linear-gradient(0deg, transparent 0%, #000 30%);
  mask-composite: intersect;
}
.hm-lich-am-heroInner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 28px 44px;
}
.hm-lich-am-heroInner > * {
  max-width: 640px;
}
.hm-lich-am-breadcrumb ol {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--l-muted);
}
.hm-lich-am-breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--l-gold);
}
.hm-lich-am-breadcrumb a {
  color: var(--l-text);
  text-decoration: none;
}
.hm-lich-am-breadcrumb [aria-current] {
  color: var(--l-gold-soft);
}
.hm-lich-am-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--l-gold);
}
.hm-lich-am-h1 {
  margin: 0;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(42px, 5.4vw, 74px);
  font-weight: 600;
  line-height: 1.05;
  background: linear-gradient(180deg, var(--c-title-1) 0%, var(--c-title-2) 55%, var(--c-title-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hm-lich-am-heroLead {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.9;
}
.hm-lich-am-todayLine {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 22px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--l-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--c-bg) 65%, transparent);
  font-size: 14.5px;
  line-height: 1.6;
}
.hm-lich-am-todayLine svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--l-gold);
}
.hm-lich-am-todayLine strong {
  color: var(--l-gold-soft);
}

/* ---------- Lịch + chi tiết ---------- */
.hm-lich-am-calWrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 22px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 28px 56px;
  background: var(--l-bg);
}
.hm-lich-am-calWrap > * {
  min-width: 0;
}

.hm-lich-am-panel {
  padding: 22px;
  border: 1px solid var(--l-line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--c-surface), var(--l-card));
  box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--c-bg) 50%, transparent), inset 0 0 0 6px var(--l-line-soft);
  scroll-margin-top: 100px;
}
.hm-lich-am-panelHead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.hm-lich-am-panelTitle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--l-gold-soft);
}
.hm-lich-am-panelTitle svg {
  color: var(--l-gold);
}

.hm-lich-am-monthNav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hm-lich-am-monthNav select {
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--l-line);
  border-radius: 9px;
  background: var(--c-input);
  color: var(--l-text);
  font: inherit;
  font-size: 14px;
  color-scheme: dark;
  cursor: pointer;
}
.hm-lich-am-arrowBtn,
.hm-lich-am-roundBtn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--l-line);
  border-radius: 9px;
  background: none;
  color: var(--l-gold-soft);
  cursor: pointer;
}
.hm-lich-am-arrowBtn:first-child svg,
.hm-lich-am-roundBtn:first-child svg {
  transform: rotate(180deg);
}
.hm-lich-am-arrowBtn:hover,
.hm-lich-am-roundBtn:hover,
.hm-lich-am-todayBtn:hover {
  background: color-mix(in srgb, var(--c-gold) 12%, transparent);
}
.hm-lich-am-todayBtn {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--l-gold);
  border-radius: 9px;
  background: none;
  color: var(--l-gold-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.hm-lich-am-weekHead,
.hm-lich-am-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.hm-lich-am-weekHead {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--l-muted);
}
.hm-lich-am-weekHead .hm-lich-am-sun {
  color: var(--l-red);
}

.hm-lich-am-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 72px;
  padding: 6px 2px;
  border: 1px solid var(--l-line-soft);
  border-radius: 9px;
  background: color-mix(in srgb, var(--c-bg) 55%, transparent);
  color: var(--l-text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.hm-lich-am-cell:hover {
  border-color: var(--l-gold);
}
.hm-lich-am-cell:focus-visible {
  outline: 2px solid var(--l-gold-soft);
  outline-offset: 2px;
}
.hm-lich-am-solarNum {
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}
.hm-lich-am-lunarNum {
  font-size: 11.5px;
  color: var(--l-muted);
}
.hm-lich-am-lunarKey {
  color: var(--l-gold);
  font-weight: 600;
}
.hm-lich-am-cell.hm-lich-am-sun .hm-lich-am-solarNum {
  color: var(--l-red);
}
.hm-lich-am-outside {
  opacity: 0.35;
}
.hm-lich-am-today {
  border-color: var(--l-gold);
}
.hm-lich-am-today::after {
  content: "Hôm nay";
  position: absolute;
  top: 3px;
  left: 4px;
  font-size: 9px;
  font-weight: 600;
  color: var(--l-gold);
}
.hm-lich-am-cellOn {
  border: 2px solid var(--l-gold);
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c-gold) 28%, transparent), color-mix(in srgb, var(--c-gold) 6%, transparent));
  box-shadow: 0 0 22px -6px color-mix(in srgb, var(--c-gold) 70%, transparent);
}

.hm-lich-am-dots {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  gap: 3px;
}
.hm-lich-am-dots i,
.hm-lich-am-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.hm-lich-am-dHoliday {
  background: var(--l-red);
}
.hm-lich-am-dTerm {
  background: var(--l-blue);
}
.hm-lich-am-dMoon {
  background: var(--l-violet);
}

.hm-lich-am-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--l-muted);
}
.hm-lich-am-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hm-lich-am-legendNote {
  margin-left: auto;
}

/* Chi tiết ngày */
.hm-lich-am-dayNav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}
.hm-lich-am-roundBtn {
  border-radius: 50%;
}
.hm-lich-am-dayNavText {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 170px;
}
.hm-lich-am-dayNavText strong {
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--c-heading);
}
.hm-lich-am-dayNavText span {
  font-size: 13.5px;
  color: var(--l-muted);
}

.hm-lich-am-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.hm-lich-am-tab {
  height: 40px;
  border: 1px solid var(--l-line);
  border-radius: 9px;
  background: none;
  color: var(--l-text);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}
.hm-lich-am-tab:hover {
  border-color: var(--l-gold);
}
.hm-lich-am-tabOn {
  border-color: var(--l-gold);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c-gold-light) 25%, transparent), color-mix(in srgb, var(--c-gold) 15%, transparent));
  color: var(--l-gold-soft);
  font-weight: 600;
}
.hm-lich-am-tab:focus-visible,
.hm-lich-am-arrowBtn:focus-visible,
.hm-lich-am-roundBtn:focus-visible,
.hm-lich-am-todayBtn:focus-visible {
  outline: 2px solid var(--l-gold-soft);
  outline-offset: 2px;
}

.hm-lich-am-tabPanel {
  min-height: 290px;
  padding: 16px;
  border: 1px solid var(--l-line-soft);
  border-radius: 12px;
  background: color-mix(in srgb, var(--c-bg) 50%, transparent);
}

.hm-lich-am-lunarHero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--l-line-soft);
}
.hm-lich-am-moon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fbefc8, #e2c27a 55%, #a87f38);
  box-shadow: 0 0 24px color-mix(in srgb, var(--c-gold-soft) 45%, transparent);
}
.hm-lich-am-lunarHeroLabel {
  margin: 0;
  font-size: 13px;
  color: var(--l-gold);
}
.hm-lich-am-lunarHeroValue {
  margin: 2px 0 0;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 23px;
  font-weight: 600;
  color: var(--c-heading);
}

.hm-lich-am-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin: 0;
}
.hm-lich-am-facts > div {
  padding: 11px 0;
  border-bottom: 1px solid var(--l-line-soft);
}
.hm-lich-am-factWide {
  grid-column: 1 / -1;
  border-bottom: 0 !important;
}
.hm-lich-am-facts dt {
  font-size: 12.5px;
  color: var(--l-muted);
}
.hm-lich-am-facts dd {
  margin: 3px 0 0;
  font-size: 15px;
}
.hm-lich-am-holiday {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
  color: #f2b3a5;
}
.hm-lich-am-holiday em {
  padding: 1px 8px;
  border: 1px solid rgba(226, 96, 74, 0.5);
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
}

.hm-lich-am-tabLead {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--l-muted);
}
.hm-lich-am-tabLead strong {
  color: var(--l-gold-soft);
}
.hm-lich-am-hours {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.hm-lich-am-hours li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid var(--l-line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--c-gold) 6%, transparent);
}
.hm-lich-am-hourName {
  font-weight: 600;
  color: var(--l-gold-soft);
}
.hm-lich-am-hourRange {
  font-size: 13px;
  color: var(--l-muted);
}

.hm-lich-am-goodEmpty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 12px;
  text-align: center;
}
.hm-lich-am-goodEmpty svg {
  color: var(--l-gold);
}
.hm-lich-am-goodEmpty p {
  max-width: 420px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--l-muted);
}

.hm-lich-am-termNow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.hm-lich-am-termLabel {
  font-size: 13px;
  color: var(--l-muted);
}
.hm-lich-am-termNow strong {
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 30px;
  color: var(--l-gold-soft);
}
.hm-lich-am-termBadge {
  padding: 2px 10px;
  border: 1px solid rgba(91, 143, 224, 0.6);
  border-radius: 999px;
  font-size: 12px;
  color: #a9c2ee;
}

.hm-lich-am-linkMore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--l-gold-soft);
}

.hm-lich-am-source {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--l-muted);
}
.hm-lich-am-source svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--l-gold);
}
.hm-lich-am-source a {
  color: var(--l-gold-soft);
}

/* ---------- Section chung ---------- */
.hm-lich-am-section {
  padding: 56px 0;
  border-top: 1px solid var(--l-line-soft);
  background: var(--l-bg);
}
.hm-lich-am-sectionHead {
  margin-bottom: 24px;
}
.hm-lich-am-sectionHeadRow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.hm-lich-am-h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 600;
  color: var(--l-gold-soft);
}
.hm-lich-am-h2 svg {
  color: var(--l-gold);
}
.hm-lich-am-sectionLead {
  margin: 6px 0 0;
  font-size: 14.5px;
  color: var(--l-muted);
}
.hm-lich-am-seeAll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--l-gold-soft);
}

.hm-lich-am-cardTitle {
  margin: 0;
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--c-heading);
}
.hm-lich-am-cardText {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--l-muted);
}
.hm-lich-am-badge {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border: 1px solid var(--l-gold);
  border-radius: 50%;
  color: var(--l-gold-soft);
  background: radial-gradient(circle at 35% 30%, var(--c-badge), var(--c-card));
}
.hm-lich-am-btnOutline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid var(--l-gold);
  border-radius: 999px;
  color: var(--l-gold-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}
.hm-lich-am-btnOutline:hover {
  background: color-mix(in srgb, var(--c-gold) 12%, transparent);
}

/* Công cụ */
.hm-lich-am-toolGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.hm-lich-am-toolCard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--l-line);
  border-radius: 14px;
  background: var(--l-card);
}
.hm-lich-am-toolMedia {
  position: relative;
  aspect-ratio: 2.4 / 1;
}
.hm-lich-am-toolMedia::after,
.hm-lich-am-articleMedia::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--l-card), transparent 55%);
}
.hm-lich-am-toolBody {
  display: flex;
  gap: 14px;
  padding: 4px 18px 16px;
}
.hm-lich-am-toolCard .hm-lich-am-btnOutline {
  margin: auto 18px 18px;
}

.hm-lich-am-wideGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.hm-lich-am-wideCard {
  display: grid;
  grid-template-columns: 42% 1fr;
  overflow: hidden;
  border: 1px solid var(--l-line);
  border-radius: 14px;
  background: var(--l-card);
}
.hm-lich-am-wideMedia {
  position: relative;
  min-height: 170px;
}
.hm-lich-am-wideMedia::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, var(--l-card));
}
.hm-lich-am-wideBody {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
}
.hm-lich-am-wideBody .hm-lich-am-cardText {
  margin: 0;
}

/* Nội dung SEO */
.hm-lich-am-prose {
  margin: 14px 0 22px;
  font-size: 15.5px;
  line-height: 1.75;
  opacity: 0.9;
}
.hm-lich-am-seoGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.hm-lich-am-seoBlock {
  padding: 18px;
  border: 1px solid var(--l-line-soft);
  border-radius: 12px;
  background: var(--l-card);
}
.hm-lich-am-seoBlock h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--l-gold-soft);
}
.hm-lich-am-seoBlock p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--l-muted);
}
.hm-lich-am-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--l-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--c-accent) 50%, transparent);
}
.hm-lich-am-notice svg {
  flex-shrink: 0;
  color: var(--l-gold);
}
.hm-lich-am-notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--l-muted);
}
.hm-lich-am-notice strong {
  color: var(--l-text);
}

/* Bài viết */
.hm-lich-am-articleGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hm-lich-am-articleCard {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--l-line);
  border-radius: 14px;
  background: var(--l-card);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.hm-lich-am-articleCard:hover {
  border-color: var(--l-gold);
  transform: translateY(-3px);
}
.hm-lich-am-articleMedia {
  position: relative;
  aspect-ratio: 2.4 / 1;
}
.hm-lich-am-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 3px 12px;
  border: 1px solid var(--l-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-bg) 80%, transparent);
  font-size: 12px;
  color: var(--l-gold-soft);
}
.hm-lich-am-articleBody {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 6px 18px 18px;
}
.hm-lich-am-date {
  margin-top: auto;
  padding-top: 12px;
  font-size: 12.5px;
  color: var(--l-muted);
}

.hm-lich-am-btnOutline:focus-visible,
.hm-lich-am-articleCard:focus-visible,
.hm-lich-am-seeAll:focus-visible {
  outline: 2px solid var(--l-gold-soft);
  outline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hm-lich-am-calWrap {
    grid-template-columns: 1fr;
  }
  .hm-lich-am-toolGrid,
  .hm-lich-am-articleGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hm-lich-am-wideGrid,
  .hm-lich-am-seoGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hm-lich-am-hero {
    flex-direction: column;
    align-items: stretch;
  }
  .hm-lich-am-heroArt {
    position: relative;
    width: 100%;
    height: 220px;
    order: -1;
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 55%);
    mask-image: linear-gradient(0deg, transparent 0%, #000 55%);
  }
  .hm-lich-am-heroInner {
    margin-top: -70px;
    padding: 0 16px 28px;
  }
  .hm-lich-am-container,
  .hm-lich-am-calWrap {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 640px) {
  .hm-lich-am-panel {
    padding: 14px 10px;
  }
  .hm-lich-am-panelHead {
    flex-direction: column;
    align-items: stretch;
  }
  .hm-lich-am-monthNav {
    flex-wrap: wrap;
  }
  .hm-lich-am-monthNav select {
    flex: 1;
    min-width: 0;
  }
  .hm-lich-am-todayBtn {
    flex: 1 1 100%;
  }
  .hm-lich-am-weekHead,
  .hm-lich-am-grid {
    gap: 3px;
  }
  .hm-lich-am-cell {
    min-height: 54px;
    border-radius: 7px;
  }
  .hm-lich-am-solarNum {
    font-size: 19px;
  }
  .hm-lich-am-lunarNum {
    font-size: 10px;
  }
  .hm-lich-am-today::after {
    content: "";
  }
  .hm-lich-am-dots {
    top: 3px;
    right: 3px;
  }
  .hm-lich-am-dots i {
    width: 5px;
    height: 5px;
  }
  .hm-lich-am-legendNote {
    margin-left: 0;
  }
  .hm-lich-am-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hm-lich-am-facts,
  .hm-lich-am-hours {
    grid-template-columns: 1fr;
  }
  .hm-lich-am-toolGrid,
  .hm-lich-am-articleGrid {
    grid-template-columns: 1fr;
  }
  .hm-lich-am-wideCard {
    grid-template-columns: 1fr;
  }
  .hm-lich-am-wideMedia {
    min-height: 150px;
  }
  .hm-lich-am-wideMedia::after {
    background: linear-gradient(0deg, var(--l-card), transparent 55%);
  }
  .hm-lich-am-dayNav {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-lich-am-calWrap *,
  .hm-lich-am-section * {
    transition: none !important;
  }
}
