/* Body text uses each device's built-in CJK font; only large headings download Noto Sans TC. */
:root {
	--icba-body-font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif;
	--icba-heading-font: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
}

/* Elementor's global.css sets Noto Sans TC on hundreds of selectors, so overriding its variables is not enough. */
body,
body :where(p, li, a, span, label, input, select, textarea, button, td, th, dt, dd, small, strong, em, summary, figcaption, blockquote, div, h3, h4, h5, h6):where(:not([class*="tutor-icon"], [class^="fa-"], [class*=" fa-"], [class*="eicon-"], [class*="ff-icon"], .dashicons, .star-rating, .star-rating *)) {
	font-family: var(--icba-body-font) !important;
}

body :where(h1, h2),
body :where(h1, h2) :where(*):where(:not([class*="tutor-icon"], [class^="fa-"], [class*=" fa-"], [class*="eicon-"], [class*="ff-icon"], .dashicons, .star-rating, .star-rating *)) {
	font-family: var(--icba-heading-font) !important;
}

/* Header controls: 44px hit area without moving the 18px icons. */
.ct-header :where(.ct-header-trigger, .ct-header-account, .ct-header-cart > .ct-cart-item) {
	align-items: center;
	display: inline-flex;
	justify-content: center;
	margin: -13px;
	min-height: 44px;
	min-width: 44px;
}

/* Mobile header: the logo is 70px high (2560x792 source) = 226px wide, wider than its 187px column,
   so it ran under the account icon. Keep it inside its column and scale the height with it. */
.ct-header [data-device="mobile"] :where(.site-branding, .site-logo-container) {
	max-width: 100%;
	min-width: 0;
}

.ct-header [data-device="mobile"] .site-logo-container img {
	height: auto;
	max-width: 100%;
	width: auto;
}

/* Blog index title */
.icba-blog-title {
	color: var(--icba-global-blue);
	font-size: clamp(28px, 5vw, 40px);
	line-height: 1.25;
	margin: 0 0 32px;
}

/* Ended events: must not read as a live signup button. */
.icba-pickleball-page .pb-btn.pb-btn-primary[aria-disabled="true"],
.icba-pickleball-page .pb-btn.pb-btn-primary[aria-disabled="true"]:hover {
	background: #e3e8ee;
	border-color: transparent;
	box-shadow: none;
	color: #4a5563;
	cursor: not-allowed;
	transform: none;
}

.icba-pickleball-page .pb-form-embed:focus {
	outline: none;
}

/* 404 */
.icba-404 {
	box-sizing: border-box;
	margin: 0 auto;
	max-width: 720px;
	padding: clamp(48px, 10vw, 120px) 20px;
	text-align: center;
}

.icba-404-code {
	color: var(--icba-energy-blue);
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	letter-spacing: 0.12em;
	margin: 0 0 12px;
}

.icba-404 h1 {
	color: var(--icba-global-blue);
	font-size: clamp(30px, 6vw, 46px);
	line-height: 1.25;
	margin: 0 0 16px;
}

.icba-404-lead {
	color: var(--icba-ink);
	font-size: 17px;
	line-height: 1.8;
	margin: 0 0 32px;
}

.icba-404-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-bottom: 40px;
}

.icba-404-button {
	align-items: center;
	background: #fff;
	border: 1px solid var(--icba-global-blue);
	color: var(--icba-global-blue);
	display: inline-flex;
	font-weight: 600;
	justify-content: center;
	text-decoration: none;
	white-space: nowrap;
}

.icba-404-button.is-primary {
	background: var(--icba-global-blue);
	color: #fff;
}

.icba-404-search {
	margin: 0 auto;
	max-width: 480px;
}
