/* ==========================================================================
   e-Room School — main stylesheet
   區塊用 class：e-section / e-section--tint / e-section--sand / e-section--navy
   e-hero、e-eyebrow、e-lead、e-cards、e-card、e-split、e-gallery、e-steps、
   e-checks、e-note、e-quote、e-center、e-btn-line、e-btn-ghost、e-btn-light
   ========================================================================== */

:root {
	--navy: #223266;
	--navy-900: #141d40;
	--navy-800: #1b2852;
	--navy-600: #33478a;
	--navy-100: #dfe5f2;
	--navy-50: #eef1f8;
	--brick: #991d20;
	--brick-700: #7d1719;
	--brick-50: #fbefef;
	--line: #06c755;
	--line-700: #04a847;
	--ink: #1b2231;
	--muted: #5b6475;
	--soft: #8a93a6;
	--border: #e3e7f0;
	--sand: #f8f6f1;
	--white: #fff;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 10px 30px rgba(20, 29, 64, 0.07);
	--shadow-lg: 0 24px 60px rgba(20, 29, 64, 0.14);
	--content: 760px;
	--wide: 1180px;
	--gutter: 20px;
	--header-h: 68px;
	--font: "eroom-quote", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* 英文撇號 ’ ‘：Noto Sans TC 畫成全形，英文會變成「I’ m」。只有這兩個字元改用系統的西文字型 */
@font-face {
	font-family: "eroom-quote";
	src: local("Helvetica Neue"), local("HelveticaNeue"), local("Segoe UI"), local("Roboto"), local("Arial"), local("ArialMT");
	unicode-range: U+2018-2019;
}

@media (min-width: 768px) {
	:root {
		--gutter: 32px;
		--header-h: 76px;
	}
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.85;
	letter-spacing: 0.01em;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word; /* 很長的網址放不下時才斷開，不把手機版撐寬 */
	overflow-x: hidden;
}

@media (min-width: 768px) {
	body {
		font-size: 17px;
	}
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
	vertical-align: middle;
}

a {
	color: var(--navy);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--brick);
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.6em;
	line-height: 1.35;
	font-weight: 700;
	color: var(--navy-900);
	letter-spacing: 0.02em;
}

h1 {
	font-size: clamp(30px, 5vw, 48px);
}

h2 {
	font-size: clamp(25px, 3.4vw, 36px);
}

h3 {
	font-size: clamp(19px, 2vw, 22px);
}

h4 {
	font-size: 18px;
}

p {
	margin: 0 0 1em;
}

/* 標題裡內容自己插的換行是給桌機看的，手機上會平白空掉一整行（斷行由 assets/js/main.js 決定） */
@media (max-width: 767px) {
	h1 br,
	h2 br,
	h3 br,
	h4 br {
		display: none;
	}
}

/* 中文斷行（assets/js/main.js）：處理過的元素只在詞與詞之間換行，放不下才在詞中間斷 */
.is-phrased {
	word-break: keep-all;
	overflow-wrap: break-word;
}

.nowrap {
	white-space: nowrap;
}

fieldset {
	min-width: 0; /* 預設是內容的最小寬度，手機上會把表單撐寬 */
}

/* 按鈕（含試算器產生的按鈕）只在空白和標點處換行 */
.btn,
.wp-block-button__link {
	word-break: keep-all;
	overflow-wrap: break-word;
}

figure {
	margin: 0;
}

/* WP User Profile Avatar 外掛的前台 CSS 把 .size-large／.size-medium 寫死寬度，區塊圖片要蓋回來 */
.wp-block-image[class*="size-"] {
	width: auto;
	max-width: 100%;
}

.icon {
	flex: none;
	width: 1.1em;
	height: 1.1em;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 1000;
	padding: 10px 16px;
	border-radius: 8px;
	background: var(--navy);
	color: #fff;
}

.skip-link:focus {
	top: 12px;
	color: #fff;
}

:focus-visible {
	outline: 3px solid rgba(51, 71, 138, 0.45);
	outline-offset: 2px;
}

/* ---------- Buttons ---------- */

.btn,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 24px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover,
.wp-block-button__link:hover {
	transform: translateY(-1px);
}

.btn--primary,
.wp-block-button .wp-block-button__link {
	background: var(--brick);
	color: #fff;
	box-shadow: 0 8px 20px rgba(153, 29, 32, 0.22);
}

.btn--primary:hover,
.wp-block-button .wp-block-button__link:hover {
	background: var(--brick-700);
	color: #fff;
}

.btn--line,
.wp-block-button.e-btn-line .wp-block-button__link {
	background: var(--line);
	color: #fff;
	box-shadow: 0 8px 20px rgba(6, 199, 85, 0.22);
}

.btn--line:hover,
.wp-block-button.e-btn-line .wp-block-button__link:hover {
	background: var(--line-700);
	color: #fff;
}

.btn--ghost,
.wp-block-button.e-btn-ghost .wp-block-button__link {
	background: transparent;
	border-color: var(--navy);
	color: var(--navy);
	box-shadow: none;
}

.btn--ghost:hover,
.wp-block-button.e-btn-ghost .wp-block-button__link:hover {
	background: var(--navy);
	color: #fff;
}

.btn--light,
.wp-block-button.e-btn-light .wp-block-button__link {
	background: #fff;
	color: var(--navy);
	box-shadow: none;
}

.btn--light:hover,
.wp-block-button.e-btn-light .wp-block-button__link:hover {
	background: var(--navy-50);
	color: var(--navy-900);
}

.btn--lg {
	min-height: 56px;
	padding: 14px 30px;
	font-size: 17px;
}

.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.wp-block-buttons.is-content-justification-center,
.e-center .wp-block-buttons {
	justify-content: center;
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s, box-shadow 0.2s;
}

/* 毛玻璃背景放在偽元素上：backdrop-filter 直接加在頁首會讓手機選單（position: fixed）被限制在頁首高度內。 */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, 0.94);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	backdrop-filter: saturate(160%) blur(12px);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

.site-header.is-scrolled {
	border-color: var(--border);
	box-shadow: 0 6px 20px rgba(20, 29, 64, 0.06);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: calc(var(--wide) + var(--gutter) * 2);
	height: var(--header-h);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--navy-900);
	text-decoration: none;
}

.brand:hover {
	color: var(--navy-900);
}

.brand__logo {
	width: 44px;
	height: 44px;
	object-fit: contain;
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.brand__name {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.brand__sub {
	font-size: 12px;
	color: var(--muted);
	letter-spacing: 0.06em;
}

.brand__name,
.brand__sub {
	white-space: nowrap;
}

/* 320px 寬的小手機：logo 字放不下一行 */
@media (max-width: 359px) {
	.site-header__inner {
		gap: 8px;
	}

	.brand {
		gap: 8px;
	}

	.brand__logo {
		width: 38px;
		height: 38px;
	}

	.brand__name {
		font-size: 17px;
		letter-spacing: 0.02em;
	}

	.brand__sub {
		font-size: 11px;
		letter-spacing: 0.01em;
	}
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: var(--navy-50);
	color: var(--navy);
	cursor: pointer;
}

.nav-toggle .icon {
	width: 24px;
	height: 24px;
}

.nav-toggle__close,
.nav-open .nav-toggle__open {
	display: none;
}

.nav-open .nav-toggle__close {
	display: inline-flex;
}

.site-nav {
	position: fixed;
	inset: var(--header-h) 0 0;
	z-index: 99;
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 20px var(--gutter) 40px;
	background: #fff;
	overflow-y: auto;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.admin-bar .site-nav {
	top: calc(var(--header-h) + 32px);
}

@media (max-width: 782px) {
	.admin-bar .site-nav {
		top: calc(var(--header-h) + 46px);
	}
}

.nav-open .site-nav {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.nav-open {
	overflow: hidden;
}

.site-nav .menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav .menu a {
	display: block;
	padding: 14px 4px;
	border-bottom: 1px solid var(--border);
	color: var(--ink);
	font-size: 18px;
	font-weight: 500;
	text-decoration: none;
}

.site-nav .menu .current-menu-item > a,
.site-nav .menu .current_page_item > a,
.site-nav .menu a:hover {
	color: var(--brick);
}

.site-nav .sub-menu {
	margin: 0;
	padding: 0 0 0 16px;
	list-style: none;
}

.site-nav__cta {
	align-self: stretch;
}

@media (min-width: 1080px) {
	.nav-toggle {
		display: none;
	}

	.site-nav {
		position: static;
		flex-direction: row;
		align-items: center;
		gap: 12px;
		padding: 0;
		background: none;
		overflow: visible;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.site-nav .menu {
		display: flex;
		align-items: center;
		gap: 2px;
	}

	.site-nav .menu > li {
		position: relative;
	}

	.site-nav .menu a {
		padding: 8px 12px;
		border: 0;
		border-radius: 999px;
		font-size: 15px;
		white-space: nowrap;
	}

	.site-nav .menu .current-menu-item > a,
	.site-nav .menu .current_page_item > a {
		background: var(--navy-50);
		color: var(--navy);
	}

	.site-nav .menu a:hover {
		background: var(--navy-50);
		color: var(--navy);
	}

	.site-nav .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 180px;
		padding: 8px;
		border-radius: 14px;
		background: #fff;
		box-shadow: var(--shadow-lg);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.15s;
	}

	.site-nav .menu li:hover > .sub-menu,
	.site-nav .menu li:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
	}

	.site-nav__cta {
		min-height: 42px;
		padding: 8px 18px;
		font-size: 15px;
	}
}

/* ---------- Page hero ---------- */

.page-hero,
.article-hero {
	position: relative;
	padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(36px, 5vw, 64px);
	background: radial-gradient(120% 140% at 100% 0%, var(--navy-600) 0%, var(--navy) 45%, var(--navy-900) 100%);
	color: #fff;
	overflow: hidden;
}

.page-hero::after,
.article-hero::after {
	content: "";
	position: absolute;
	right: -80px;
	bottom: -120px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	border: 48px solid rgba(255, 255, 255, 0.05);
	pointer-events: none;
}

.page-hero__inner,
.article-hero__inner {
	position: relative;
	z-index: 2;
	max-width: var(--wide);
	margin: 0 auto;
}

.article-hero__inner {
	max-width: var(--content);
}

.page-hero__title,
.article-hero__title {
	margin: 0.2em 0 0.3em;
	color: #fff;
}

.article-hero__title {
	font-size: clamp(26px, 4vw, 40px);
}

.page-hero__lead {
	max-width: 720px;
	margin: 0;
	font-size: clamp(16px, 1.8vw, 19px);
	color: rgba(255, 255, 255, 0.86);
}

.page-hero--image {
	padding-top: clamp(64px, 12vw, 150px);
	background: var(--navy-900);
}

.page-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.page-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.page-hero--image::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(20, 29, 64, 0.92) 0%, rgba(20, 29, 64, 0.72) 50%, rgba(20, 29, 64, 0.35) 100%);
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a {
	color: rgba(255, 255, 255, 0.86);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: #fff;
	text-decoration: underline;
}

.breadcrumbs__sep {
	opacity: 0.5;
}

.article-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
}

/* ---------- Entry content layout ---------- */

.entry-content {
	padding-bottom: clamp(48px, 7vw, 96px);
}

.entry-content--home {
	padding-bottom: 0;
}

.entry-content > :not(.alignfull):not(.alignwide) {
	max-width: calc(var(--content) + var(--gutter) * 2);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.entry-content > .alignwide {
	max-width: calc(var(--wide) + var(--gutter) * 2);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.entry-content > .alignfull {
	width: 100%;
	max-width: none;
	margin-top: 0;
	margin-bottom: 0;
}

.entry-content > :first-child:not(.alignfull) {
	margin-top: clamp(40px, 6vw, 72px);
}

.entry-content > :not(.alignfull) + .alignfull {
	margin-top: clamp(40px, 6vw, 72px);
}

.entry-content > .alignfull + :not(.alignfull) {
	margin-top: clamp(40px, 6vw, 72px);
}

.entry-content > * .alignwide {
	max-width: var(--wide);
}

.e-section--wide.is-layout-constrained > * {
	max-width: var(--wide);
}

.entry-content :where(ul, ol) {
	padding-left: 1.4em;
}

/* 有框線或底色的區塊直接放在內文裡：左右留白放在框外（margin），不然手機上框線、底色會貼齊螢幕邊緣，桌機上也會比文字欄寬 */
.entry-content > :is(.wp-block-details, .e-embed, .e-note, .e-quote, table):not(.alignfull):not(.alignwide) {
	max-width: min(var(--content), calc(100% - var(--gutter) * 2));
	margin-left: auto;
	margin-right: auto;
}

.entry-content > :is(.wp-block-details, .e-embed, table):not(.alignfull):not(.alignwide) {
	padding-left: 0;
	padding-right: 0;
}

/* 舊文章直接貼的表格在 320px 小手機上放不下時，各欄平分寬度 */
@media (max-width: 359px) {
	.entry-content > table {
		table-layout: fixed;
		width: 100%;
	}

	.entry-content > table .is-phrased {
		word-break: normal; /* 一欄只剩 4、5 個字寬，照一般段落逐字換行比較整齊 */
	}
}

.entry-content > .e-note:not(.alignfull):not(.alignwide) {
	padding-left: 22px;
	padding-right: 22px;
}

.entry-content > .e-quote:not(.alignfull):not(.alignwide) {
	padding-left: 28px;
	padding-right: 28px;
}

/* 內文的圖片：比文字欄窄的置中（跟圖說對齊），上下留空，不跟下一段黏在一起 */
.entry-content > .wp-block-image {
	margin-top: 1.6em;
	margin-bottom: 1.6em;
}

.entry-content > .wp-block-image:not(.alignleft):not(.alignright) {
	text-align: center;
}

/* FAQ 後面接著的段落：跟最後一題拉開 */
.entry-content > .wp-block-details + :not(.wp-block-details) {
	margin-top: 1.6em;
}

/* 頁面最後一個區塊是滿版色塊時，不要再加內文底部留白（下面接著頁尾的紅色區塊） */
.entry-content:has(> .alignfull:last-child) {
	padding-bottom: 0;
}

/* 內文的按鈕列：跟上下文字拉開 */
.entry-content > .wp-block-buttons {
	margin-top: 1.6em;
	margin-bottom: 1.6em;
}

/* 直接放在內文裡的清單：左邊留白（--gutter）要加上項目符號的縮排，不然手機上的「•」「1.」會貼齊螢幕左邊 */
.entry-content > :where(ul, ol):not(.alignfull):not(.alignwide):not(.e-checks):not(.e-steps) {
	padding-left: calc(var(--gutter) + 1.4em);
}

.entry-content li {
	margin-bottom: 0.35em;
}

.entry-content :where(h2) {
	margin-top: 1.6em;
}

.entry-content :where(h3) {
	margin-top: 1.4em;
}

.entry-content :where(h2, h3) + .wp-block-details {
	margin-top: 28px;
}

.entry-content :where(.wp-block-group, .wp-block-column) > h2:first-child,
.entry-content :where(.wp-block-group, .wp-block-column) > h3:first-child,
.entry-content :where(.wp-block-group, .wp-block-column) > .e-eyebrow + h2,
.entry-content :where(.wp-block-group, .wp-block-column) > .e-eyebrow + h3 {
	margin-top: 0;
}

.entry-content .wp-block-image img {
	border-radius: var(--radius-sm);
}

.entry-content figcaption {
	margin-top: 8px;
	font-size: 14px;
	color: var(--muted);
	text-align: center;
}

/* Classic content (older posts) */
/* 舊文章（傳統編輯器）只放一張圖的段落：圖片置中 */
.entry-content > p:has(> img:only-child) {
	text-align: center;
}

/* 舊文章（傳統編輯器）夾在段落裡的圖片：並排或換行時留間距，不要黏在一起 */
.entry-content img.alignnone {
	margin: 6px 8px 6px 0;
	vertical-align: top;
}

.entry-content .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.entry-content .alignleft {
	float: left;
	margin: 0.3em 1.2em 1em 0;
}

.entry-content .alignright {
	float: right;
	margin: 0.3em 0 1em 1.2em;
}

.entry-content--article {
	padding-top: clamp(24px, 4vw, 40px);
	padding-bottom: clamp(32px, 4vw, 48px);
}

.article-cover + .entry-content > :first-child:not(.alignfull) {
	margin-top: clamp(16px, 3vw, 32px);
}

.entry-content--article img {
	border-radius: var(--radius-sm);
}

.entry-content--article table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

/* 上下留白只給直接放在內文的表格；包在 figure、捲動框裡的表格由外框留白，註解才會貼著表格 */
.entry-content--article > table {
	margin-top: 1.4em;
	margin-bottom: 1.4em;
}

.entry-content--article :where(th, td) {
	padding: 10px 12px;
	border: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

.entry-content--article thead th {
	background: var(--navy);
	color: #fff;
}

.entry-content--article tbody tr:nth-child(even) {
	background: var(--navy-50);
}

.e-post-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 1.4em 0;
}

.e-post-gallery > :only-child,
.e-post-gallery > :last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.e-post-gallery img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.e-embed {
	position: relative;
	margin: 1.4em 0;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--navy-50);
}

.e-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------- Sections ---------- */

.e-section {
	padding: clamp(56px, 8vw, 104px) var(--gutter);
}

.e-section--tint {
	background: var(--navy-50);
}

.e-section--sand {
	background: var(--sand);
}

.e-section--navy {
	background: radial-gradient(120% 140% at 0% 0%, var(--navy-600) 0%, var(--navy) 40%, var(--navy-900) 100%);
	color: rgba(255, 255, 255, 0.88);
}

.e-section--navy :where(h2, h3, h4) {
	color: #fff;
}

.e-section--navy a:not(.wp-block-button__link) {
	color: #fff;
}

.e-center {
	text-align: center;
}

.e-center > * {
	margin-left: auto;
	margin-right: auto;
}

.e-eyebrow {
	margin-bottom: 0.5em;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: var(--brick);
}

.e-section--navy .e-eyebrow,
.e-hero .e-eyebrow {
	color: #ffb4b0;
}

.e-lead {
	font-size: clamp(16px, 1.8vw, 19px);
	color: var(--muted);
}

.e-section--navy .e-lead {
	color: rgba(255, 255, 255, 0.82);
}

.e-small {
	font-size: 14px;
	color: var(--muted);
}

.e-section > .wp-block-buttons,
.e-section > .e-actions {
	margin-top: 32px;
}

/* ---------- Hero ---------- */

.e-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(88vh, 760px);
	padding: 140px var(--gutter) 56px;
	background: var(--navy-900);
	color: #fff;
	overflow: hidden;
}

.e-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(20, 29, 64, 0.2) 0%, rgba(20, 29, 64, 0.55) 38%, rgba(20, 29, 64, 0.94) 78%);
}

.e-hero > .e-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	margin: 0;
}

.e-hero > .e-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	border-radius: 0;
}

.e-hero > .e-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--wide);
	margin: 0 auto;
}

.e-hero__content > * {
	max-width: 680px;
}

.e-hero__title {
	margin: 0.15em 0 0.35em;
	color: #fff;
	font-size: clamp(34px, 6vw, 60px);
	line-height: 1.22;
}

.e-hero__lead {
	font-size: clamp(16px, 2vw, 20px);
	color: rgba(255, 255, 255, 0.9);
}

.e-hero .wp-block-buttons {
	margin-top: 28px;
}

.e-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.e-hero__facts li {
	margin: 0;
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	font-size: 14px;
	color: #fff;
}

@media (min-width: 900px) {
	.e-hero {
		align-items: center;
		padding-top: 96px;
		padding-bottom: 96px;
	}

	.e-hero::before {
		background: linear-gradient(90deg, rgba(20, 29, 64, 0.95) 0%, rgba(20, 29, 64, 0.8) 38%, rgba(20, 29, 64, 0.2) 75%, rgba(20, 29, 64, 0.05) 100%);
	}
}

/* ---------- Cards ---------- */

/* 格線裡的項目可以比內容（例如大圖）窄，避免手機版被撐寬 */
.wp-block-columns.e-cards > *,
.course-grid > *,
.post-grid > *,
.badges > * {
	min-width: 0;
}

.wp-block-columns.e-cards {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	margin-top: 36px;
	margin-bottom: 0;
}

.wp-block-columns.e-cards > .wp-block-column {
	flex-basis: auto !important;
	margin: 0 !important;
}

/* 卡片最後是按鈕的：按鈕貼齊卡片底部，同一排卡片的按鈕對齊 */
.wp-block-columns.e-cards > .wp-block-column:has(> .wp-block-buttons:last-child) {
	display: flex;
	flex-direction: column;
}

.wp-block-columns.e-cards > .wp-block-column > .wp-block-buttons:last-child {
	margin-top: auto;
	padding-top: 16px;
}

@media (min-width: 700px) {
	.wp-block-columns.e-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1080px) {
	.wp-block-columns.e-cards--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.wp-block-columns.e-cards--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.e-card {
	position: relative;
	padding: 28px 26px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
	text-align: left;
}

.e-section--navy .e-card {
	border-color: rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: none;
}

.e-card > :last-child {
	margin-bottom: 0;
}

.e-card h3 {
	margin: 0 0 0.45em;
	font-size: 20px;
}

.e-card p {
	color: var(--muted);
}

.e-section--navy .e-card p {
	color: rgba(255, 255, 255, 0.8);
}

.e-card__num {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--brick);
}

.e-card__num::after {
	content: "";
	display: inline-block;
	width: 28px;
	height: 2px;
	margin-left: 10px;
	vertical-align: middle;
	background: currentColor;
	opacity: 0.4;
}

.e-card--media {
	padding: 0;
	overflow: hidden;
}

.e-card--media > .wp-block-image {
	margin: 0;
}

.e-card--media > .wp-block-image img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 0;
}

.e-card--media > :not(.wp-block-image) {
	padding-left: 24px;
	padding-right: 24px;
}

.e-card--media > h3 {
	margin-top: 20px;
}

.e-card--media > :last-child {
	padding-bottom: 24px;
}

.e-card--stat {
	text-align: center;
}

.e-stat__value {
	margin: 0;
	font-size: clamp(30px, 4vw, 40px);
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	white-space: nowrap;
}

.e-stat__value small {
	font-size: 0.5em;
	font-weight: 500;
	margin-right: 4px;
}

.e-stat__label {
	margin: 6px 0 0;
	font-size: 15px;
}

.wp-block-columns.e-stats {
	grid-template-columns: 1fr !important;
	gap: 12px;
	margin-top: 0;
}

.e-stats .e-card--stat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	text-align: left;
}

.e-stats .e-stat__label {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	text-align: right;
}

.e-split--price .e-small {
	margin-top: 14px;
	color: rgba(255, 255, 255, 0.65);
}

.e-calc-wrap {
	padding-top: 8px;
}

.wp-block-columns.e-tables-2 {
	gap: 24px 40px;
	margin-top: 12px;
}

.e-split .badges {
	grid-template-columns: 1fr;
}

/* ---------- Split (image + text) ---------- */

.wp-block-columns.e-split {
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}

.e-split .wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
}

.e-split .wp-block-image.e-portrait img {
	aspect-ratio: 1 / 1;
}

.wp-block-columns.e-split > .wp-block-column {
	align-self: center;
}

@media (max-width: 781px) {
	.wp-block-columns.e-split {
		flex-direction: column;
	}

	.wp-block-columns.e-split > .wp-block-column {
		flex-basis: 100% !important;
		width: 100%;
	}
}

/* ---------- Gallery ---------- */

.wp-block-group.e-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 36px;
}

.e-gallery > * {
	min-width: 0;
	margin: 0 !important;
}

.e-gallery .wp-block-image {
	height: 100%;
}

.e-gallery .wp-block-image img {
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--radius-sm);
}

.e-gallery--mosaic > :first-child {
	grid-column: span 2;
}

.e-gallery--mosaic > :first-child img {
	aspect-ratio: 16 / 10;
}

.wp-block-group.e-gallery--2,
.wp-block-group.e-gallery--3 {
	margin-top: 0;
}

.e-split .e-gallery--3 {
	margin-top: 24px;
}

.wp-block-group.e-gallery--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 700px) {
	.wp-block-group.e-gallery {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 14px;
	}

	.wp-block-group.e-gallery--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wp-block-group.e-gallery--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.e-gallery .wp-block-image img {
		aspect-ratio: 4 / 3;
	}

	.e-gallery--2 .wp-block-image img {
		aspect-ratio: 1 / 1;
	}

	.e-gallery--mosaic > :first-child {
		grid-row: span 2;
	}

	.e-gallery--mosaic > :first-child img {
		aspect-ratio: auto;
	}
}

/* ---------- Lists ---------- */

.wp-block-list.e-checks {
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.e-checks li {
	position: relative;
	margin: 0 0 12px;
	padding-left: 34px;
}

.e-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--navy-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23991d20' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.e-section--tint .e-checks li::before {
	background-color: #fff;
}

.e-section--navy .e-checks li::before {
	background-color: rgba(255, 255, 255, 0.12);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.wp-block-list.e-steps {
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.e-steps li {
	position: relative;
	margin: 0 0 16px;
	padding: 20px 20px 20px 76px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fff;
	counter-increment: step;
}

.e-steps li::before {
	content: counter(step);
	position: absolute;
	left: 20px;
	top: 20px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--navy);
	color: #fff;
	font-weight: 700;
}

.e-steps li strong {
	display: block;
	margin-bottom: 2px;
	color: var(--navy-900);
	font-size: 1.05em;
}

/* ---------- Note / quote ---------- */

.e-note {
	padding: 18px 22px;
	border-left: 4px solid var(--brick);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--brick-50);
	color: var(--ink);
}

.entry-content > .e-note:not(.alignfull):not(.alignwide) {
	width: calc(100% - var(--gutter) * 2);
	max-width: var(--content);
	margin-top: 28px;
	margin-bottom: 28px;
	padding: 18px 22px;
}

.e-note > :last-child {
	margin-bottom: 0;
}

.e-note--info {
	border-left-color: var(--navy);
	background: var(--navy-50);
}

.e-quote {
	position: relative;
	padding: 32px 28px 28px;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
}

.e-quote::before {
	content: "“";
	position: absolute;
	top: -18px;
	left: 20px;
	font-family: Georgia, serif;
	font-size: 88px;
	line-height: 1;
	color: var(--brick);
}

.e-quote p:first-child {
	font-size: clamp(17px, 2vw, 20px);
	font-weight: 500;
	color: var(--navy-900);
}

.e-quote p:last-child {
	margin: 0;
	font-size: 14px;
	color: var(--muted);
}

/* ---------- Table (block) ---------- */

.wp-block-table {
	margin: 28px 0 1.4em;
	overflow-x: auto;
}

.wp-block-table table,
.price-table {
	width: 100%;
	min-width: 0; /* 3 欄以內的表格在手機上直接放得下（每欄至少 6.5 字），4 欄以上另外加寬、左右滑 */
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: #fff;
	font-size: 15px;
	overflow: hidden;
}

.wp-block-table th,
.wp-block-table td,
.price-table :where(th, td) {
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

.wp-block-table thead,
.wp-block-table tfoot {
	border: 0;
}

.wp-block-table thead th,
.price-table thead th {
	background: var(--navy);
	color: #fff;
	font-weight: 700;
}

/* 表頭在桌機上一行；手機上可以換行（在詞的邊界），不然表頭把表格撐得比螢幕寬 */
@media (min-width: 768px) {
	.wp-block-table thead th,
	.price-table thead th {
		white-space: nowrap;
	}
}

.wp-block-table tbody tr:last-child td,
.price-table tbody tr:last-child :where(th, td) {
	border-bottom: 0;
}

.wp-block-table tbody tr:nth-child(even),
.price-table tbody tr:nth-child(even) {
	background: #f7f9fc;
}

.wp-block-table tbody td:first-child,
.price-table tbody th {
	font-weight: 700;
	color: var(--navy-900);
}

.price-table tbody th {
	white-space: nowrap;
}

/* 文章裡的表格：手機上每欄至少 6.5 個字寬，欄位多的表格加寬後左右滑動，避免擠成一欄 6 個字、一列好幾百 px 高 */
.wp-block-table td,
.price-table td {
	min-width: 6.5em;
}

.wp-block-table table:has(tr > :nth-child(4)) {
	min-width: 720px;
}

.wp-block-table table:has(tr > :nth-child(5)) {
	min-width: var(--content);
}

.e-compare td:first-child {
	width: 22%;
}

/* ---------- Price tables (shortcode) ---------- */

/* 欄位多的表格（5 欄以上、各課程價目表）在桌機上可以比文字欄寬，不用左右滑 */
@media (min-width: 1000px) {
	.entry-content > .wp-block-table:has(tr > :nth-child(5)),
	.entry-content > .table-scroll:has(.price-table--matrix) {
		max-width: calc(var(--wide) + var(--gutter) * 2);
	}
}

/* 手機上左右滑的表格：跟 .table-scroll 一樣在左右留白內裁切、有圓角，不要一路貼到螢幕右邊 */
@media (max-width: 767px) {
	.entry-content > .wp-block-table:not(.alignfull):not(.alignwide) {
		margin-left: var(--gutter);
		margin-right: var(--gutter);
		padding-left: 0;
		padding-right: 0;
		border-radius: var(--radius-sm);
	}
}

.table-scroll {
	margin: 20px 0 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: var(--radius-sm);
}

.price-table--matrix {
	min-width: 640px;
	text-align: right;
}

.price-table--matrix :where(td) {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.price-table--matrix thead th {
	text-align: right;
	line-height: 1.35;
}

.price-table--matrix thead th:first-child {
	text-align: left;
}

.price-table thead th small {
	display: block;
	font-size: 12px;
	font-weight: 400;
	opacity: 0.8;
}

.price-table tr.is-base {
	background: var(--brick-50) !important;
}

.price-table tr.is-base :where(th, td) {
	color: var(--brick);
	font-weight: 700;
}

/* 金額欄：桌機放得下一行；手機上可以在「／」後面換行，不然說明欄被擠成一欄 6 個字、一列好幾百 px 高 */
.price-table--local td:nth-child(2) {
	min-width: 7em;
	font-weight: 500;
}

.table-note {
	margin: 10px 0 1.4em;
	font-size: 14px;
	color: var(--muted);
}

/* ---------- Course cards ---------- */

.course-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
	margin-top: 32px;
}

@media (min-width: 640px) {
	.course-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1080px) {
	.course-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.course-grid--n4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.course-card {
	display: flex;
	flex-direction: column;
	padding: 26px 24px 22px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
	text-align: left;
	transition: transform 0.2s, box-shadow 0.2s;
}

.course-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
}

.course-card--guardian {
	background: linear-gradient(180deg, #fff 0%, var(--sand) 100%);
}

.course-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.course-card__name {
	margin: 0;
	font-size: 22px;
}

.course-card__tag {
	flex: none;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--brick-50);
	color: var(--brick);
	font-size: 13px;
	font-weight: 700;
}

.course-card__per {
	margin: 14px 0 6px;
	font-size: 13px;
	color: var(--soft);
	letter-spacing: 0.08em;
}

.course-card__schedule {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.course-card__schedule li {
	margin: 0;
	padding: 4px 10px;
	border-radius: 8px;
	background: var(--navy-50);
	color: var(--navy);
	font-size: 14px;
}

.course-card__schedule strong {
	margin-right: 3px;
	font-size: 16px;
}

.course-card__desc {
	margin: 14px 0 0;
	font-size: 15px;
	color: var(--muted);
}

.course-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	margin: auto 0 0;
	padding-top: 18px;
}

.course-card__label {
	width: 100%;
	font-size: 13px;
	color: var(--soft);
}

.course-card__amount {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--navy-900);
	font-variant-numeric: tabular-nums;
}

.course-card__amount small {
	margin-right: 2px;
	font-size: 15px;
	font-weight: 500;
	color: var(--muted);
}

.course-card__weekly {
	font-size: 14px;
	color: var(--muted);
}

.course-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--border);
	color: var(--brick);
	font-weight: 700;
	text-decoration: none;
}

.course-card__link .icon {
	transition: transform 0.2s;
}

.course-card__link:hover .icon {
	transform: translateX(3px);
}

.course-grid--compact .course-card__price {
	padding-top: 14px;
}

/* ---------- Badges ---------- */

.badges {
	display: grid;
	gap: 14px;
	margin-top: 24px;
}

@media (min-width: 640px) {
	.badges {
		grid-template-columns: repeat(2, 1fr);
	}
}

.badge {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: #fff;
}

.badge img {
	flex: none;
	width: 56px;
	height: 56px;
	object-fit: contain;
}

/* flex 子項預設最小寬度＝內容寬度，長句會撐出框外（手機上文字跑到卡片外面） */
.badge > div {
	min-width: 0;
}

.badge__title {
	margin: 0 0 2px;
	font-weight: 700;
	color: var(--navy-900);
}

.badge__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--muted);
}

/* ---------- FAQ (details) ---------- */

.wp-block-details {
	margin: 0 0 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: #fff;
	transition: box-shadow 0.2s;
}

.wp-block-details[open] {
	box-shadow: var(--shadow);
}

.wp-block-details summary {
	position: relative;
	padding: 18px 56px 18px 20px;
	font-weight: 700;
	color: var(--navy-900);
	list-style: none;
	cursor: pointer;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::after {
	content: "";
	position: absolute;
	right: 20px;
	top: 50%;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	border-radius: 50%;
	background: var(--navy-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23223266' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='12' y1='6' x2='12' y2='18'/%3E%3Cline x1='6' y1='12' x2='18' y2='12'/%3E%3C/svg%3E") center / 12px no-repeat;
	transition: transform 0.2s;
}

.wp-block-details[open] summary::after {
	transform: rotate(45deg);
}

.wp-block-details > :not(summary) {
	margin: 0;
	padding: 0 20px 14px;
	color: var(--muted);
}

.wp-block-details > :not(summary):last-child {
	padding-bottom: 20px;
}

.e-faq-group {
	margin-top: 40px !important;
}

/* ---------- Post cards & blog ---------- */

.e-center .post-grid {
	justify-content: center;
}

@media (min-width: 700px) {
	.e-center .post-grid {
		grid-template-columns: repeat(auto-fit, minmax(280px, 370px));
	}
}

.e-en {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	font-weight: 500;
	color: var(--soft);
	letter-spacing: 0.04em;
}

.post-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 22px;
	margin-top: 32px;
}

@media (min-width: 700px) {
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1080px) {
	.post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.post-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fff;
	overflow: hidden;
	box-shadow: var(--shadow);
	text-align: left;
	transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
}

.post-card__media {
	display: block;
	aspect-ratio: 40 / 21; /* 跟 1200×630 封面圖同比例，封面上的字才不會被裁掉 */
	background: var(--navy-50);
	overflow: hidden;
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

.post-card:hover .post-card__media img {
	transform: scale(1.04);
}

.post-card__placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	color: var(--navy-100);
	font-size: 28px;
	font-weight: 700;
}

.post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 20px 22px 22px;
}

.post-card__title {
	margin: 10px 0 8px;
	font-size: 18px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card__title a {
	color: var(--navy-900);
	text-decoration: none;
}

.post-card__title a:hover {
	color: var(--brick);
}

.post-card__excerpt {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.75;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card__date {
	margin-top: auto;
	font-size: 13px;
	color: var(--soft);
}

.chip {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--brick-50);
	color: var(--brick);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
	text-decoration: none;
}

.chip:hover {
	background: var(--brick);
	color: #fff;
}

.chip--light {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.blog-list {
	max-width: calc(var(--wide) + var(--gutter) * 2);
	margin: 0 auto;
	padding: clamp(32px, 5vw, 56px) var(--gutter) clamp(56px, 8vw, 96px);
}

.cat-tabs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 4px;
	scrollbar-width: none;
}

.cat-tabs::-webkit-scrollbar {
	display: none;
}

.cat-tabs__item {
	flex: none;
	padding: 8px 18px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: #fff;
	color: var(--ink);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

.cat-tabs__item:hover {
	border-color: var(--navy);
	color: var(--navy);
}

.cat-tabs__item.is-active {
	border-color: var(--navy);
	background: var(--navy);
	color: #fff;
}

.blog-list__empty {
	margin-top: 32px;
	color: var(--muted);
}

.pagination,
.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}

.nav-links .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--ink);
	text-decoration: none;
}

.nav-links .page-numbers.current {
	border-color: var(--navy);
	background: var(--navy);
	color: #fff;
}

/* ---------- Article ---------- */

.article-cover {
	max-width: calc(var(--content) + var(--gutter) * 2);
	margin: clamp(-40px, -3vw, -24px) auto 0;
	padding: 0 var(--gutter);
	position: relative;
	z-index: 3;
}

.article-cover img {
	width: 100%;
	max-height: min(70vh, 560px); /* 直式照片不要佔掉一整個畫面 */
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
}

.article-footer {
	max-width: calc(var(--content) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter) clamp(48px, 7vw, 80px);
}

.article-footer__author {
	padding: 20px 22px;
	border-radius: var(--radius-sm);
	background: var(--navy-50);
	font-size: 15px;
	color: var(--muted);
}

.article-footer__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.related {
	padding: clamp(48px, 7vw, 88px) var(--gutter);
	background: var(--sand);
}

.related__inner {
	max-width: var(--wide);
	margin: 0 auto;
}

.related__title {
	margin: 0;
}

/* ---------- Calculator ---------- */

.calc {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	text-align: left;
}

@media (min-width: 1000px) {
	.calc {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
		gap: 36px;
	}
}

.calc__form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
}

.calc__group {
	margin: 0;
	padding: 22px 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fff;
	min-width: 0;
}

.calc__legend {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	padding: 0;
	float: left;
	width: 100%;
	font-size: 17px;
	font-weight: 700;
	color: var(--navy-900);
}

.calc__legend + * {
	clear: both;
}

.calc__step {
	display: grid;
	place-items: center;
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--navy);
	color: #fff;
	font-size: 14px;
}

.calc__hint {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--muted);
}

.calc__hint--warn {
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--brick-50);
	color: var(--brick-700);
}

.calc__hint--info {
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--navy-50);
	color: var(--navy-800);
}

.choice-row,
.choice-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	clear: both;
}

@media (min-width: 560px) {
	.choice-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.choice-grid--rooms {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) and (max-width: 1199px) {
	.choice-grid--rooms {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.choice {
	position: relative;
	display: block;
	cursor: pointer;
}

.choice input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.choice__box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
	min-height: 56px;
	padding: 10px 14px;
	border: 1.5px solid var(--border);
	border-radius: 12px;
	background: #fff;
	line-height: 1.4;
	transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.choice:hover .choice__box {
	border-color: var(--navy-600);
}

.choice input:checked + .choice__box {
	border-color: var(--navy);
	background: var(--navy-50);
	box-shadow: inset 0 0 0 1px var(--navy);
}

.choice input:focus-visible + .choice__box {
	outline: 3px solid rgba(51, 71, 138, 0.35);
	outline-offset: 2px;
}

/* 不能選的選項（例如週數不到 4 週時的半斯巴達） */
.choice.is-disabled {
	cursor: not-allowed;
}

.choice input:disabled + .choice__box {
	border-style: dashed;
	border-color: var(--border);
	background: #f3f4f7;
	box-shadow: none;
	cursor: not-allowed;
}

.choice input:disabled + .choice__box .choice__title,
.choice input:disabled + .choice__box .choice__meta {
	color: var(--soft);
}

.choice__title {
	font-weight: 700;
	color: var(--navy-900);
}

.choice__meta {
	margin-top: 2px;
	font-size: 12.5px;
	color: var(--muted);
}

.weeks {
	display: flex;
	align-items: stretch;
	gap: 10px;
	clear: both;
}

.weeks__btn {
	flex: none;
	width: 52px;
	border: 1.5px solid var(--border);
	border-radius: 12px;
	background: #fff;
	color: var(--navy);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.weeks__btn:hover {
	border-color: var(--navy);
	background: var(--navy-50);
}

.weeks__value {
	display: flex;
	flex: 1;
	align-items: baseline;
	justify-content: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1.5px solid var(--border);
	border-radius: 12px;
	color: var(--muted);
}

.weeks__value input {
	/* 用 em 不用 ch：ch 依字型的「0」字寬計算，iOS 換到 PingFang 後兩位數（12、24）會被切掉 */
	width: 2.2em;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--navy-900);
	font-family: inherit;
	font-size: 34px;
	font-weight: 700;
	text-align: center;
	-moz-appearance: textfield;
}

.weeks__value input::-webkit-inner-spin-button,
.weeks__value input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.weeks__value input:focus {
	outline: none;
}

.weeks__range {
	width: 100%;
	margin: 16px 0 0;
	accent-color: var(--brick);
}

.calc__result {
	padding: 26px 22px;
	border-radius: var(--radius);
	background: var(--navy-900);
	color: rgba(255, 255, 255, 0.86);
	box-shadow: var(--shadow-lg);
}

@media (min-width: 1000px) {
	.calc__result {
		position: sticky;
		top: calc(var(--header-h) + 20px);
	}
}

.calc__result h3 {
	margin: 0 0 4px;
	color: #fff;
	font-size: 20px;
}

.calc__summary {
	margin: 0 0 18px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
}

/* 結果最上面先給台幣合計（完整的換算在最下面的台幣框）：桌機的結果欄比表單長，台幣框要捲很下面才看得到 */
.calc__peek {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 10px;
	margin: -6px 0 18px;
	padding: 10px 14px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.1);
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
}

.calc__peek strong {
	font-size: 20px;
	color: #ffe2b8;
	font-variant-numeric: tabular-nums;
}

.calc__peek a {
	margin-left: auto;
	color: #fff;
	font-size: 13px;
}

.calc__block {
	margin-top: 16px;
	padding: 16px 18px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.06);
}

.calc__block h4 {
	margin: 0 0 8px;
	font-size: 15px;
	color: #fff;
	letter-spacing: 0.06em;
}

.calc__rows {
	margin: 0;
}

.calc__row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 6px 0;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
	font-size: 15px;
}

.calc__row:last-child {
	border-bottom: 0;
}

.calc__row dt {
	margin: 0;
}

.calc__row dt small {
	display: block;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.55);
}

.calc__row dd {
	margin: 0;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	color: #fff;
}

/* 金額區間（約 ₱4,200～12,600）：說明先讓位；整段放不下時換到說明下面一行、靠右（和台幣框一樣），
   連一行都放不下才在「～」後面換行（數字包在 .nowrap 裡）。不能讓 dd 跟著說明一起被壓窄，不然放得下也會斷成兩行 */
.calc__row--range {
	flex-wrap: wrap;
}

.calc__row--range dt {
	flex: 1 1 7em;
}

.calc__row dd.calc__range {
	margin-left: auto;
	white-space: normal;
	text-align: right;
}

.calc__row--minus dd {
	color: #8ff0b6;
}

.calc__row--pending dd {
	color: rgba(255, 255, 255, 0.55);
	font-size: 13px;
}

.calc__total {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-top: 10px;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
}

.calc__total > span {
	font-size: 14px;
	white-space: nowrap;
}

.calc__total strong {
	margin-left: auto; /* 金額放不下、換到標籤下一行時也靠右，和其他金額對齊 */
	font-size: clamp(28px, 4vw, 36px);
	white-space: normal; /* 數字包在 .nowrap 裡不會斷開，放不下時只在「～」後面換行 */
	line-height: 1.1;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.calc__total strong small {
	margin-right: 4px;
	font-size: 0.45em;
	font-weight: 500;
}

.calc__note {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.65);
}

.calc__actions {
	display: grid;
	gap: 10px;
	margin-top: 20px;
}

.calc__actions .btn {
	width: 100%;
}

.calc__copy {
	border-color: rgba(255, 255, 255, 0.3);
	background: transparent;
	color: #fff;
}

.calc__copy:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.calc__copybox {
	width: 100%;
	margin-top: 4px;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font: inherit;
	font-size: 13px;
	line-height: 1.6;
}

.calc__fine {
	margin: 16px 0 0;
	font-size: 12.5px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.55);
}

/* 換算成台幣：整個試算的總數，比美元、披索兩個框醒目一點 */
.calc__block--twd {
	border: 1px solid rgba(255, 255, 255, 0.28);
	background: rgba(255, 255, 255, 0.11);
}

.calc__block--twd .calc__total strong {
	color: #ffe2b8;
}

/* 台幣金額比較長（NT$32,997～37,285）：窄手機上放不下時，金額換到說明下面一行、靠右 */
.calc__block--twd .calc__row {
	flex-wrap: wrap;
}

.calc__block--twd .calc__row dt {
	flex: 1 1 7em;
}

.calc__block--twd .calc__row dd {
	margin-left: auto;
}

/* ---------- 課程表 [eroom_schedule] ---------- */

.schedule {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	margin: 28px 0 0;
	text-align: left;
}

@media (min-width: 900px) {
	.schedule {
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
		gap: 28px;
		align-items: start;
	}
}

/* 內文的 .entry-content li 會幫每個 li 加 0.35em 下邊距（權重一樣，這條排在後面）；課程表的列和節次格子要貼齊 */
.schedule li {
	margin: 0;
}

.schedule__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
	overflow: hidden;
}

.schedule__item {
	display: grid;
	grid-template-columns: 7.2em minmax(0, 1fr);
	gap: 2px 14px;
	align-items: baseline;
	margin: 0;
	padding: 13px 18px 13px 16px;
	border-bottom: 1px solid var(--border);
	border-left: 5px solid var(--navy);
}

.schedule__item:last-child {
	border-bottom: 0;
}

.schedule__item--class {
	background: var(--navy-50);
}

.schedule__item--meal {
	border-left-color: #d8b56a;
}

.schedule__item--elective {
	border-left-color: var(--navy-600);
}

.schedule__item--semi {
	border-left-color: var(--brick);
}

.schedule__item--curfew {
	border-left-color: var(--soft);
}

.schedule__time {
	font-weight: 700;
	color: var(--navy-900);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.schedule__body {
	min-width: 0;
}

.schedule__title {
	margin: 0;
	font-weight: 700;
	color: var(--navy-900);
	line-height: 1.6;
}

.schedule__desc {
	margin: 2px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--muted);
}

.schedule__tag {
	display: inline-block;
	margin: 0 0 0 8px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--navy-100);
	color: var(--navy);
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.7;
	white-space: nowrap;
	vertical-align: 0.08em;
}

.schedule__desc .schedule__tag:first-child {
	margin-left: 0;
	margin-right: 6px;
}

.schedule__tag--semi {
	background: var(--brick-50);
	color: var(--brick-700);
}

/* 窄手機：時間放在標題上面，不然右邊只剩幾個字寬 */
@media (max-width: 479px) {
	.schedule__item {
		grid-template-columns: minmax(0, 1fr);
		padding: 12px 16px 12px 14px;
	}

	.schedule__time {
		font-size: 14px;
		color: var(--navy-600);
	}
}

.schedule__periods {
	padding: 22px 20px 20px;
	border-radius: var(--radius);
	background: var(--navy-900);
	color: rgba(255, 255, 255, 0.86);
	box-shadow: var(--shadow-lg);
}

.schedule__periods-title {
	margin: 0 0 14px;
	font-weight: 700;
	color: #fff;
}

/* 節次表：上午、下午兩欄 */
.schedule__period-cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.schedule__period-head {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.6);
}

.schedule__period-list {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* 「第 1 節」在上、時間在下。不做「放得下就排一行」：8:00～8:50 比 10:00～10:50 短，常見手機寬度會一格一行、一格兩行，高低不齊 */
.schedule__period {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 7px 10px;
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.08);
	line-height: 1.5;
}

.schedule__period-num {
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.6);
	white-space: nowrap;
}

.schedule__period-time {
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 479px) {
	.schedule__periods {
		padding: 20px 16px 18px;
	}

	.schedule__period-cols {
		gap: 8px;
	}

	.schedule__period {
		padding: 6px 9px;
	}

	.schedule__period-time {
		font-size: 14.5px;
	}
}

.schedule__periods-note {
	margin: 16px 0 0;
	font-size: 13.5px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.7);
}

/* ---------- Contact ---------- */

/* ---------- Forms（inc/forms.php、assets/js/forms.js） ---------- */

.eform {
	position: relative;
	margin-top: 24px;
	text-align: left;
}

.eform [hidden] {
	display: none !important;
}

.eform__form {
	display: grid;
	gap: 14px;
}

.eform__section {
	margin: 0;
	padding: 22px 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fff;
	min-width: 0;
}

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

.entry-content .eform__title,
.eform__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-size: 18px;
	line-height: 1.4;
	color: var(--navy-900);
}

.eform__note {
	margin: -8px 0 14px;
	font-size: 14px;
	color: var(--muted);
}

.eform__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
}

@media (min-width: 640px) {
	.eform__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 20px;
	}

	.eform__grid > .field {
		grid-column: 1 / -1;
	}

	.eform__grid > .field--half {
		grid-column: auto;
	}
}

.field {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.field__label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0 0 6px;
	padding: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--navy-900);
}

legend.field__label {
	float: left;
	width: 100%;
	margin-bottom: 8px;
}

legend.field__label + * {
	clear: both;
}

.field__req {
	display: inline-block;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--brick-50);
	color: var(--brick);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.7;
}

.field__input {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 11px 14px;
	border: 1.5px solid var(--soft);
	border-radius: 12px;
	background: #fff;
	color: var(--ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	transition: border-color 0.15s, box-shadow 0.15s;
	-webkit-appearance: none;
	appearance: none;
}

.field__input::placeholder {
	color: #6b7385;
}

.field__input:hover {
	border-color: var(--navy-600);
}

.field__input:focus {
	outline: none;
	border-color: var(--navy);
	box-shadow: 0 0 0 3px rgba(51, 71, 138, 0.18);
}

select.field__input {
	padding-right: 42px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23223266' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
	cursor: pointer;
}

textarea.field__input {
	min-height: 110px;
	resize: vertical;
}

input[type="date"].field__input {
	min-height: 48px;
	text-align: left;
}

input[type="date"].field__input::-webkit-date-and-time-value {
	text-align: left;
}

.field__input[aria-invalid="true"],
.field.is-invalid .choice__box {
	border-color: var(--brick);
}

.field__input[aria-invalid="true"] {
	background-color: #fffafa;
}

.field__hint {
	margin: 6px 0 0;
	font-size: 13.5px;
	line-height: 1.7;
	color: var(--muted);
}

.field__hint a {
	color: var(--navy);
}

.field__hint--warn,
.field__hint--info {
	padding: 9px 13px;
	border-radius: 10px;
}

.field__hint--warn {
	background: var(--brick-50);
	color: var(--brick-700);
}

.field__hint--info {
	background: var(--navy-50);
	color: var(--navy-800);
}

.field__error {
	position: relative;
	margin: 6px 0 0;
	padding-left: 22px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--brick-700);
}

.field__error::before {
	content: "!";
	position: absolute;
	left: 0;
	top: 3px;
	display: grid;
	place-items: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--brick);
	color: #fff;
	font-size: 11px;
	line-height: 1;
}

.eform__section > .field__error {
	margin-top: 12px;
}

/* 房型這類多行卡片：內容靠上，說明換行時標題還是對齊 */
.choice-grid .choice__box {
	justify-content: flex-start;
}

/* 三個一排，但一張放不下四個中文字（「費用估價」約需 96px）時自動變成兩個一排。
   小手機上三欄每張只剩 73～86px，字會被拆成兩行 */
.choice-row--3 {
	grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
}

.choice-row--stack3 {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 560px) {
	.choice-row--stack3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.field .choice__box {
	min-height: 50px;
	border-color: var(--soft);
	text-align: center;
}

.field .choice input:checked + .choice__box {
	border-color: var(--navy);
}

.eform__consent {
	padding: 18px 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--navy-50);
}

.eform__notice {
	margin: 0 0 12px;
	font-size: 13.5px;
	line-height: 1.7;
	color: var(--navy-800);
}

.consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	line-height: 1.7;
	cursor: pointer;
}

.consent input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 4px 0 0;
	accent-color: var(--navy);
}

.consent a {
	color: var(--navy);
	font-weight: 700;
}

.eform__alert {
	padding: 14px 18px;
	border-left: 4px solid var(--brick);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--brick-50);
	color: var(--brick-700);
	font-weight: 700;
}

.eform__alert p {
	margin: 0;
}

.eform__alert-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

.eform__alert-actions .btn {
	min-height: 42px;
	padding: 8px 18px;
	font-size: 15px;
}

.eform__copy {
	display: block;
	width: 100%;
	margin-top: 10px;
	padding: 10px;
	border: 1px solid var(--border);
	border-radius: 10px;
	font: inherit;
	font-size: 14px;
	font-weight: 400;
	color: var(--ink);
}

.eform__prefill {
	margin: 0;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	background: var(--navy-50);
	color: var(--navy-800);
	font-size: 15px;
}

.eform__submit {
	display: grid;
	gap: 10px;
	justify-items: stretch;
	padding-top: 4px;
}

@media (min-width: 640px) {
	.eform__submit {
		justify-items: start;
	}
}

.eform__submit .btn[disabled] {
	opacity: 0.7;
	cursor: progress;
	transform: none;
}

.eform__fine {
	margin: 0;
	font-size: 13.5px;
	color: var(--muted);
}

.eform__done {
	margin-top: 24px;
	padding: 36px 24px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
	text-align: center;
}

.eform__done:focus {
	outline: none;
}

.eform__done .eform__done-icon {
	width: 56px;
	height: 56px;
	padding: 14px;
	border-radius: 50%;
	background: rgba(6, 199, 85, 0.12);
	color: var(--line-700);
}

.entry-content .eform__done h3,
.eform__done h3 {
	margin: 14px 0 8px;
	font-size: 22px;
	color: var(--navy-900);
}

.eform__done p {
	max-width: 520px;
	margin: 0 auto 12px;
}

.eform__ref strong {
	font-size: 18px;
	letter-spacing: 0.04em;
	color: var(--navy);
}

.contact-list {
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 10px;
}

.contact-list .icon {
	margin-top: 0.35em;
	opacity: 0.7;
}

/* ---------- CTA band ---------- */

.cta-band {
	padding: clamp(48px, 7vw, 80px) var(--gutter);
	background: linear-gradient(120deg, var(--brick) 0%, #7a1a2f 45%, var(--navy) 100%);
	color: rgba(255, 255, 255, 0.9);
}

.cta-band__inner {
	display: grid;
	gap: 28px;
	align-items: center;
	max-width: var(--wide);
	margin: 0 auto;
}

@media (min-width: 960px) {
	.cta-band__inner {
		grid-template-columns: 1fr auto;
		gap: 48px;
	}
}

.cta-band__eyebrow {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: #ffd2cf;
}

.cta-band__title {
	margin: 0 0 12px;
	color: #fff;
	font-size: clamp(22px, 3vw, 32px);
}

.cta-band__text {
	margin: 0;
	max-width: 640px;
	font-size: 15px;
}

.cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

@media (max-width: 559px) {
	.cta-band__title br {
		display: none;
	}

	.cta-band__actions .btn {
		flex: 1 1 100%;
	}
}

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

.site-footer {
	padding: clamp(48px, 7vw, 72px) var(--gutter) 24px;
	background: var(--navy-900);
	color: rgba(255, 255, 255, 0.72);
	font-size: 15px;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.88);
	text-decoration: none;
}

.site-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.site-footer__grid {
	display: grid;
	gap: 36px;
	max-width: var(--wide);
	margin: 0 auto;
}

@media (min-width: 900px) {
	.site-footer__grid {
		grid-template-columns: 1.5fr 1fr 1.2fr;
		gap: 56px;
	}
}

.brand--footer,
.brand--footer:hover {
	margin-bottom: 16px;
	color: #fff;
}

.brand--footer .brand__logo {
	padding: 3px;
	border-radius: 50%;
	background: #fff;
}

.brand--footer .brand__sub {
	color: rgba(255, 255, 255, 0.6);
}

.site-footer__marks {
	display: flex;
	gap: 10px;
}

.site-footer__marks img {
	padding: 4px;
	border-radius: 50%;
	background: #fff;
}

.site-footer__title {
	margin: 0 0 14px;
	font-size: 15px;
	color: #fff;
	letter-spacing: 0.12em;
}

.footer-menu,
.site-footer__nav .menu {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social a {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.social a:hover {
	background: var(--brick);
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	max-width: var(--wide);
	margin: 40px auto 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 13px;
}

.site-footer__bottom p {
	margin: 0;
}

/* ---------- Mobile bar ---------- */

.mobile-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, 0.96);
	border-top: 1px solid var(--border);
	box-shadow: 0 -6px 20px rgba(20, 29, 64, 0.08);
}

.mobile-bar__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 48px;
	border-radius: 12px;
	font-weight: 700;
	text-decoration: none;
}

.mobile-bar__btn--price {
	background: var(--navy-50);
	color: var(--navy);
}

.mobile-bar__btn--line {
	background: var(--line);
	color: #fff;
}

.mobile-bar__btn--line:hover {
	color: #fff;
}

body {
	padding-bottom: calc(66px + env(safe-area-inset-bottom));
}

@media (min-width: 1080px) {
	.mobile-bar {
		display: none;
	}

	body {
		padding-bottom: 0;
	}
}

/* ---------- 404 ---------- */

.not-found {
	max-width: 720px;
	margin: 0 auto;
	padding: clamp(64px, 10vw, 120px) var(--gutter);
	text-align: center;
}

.not-found__code {
	margin: 0;
	font-size: clamp(72px, 12vw, 120px);
	font-weight: 700;
	line-height: 1;
	color: var(--navy-100);
}

.not-found__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 24px 0 32px;
	padding: 0;
	list-style: none;
}

.not-found__links a {
	display: inline-block;
	padding: 6px 16px;
	border: 1px solid var(--border);
	border-radius: 999px;
	text-decoration: none;
}

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

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

@media print {
	.site-header,
	.mobile-bar,
	.cta-band,
	.site-footer {
		display: none;
	}
}
