/* 全站基本樣式 */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: #fff;
	font-family: var(--ic-font-body);
	font-size: 18px;
	font-weight: 400;
	line-height: 27px;
	color: var(--ic-text);
	-webkit-font-smoothing: antialiased;
	word-break: break-word;
}

img,
svg {
	vertical-align: middle;
}

a {
	color: inherit;
	text-decoration: none;
}

p {
	margin: 0;
}

button {
	font: inherit;
	color: inherit;
}

/* 圖示：與 Thrive 的 .tcb-icon 相同的繪製設定 */
.ic-icon {
	display: inline-block;
	box-sizing: content-box;
	fill: currentColor;
	stroke: currentColor;
	stroke-width: 0;
}

/*
 * 原網站「主題版型」的頁面（預設頁面、課程章節頁，body 有 ic-theme-tpl）：頁面是直向 flex，
 * 內容不夠一個螢幕高時，多出的高度分給主要內容（與 Thrive 相同），頁尾貼齊畫面底部。
 */
.ic-theme-tpl .ic-page {
	display: flex;
	flex-direction: column;
}

/* 尚未完成的頁面範本（index.php 暫用） */
.ic-main--placeholder {
	max-width: var(--ic-content-width);
	margin: 0 auto;
	padding: 40px 20px;
	min-height: 60vh;
}
