/*
 * 首頁（B 雜誌目錄）。只在首頁載入；類別一律 mh- 開頭，不影響領域頁、課程頁、單元頁。
 * 版面概念：台灣商業雜誌的封面＋目錄頁。暖米白底、深青與 LOGO 金點綴；入口是「你卡在哪一題」的問題索引，下面是可左右滑的分類目錄。
 * 0.6.11 質感改版（Boss 10/30）：只用一種字（Noto Sans TC 400／700），字級、間距、圓角各用一套固定刻度，
 * 卡片改成無框淡陰影，動畫用同一條減速曲線；不改內容與排列順序。
 *   字級：12／14／16／18／20／24／30／36／48／60
 *   間距：4／8／12／16／24／32／40／48／64／80
 *   圓角：卡片 16、內層 8、標籤 6、按鈕整顆圓
 * 0.6.12「深青劇場」（Boss 10/30「先請工程師上這一版」）：開場與收尾整塊深青、標題改思源宋體（只載標題用到的字）、
 * 入口改直式大圖、課卡拿掉白框改雜誌排法、收尾大字逐字亮起；覆寫規則集中在檔尾「深青劇場」段。
 */
.mh {
	--mh-teal: #012b32;       /* 取自 LOGO 深青版底色 */
	--mh-teal-2: #0c4752;
	--mh-gold: #e2a93b;       /* LOGO 金 */
	--mh-gold-ink: #8a5d0f;
	--mh-rice: #faf5ea;       /* 暖米白 */
	--mh-rice-2: #f1e9d8;
	--mh-ink: #171a1c;
	--mh-muted: #5b5f63;
	--mh-rule: rgba(23, 26, 28, .12);
	--mh-shadow: 0 1px 2px rgba(74, 52, 24, .06), 0 8px 24px rgba(74, 52, 24, .07);
	--mh-shadow-up: 0 2px 4px rgba(74, 52, 24, .06), 0 16px 40px rgba(74, 52, 24, .13);
	--mh-ease: cubic-bezier(.22, 1, .36, 1);
	--mh-paper: #f3ede4;      /* 各領域區塊會用領域 palette 覆寫 */
	--mh-accent: #875053;
	background: var(--mh-rice);
	color: var(--mh-ink);
	overflow-x: clip;
}
.mh *, .mh *::before, .mh *::after { box-sizing: border-box; }
.mh a { -webkit-tap-highlight-color: transparent; }
.mh a:focus-visible { outline: 3px solid var(--mh-gold); outline-offset: 3px; }
.mh-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.mh-nw { display: inline-block; }
.mh h1, .mh h2 { text-wrap: balance; }
.mh p { text-wrap: pretty; }

/* 已購學員：繼續上課 */
.mh-resume { background: var(--mh-rice-2); }
.mh-resume__in { display: grid; gap: 12px; padding-block: 16px; }
.mh-resume__hi { margin: 0; font-size: 16px; font-weight: 700; line-height: 24px; color: var(--mh-teal); }
.mh-resume__list { display: grid; gap: 8px; }
.mh-resume__item { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: var(--mh-shadow); transition: transform .5s var(--mh-ease), box-shadow .3s var(--mh-ease); }
.mh-resume__item img { width: 88px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.mh-resume__text { min-width: 0; display: grid; gap: 2px; }
.mh-resume__text b { font-size: 16px; line-height: 24px; }
.mh-resume__text small { color: var(--mh-muted); font-size: 14px; line-height: 20px; }
.mh-resume__go { padding: 8px 16px; border-radius: 999px; background: var(--mh-teal); color: var(--mh-gold); font-weight: 700; font-size: 14px; line-height: 20px; white-space: nowrap; }
.mh-bar { display: block; height: 4px; margin-top: 4px; border-radius: 4px; background: var(--mh-rice-2); overflow: hidden; }
.mh-bar i { display: block; height: 100%; background: var(--mh-teal); }

/* 封面大標 */
.mh-cover__in { display: grid; gap: 24px; padding-block: 24px 8px; }
.mh-cover__text { display: grid; gap: 16px; align-content: start; }
.mh-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; line-height: 20px; letter-spacing: .08em; color: var(--mh-teal); }
.mh-kicker::before { content: ""; width: 24px; height: 2px; background: var(--mh-gold); }
.mh-cover h1 { margin: 0; font-weight: 700; font-size: 30px; line-height: 1.3; letter-spacing: -.01em; }
/* 強調字：金色粗底線（不用螢光筆色塊） */
.mh-cover h1 mark { background: none; color: inherit; padding: 0; text-decoration: underline; text-decoration-color: var(--mh-gold); text-decoration-thickness: .16em; text-underline-offset: .2em; text-decoration-skip-ink: none; }
.mh-cover__lead { margin: 0; font-size: 16px; line-height: 1.75; color: var(--mh-muted); max-width: 32em; text-wrap: balance; }
/* 主要行動：找到你卡住的那一題（捲到下方問題索引） */
.mh-cta { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 24px; border-radius: 999px; background: var(--mh-teal); color: var(--mh-rice); font-size: 16px; font-weight: 700; line-height: 24px; box-shadow: 0 8px 20px rgba(1, 43, 50, .18); transition: transform .5s var(--mh-ease), background-color .3s var(--mh-ease); }
.mh-cta svg { width: 16px; height: 16px; color: var(--mh-gold); transition: transform .5s var(--mh-ease); }
.mh-cta:hover { background: var(--mh-teal-2); }
.mh-cta:hover svg { transform: translateY(2px); }
.mh-cta:active { transform: scale(.98); }
.mh-facts { display: flex; border-top: 2px solid var(--mh-ink); }
.mh-facts div { flex: 1 1 25%; min-width: 0; padding: 12px 8px 4px; }
.mh-facts div + div { border-left: 1px solid var(--mh-rule); padding-left: 12px; }
.mh-facts b { display: block; font-size: 24px; font-weight: 700; line-height: 32px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mh-facts span { font-size: 12px; line-height: 16px; color: var(--mh-muted); }

/* 問題索引（領域大入口） */
.mh-index { padding-block: 32px 40px; }
.mh-index__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--mh-rule); }
.mh-index__head h2 { margin: 0; font-size: 24px; font-weight: 700; line-height: 32px; }
.mh-index__head span { font-size: 14px; line-height: 20px; color: var(--mh-muted); text-align: right; }
.mh-group { margin: 24px 0 8px; font-size: 14px; font-weight: 700; line-height: 20px; color: var(--mh-teal); }
.mh-group:first-of-type { margin-top: 0; }
.mh-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mh-tile { display: grid; grid-template-rows: auto 1fr; border-radius: 16px; overflow: hidden; background: var(--mh-paper); color: var(--mh-ink); box-shadow: var(--mh-shadow); transition: transform .5s var(--mh-ease), box-shadow .3s var(--mh-ease); }
.mh-tile:hover { transform: translateY(-4px); box-shadow: var(--mh-shadow-up); }
.mh-tile:active { transform: scale(.98); }
.mh-tile__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: rgba(0, 0, 0, .06); }
.mh-tile__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--mh-ease); }
.mh-tile:hover .mh-tile__img img { transform: scale(1.04); }
.mh-tile__tag { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 6px; background: var(--mh-accent); color: #fff; font-weight: 700; font-size: 14px; line-height: 20px; letter-spacing: .04em; }
.mh-tile__body { min-width: 0; display: grid; align-content: start; gap: 4px; padding: 12px; }
.mh-tile__q { font-size: 16px; font-weight: 700; line-height: 1.45; text-wrap: pretty; }
.mh-tile__who { font-size: 12px; color: var(--mh-muted); line-height: 1.5; text-wrap: balance; }
.mh-tile__go { margin-top: 4px; font-size: 14px; font-weight: 700; line-height: 20px; color: var(--mh-accent); }
/* 手機：第一格與落單的最後一格拉滿整排、左圖右文 */
.mh-tiles:not(.mh-tiles--compact) .mh-tile:first-child,
.mh-tiles:not(.mh-tiles--compact) .mh-tile:nth-child(even):last-child { grid-column: 1 / -1; grid-template-columns: 44% minmax(0, 1fr); grid-template-rows: none; }
.mh-tiles:not(.mh-tiles--compact) .mh-tile:first-child .mh-tile__img,
.mh-tiles:not(.mh-tiles--compact) .mh-tile:nth-child(even):last-child .mh-tile__img { aspect-ratio: auto; min-height: 120px; }
.mh-tiles:not(.mh-tiles--compact) .mh-tile:first-child .mh-tile__q { font-size: 18px; }
/* 領域超過 6 個：分類＋小方塊。手機一個分類一排、左右滑（露出下一格提示還有），只留領域名與問句 */
.mh-tiles--compact { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 30%; gap: 8px; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))) calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding: 0 max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mh-tiles--compact::-webkit-scrollbar { display: none; }
.mh-tiles--compact .mh-tile { scroll-snap-align: start; border-radius: 12px; }
.mh-tiles--compact .mh-tile__img { aspect-ratio: 4 / 3; }
.mh-tiles--compact .mh-tile__tag { left: 0; right: 0; bottom: 0; border-radius: 0; font-size: 12px; line-height: 20px; text-align: center; letter-spacing: .02em; }
.mh-tiles--compact .mh-tile__body { padding: 8px; }
.mh-tiles--compact .mh-tile__q { font-size: 14px; line-height: 1.45; }
.mh-tiles--compact .mh-tile__who, .mh-tiles--compact .mh-tile__go { display: none; }

/* 黏在頁首下方的領域目錄 */
.mh-toc { position: sticky; top: var(--minach-header-offset, 0px); z-index: 40; background: rgba(250, 245, 234, .92); border-block: 1px solid var(--mh-rule); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.mh-toc ul { display: flex; gap: 4px; max-width: 1240px; margin: 0 auto; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); list-style: none; overflow-x: auto; scrollbar-width: none; }
.mh-toc ul::-webkit-scrollbar { display: none; }
.mh-toc a { display: block; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; line-height: 20px; white-space: nowrap; color: var(--mh-muted); transition: background-color .3s var(--mh-ease), color .3s var(--mh-ease); }
.mh-toc a:hover { color: var(--mh-ink); background: var(--mh-rice-2); }
.mh-toc a.is-on { background: var(--mh-teal); color: var(--mh-gold); }

/* 每領域的課程列 */
.mh-sec { padding-block: 40px 16px; scroll-margin-top: calc(var(--minach-header-offset, 0px) + 56px); }
.mh-sec__head { display: grid; gap: 8px; margin-bottom: 16px; }
.mh-sec__top { display: flex; align-items: baseline; gap: 12px; }
.mh-sec__top h2 { margin: 0; font-size: 30px; font-weight: 700; line-height: 36px; letter-spacing: -.01em; }
.mh-sec__pill { font-size: 14px; font-weight: 700; line-height: 20px; color: var(--mh-accent); }
.mh-sec__line { margin: 0; font-size: 16px; line-height: 24px; }
.mh-sec__line em { font-style: normal; color: var(--mh-accent); font-weight: 700; }
/* 三步驟本來就有先後，改成 1 2 3 編號，箭頭拿掉 */
.mh-sec__steps { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 14px; line-height: 20px; color: var(--mh-muted); counter-reset: mh-step; }
.mh-sec__steps i { display: none; }
.mh-sec__steps b { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }
.mh-sec__steps b::before { counter-increment: mh-step; content: counter(mh-step); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; background: var(--mh-accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.mh-row { display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 296px); gap: 12px; max-width: 1240px; margin: 0 auto; padding: 4px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: max(16px, env(safe-area-inset-left, 0px)); scrollbar-width: thin; scrollbar-color: var(--mh-rule) transparent; }
.mh-row > li { display: flex; scroll-snap-align: start; }
.mh-card { display: flex; flex-direction: column; width: 100%; overflow: hidden; border-radius: 16px; background: #fff; color: var(--mh-ink); box-shadow: var(--mh-shadow); transition: transform .5s var(--mh-ease), box-shadow .3s var(--mh-ease); }
.mh-card:hover { transform: translateY(-4px); box-shadow: var(--mh-shadow-up); }
.mh-card:active { transform: scale(.98); }
.mh-card__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mh-paper); }
.mh-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--mh-ease); }
.mh-card:hover .mh-card__img img { transform: scale(1.04); }
.mh-badge { position: absolute; left: 12px; top: 12px; padding: 2px 8px; border-radius: 6px; background: var(--mh-gold); color: var(--mh-ink); font-weight: 700; font-size: 12px; line-height: 20px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.mh-badge--own { background: var(--mh-teal); color: var(--mh-gold); }
.mh-bar--img { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; height: 4px; border-radius: 0; background: rgba(0, 0, 0, .3); }
.mh-bar--img i { background: var(--mh-gold); }
.mh-card__body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 16px; }
.mh-card__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--mh-accent); letter-spacing: .04em; }
.mh-card__meta span:last-child { color: var(--mh-muted); font-weight: 400; letter-spacing: 0; }
.mh-card__title { margin-top: 4px; font-size: 20px; font-weight: 700; line-height: 28px; }
.mh-card__sub { font-size: 14px; color: var(--mh-muted); line-height: 20px; }
.mh-card__lead { display: -webkit-box; margin: 8px 0 12px; overflow: hidden; font-size: 14px; line-height: 1.7; color: var(--mh-muted); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
/* 學完成果：與內文同字型，用小標籤＋淡色底區隔，不再用手寫楷體 */
.mh-card__result { display: grid; gap: 4px; margin-top: auto; padding: 12px; border-radius: 8px; background: var(--mh-paper); font-size: 14px; font-weight: 700; line-height: 20px; color: var(--mh-ink); text-wrap: balance; }
.mh-card__result::before { content: "學完成果"; font-size: 12px; line-height: 16px; letter-spacing: .08em; color: var(--mh-accent); }
.mh-card__cta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--mh-rule); color: var(--mh-accent); font-weight: 700; font-size: 16px; line-height: 24px; }
.mh-card__cta span:last-child { transition: transform .5s var(--mh-ease); }
.mh-card:hover .mh-card__cta span:last-child { transform: translateX(4px); }
.mh-card__cta--go { margin-top: 12px; padding: 8px 16px; border-top: 0; border-radius: 999px; background: var(--mh-teal); color: var(--mh-gold); }
/* 看全部：改成淺色收尾卡，與課卡同一個家族，不再是一整塊黑底 */
.mh-all { display: flex; flex-direction: column; width: 100%; padding: 24px; border-radius: 16px; background: var(--mh-paper); color: var(--mh-ink); box-shadow: inset 0 0 0 1px var(--mh-rule); transition: box-shadow .3s var(--mh-ease); }
.mh-all:hover { box-shadow: inset 0 0 0 1px var(--mh-accent); }
.mh-all__title { margin-bottom: 12px; font-size: 20px; font-weight: 700; line-height: 28px; }
.mh-all ol { flex: 1; margin: 0; padding: 0; list-style: none; }
.mh-all li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px; padding: 8px 0; border-top: 1px solid var(--mh-rule); font-size: 14px; line-height: 20px; }
.mh-all li span { color: var(--mh-accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.mh-all__go { margin-top: 16px; padding: 12px 16px; border-radius: 999px; background: var(--mh-teal); color: var(--mh-gold); text-align: center; font-size: 16px; font-weight: 700; line-height: 24px; transition: background-color .3s var(--mh-ease); }
.mh-all:hover .mh-all__go { background: var(--mh-teal-2); }

/* 收尾 */
.mh-close { margin-top: 40px; background: var(--mh-teal); color: var(--mh-rice); }
.mh-close__in { display: grid; gap: 24px; padding-block: 48px 64px; }
.mh-close h2 { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.mh-close h2 mark { background: none; color: var(--mh-gold); padding: 0; }
.mh-close__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.mh-close__links a { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--mh-teal-2); font-size: 16px; font-weight: 700; line-height: 24px; transition: background-color .3s var(--mh-ease), color .3s var(--mh-ease); }
.mh-close__links a span:last-child { color: var(--mh-gold); transition: transform .5s var(--mh-ease); }
.mh-close__links a:hover { background: #135a67; }
.mh-close__links a:hover span:last-child { transform: translateX(4px); }

/* 捲到才淡入（只在腳本確認可用時才先藏起來，沒有腳本照樣全部看得到） */
.mh-reveal .mh-in { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--mh-ease), transform .7s var(--mh-ease); }
.mh-reveal .mh-in.is-in { opacity: 1; transform: none; }

/* 手機第一屏＝一句話標語＋領域大入口（定案第 3 條）：刊頭、數字列壓矮，課程圖拼貼只在桌機出現 */
@media (max-width: 759px) {
	.mh-cover__in { gap: 0; padding-block: 16px 0; }
	.mh-cover__text { gap: 12px; }
	.mh-cover__lead { font-size: 14px; line-height: 1.7; }
	.mh-cta { min-height: 40px; padding: 8px 16px; font-size: 14px; line-height: 20px; }
	.mh-facts div { padding: 8px 4px 0; }
	.mh-facts div + div { padding-left: 8px; }
	.mh-facts b { font-size: 20px; line-height: 28px; }
	.mh-index { padding-block: 16px 32px; }
	.mh-index__head { padding-bottom: 8px; margin-bottom: 12px; }
	.mh-index__head h2 { font-size: 20px; line-height: 28px; }
	.mh-index__head span { font-size: 12px; line-height: 16px; }
	.mh-tiles:not(.mh-tiles--compact) .mh-tile:not(:first-child) .mh-tile__img { aspect-ratio: 2 / 1; }
	.mh-sec__top h2 { font-size: 24px; line-height: 32px; }
	.mh-close h2 { font-size: 24px; }
}

@media (min-width: 760px) {
	.mh-cover__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 24px 64px; padding-block: 48px 24px; }
	.mh-cover__text { gap: 24px; }
	.mh-cover h1 { font-size: 36px; line-height: 1.25; letter-spacing: -.02em; }
	.mh-cover__lead { font-size: 18px; }
	.mh-facts b { font-size: 30px; line-height: 36px; }
	.mh-facts span { font-size: 14px; line-height: 20px; }
	.mh-index { padding-block: 48px 48px; }
	.mh-index__head h2 { font-size: 30px; line-height: 36px; }
	/* 桌機：入口兩欄，每格都是左圖右文，四句問句一樣大，掃一眼就比較得出來 */
	.mh-tiles:not(.mh-tiles--compact) { gap: 16px; }
	.mh-tiles:not(.mh-tiles--compact) .mh-tile,
	.mh-tiles:not(.mh-tiles--compact) .mh-tile:first-child { grid-column: auto; grid-template-columns: 42% minmax(0, 1fr); grid-template-rows: none; }
	.mh-tiles:not(.mh-tiles--compact) .mh-tile .mh-tile__img,
	.mh-tiles:not(.mh-tiles--compact) .mh-tile:first-child .mh-tile__img { aspect-ratio: auto; min-height: 176px; }
	.mh-tiles:not(.mh-tiles--compact) .mh-tile:nth-child(odd):last-child { grid-column: 1 / -1; grid-template-columns: 21% minmax(0, 1fr); }
	.mh-tiles:not(.mh-tiles--compact) .mh-tile:nth-child(even):last-child { grid-column: auto; }
	.mh-tile__body,
	.mh-tiles:not(.mh-tiles--compact) .mh-tile__body { align-content: center; gap: 8px; padding: 24px; }
	.mh-tile__q,
	.mh-tiles:not(.mh-tiles--compact) .mh-tile:first-child .mh-tile__q { font-size: 24px; line-height: 1.4; }
	.mh-tile__who { font-size: 14px; }
	.mh-tiles--compact { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-inline: 0; padding: 0; overflow: visible; }
	.mh-tiles--compact .mh-tile__body { padding: 8px 12px 12px; }
	.mh-tiles--compact .mh-tile__q { font-size: 14px; }
	.mh-sec { padding-block: 64px 16px; }
	.mh-sec__top h2 { font-size: 36px; line-height: 40px; }
	.mh-sec__line { font-size: 18px; line-height: 28px; }
	/* 1240 版心扣掉左右 16，剛好放下 4 張 290＋3 個 16 的間隔 */
	.mh-row { grid-auto-columns: 290px; gap: 16px; }
	.mh-resume__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mh-close { margin-top: 64px; }
	.mh-close__in { padding-block: 64px 80px; }
	.mh-close h2 { font-size: 36px; }
}
/* 大標第一行「感情、業務、職場、談判，」要一行放得下（12 字），寬螢幕才放大到 48px */
@media (min-width: 1100px) {
	.mh-cover h1 { font-size: 48px; line-height: 1.22; }
}
@media (prefers-reduced-motion: reduce) {
	.mh-tile, .mh-card, .mh-cta, .mh-resume__item, .mh-tile__img img, .mh-card__img img, .mh-card__cta span, .mh-close__links a span { transition: none; }
	.mh-tile:hover, .mh-card:hover { transform: none; }
	.mh-tile:hover .mh-tile__img img, .mh-card:hover .mh-card__img img { transform: none; }
	.mh-reveal .mh-in { transform: none; transition: opacity .4s linear; }
}

/* ═══ 0.6.12 深青劇場（覆寫上面的 0.6.11 規則） ═══════════════════════════
 * 參考：MasterClass（深色電影感、圖片當入口）、Maven（深色開場接淺色清單、襯線大標）、The School of Life（雜誌式留白）。
 * 思源宋體由 functions.php 只載首頁標題實際用到的字（Google Fonts text= 子集，約 35KB）。
 */
.mh {
	--v-dark: #012b32;
	--v-dark-2: #0a3a42;
	--v-on: #f6efe2;
	--v-on-muted: rgba(246, 239, 226, .72);
	--v-line-d: rgba(246, 239, 226, .16);
	--v-serif: "Noto Serif TC", "Source Han Serif TC", "Songti TC", serif;
	--v-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	counter-reset: mh-sec;
}

/* ── 1. 深青開場（封面＋入口） ───────────────────────────── */
.mh .mh-cover, .mh .mh-index { position: relative; isolation: isolate; background: var(--v-dark); color: var(--v-on); }
.mh .mh-cover::before, .mh .mh-index::before, .mh .mh-close::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--v-grain); opacity: .09; pointer-events: none; }
.mh .mh-cover__in { padding-block: 32px 0; }
.mh .mh-kicker { color: var(--mh-gold); }
.mh .mh-cover h1 { font-family: var(--v-serif); font-weight: 600; letter-spacing: 0; background: linear-gradient(90deg, #fffaf0, #d6ccb9); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mh .mh-cover h1 mark { -webkit-text-fill-color: var(--mh-gold); color: var(--mh-gold); text-decoration: none; }
.mh .mh-cover__lead { color: var(--v-on-muted); }
.mh .mh-cta { background: var(--mh-gold); color: var(--v-dark); box-shadow: 0 8px 24px rgba(226, 169, 59, .22); }
.mh .mh-cta svg { color: var(--v-dark); }
.mh .mh-cta:hover { background: #ecb64c; }
.mh .mh-facts { border-top: 1px solid var(--v-line-d); }
.mh .mh-facts div + div { border-left-color: var(--v-line-d); }
.mh .mh-facts b { font-family: var(--v-serif); font-weight: 600; color: var(--mh-gold); }
.mh .mh-facts span { color: var(--v-on-muted); }

.mh .mh-index { padding-block: 24px 48px; }
.mh .mh-index__head { border-bottom-color: var(--v-line-d); }
.mh .mh-index__head h2 { font-family: var(--v-serif); font-weight: 600; color: var(--v-on); }
.mh .mh-index__head span { color: var(--v-on-muted); }

/* 入口：直式大圖，領域名在左上、問句壓在圖下方 */
.mh .mh-tiles:not(.mh-tiles--compact) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile,
.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile:first-child,
.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile:nth-child(even):last-child,
.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile:nth-child(odd):last-child { position: relative; display: block; grid-column: auto; grid-template-columns: none; aspect-ratio: 4 / 5; border-radius: 16px; background: var(--v-dark-2); color: var(--v-on); box-shadow: 0 0 0 1px var(--v-line-d), 0 16px 40px rgba(0, 0, 0, .28); }
.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(226, 169, 59, .5), 0 24px 48px rgba(0, 0, 0, .36); }
.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile .mh-tile__img,
.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile:first-child .mh-tile__img,
.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile:nth-child(even):last-child .mh-tile__img,
.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile:nth-child(odd):last-child .mh-tile__img { position: absolute; inset: 0; aspect-ratio: auto; min-height: 0; }
.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1, 43, 50, 0) 30%, rgba(1, 43, 50, .6) 58%, rgba(0, 28, 33, .96) 100%); }
.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile__tag { top: 12px; left: 12px; bottom: auto; z-index: 1; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; gap: 4px; padding: 16px; }
.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile__q,
.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile:first-child .mh-tile__q { font-family: var(--v-serif); font-weight: 600; font-size: 18px; line-height: 1.4; color: var(--v-on); text-wrap: balance; }
.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile__who { color: var(--v-on-muted); }
.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile__go { color: var(--mh-gold); }

/* 領域目錄：浮起的半透明膠囊，不再是貼邊的整條 */
.mh .mh-toc { padding-block: 12px; background: transparent; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none; }
.mh .mh-toc ul { pointer-events: auto; width: fit-content; max-width: calc(100% - 32px); margin-inline: auto; padding: 4px; border-radius: 999px; background: rgba(250, 245, 234, .84); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 0 0 1px rgba(23, 26, 28, .08), 0 8px 24px rgba(74, 52, 24, .14); }

/* ── 3. 領域區塊：編號＋細線＋襯線標題 ───────────────────── */
.mh .mh-sec { counter-increment: mh-sec; padding-block: 40px 8px; }
.mh .mh-sec__head { position: relative; gap: 8px; padding-top: 24px; margin-bottom: 24px; }
.mh .mh-sec__head::before { content: ""; position: absolute; top: 0; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); height: 1px; background: var(--mh-rule); }
.mh .mh-sec__top { align-items: baseline; gap: 12px; }
.mh .mh-sec__top::before { content: counter(mh-sec, decimal-leading-zero); font-family: var(--v-serif); font-weight: 600; font-size: 24px; line-height: 32px; color: var(--mh-accent); }
.mh .mh-sec__top h2 { font-family: var(--v-serif); font-weight: 600; letter-spacing: 0; }
.mh .mh-sec__pill { color: var(--mh-muted); font-weight: 400; }
.mh .mh-sec__line { font-family: var(--v-serif); font-weight: 600; font-size: 18px; line-height: 28px; }
.mh .mh-sec__line em { font-weight: 600; }

/* 課卡：雜誌排法，圖自己一塊、文字直接排在米白底上 */
.mh .mh-row { gap: 16px; padding-bottom: 32px; }
.mh .mh-card { overflow: visible; border-radius: 0; background: transparent; box-shadow: none; }
.mh .mh-card:hover { transform: none; box-shadow: none; }
.mh .mh-card__img { aspect-ratio: 4 / 3; border-radius: 16px; box-shadow: var(--mh-shadow); transition: transform .5s var(--mh-ease), box-shadow .3s var(--mh-ease); }
.mh .mh-card:hover .mh-card__img { transform: translateY(-4px); box-shadow: var(--mh-shadow-up); }
.mh .mh-card__body { gap: 4px; padding: 16px 4px 0; }
.mh .mh-card__title { font-family: var(--v-serif); font-weight: 600; font-size: 20px; line-height: 28px; text-decoration: underline transparent; text-decoration-thickness: 1px; text-underline-offset: .3em; transition: text-decoration-color .3s var(--mh-ease); }
.mh .mh-card:hover .mh-card__title { text-decoration-color: currentColor; }
/* 介紹固定兩行高，學完成果的細線在同一排課卡裡對齊；試看連結貼齊卡片底部 */
.mh .mh-card__lead { min-height: calc(1.7em * 2); margin: 4px 0 12px; }
.mh .mh-card__result { margin-top: 0; padding: 12px 0 0; border-radius: 0; background: none; border-top: 1px solid var(--mh-rule); font-size: 14px; line-height: 22px; text-wrap: pretty; }
.mh .mh-card__result::before { color: var(--mh-gold-ink); }
.mh .mh-card__cta { margin-top: auto; padding-top: 12px; border-top: 0; }
.mh .mh-card__cta--go { margin-top: auto; }
.mh .mh-card__cta--go { padding: 8px 16px; }
.mh .mh-all { background: transparent; box-shadow: inset 0 0 0 1px var(--mh-rule); }
.mh .mh-all__title { font-family: var(--v-serif); font-weight: 600; }

/* ── 4. 收尾大字時刻 ───────────────────────────────────── */
.mh .mh-close { position: relative; isolation: isolate; margin-top: 48px; background: var(--v-dark); }
.mh .mh-close__in { gap: 40px; padding-block: 64px 64px; }
.mh .mh-close h2 { max-width: 15em; font-family: var(--v-serif); font-weight: 600; font-size: 30px; line-height: 1.3; letter-spacing: 0; }
.mh .mh-ch { color: rgba(246, 239, 226, .26); transition: color .6s var(--mh-ease); }
.mh .mh-close mark .mh-ch { color: rgba(226, 169, 59, .3); }
.mh .mh-ch.is-lit { color: var(--v-on); }
.mh .mh-close mark .mh-ch.is-lit { color: var(--mh-gold); }
.mh .mh-close__links a { border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--v-line-d); transition: box-shadow .3s var(--mh-ease), background-color .3s var(--mh-ease); }
.mh .mh-close__links a:hover { background: rgba(246, 239, 226, .06); box-shadow: inset 0 0 0 1px var(--mh-gold); }
/* 頁尾：這支樣式只在首頁載入，所以只有首頁的頁尾換成更深的青、和收尾連成一片；其他頁照舊深咖啡（全站要不要跟著換，等 Boss 細看後再定） */
body.home .minach-footer { background: #001d22; box-shadow: 0 -1px 0 var(--v-line-d); }

/* 已購學員的繼續上課：夾在深青頁首與深青開場中間，一起改深色，不留一條米白 */
.mh .mh-resume { background: var(--v-dark); color: var(--v-on); border-bottom: 1px solid var(--v-line-d); }
.mh .mh-resume__hi { color: var(--mh-gold); }
.mh .mh-resume__item { background: var(--v-dark-2); color: var(--v-on); box-shadow: 0 0 0 1px var(--v-line-d); }
.mh .mh-resume__item:hover { box-shadow: 0 0 0 1px rgba(226, 169, 59, .5); }
.mh .mh-resume__text small { color: var(--v-on-muted); }
.mh .mh-resume__go { background: var(--mh-gold); color: var(--v-dark); }
.mh .mh-resume .mh-bar { background: rgba(246, 239, 226, .14); }
.mh .mh-resume .mh-bar i { background: var(--mh-gold); }
/* 領域超過 6 個的小方塊（定案第 23 條）：放在深青底上，改成深色方塊 */
.mh .mh-group { color: var(--mh-gold); }
.mh .mh-tiles--compact .mh-tile { background: var(--v-dark-2); color: var(--v-on); box-shadow: 0 0 0 1px var(--v-line-d); }
.mh .mh-tiles--compact .mh-tile:hover { box-shadow: 0 0 0 1px rgba(226, 169, 59, .5); }
.mh .mh-tiles--compact .mh-tile__q { font-family: var(--v-serif); font-weight: 600; }

/* ── 手機：第一屏要看得到標語＋入口（定案第 3 條） ──────────── */
@media (max-width: 759px) {
	.mh .mh-cover__in { padding-block: 24px 0; }
	.mh .mh-cover h1 { font-size: 30px; line-height: 1.3; }
	/* 入口就在正下方，手機不再放「先找到你卡住的那一題」按鈕；數字列縮成一行小字 */
	.mh .mh-cta { display: none; }
	.mh .mh-facts { border-top: 0; gap: 12px; }
	.mh .mh-facts div, .mh .mh-facts div + div { flex: none; display: flex; align-items: baseline; gap: 4px; padding: 0; border-left: 0; }
	.mh .mh-facts b { font-size: 16px; line-height: 24px; }
	.mh .mh-index { padding-block: 16px 32px; }
	.mh .mh-index__head { border-bottom: 0; padding-bottom: 0; }
	.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile,
	.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile:first-child,
	.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile:nth-child(even):last-child,
	.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile:nth-child(odd):last-child { aspect-ratio: 1 / 1; }
	.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile:nth-child(odd):last-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
	.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile__body { padding: 12px; }
	.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile__q,
	.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile:first-child .mh-tile__q { font-size: 16px; line-height: 1.4; }
	.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile__who,
	.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile__go { display: none; }
	.mh .mh-sec__top h2 { font-size: 30px; line-height: 36px; }
}

@media (min-width: 760px) {
	.mh .mh-cover__in { grid-template-columns: minmax(0, 1fr); padding-block: 64px 0; }
	/* 標語在左、數字改成右側 2×2 的金色大數字 */
	.mh .mh-cover__text { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 64px; row-gap: 24px; }
	.mh .mh-cover__text > :not(.mh-facts) { grid-column: 1; }
	.mh .mh-facts { grid-column: 2; grid-row: 1 / span 4; align-self: end; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
	.mh .mh-facts div, .mh .mh-facts div + div { padding: 16px 0 16px 24px; border-left: 1px solid var(--v-line-d); }
	.mh .mh-facts div:nth-child(-n + 2) { border-bottom: 1px solid var(--v-line-d); }
	.mh .mh-facts b { font-size: 48px; line-height: 1.1; }
	.mh .mh-index { padding-block: 48px 80px; }
	.mh .mh-index__head h2 { font-size: 30px; line-height: 36px; }
	/* 入口：一排放完所有領域，每張都是直式大圖 */
	.mh .mh-tiles:not(.mh-tiles--compact) { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; }
	.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile__body { gap: 8px; padding: 24px; }
	.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile__q,
	.mh .mh-tiles:not(.mh-tiles--compact) .mh-tile:first-child .mh-tile__q { font-size: 24px; line-height: 1.35; }
	/* 五個以上領域：欄變窄，問句最長的詞組（8 個字）塞不下 24px */
	.mh .mh-tiles--dense:not(.mh-tiles--compact) .mh-tile__body { padding: 20px; }
	.mh .mh-tiles--dense:not(.mh-tiles--compact) .mh-tile__q,
	.mh .mh-tiles--dense:not(.mh-tiles--compact) .mh-tile:first-child .mh-tile__q { font-size: 21px; }
	.mh .mh-sec { padding-block: 64px 8px; }
	.mh .mh-sec__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: end; padding-top: 32px; margin-bottom: 32px; }
	.mh .mh-sec__top { grid-row: 1 / span 2; align-self: start; }
	.mh .mh-sec__top::before { font-size: 30px; line-height: 36px; }
	.mh .mh-sec__top h2 { font-size: 48px; line-height: 1.1; }
	.mh .mh-sec__line { grid-column: 2; font-size: 20px; line-height: 28px; }
	.mh .mh-sec__steps { grid-column: 2; }
	.mh .mh-close { margin-top: 80px; }
	.mh .mh-close__in { padding-block: 96px 80px; }
	.mh .mh-close h2 { font-size: 48px; line-height: 1.25; }
	.mh .mh-close__links { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}
/* 聊天約會的課程封面人物在左右兩側，直式裁切置中會切掉男主角的臉 */
.mh .mh-tile[data-domain="dating"] .mh-tile__img img { object-position: 32% center; }
@media (min-width: 1100px) {
	.mh .mh-cover h1 { font-size: 60px; line-height: 1.2; }
	.mh .mh-close h2 { font-size: 60px; line-height: 1.2; }
}
@media (prefers-reduced-motion: reduce) {
	.mh .mh-ch { transition: none; }
	.mh .mh-card__img { transition: none; }
}
