/*!
 * SimpleLearn Site — 全站版型 v0.2.0
 * 只在 body.sl-v2（設定 → SimpleLearn 啟用全站版型）時載入。
 * 設計系統與首頁 home.css 相同；所有自訂元件使用 sl- 前綴。
 */

/* ---------- 1. 設計變數 ---------- */
:root {
	--sl-ink: #1c2a36;
	--sl-ink-2: #4a5866;
	--sl-ink-3: #6c7a87;
	--sl-teal: #0e7378;
	--sl-teal-ink: #0a5a5e;
	--sl-teal-soft: #e2f0f0;
	--sl-paper: #ffffff;
	--sl-mist: #f3f6f7;
	--sl-line: #dbe2e6;
	--sl-line-2: #c7d1d7;
	--sl-mark: #fff1b8;
	--sl-ftr: #1c2a36;
	--sl-f-display: "Chiron GoRound TC", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
	--sl-f-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
	--sl-f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
	--sl-wrap: 1200px;
	--sl-gutter: 20px;

	/* Blocksy：全站字型改用 Noto Sans TC */
	--theme-font-stack-default: var(--sl-f-body);
}

body.sl-v2 {
	background: var(--sl-paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.sl-v2 ::selection { background: var(--sl-teal-soft); color: var(--sl-ink); }

/* Blocksy 自身頁面（未改版的範本）字級：手機縮小 H1／H2 */
@media (max-width: 759px) {
	body.sl-v2 h1 { --theme-font-size: 28px; --theme-line-height: 1.4; }
	body.sl-v2 h2 { --theme-font-size: 24px; --theme-line-height: 1.45; }
}

/* ---------- 2. 頁首（Blocksy 頁首微調） ---------- */
body.sl-v2 .ct-header [data-row*="middle"] {
	--theme-border-bottom: 1px solid var(--sl-line);
}
body.sl-v2 .ct-header [data-id="menu"] > ul > li > a {
	--theme-font-weight: 500;
	--theme-text-transform: none;
	--theme-font-size: 15px;
	--theme-link-initial-color: var(--sl-ink-2);
	--theme-link-hover-color: var(--sl-ink);
	--theme-link-active-color: var(--sl-ink);
	letter-spacing: .01em;
}
body.sl-v2 .ct-header [data-id="menu"] > ul > li { position: relative; }
body.sl-v2 .ct-header [data-id="menu"] > ul > li:is(.current-menu-item, .current-menu-ancestor, .current-menu-parent, .current-post-ancestor, .current-category-ancestor) > a {
	color: var(--sl-ink);
}
body.sl-v2 .ct-header [data-id="menu"] > ul > li:is(.current-menu-item, .current-menu-ancestor, .current-menu-parent, .current-post-ancestor, .current-category-ancestor) > a::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: calc(50% - 18px);
	height: 2px;
	border-radius: 2px;
	background: var(--sl-teal);
}
/* 下拉選單：白底卡片 */
body.sl-v2 .ct-header [data-id="menu"] .sub-menu {
	--dropdown-divider: 1px solid var(--sl-line);
	--theme-box-shadow: 0 12px 32px -12px rgba(16, 30, 40, .28);
	--theme-border-radius: 12px;
	background: var(--sl-paper);
	border: 1px solid var(--sl-line);
}
body.sl-v2 .ct-header [data-id="menu"] .sub-menu .ct-menu-link {
	--theme-link-initial-color: var(--sl-ink-2);
	--theme-link-hover-color: var(--sl-teal-ink);
	--theme-font-size: 14.5px;
	--theme-font-weight: 500;
}

/* 手機選單（off-canvas）：搜尋框、關於、社群 */
.sl-oc-search { padding: 0 0 18px; width: 100%; }
.sl-oc-search .sl-searchbox { max-width: none; }
.sl-oc-foot { display: grid; gap: 12px; padding-top: 18px; margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, .14); width: 100%; font-size: 15px; }
.sl-oc-foot a { color: inherit; }
#offcanvas .ct-menu-link { --theme-link-active-color: #86d6d7; }
#offcanvas li:is(.current-menu-item, .current-menu-ancestor, .current-menu-parent, .current-post-ancestor, .current-category-ancestor) > .ct-sub-menu-parent > a,
#offcanvas li:is(.current-menu-item, .current-menu-ancestor, .current-menu-parent, .current-post-ancestor, .current-category-ancestor) > a { color: #86d6d7; }

/* ---------- 3. 版面基礎 ---------- */
.sl-site { color: var(--sl-ink); font-family: var(--sl-f-body); font-size: 16px; line-height: 1.7; }
.sl-site a { text-decoration: none; }
.sl-site a:focus-visible,
.sl-site button:focus-visible,
.sl-site summary:focus-visible,
.sl-ftr a:focus-visible { outline: 2px solid var(--sl-teal); outline-offset: 3px; border-radius: 4px; }
.sl-site :where(h1, h2, h3, h4) { text-wrap: balance; color: var(--sl-ink); }
/* 版型元件歸零；內文（.sl-prose）保留 Blocksy 的段落節奏 */
.sl-site :where(p, ul, ol, figure, h1, h2, h3, h4):not(.sl-prose *) { margin: 0; }
:is(.sl-site, .sl-ftr) .sl-wrap {
	max-width: var(--sl-wrap);
	margin-left: auto;
	margin-right: auto;
	padding-left: max(var(--sl-gutter), env(safe-area-inset-left, 0px));
	padding-right: max(var(--sl-gutter), env(safe-area-inset-right, 0px));
	box-sizing: border-box;
}
:is(.sl-site, .sl-ftr) .sl-wrap.sl-narrow { max-width: 1000px; }
:is(.sl-site, .sl-ftr) .sl-stack { display: grid; gap: 12px; align-content: start; }
:is(.sl-site, .sl-ftr) .sl-eyebrow, :is(.sl-site, .sl-ftr) .sl-label { font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--sl-teal); margin: 0; }
:is(.sl-site, .sl-ftr) .sl-label { color: var(--sl-ink-3); letter-spacing: .06em; font-size: 14px; }

/* 麵包屑 */
:is(.sl-site, .sl-ftr) .sl-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 13.5px; color: var(--sl-ink-3); }
:is(.sl-site, .sl-ftr) .sl-crumbs li + li::before { content: "›"; margin: 0 8px; opacity: .6; }
:is(.sl-site, .sl-ftr) .sl-crumbs a { color: var(--sl-ink-3); }
:is(.sl-site, .sl-ftr) .sl-crumbs a:hover { color: var(--sl-teal-ink); text-decoration: underline; text-underline-offset: 3px; }

/* 標籤、日期、卡片標題 */
:is(.sl-site, .sl-ftr) .sl-chip {
	display: inline-block; font-size: 12.5px; font-weight: 500; line-height: 1.6; white-space: nowrap;
	color: var(--sl-teal-ink); background: var(--sl-teal-soft); padding: 2px 9px; border-radius: 999px;
}
a.sl-chip:hover { background: var(--sl-teal); color: #fff; }
:is(.sl-site, .sl-ftr) .sl-chip.is-solid { background: var(--sl-teal); color: #fff; }
:is(.sl-site, .sl-ftr) .sl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--sl-ink-3); }
:is(.sl-site, .sl-ftr) .sl-date { font-size: 13px; white-space: nowrap; }
:is(.sl-site, .sl-ftr) .sl-card-t { display: block; font-family: var(--sl-f-body); font-weight: 700; color: var(--sl-ink); line-height: 1.5; margin: 0; }
:is(.sl-site, .sl-ftr) .sl-card-ex { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--sl-ink-2); font-size: 15px; line-height: 1.7; }
:is(.sl-site, .sl-ftr) .sl-more { font-size: 14.5px; font-weight: 500; color: var(--sl-teal); white-space: nowrap; }
:is(.sl-site, .sl-ftr) .sl-more:hover { text-decoration: underline; text-underline-offset: 4px; }
:is(.sl-site, .sl-ftr) .sl-sec-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
:is(.sl-site, .sl-ftr) .sl-sec-t { font-family: var(--sl-f-display); font-weight: 700; font-size: 22px; line-height: 1.35; margin: 0; }
:is(.sl-site, .sl-ftr) .sl-sec-t-sm { font-size: 19px; }

/* 搜尋框 */
.sl-searchbox {
	display: flex; align-items: center; gap: 8px; width: 100%; max-width: 560px; box-sizing: border-box;
	border: 1px solid var(--sl-line-2); background: var(--sl-paper); border-radius: 999px; padding: 5px 5px 5px 16px;
}
.sl-searchbox svg { width: 18px; height: 18px; flex: none; color: var(--sl-ink-3); }
.sl-searchbox input[type="search"] {
	flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important;
	font: inherit; font-size: 16px; color: var(--sl-ink); padding: 6px 0 !important; height: auto !important; outline: none;
}
.sl-searchbox button {
	font: inherit; font-size: 14.5px; font-weight: 500; line-height: 1.4; border: 0; border-radius: 999px;
	background: var(--sl-ink); color: #fff; padding: 8px 18px; cursor: pointer; min-height: 38px;
}
.sl-searchbox button:hover { background: var(--sl-teal-ink); }
.sl-searchbox:focus-within { border-color: var(--sl-teal); box-shadow: 0 0 0 3px var(--sl-teal-soft); }

/* ---------- 4. 標題帶（分類、搜尋、固定頁） ---------- */
:is(.sl-site, .sl-ftr) .sl-band { background: var(--sl-mist); border-bottom: 1px solid var(--sl-line); padding-block: 28px 26px; }
:is(.sl-site, .sl-ftr) .sl-band-title { font-family: var(--sl-f-display); font-weight: 700; font-size: 28px; line-height: 1.3; margin: 0; }
:is(.sl-site, .sl-ftr) .sl-lead { color: var(--sl-ink-2); font-size: 15.5px; line-height: 1.75; max-width: 42em; margin: 0; }
:is(.sl-site, .sl-ftr) .sl-stat { font-size: 14px; color: var(--sl-ink-3); margin: 0; }
:is(.sl-site, .sl-ftr) .sl-stat b { font-weight: 500; color: var(--sl-ink); }
:is(.sl-site, .sl-ftr) .sl-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
:is(.sl-site, .sl-ftr) .sl-subnav a {
	font-size: 14px; color: var(--sl-ink-2); border: 1px solid var(--sl-line-2); background: var(--sl-paper);
	border-radius: 999px; padding: 5px 13px; white-space: nowrap; line-height: 1.5;
}
:is(.sl-site, .sl-ftr) .sl-subnav a em { font-style: normal; font-size: 12.5px; color: var(--sl-ink-3); margin-left: 6px; }
:is(.sl-site, .sl-ftr) .sl-subnav a:hover { border-color: var(--sl-teal); color: var(--sl-teal-ink); }
:is(.sl-site, .sl-ftr) .sl-subnav a[aria-current] { background: var(--sl-ink); border-color: var(--sl-ink); color: #fff; }
:is(.sl-site, .sl-ftr) .sl-subnav a[aria-current] em { color: #fff; opacity: .75; }
@media (min-width: 760px) {
	:is(.sl-site, .sl-ftr) .sl-band { padding-block: 44px 38px; }
	:is(.sl-site, .sl-ftr) .sl-band-title { font-size: 36px; }
}

/* ---------- 5. 文章卡片（分類、延伸閱讀） ---------- */
:is(.sl-site, .sl-ftr) .sl-cards { display: grid; gap: 0; }
:is(.sl-site, .sl-ftr) .sl-card {
	display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start;
	padding-block: 16px; border-bottom: 1px solid var(--sl-line); color: inherit; min-width: 0;
}
:is(.sl-site, .sl-ftr) .sl-cards > .sl-card:first-child { padding-top: 4px; }
:is(.sl-site, .sl-ftr) .sl-card-media { display: block; border-radius: 8px; overflow: hidden; background: var(--sl-mist); aspect-ratio: 1200 / 630; }
/* 封面統一 1200×630（與首頁相同）；舊 3:2 封面置中裁切，個別可用 sl_cover_focus 指定位置 */
:is(.sl-site, .sl-ftr) .sl-card-media img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
:is(.sl-site, .sl-ftr) .sl-card-body { display: grid; gap: 6px; min-width: 0; }
:is(.sl-site, .sl-ftr) .sl-card .sl-card-t { font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
:is(.sl-site, .sl-ftr) .sl-card .sl-card-ex { display: none; }
:is(.sl-site, .sl-ftr) .sl-card:hover .sl-card-t { color: var(--sl-teal-ink); }
@media (min-width: 600px) {
	:is(.sl-site, .sl-ftr) .sl-cards { grid-template-columns: 1fr 1fr; gap: 32px 26px; }
	:is(.sl-site, .sl-ftr) .sl-card { grid-template-columns: 1fr; gap: 12px; padding: 0; border: 0; }
	:is(.sl-site, .sl-ftr) .sl-cards > .sl-card:first-child { padding-top: 0; }
	:is(.sl-site, .sl-ftr) .sl-card-media { border-radius: 10px; }
	:is(.sl-site, .sl-ftr) .sl-card .sl-card-t { font-size: 17px; }
	:is(.sl-site, .sl-ftr) .sl-card .sl-card-ex { display: -webkit-box; }
}
@media (min-width: 960px) {
	:is(.sl-site, .sl-ftr) .sl-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 30px; }
}

/* ---------- 6. 分類頁 ---------- */
:is(.sl-site, .sl-ftr) .sl-arch-body { padding-block: 32px 64px; }
:is(.sl-site, .sl-ftr) .sl-arch-stack { display: grid; gap: 36px; }
:is(.sl-site, .sl-ftr) .sl-serbar { display: grid; gap: 12px; }
:is(.sl-site, .sl-ftr) .sl-serlist { display: grid; gap: 10px; }
:is(.sl-site, .sl-ftr) .sl-ser, :is(.sl-site, .sl-ftr) .sl-tool {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center;
	border: 1px solid var(--sl-line); border-radius: 12px; padding: 14px 16px; background: var(--sl-paper); color: inherit;
}
:is(.sl-site, .sl-ftr) .sl-ser:hover, :is(.sl-site, .sl-ftr) .sl-tool:hover { border-color: var(--sl-teal); }
:is(.sl-site, .sl-ftr) .sl-ser strong, :is(.sl-site, .sl-ftr) .sl-tool strong { font-size: 15.5px; color: var(--sl-ink); }
:is(.sl-site, .sl-ftr) .sl-ser small, :is(.sl-site, .sl-ftr) .sl-tool small { grid-column: 1; font-size: 13px; color: var(--sl-ink-3); }
:is(.sl-site, .sl-ftr) .sl-ser em { grid-row: 1 / span 2; grid-column: 2; font-style: normal; font-size: 13px; color: var(--sl-teal); font-weight: 500; }
:is(.sl-site, .sl-ftr) .sl-tool { grid-template-columns: 1fr; gap: 6px; }
:is(.sl-site, .sl-ftr) .sl-tool .sl-chip { justify-self: start; }
:is(.sl-site, .sl-ftr) .sl-ser-more { display: none; }
@media (max-width: 759px) {
	:is(.sl-site, .sl-ftr) .sl-serbar:not(.is-open) .sl-ser:nth-child(n+4) { display: none; }
	:is(.sl-site, .sl-ftr) .sl-ser-more { display: inline-block; justify-self: start; font: inherit; font-size: 14px; font-weight: 500; color: var(--sl-teal); background: none; border: 0; padding: 4px 0; cursor: pointer; }
	:is(.sl-site, .sl-ftr) .sl-serbar.is-open .sl-ser-more { display: none; }
}
@media (min-width: 760px) { :is(.sl-site, .sl-ftr) .sl-serlist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
:is(.sl-site, .sl-ftr) .sl-listhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 12px; border-bottom: 1px solid var(--sl-line-2); padding-bottom: 10px; margin-bottom: 22px; }
:is(.sl-site, .sl-ftr) .sl-listhead h2 { font-size: 17px; font-weight: 700; margin: 0; }
:is(.sl-site, .sl-ftr) .sl-listhead small { font-size: 13.5px; color: var(--sl-ink-3); }
:is(.sl-site, .sl-ftr) .sl-empty { color: var(--sl-ink-2); }

:is(.sl-site, .sl-ftr) .sl-course .sl-listhead { margin-bottom: 14px; }
:is(.sl-site, .sl-ftr) .sl-course-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 32px; }
:is(.sl-site, .sl-ftr) .sl-course-list a { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 10px 2px; border-bottom: 1px solid var(--sl-line); color: var(--sl-ink); font-size: 15.5px; line-height: 1.5; }
:is(.sl-site, .sl-ftr) .sl-course-list a:hover { color: var(--sl-teal-ink); background: var(--sl-mist); }
:is(.sl-site, .sl-ftr) .sl-course-no { font-family: var(--sl-f-mono); font-size: 13px; color: var(--sl-teal); text-align: right; }
@media (min-width: 760px) { :is(.sl-site, .sl-ftr) .sl-course-list { grid-template-columns: 1fr 1fr; grid-auto-flow: row; } }

/* 分頁 */
:is(.sl-site, .sl-ftr) .sl-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; font-size: 14.5px; }
:is(.sl-site, .sl-ftr) .sl-pager .page-numbers {
	min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 12px; box-sizing: border-box;
	border-radius: 999px; border: 1px solid var(--sl-line); color: var(--sl-ink);
}
:is(.sl-site, .sl-ftr) .sl-pager a.page-numbers:hover { border-color: var(--sl-teal); color: var(--sl-teal-ink); }
:is(.sl-site, .sl-ftr) .sl-pager .current { background: var(--sl-ink); border-color: var(--sl-ink); color: #fff; font-weight: 500; }
:is(.sl-site, .sl-ftr) .sl-pager .dots { border: 0; min-width: auto; padding: 0 2px; color: var(--sl-ink-3); }

/* ---------- 7. 搜尋 ---------- */
:is(.sl-site, .sl-ftr) .sl-results { display: grid; border-top: 1px solid var(--sl-line-2); }
:is(.sl-site, .sl-ftr) .sl-res { display: grid; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--sl-line); color: inherit; }
:is(.sl-site, .sl-ftr) .sl-res-text { display: grid; gap: 6px; min-width: 0; }
:is(.sl-site, .sl-ftr) .sl-res .sl-card-t { font-size: 17px; }
:is(.sl-site, .sl-ftr) .sl-res:hover .sl-card-t { color: var(--sl-teal-ink); }
:is(.sl-site, .sl-ftr) .sl-res-media { display: none; }
:is(.sl-site, .sl-ftr) .sl-res mark { background: var(--sl-mark); color: inherit; padding: 0 1px; border-radius: 2px; }
@media (min-width: 760px) {
	:is(.sl-site, .sl-ftr) .sl-res { grid-template-columns: minmax(0, 1fr) 168px; column-gap: 28px; align-items: start; }
	:is(.sl-site, .sl-ftr) .sl-res-media { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 1200 / 630; background: var(--sl-mist); }
	:is(.sl-site, .sl-ftr) .sl-res-media img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
}
:is(.sl-site, .sl-ftr) .sl-empty-box { display: grid; gap: 14px; padding: 22px; border: 1px dashed var(--sl-line-2); border-radius: 12px; color: var(--sl-ink-2); }
:is(.sl-site, .sl-ftr) .sl-empty-box h2 { font-size: 18px; margin: 0; }
:is(.sl-site, .sl-ftr) .sl-empty-box p { margin: 0; }
:is(.sl-site, .sl-ftr) .sl-hot a { color: var(--sl-teal); }

/* 四大專區入口（404、搜尋無結果） */
:is(.sl-site, .sl-ftr) .sl-zl { display: grid; gap: 12px; }
:is(.sl-site, .sl-ftr) .sl-zl a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--sl-line); border-radius: 14px; background: var(--sl-paper); color: inherit; }
:is(.sl-site, .sl-ftr) .sl-zl a:hover { border-color: var(--sl-teal); }
:is(.sl-site, .sl-ftr) .sl-zl strong { font-family: var(--sl-f-display); font-size: 18px; color: var(--sl-ink); }
:is(.sl-site, .sl-ftr) .sl-zl small { font-size: 13.5px; color: var(--sl-ink-2); }
@media (min-width: 700px) { :is(.sl-site, .sl-ftr) .sl-zl { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 8. 404 ---------- */
:is(.sl-site, .sl-ftr) .sl-nf { display: grid; gap: 34px; padding-block: 48px 72px; }
:is(.sl-site, .sl-ftr) .sl-code404 { font-family: var(--sl-f-mono); font-size: 14px; color: var(--sl-teal); letter-spacing: .1em; margin: 0; }
:is(.sl-site, .sl-ftr) .sl-mini { display: grid; border-top: 1px solid var(--sl-line-2); }
:is(.sl-site, .sl-ftr) .sl-mini a { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--sl-line); color: inherit; }
:is(.sl-site, .sl-ftr) .sl-mini .sl-card-t { font-size: 15.5px; font-weight: 500; }
:is(.sl-site, .sl-ftr) .sl-mini a:hover .sl-card-t { color: var(--sl-teal-ink); }
@media (min-width: 760px) { :is(.sl-site, .sl-ftr) .sl-404 .sl-band-title { font-size: 38px; } }

/* ---------- 9. 單篇文章 ---------- */
:is(.sl-site, .sl-ftr) .sl-post-head { padding-block: 28px 22px; }
:is(.sl-site, .sl-ftr) .sl-post-grid { display: grid; gap: 0; }
:is(.sl-site, .sl-ftr) .sl-post-col { max-width: 720px; min-width: 0; width: 100%; }
:is(.sl-site, .sl-ftr) .sl-center { margin-inline: auto; }
:is(.sl-site, .sl-ftr) .sl-post-title { font-family: var(--sl-f-body); font-weight: 700; font-size: 25px; line-height: 1.45; letter-spacing: .005em; margin: 0; }
:is(.sl-site, .sl-ftr) .sl-dek { font-size: 16.5px; color: var(--sl-ink-2); line-height: 1.75; margin: 0; }
:is(.sl-site, .sl-ftr) .sl-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; font-size: 14px; color: var(--sl-ink-3); }
:is(.sl-site, .sl-ftr) .sl-post-meta > * + *::before { content: "·"; margin: 0 10px; opacity: .7; color: var(--sl-ink-3); }
:is(.sl-site, .sl-ftr) .sl-post-meta > .sl-chip + *::before { margin-left: 12px; }
:is(.sl-site, .sl-ftr) .sl-serieschip a { color: var(--sl-teal); font-weight: 500; }
@media (max-width: 759px) {
	:is(.sl-site, .sl-ftr) .sl-post-meta .sl-serieschip { flex-basis: 100%; }
	:is(.sl-site, .sl-ftr) .sl-post-meta .sl-serieschip::before { content: none; }
}
@media (min-width: 760px) {
	:is(.sl-site, .sl-ftr) .sl-post-head { padding-block: 44px 30px; }
	:is(.sl-site, .sl-ftr) .sl-post-title { font-size: 34px; line-height: 1.4; }
}

/* 目錄 */
:is(.sl-site, .sl-ftr) .sl-toc-m { border: 1px solid var(--sl-line); border-radius: 12px; background: var(--sl-paper); margin: 0 0 28px; }
:is(.sl-site, .sl-ftr) .sl-toc-m summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; color: var(--sl-ink); }
:is(.sl-site, .sl-ftr) .sl-toc-m summary::-webkit-details-marker { display: none; }
:is(.sl-site, .sl-ftr) .sl-toc-m summary small { font-weight: 400; color: var(--sl-ink-3); font-size: 13px; }
:is(.sl-site, .sl-ftr) .sl-toc-m summary small::after { content: " ▾"; }
:is(.sl-site, .sl-ftr) .sl-toc-m[open] summary small::after { content: " ▴"; }
:is(.sl-site, .sl-ftr) .sl-toc-m[open] summary { border-bottom: 1px solid var(--sl-line); }
:is(.sl-site, .sl-ftr) .sl-toc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; font-size: 14.5px; line-height: 1.5; }
:is(.sl-site, .sl-ftr) .sl-toc-m .sl-toc-list { padding: 10px 16px 14px; }
:is(.sl-site, .sl-ftr) .sl-toc-list a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid transparent; color: var(--sl-ink-2); }
:is(.sl-site, .sl-ftr) .sl-toc-list a:hover { color: var(--sl-teal-ink); }
:is(.sl-site, .sl-ftr) .sl-toc-list .l3 a { padding-left: 26px; font-size: 13.5px; }
:is(.sl-site, .sl-ftr) .sl-toc-list a[aria-current] { border-left-color: var(--sl-teal); color: var(--sl-ink); font-weight: 500; }
:is(.sl-site, .sl-ftr) .sl-toc-side { display: none; }
:is(.sl-site, .sl-ftr) .sl-prog { height: 4px; border-radius: 4px; background: var(--sl-line); overflow: hidden; }
:is(.sl-site, .sl-ftr) .sl-prog i { display: block; height: 100%; background: var(--sl-teal); border-radius: 4px; }
@media (min-width: 1100px) {
	:is(.sl-site, .sl-ftr) .sl-post-grid.has-toc { grid-template-columns: minmax(0, 720px) 260px; justify-content: space-between; column-gap: 64px; }
	:is(.sl-site, .sl-ftr) .sl-post-grid.has-toc .sl-toc-m { display: none; }
	:is(.sl-site, .sl-ftr) .sl-toc-side { display: block; position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow: auto; padding-bottom: 8px; font-size: 14px; }
	.admin-bar .sl-toc-side { top: 56px; max-height: calc(100vh - 80px); }
	:is(.sl-site, .sl-ftr) .sl-toc-side h2 { font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--sl-ink-3); margin: 0 0 8px; }
	:is(.sl-site, .sl-ftr) .sl-toc-side .sl-toc-list { border-left: 1px solid var(--sl-line); }
	:is(.sl-site, .sl-ftr) .sl-toc-side .sl-toc-list a { margin-left: -1px; }
	:is(.sl-site, .sl-ftr) .sl-sprog { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--sl-line); display: grid; gap: 8px; font-size: 13.5px; color: var(--sl-ink-2); }
	:is(.sl-site, .sl-ftr) .sl-sprog a, :is(.sl-site, .sl-ftr) .sl-totop { color: var(--sl-teal); font-weight: 500; font-size: 13.5px; }
	:is(.sl-site, .sl-ftr) .sl-totop { display: inline-block; margin-top: 18px; }
}
:is(.sl-site, .sl-ftr) .sl-totop { display: none; }
@media (min-width: 1100px) { :is(.sl-site, .sl-ftr) .sl-totop { display: inline-block; } }

/* 內文排版（沿用 Blocksy entry-content 區塊樣式，只調字級與節奏） */
:is(.sl-site, .sl-ftr) .sl-prose {
	--theme-content-spacing: 1.15em;
	--theme-font-size: 16.5px;
	--theme-line-height: 1.9;
	font-size: 16.5px;
	line-height: 1.9;
	color: var(--sl-ink);
	overflow-wrap: anywhere;
}
:is(.sl-site, .sl-ftr) .sl-prose :where(p, li) { font-size: inherit; line-height: inherit; }
:is(.sl-site, .sl-ftr) .sl-prose :where(h2, h3, h4) { font-family: var(--sl-f-body); color: var(--sl-ink); scroll-margin-top: 24px; }
.admin-bar .sl-prose :where(h2, h3, h4) { scroll-margin-top: 56px; }
:is(.sl-site, .sl-ftr) .sl-prose h2 {
	--theme-font-size: 22px; --theme-line-height: 1.45;
	font-size: 22px; line-height: 1.45; margin-top: 2.2em; padding-top: 1em; border-top: 1px solid var(--sl-line);
}
:is(.sl-site, .sl-ftr) .sl-prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
:is(.sl-site, .sl-ftr) .sl-prose h3 { --theme-font-size: 18.5px; --theme-line-height: 1.5; font-size: 18.5px; line-height: 1.5; margin-top: 1.6em; }
:is(.sl-site, .sl-ftr) .sl-prose h4 { --theme-font-size: 16.5px; --theme-line-height: 1.55; font-size: 16.5px; line-height: 1.55; color: var(--sl-ink-2); }
:is(.sl-site, .sl-ftr) .sl-prose a:where(:not(.wp-block-button__link):not(.wp-element-button)) {
	color: var(--sl-teal-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
:is(.sl-site, .sl-ftr) .sl-prose a:where(:not(.wp-block-button__link):not(.wp-element-button)):hover { color: var(--sl-teal); }
:is(.sl-site, .sl-ftr) .sl-prose img { border-radius: 8px; height: auto; }
:is(.sl-site, .sl-ftr) .sl-prose figcaption { font-size: 13.5px; color: var(--sl-ink-3); text-align: center; }
:is(.sl-site, .sl-ftr) .sl-prose iframe { max-width: 100%; }
:is(.sl-site, .sl-ftr) .sl-prose .wp-block-embed.is-type-video iframe,
:is(.sl-site, .sl-ftr) .sl-prose iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
:is(.sl-site, .sl-ftr) .sl-prose blockquote { border-left: 3px solid var(--sl-teal); padding-left: 1em; color: var(--sl-ink-2); }
:is(.sl-site, .sl-ftr) .sl-prose table { font-size: 15px; }
:is(.sl-site, .sl-ftr) .sl-prose :where(code):not(pre code) { font-family: var(--sl-f-mono); font-size: .88em; background: var(--sl-mist); padding: .1em .35em; border-radius: 4px; }
:is(.sl-site, .sl-ftr) .sl-prose pre, :is(.sl-site, .sl-ftr) .sl-prose .wp-block-code {
	font-family: var(--sl-f-mono); font-size: 14px; line-height: 1.7; background: var(--sl-mist);
	border: 1px solid var(--sl-line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; white-space: pre; color: var(--sl-ink);
}
:is(.sl-site, .sl-ftr) .sl-prose .wp-block-code code { background: none; padding: 0; font-size: inherit; }
:is(.sl-site, .sl-ftr) .sl-code { position: relative; }
:is(.sl-site, .sl-ftr) .sl-code > pre { margin: 0; padding-top: 40px !important; }
:is(.sl-site, .sl-ftr) .sl-code-copy {
	position: absolute; top: 8px; right: 8px; z-index: 1;
	font: inherit; font-family: var(--sl-f-body); font-size: 12.5px; line-height: 1.4;
	border: 1px solid var(--sl-line-2); background: var(--sl-paper); color: var(--sl-ink-2); border-radius: 6px; padding: 4px 10px; cursor: pointer;
}
:is(.sl-site, .sl-ftr) .sl-code-copy:hover { border-color: var(--sl-ink); color: var(--sl-ink); }
@media (min-width: 760px) {
	:is(.sl-site, .sl-ftr) .sl-prose { --theme-font-size: 17px; font-size: 17px; }
	:is(.sl-site, .sl-ftr) .sl-prose h2 { --theme-font-size: 24px; font-size: 24px; }
	:is(.sl-site, .sl-ftr) .sl-prose h3 { --theme-font-size: 19.5px; font-size: 19.5px; }
	:is(.sl-site, .sl-ftr) .sl-prose h4 { --theme-font-size: 17px; font-size: 17px; }
}

/* 文章結尾 */
:is(.sl-site, .sl-ftr) .sl-post-end { display: grid; gap: 22px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--sl-line-2); }
:is(.sl-site, .sl-ftr) .sl-tags, :is(.sl-site, .sl-ftr) .sl-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
:is(.sl-site, .sl-ftr) .sl-tags > span, :is(.sl-site, .sl-ftr) .sl-share > span { color: var(--sl-ink-3); margin-right: 2px; }
:is(.sl-site, .sl-ftr) .sl-tags a { border: 1px solid var(--sl-line); border-radius: 999px; padding: 3px 11px; color: var(--sl-ink-2); }
:is(.sl-site, .sl-ftr) .sl-tags a:hover { border-color: var(--sl-teal); color: var(--sl-teal-ink); }
:is(.sl-site, .sl-ftr) .sl-share a, :is(.sl-site, .sl-ftr) .sl-share button {
	font: inherit; font-size: 14px; line-height: 1.4; display: inline-flex; align-items: center; min-height: 36px; box-sizing: border-box;
	border: 1px solid var(--sl-line-2); background: var(--sl-paper); color: var(--sl-ink); border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
:is(.sl-site, .sl-ftr) .sl-share a:hover, :is(.sl-site, .sl-ftr) .sl-share button:hover { border-color: var(--sl-ink); color: var(--sl-ink); }

:is(.sl-site, .sl-ftr) .sl-series { border: 1px solid var(--sl-line); border-radius: 14px; padding: 20px; display: grid; gap: 14px; background: var(--sl-paper); scroll-margin-top: 24px; }
:is(.sl-site, .sl-ftr) .sl-series-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
:is(.sl-site, .sl-ftr) .sl-series-top h2 { font-size: 17px; font-weight: 700; margin: 0; }
:is(.sl-site, .sl-ftr) .sl-series-top small { font-size: 13.5px; color: var(--sl-ink-3); }
:is(.sl-site, .sl-ftr) .sl-pn { display: grid; gap: 10px; }
:is(.sl-site, .sl-ftr) .sl-pn a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--sl-mist); color: inherit; min-width: 0; }
:is(.sl-site, .sl-ftr) .sl-pn a small { font-size: 12.5px; color: var(--sl-ink-3); }
:is(.sl-site, .sl-ftr) .sl-pn a strong { font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--sl-ink); }
:is(.sl-site, .sl-ftr) .sl-pn a:hover { background: var(--sl-teal-soft); }
:is(.sl-site, .sl-ftr) .sl-pn .nx { text-align: right; }
:is(.sl-site, .sl-ftr) .sl-series details summary { font-size: 14px; font-weight: 500; color: var(--sl-teal); cursor: pointer; width: fit-content; }
:is(.sl-site, .sl-ftr) .sl-series ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; counter-reset: s; font-size: 14.5px; }
:is(.sl-site, .sl-ftr) .sl-series ol li { counter-increment: s; display: grid; grid-template-columns: 2.2em minmax(0, 1fr); padding: 6px 0; border-bottom: 1px dashed var(--sl-line); }
:is(.sl-site, .sl-ftr) .sl-series ol li::before { content: counter(s); font-family: var(--sl-f-mono); font-size: 12.5px; color: var(--sl-ink-3); padding-top: 2px; }
:is(.sl-site, .sl-ftr) .sl-series ol li[aria-current] { font-weight: 700; color: var(--sl-teal-ink); }
:is(.sl-site, .sl-ftr) .sl-series ol a { color: var(--sl-ink); }
:is(.sl-site, .sl-ftr) .sl-series ol a:hover { color: var(--sl-teal-ink); }
@media (min-width: 600px) {
	:is(.sl-site, .sl-ftr) .sl-pn { grid-template-columns: 1fr 1fr; }
	:is(.sl-site, .sl-ftr) .sl-series { padding: 22px 24px; }
}

:is(.sl-site, .sl-ftr) .sl-aboutbox { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 20px; background: var(--sl-mist); border-radius: 14px; }
:is(.sl-site, .sl-ftr) .sl-aboutbox img { width: 44px; height: 44px; border-radius: 10px; }
:is(.sl-site, .sl-ftr) .sl-aboutbox strong { display: block; font-size: 15.5px; color: var(--sl-ink); }
:is(.sl-site, .sl-ftr) .sl-aboutbox p { font-size: 14.5px; color: var(--sl-ink-2); margin: 2px 0 0; }
:is(.sl-site, .sl-ftr) .sl-aboutbox a { color: var(--sl-teal); font-weight: 500; font-size: 14px; }

:is(.sl-site, .sl-ftr) .sl-related { padding-block: 40px 56px; background: var(--sl-mist); border-top: 1px solid var(--sl-line); margin-top: 56px; }
:is(.sl-site, .sl-ftr) .sl-related .sl-card { border-color: var(--sl-line-2); }

/* ---------- 10. 固定頁 ---------- */
:is(.sl-site, .sl-ftr) .sl-page-body { padding-block: 36px 72px; }
:is(.sl-site, .sl-ftr) .sl-page-standard .sl-prose h2 { font-family: var(--sl-f-display); }
:is(.sl-site, .sl-ftr) .sl-page-standard .sl-band .sl-stack { max-width: 720px; margin-inline: auto; }
:is(.sl-site, .sl-ftr) .sl-wide { max-width: 1000px; margin-inline: auto; }
:is(.sl-site, .sl-ftr) .sl-tool-top { padding-top: 8px; }
:is(.sl-site, .sl-ftr) .sl-tool-body { padding-block: 8px 64px; }
:is(.sl-site, .sl-ftr) .sl-tool-content > * { max-width: none !important; }

/* ---------- 11. 頁尾 ---------- */
body.sl-v2 #footer { background: var(--sl-ftr); }
.sl-ftr { background: var(--sl-ftr); color: #fff; padding-block: 48px 28px; font-family: var(--sl-f-body); }
.sl-ftr a { color: inherit; text-decoration: none; }
.sl-ftr-cols { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.sl-ftr-brand { grid-column: 1 / -1; }
.sl-ftr-wm { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
.sl-ftr-wm img { width: 32px; height: 32px; border-radius: 8px; }
.sl-ftr-wm small { font-family: var(--sl-f-display); font-weight: 500; font-size: 13px; letter-spacing: .2em; opacity: .7; }
.sl-ftr p { font-size: 14px; opacity: .78; margin: 8px 0 0; max-width: 26em; line-height: 1.7; }
.sl-ftr-soc { display: flex; gap: 8px; margin-top: 16px !important; opacity: 1 !important; }
.sl-ftr-soc a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; }
.sl-ftr-soc a:hover { border-color: #fff; }
.sl-ftr-soc svg { width: 18px; height: 18px; }
.sl-ftr h2 { font-size: 13px; font-weight: 500; letter-spacing: .08em; opacity: .62; margin: 0 0 10px; color: #fff; font-family: var(--sl-f-body); }
.sl-ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14.5px; }
.sl-ftr ul a { display: inline-block; padding-block: 3px; opacity: .9; }
.sl-ftr ul a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.sl-ftr-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 13px; opacity: .7; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (min-width: 760px) {
	.sl-ftr-cols { grid-template-columns: 2fr 1fr 1fr 1fr; }
	.sl-ftr-brand { grid-column: auto; }
}


/* 內文站內連結卡片（取代站內 oEmbed） */
:is(.sl-site, .sl-ftr) .sl-prose .sl-lc-wrap { margin: 1.4em 0; }
:is(.sl-site, .sl-ftr) .sl-prose a.sl-lc {
	display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 18px; align-items: center;
	padding: 12px; border: 1px solid var(--sl-line); border-radius: 12px; background: #fff;
	color: var(--sl-ink); text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease;
}
:is(.sl-site, .sl-ftr) .sl-prose a.sl-lc:hover { border-color: var(--sl-teal); box-shadow: 0 4px 16px rgba(28, 42, 54, .08); color: var(--sl-ink); }
:is(.sl-site, .sl-ftr) .sl-prose a.sl-lc:focus-visible { outline: 2px solid var(--sl-teal); outline-offset: 2px; }
:is(.sl-site, .sl-ftr) .sl-lc-media { display: block; aspect-ratio: 1200 / 630; border-radius: 8px; overflow: hidden; background: var(--sl-mist); }
:is(.sl-site, .sl-ftr) .sl-lc-media img { display: block; width: 100%; height: 100% !important; object-fit: cover; margin: 0; }
:is(.sl-site, .sl-ftr) .sl-lc-body { display: grid; gap: 4px; min-width: 0; }
:is(.sl-site, .sl-ftr) .sl-lc-k { font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--sl-teal-ink); }
:is(.sl-site, .sl-ftr) .sl-lc-t { font-size: 16.5px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
:is(.sl-site, .sl-ftr) .sl-prose a.sl-lc:hover .sl-lc-t { color: var(--sl-teal-ink); }
:is(.sl-site, .sl-ftr) .sl-lc-ex { font-size: 14.5px; line-height: 1.65; color: var(--sl-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 599px) {
	:is(.sl-site, .sl-ftr) .sl-prose a.sl-lc { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 10px; }
	:is(.sl-site, .sl-ftr) .sl-lc-t { font-size: 15px; }
	:is(.sl-site, .sl-ftr) .sl-lc-ex { display: none; }
}


/* 固定頁內的文章卡片（[sl_posts]） */
:is(.sl-site, .sl-ftr) .sl-prose .sl-cards-in { margin: 1.2em 0 2.4em; }
:is(.sl-site, .sl-ftr) .sl-prose a.sl-card { color: var(--sl-ink); text-decoration: none; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-cards-in :where(h3) { margin: 0; padding: 0; border: 0; }

/* 外部網站連結格（資源索引頁） */
:is(.sl-site, .sl-ftr) .sl-prose .sl-linkgrid { display: grid; grid-template-columns: 1fr; gap: 28px; margin: 1.2em 0 2.6em; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-linkitem { display: grid; gap: 8px; align-content: start; margin: 0; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-linkitem > * { margin: 0; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-linkitem figure { border: 1px solid var(--sl-line); border-radius: 10px; overflow: hidden; background: var(--sl-mist); aspect-ratio: 1200 / 630; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-linkitem figure a { display: block; height: 100%; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-linkitem img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .25s ease; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-linkitem:hover img { transform: scale(1.02); }
:is(.sl-site, .sl-ftr) .sl-prose .sl-linkitem h3 { font-size: 16.5px; line-height: 1.5; margin-top: 4px; padding: 0; border: 0; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-linkitem h3 a { color: var(--sl-ink); text-decoration: none; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-linkitem h3 a:hover { color: var(--sl-teal-ink); }
:is(.sl-site, .sl-ftr) .sl-prose .sl-linkitem p { font-size: 14.5px; line-height: 1.7; color: var(--sl-ink-2); }
@media (min-width: 600px) {
	:is(.sl-site, .sl-ftr) .sl-prose .sl-linkgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
}
@media (min-width: 960px) {
	:is(.sl-site, .sl-ftr) .sl-prose .sl-linkgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


@media (max-width: 599px) {
	:is(.sl-site, .sl-ftr) .sl-prose .sl-linkgrid { gap: 18px; }
	:is(.sl-site, .sl-ftr) .sl-prose .sl-linkitem { grid-template-columns: 112px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: start; }
	:is(.sl-site, .sl-ftr) .sl-prose .sl-linkitem figure { grid-row: 1 / span 3; border-radius: 8px; }
	:is(.sl-site, .sl-ftr) .sl-prose .sl-linkitem h3 { font-size: 15.5px; margin-top: 0; }
	:is(.sl-site, .sl-ftr) .sl-prose .sl-linkitem p { font-size: 13.5px; line-height: 1.6; }
}

/* 影片格（資源索引頁） */
:is(.sl-site, .sl-ftr) .sl-prose .sl-vidgrid { display: grid; grid-template-columns: 1fr; gap: 28px; margin: 1em 0 2.4em; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-viditem { display: grid; gap: 10px; align-content: start; margin: 0; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-viditem > * { margin: 0; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-viditem .wp-block-embed__wrapper { border-radius: 10px; overflow: hidden; background: var(--sl-mist); }
:is(.sl-site, .sl-ftr) .sl-prose .sl-viditem p { font-size: 15px; line-height: 1.7; color: var(--sl-ink-2); }
@media (min-width: 768px) {
	:is(.sl-site, .sl-ftr) .sl-prose .sl-vidgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
}

@media (prefers-reduced-motion: reduce) {
	.sl-site *, .sl-ftr * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 0.2.3 資源索引頁：跳轉列、對照表、清單、影片分組 ---------- */
:is(.sl-site, .sl-ftr) .sl-prose .sl-jumpnav {
	position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; flex-wrap: wrap;
	margin: 0 0 2em; padding: 10px 0; background: var(--sl-paper); border-bottom: 1px solid var(--sl-line);
}
.admin-bar :is(.sl-site, .sl-ftr) .sl-prose .sl-jumpnav { top: 32px; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-jumpnav a {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--sl-line-2);
	border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--sl-ink); text-decoration: none; white-space: nowrap; background: var(--sl-paper);
}
:is(.sl-site, .sl-ftr) .sl-prose .sl-jumpnav a:hover, :is(.sl-site, .sl-ftr) .sl-prose .sl-jumpnav a:focus-visible { border-color: var(--sl-teal); color: var(--sl-teal-ink); background: var(--sl-teal-soft); }
:is(.sl-site, .sl-ftr) .sl-prose:has(.sl-jumpnav) h2 { scroll-margin-top: 76px; }
.admin-bar :is(.sl-site, .sl-ftr) .sl-prose:has(.sl-jumpnav) h2 { scroll-margin-top: 108px; }
@media (max-width: 759px) {
	:is(.sl-site, .sl-ftr) .sl-prose .sl-jumpnav { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--sl-gutter) * -1); padding-inline: var(--sl-gutter); scrollbar-width: none; }
	:is(.sl-site, .sl-ftr) .sl-prose .sl-jumpnav::-webkit-scrollbar { display: none; }
	.admin-bar :is(.sl-site, .sl-ftr) .sl-prose .sl-jumpnav { top: 0; }
}
:is(.sl-site, .sl-ftr) .sl-prose .sl-sechint { color: var(--sl-ink-2); font-size: 14.5px; margin-top: -.4em; }

/* 對照表（核心表格區塊加 class sl-restable） */
:is(.sl-site, .sl-ftr) .sl-prose .sl-restable { margin: 1em 0 2.4em; overflow-x: auto; -webkit-overflow-scrolling: touch; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-restable table { width: 100%; min-width: 520px; border-collapse: separate; border-spacing: 0; border: 1px solid var(--sl-line); border-radius: 12px; overflow: hidden; font-size: 15px; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-restable :is(th, td) { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--sl-line); text-align: center; vertical-align: middle; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-restable tr:last-child td { border-bottom: 0; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-restable thead th { background: var(--sl-mist); color: var(--sl-ink); font-weight: 700; font-size: 14px; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-restable :is(th, td):first-child { text-align: left; font-weight: 600; color: var(--sl-ink); position: sticky; left: 0; background: var(--sl-paper); min-width: 170px; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-restable thead th:first-child { background: var(--sl-mist); }
:is(.sl-site, .sl-ftr) .sl-prose .sl-restable td:first-child small { display: block; font-weight: 400; font-size: 13px; color: var(--sl-ink-3); }
:is(.sl-site, .sl-ftr) .sl-prose .sl-restable tbody tr:hover td { background: #f8fbfb; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-restable td a {
	display: inline-flex; align-items: center; justify-content: center; min-width: 56px; min-height: 34px; padding: 0 10px;
	border-radius: 8px; background: var(--sl-teal-soft); color: var(--sl-teal-ink); font-weight: 600; font-size: 14px; text-decoration: none;
}
:is(.sl-site, .sl-ftr) .sl-prose .sl-restable td a:hover, :is(.sl-site, .sl-ftr) .sl-prose .sl-restable td a:focus-visible { background: var(--sl-teal); color: #fff; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-restable figcaption { font-size: 13px; color: var(--sl-ink-3); margin-top: 8px; text-align: left; }
@media (max-width: 599px) {
	:is(.sl-site, .sl-ftr) .sl-prose .sl-restable :is(th, td) { padding: 10px 8px; }
	:is(.sl-site, .sl-ftr) .sl-prose .sl-restable :is(th, td):first-child { min-width: 132px; font-size: 14px; }
	:is(.sl-site, .sl-ftr) .sl-prose .sl-restable td a { min-width: 44px; }
}

/* 連結清單（核心清單區塊加 class sl-reslist） */
:is(.sl-site, .sl-ftr) .sl-prose .sl-reslist { list-style: none; padding: 0; margin: 1em 0 2.4em; display: grid; gap: 10px; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-reslist li { margin: 0; padding: 0; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-reslist li a {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--sl-line);
	border-radius: 12px; color: var(--sl-ink); font-weight: 600; text-decoration: none; background: var(--sl-paper);
}
:is(.sl-site, .sl-ftr) .sl-prose .sl-reslist li a::after { content: "↗"; color: var(--sl-teal); font-weight: 700; flex: none; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-reslist li a:hover { border-color: var(--sl-teal); color: var(--sl-teal-ink); }
@media (min-width: 760px) { :is(.sl-site, .sl-ftr) .sl-prose .sl-reslist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 影片分組（核心詳細資料區塊加 class sl-vidgroup） */
:is(.sl-site, .sl-ftr) .sl-prose .sl-vidgroup { border: 1px solid var(--sl-line); border-radius: 12px; margin: 0 0 12px; background: var(--sl-paper); }
:is(.sl-site, .sl-ftr) .sl-prose .sl-vidgroup > summary {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none;
	font-weight: 700; font-size: 16px; color: var(--sl-ink);
}
:is(.sl-site, .sl-ftr) .sl-prose .sl-vidgroup > summary::-webkit-details-marker { display: none; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-vidgroup > summary::after { content: "展開 ▾"; font-size: 13px; font-weight: 500; color: var(--sl-teal-ink); flex: none; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-vidgroup[open] > summary::after { content: "收合 ▴"; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-vidgroup[open] > summary { border-bottom: 1px solid var(--sl-line); }
:is(.sl-site, .sl-ftr) .sl-prose .sl-vidgroup > .sl-vidgrid { padding: 18px; margin: 0; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-vidgroup + :not(.sl-vidgroup) { margin-top: 2em; }

/* ---------- 0.2.4 資源索引頁：查詢卡片、入學管道色塊、年份卡片 ---------- */
:is(.sl-site, .sl-ftr) .sl-prose .sl-ch { display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 6px; background: var(--sl-teal); color: #fff; font-weight: 700; line-height: 1.6; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-ch.is-star { background: #a3233a; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-ch.is-apply { background: #1d6aa5; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-ch.is-uac { background: #1f3b70; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-cat { display: inline-block; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--sl-teal); background: var(--sl-teal-soft); color: var(--sl-teal-ink); font-size: 14px; font-weight: 700; line-height: 1.6; }

/* 查詢卡片：.sl-qcards > .sl-qcard（主辦單位 .sl-qc-org／標題 h3／說明 p／按鈕 .sl-qc-go） */
:is(.sl-site, .sl-ftr) .sl-prose .sl-qcards { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 1em 0 2.4em; }
@media (min-width: 760px) { :is(.sl-site, .sl-ftr) .sl-prose .sl-qcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { :is(.sl-site, .sl-ftr) .sl-prose .sl-qcards.is-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
:is(.sl-site, .sl-ftr) .sl-prose .sl-qcard { display: grid; gap: 6px; align-content: start; margin: 0; padding: 18px; border: 1px solid var(--sl-line); border-top: 4px solid var(--sl-teal); border-radius: 12px; background: var(--sl-paper); }
:is(.sl-site, .sl-ftr) .sl-prose .sl-qcard > * { margin: 0; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-qc-org { font-size: 13px; font-weight: 600; color: var(--sl-teal-ink); }
:is(.sl-site, .sl-ftr) .sl-prose .sl-qcard h3 { margin: 2px 0 0 !important; padding: 0; border: 0; font-size: 18px; line-height: 1.5; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-qcard h3 .sl-ch { font-size: .92em; padding: 1px 10px; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-qcard p { font-size: 14.5px; line-height: 1.7; color: var(--sl-ink-2); }
:is(.sl-site, .sl-ftr) .sl-prose .sl-qc-go { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-qc-go a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--sl-teal); border-radius: 8px; background: var(--sl-teal); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-qc-go a:hover, :is(.sl-site, .sl-ftr) .sl-prose .sl-qc-go a:focus-visible { background: var(--sl-teal-ink); border-color: var(--sl-teal-ink); }
:is(.sl-site, .sl-ftr) .sl-prose .sl-qc-go a.is-ghost { background: transparent; border-color: var(--sl-line-2); color: var(--sl-teal-ink); }
:is(.sl-site, .sl-ftr) .sl-prose .sl-qc-go a.is-ghost:hover { background: var(--sl-teal-soft); }

/* 年份卡片：.sl-yearcards > .sl-yearcard（.sl-yc-head／.sl-yc-sub／.sl-yc-years） */
:is(.sl-site, .sl-ftr) .sl-prose .sl-yearcards { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 1em 0 2.4em; }
@media (min-width: 760px) { :is(.sl-site, .sl-ftr) .sl-prose .sl-yearcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
:is(.sl-site, .sl-ftr) .sl-prose .sl-yearcard { display: grid; gap: 6px; margin: 0; padding: 16px 18px; border: 1px solid var(--sl-line); border-radius: 12px; background: var(--sl-paper); }
:is(.sl-site, .sl-ftr) .sl-prose .sl-yearcard > * { margin: 0; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-yc-head { font-size: 17px; color: var(--sl-ink); }
:is(.sl-site, .sl-ftr) .sl-prose .sl-yc-head .sl-ch { font-size: 15px; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-yc-sub { font-size: 14px; color: var(--sl-ink-2); }
:is(.sl-site, .sl-ftr) .sl-prose .sl-yc-years { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-yc-years a { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; min-height: 40px; padding: 0 12px; border: 1px solid var(--sl-line-2); border-radius: 8px; color: var(--sl-teal-ink); font-weight: 700; text-decoration: none; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-yc-years a:first-child { background: var(--sl-teal); border-color: var(--sl-teal); color: #fff; }
:is(.sl-site, .sl-ftr) .sl-prose .sl-yc-years a:hover, :is(.sl-site, .sl-ftr) .sl-prose .sl-yc-years a:focus-visible { background: var(--sl-teal-soft); }
:is(.sl-site, .sl-ftr) .sl-prose .sl-yc-years a:first-child:hover, :is(.sl-site, .sl-ftr) .sl-prose .sl-yc-years a:first-child:focus-visible { background: var(--sl-teal-ink); }
@media (max-width: 599px) {
	:is(.sl-site, .sl-ftr) .sl-prose .sl-yc-years { gap: 6px; }
	:is(.sl-site, .sl-ftr) .sl-prose .sl-yc-years a { flex: 1 1 0; min-width: 0; padding: 0 4px; }
}

/* ---------- 0.2.6 閱讀數、工具使用人次、卡片 hover ---------- */
:is(.sl-site, .sl-ftr) .sl-tool-visits { margin: 24px 0 0; text-align: center; font-size: 13.5px; color: var(--sl-ink-3); }
:is(.sl-site, .sl-ftr) .sl-tool-visits strong { font-family: var(--sl-f-mono); color: var(--sl-ink-2); }
:is(.sl-site, .sl-ftr) :is(.sl-card-media, .sl-lc-media) img { transition: transform .35s ease; }
:is(.sl-site, .sl-ftr) :is(.sl-ser, .sl-tool, .sl-zl a) { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
@media (hover: hover) {
	:is(.sl-site, .sl-ftr) .sl-card:hover .sl-card-media img,
	:is(.sl-site, .sl-ftr) .sl-res:hover .sl-card-media img,
	:is(.sl-site, .sl-ftr) a.sl-lc:hover .sl-lc-media img { transform: scale(1.04); }
	:is(.sl-site, .sl-ftr) :is(.sl-ser, .sl-tool, .sl-zl a):hover { box-shadow: 0 8px 22px rgba(28, 42, 54, .09); transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
	:is(.sl-site, .sl-ftr) :is(.sl-card-media, .sl-lc-media) img,
	:is(.sl-site, .sl-ftr) :is(.sl-ser, .sl-tool, .sl-zl a) { transition: none; transform: none !important; }
}

