/* ==========================================================================
   Refugee Path 難民路徑 — based on Shelter of Arts v2 "neon island"
   ========================================================================== */

@font-face {
	font-family: "Monaspace Krypton";
	src: url("../fonts/MonaspaceKrypton-Light.woff2") format("woff2");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Monaspace Krypton";
	src: url("../fonts/MonaspaceKrypton-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Monaspace Krypton";
	src: url("../fonts/MonaspaceKrypton-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Monaspace Krypton Wide";
	src: url("../fonts/MonaspaceKrypton-SemiWideExtraBold.woff2") format("woff2");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--accent: #39ff7f;
	--pink: #ff3fa4;
	--blue: #2f7bff;
	--lemon: #eaff3d;
	--violet: #a259ff;

	--kr: "Monaspace Krypton", ui-monospace, Menlo, monospace;
	--kr-wide: "Monaspace Krypton Wide", "Monaspace Krypton", ui-monospace, monospace;
	--sans: "Monaspace Krypton", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
	--body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;

	--header-h: 72px;
	--rail-w: 0px;
	--page-w: calc(100vw - var(--rail-w));
	--gutter: clamp(18px, 4.5vw, 64px);
	--max: 1320px;
	--measure: 720px;
	--radius: 18px;

	--bg: #07090a;
	--bg-2: #0e1312;
	--surface: #121917;
	--fg: #eef5f0;
	--fg-2: #9fb2a8;
	--fg-3: #5d6d66;
	--line: #1d2724;
	--line-2: #2b3935;
	--accent-text: var(--accent);
	--on-accent: #04140a;
	--glow: 0 0 24px color-mix(in srgb, var(--accent) 55%, transparent);

	/* Homepage hero + 潮汐／流域／群島 canvases (follow the day/night switch) */
	--viz-bg: #050706;
	--viz-bg-2: #0c1512;
	--viz-fg: #e2efe7;
	--viz-fg-2: #9fb2a8;
	--viz-fg-3: #7d8f86;
	--viz-line: #1d2724;
	--viz-halo: #050706;
	--viz-panel: rgba(5, 7, 6, .82);
	--viz-work: #5fd4ff;
	--viz-concept: var(--lemon);
	--viz-accent: var(--accent);
	--hero-fg: #ffffff;
	--hero-fg-2: rgba(255, 255, 255, .78);
	--hero-vignette: rgba(0, 0, 0, .55);
	color-scheme: dark;
}
:root[data-scheme="light"] {
	--bg: #f3f6f1;
	--bg-2: #e8eee6;
	--surface: #ffffff;
	--fg: #0a0f0c;
	--fg-2: #4b5b52;
	--fg-3: #8a988f;
	--line: #d7e0d8;
	--line-2: #c2cec4;
	--accent-text: color-mix(in srgb, var(--accent) 45%, #00381a);
	--glow: none;

	--viz-bg: #eef3ec;
	--viz-bg-2: #fbfdf9;
	--viz-fg: #0a0f0c;
	--viz-fg-2: #3f4e46;
	--viz-fg-3: #6f7d75;
	--viz-line: #d0dbd2;
	--viz-halo: #f3f7f1;
	--viz-panel: rgba(250, 252, 248, .88);
	--viz-work: #0062a3;
	--viz-concept: #6d7a00;
	--viz-accent: color-mix(in srgb, var(--accent) 55%, #00381a);
	--hero-fg: #0a0f0c;
	--hero-fg-2: rgba(10, 15, 12, .72);
	--hero-vignette: rgba(255, 255, 255, .5);
	color-scheme: light;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	transition: background-color .35s, color .35s;
}
::selection { background: var(--accent); color: var(--on-accent); }
a { color: inherit; text-decoration: none; transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s, transform .2s; }
a:hover { color: var(--accent-text); }
img, svg, video { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.kr,
.mono { font-family: var(--kr); letter-spacing: .04em; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; left: 8px; top: 8px;
	padding: 8px 12px; background: var(--accent); color: var(--on-accent);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow { margin: 0 0 18px; font-family: var(--kr); font-size: 12px; letter-spacing: .14em; color: var(--accent-text); text-transform: uppercase; }
.section-label { font-family: var(--kr); font-size: 12px; letter-spacing: .14em; color: var(--accent-text); font-weight: 400; margin: 56px 0 12px; text-transform: uppercase; }
.empty { color: var(--fg-2); padding: 40px 0; }
.sep { color: var(--fg-3); margin: 0 .5em; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); margin-right: .45em; vertical-align: .05em; box-shadow: 0 0 8px var(--c, var(--accent)); }
.pill {
	display: inline-block; padding: 1px 10px; border-radius: 99px;
	background: var(--c, var(--accent)); color: #06100a;
	font-family: var(--body); font-size: 11px; font-weight: 700; letter-spacing: .06em;
}

.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: 10px 20px; border-radius: 99px;
	border: 1.5px solid var(--accent); color: var(--accent-text);
	font-size: 13px; letter-spacing: .08em;
}
.btn:hover { background: var(--accent); color: var(--on-accent); box-shadow: var(--glow); }
.btn--big { padding: 16px 32px; font-size: 16px; }
.button-line { display: inline-block; font-family: var(--kr); font-size: 12px; padding: 8px 18px; border-radius: 99px; border: 1.5px solid var(--line-2); }
.button-line:hover { border-color: var(--accent); color: var(--accent-text); }

.cat-link { color: var(--fg-2); }
.cat-link:hover { color: var(--c, var(--accent)); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.chip {
	display: inline-block; font-size: 12px; line-height: 1.6;
	padding: 3px 12px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--fg-2);
}
.chip-tag::before { content: "#"; color: var(--accent-text); margin-right: 2px; font-family: var(--kr); }
.chip-person::before { content: "◎ "; color: var(--pink); }
.chip:hover { border-color: var(--accent); color: var(--accent-text); }

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 40;
	height: var(--header-h);
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: blur(14px) saturate(1.4);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	border-bottom: 1px solid var(--line);
	transition: background-color .35s, border-color .35s, color .35s;
}
.admin-bar .site-header { top: 32px; }
body { padding-top: var(--header-h); }
body.has-hero { padding-top: 0; }
.has-hero .site-header:not(.is-scrolled):not(.menu-open) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--hero-fg); }
.has-hero .site-header:not(.is-scrolled):not(.menu-open) .site-tagline { color: var(--hero-fg-2); }

.site-header__inner {
	height: 100%;
	display: flex; align-items: center; gap: 24px;
	padding: 0 var(--gutter);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; }
.brand:hover { color: inherit; }
.brand__logo { width: 38px; height: 38px; object-fit: contain; }
.brand__mark {
	position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, var(--accent) 0 32%, transparent 33%), radial-gradient(circle at 66% 62%, var(--pink) 0 30%, transparent 31%);
	box-shadow: var(--glow);
	animation: soa-breathe 6s ease-in-out infinite;
}
@keyframes soa-breathe { 50% { transform: rotate(180deg) scale(.92); } }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.site-name { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.site-tagline { font-size: 11px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main-nav { margin-left: auto; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-menu a {
	display: flex; flex-direction: column-reverse; align-items: center; gap: 2px;
	padding: 6px clamp(6px, .8vw, 14px); border-radius: 12px;
	line-height: 1.2; text-align: center;
}
.nav-menu .nav-en { font-family: var(--kr); font-size: clamp(9px, .72vw, 12px); letter-spacing: .06em; font-weight: 700; white-space: nowrap; }
.nav-menu .nav-zh { font-size: clamp(11px, .85vw, 14px); font-weight: 500; opacity: .75; white-space: nowrap; letter-spacing: .1em; }
.nav-menu a:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); color: inherit; }
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a { background: var(--accent); color: var(--on-accent); }
.nav-menu .current-menu-item > a .nav-zh,
.nav-menu .current_page_item > a .nav-zh { opacity: .9; }

.site-header__tools { display: flex; align-items: center; gap: 4px; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; }
.icon-btn:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-text); }
.menu-toggle { display: none; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; grid-area: 1 / 1; transition: transform .25s, opacity .2s; }
.menu-toggle span:nth-child(1) { transform: translateY(-6px); }
.menu-toggle span:nth-child(3) { transform: translateY(6px); }
.menu-open .menu-toggle span:nth-child(1) { transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: rotate(-45deg); }

/* ---------- Search ---------- */
.search-dialog {
	position: fixed; inset: 0; z-index: 60;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	display: grid; place-items: start center; padding-top: 22vh;
}
.search-dialog[hidden] { display: none; }
.search-dialog__inner { position: relative; width: min(720px, 90vw); }
.search-dialog__label { font-size: 12px; letter-spacing: .2em; color: var(--accent-text); margin: 0 0 10px; }
.search-dialog__close { position: absolute; right: 0; top: -14px; font-size: 32px; line-height: 1; color: var(--fg-2); }
.search-form { display: flex; align-items: center; border-bottom: 2px solid var(--accent); }
.search-field {
	flex: 1; min-width: 0; background: transparent; border: 0; color: var(--fg);
	padding: 14px 4px; font: inherit; font-size: clamp(20px, 3vw, 30px); font-weight: 300;
}
.search-field:focus { outline: none; }
.search-submit { padding: 8px 16px; font-family: var(--kr); font-size: 12px; letter-spacing: .1em; color: var(--accent-text); }
.list-search .search-field { font-size: 18px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: 100vh; min-height: 100svh;
	display: grid; place-items: center;
	background: var(--viz-bg); color: var(--hero-fg);
	--hero-c: var(--viz-accent);
	transition: background-color .35s, color .35s;
}
.hero__media,
.hero__canvas,
.hero__grain { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -3; }
.hero__video,
.hero__img { width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(1.1) contrast(1.05); }
.hero__swap {
	position: absolute; inset: 0; background-size: cover; background-position: center;
	opacity: 0; transition: opacity .6s ease; mix-blend-mode: luminosity;
}
.hero__swap.is-on { opacity: .5; }
.hero__swap::after {
	content: ""; position: absolute; inset: 0;
	background: var(--hero-c); mix-blend-mode: multiply; opacity: .55;
}
.hero__canvas { z-index: -2; display: block; }
.hero__grain {
	z-index: -1; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(ellipse at center, transparent 30%, var(--hero-vignette) 100%);
}
.hero__inner { width: min(1180px, 100% - 2 * var(--gutter)); text-align: center; padding: 120px 0 110px; }
.hero__kicker { font-size: 12px; letter-spacing: .24em; color: var(--hero-c); margin: 0 0 28px; text-shadow: 0 0 18px var(--hero-c); transition: color .5s; }
.hero__list {
	margin: 0; font-family: var(--sans);
	font-size: clamp(24px, 3.6vw, 46px); font-weight: 500; line-height: 1.55; letter-spacing: .01em;
	text-wrap: balance;
}
.hero__list--title { font-family: var(--kr-wide); text-transform: uppercase; }
.hero__item { display: inline-block; color: var(--hero-fg); position: relative; transition: color .3s, text-shadow .3s, opacity .3s; }
.hero__list:hover .hero__item { opacity: .45; }
.hero__item:not([href]) { cursor: default; }
.hero__list .hero__item:hover,
.hero__list .hero__item:focus-visible { opacity: 1; color: var(--hero-c); text-shadow: 0 0 22px var(--hero-c); }
.hero__dot { display: inline-block; margin: 0 .55em; color: var(--hero-c); font-size: .6em; vertical-align: .25em; transition: color .5s; }
.hero__tagline { margin: 34px 0 0; font-size: clamp(14px, 1.4vw, 17px); color: var(--hero-fg-2); letter-spacing: .12em; }
.hero__scroll {
	position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	font-size: 10px; letter-spacing: .3em; color: rgba(255, 255, 255, .7);
}
.hero__scroll i { width: 1px; height: 42px; background: linear-gradient(var(--hero-c), transparent); animation: soa-drip 2s ease-in-out infinite; transform-origin: top; }
@keyframes soa-drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ==========================================================================
   Front sections
   ========================================================================== */
.statement { padding: clamp(80px, 12vw, 160px) 0 clamp(50px, 8vw, 100px); }
.statement__cols {
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px);
	align-items: start;
}
.statement__text { margin: 0; }
.statement__text--zh { font-size: clamp(22px, 2.5vw, 36px); line-height: 1.8; font-weight: 300; letter-spacing: .05em; }
.statement__en { padding-top: .45em; border-left: 1px solid var(--line-2); padding-left: clamp(20px, 3vw, 44px); }
.statement__text--en { font-size: clamp(15px, 1.35vw, 19px); line-height: 1.75; color: var(--fg-2); letter-spacing: 0; }
.statement__sign { margin: 28px 0 0; font-size: clamp(16px, 1.6vw, 20px); color: var(--accent-text); }
.statement__sign::before { content: "→ "; }
.front-content { max-width: var(--measure); margin-bottom: 60px; }

.concepts { padding: 30px 0 80px; }
.concepts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.concept {
	position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column;
	min-height: 380px; padding: 28px;
	border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
	color: var(--fg);
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s;
}
.concept--1 { --c: var(--accent); }
.concept--2 { --c: var(--pink); }
.concept--3 { --c: var(--blue); }
.concept:hover { transform: translateY(-6px); border-color: var(--c); box-shadow: 0 18px 50px -20px var(--c); }
.concept__num { margin: 0; font-size: 13px; color: var(--c); }
.concept::before {
	content: ""; position: absolute; z-index: -1; right: -40px; top: -40px; width: 220px; height: 220px;
	background: var(--c); opacity: .9;
	transition: transform 1.2s cubic-bezier(.2, .8, .2, 1), border-radius 1.2s;
}
.concept--1::before { border-radius: 58% 42% 63% 37% / 45% 55% 45% 55%; animation: soa-morph 11s ease-in-out infinite; }
.concept--2::before { border-radius: 50% 50% 8% 8%; width: 200px; height: 170px; right: -20px; top: -10px; }
.concept--3::before { border-radius: 8px; transform: rotate(18deg); width: 170px; height: 170px; right: -30px; top: -30px; }
.concept--2:hover::before { transform: scale(1.12) translateY(10px); }
.concept--3:hover::before { transform: rotate(108deg) scale(1.05); }
@keyframes soa-morph {
	33% { border-radius: 40% 60% 35% 65% / 60% 40% 60% 40%; }
	66% { border-radius: 65% 35% 50% 50% / 35% 65% 40% 60%; }
}
.concept__title { margin: auto 0 0; padding-top: 140px; color: var(--fg); font-size: clamp(40px, 4.4vw, 64px); font-weight: 900; line-height: 1.1; letter-spacing: .06em; }
.concept__en { margin: 6px 0 14px; font-size: 13px; letter-spacing: .2em; color: var(--c); }
.concept__text { margin: 0; font-size: 14px; color: var(--fg-2); line-height: 1.85; }
.concept__more { margin: 18px 0 0; font-size: 12px; color: var(--c); }
.concept__more a { color: inherit; }
.concept__more a:hover { text-decoration: underline; }
:root[data-scheme="light"] .concept__en,
:root[data-scheme="light"] .concept__num,
:root[data-scheme="light"] .concept__more { color: color-mix(in srgb, var(--c) 55%, #000); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head .eyebrow { margin: 0; }
.section-head__count { margin: 0; font-size: 12px; color: var(--fg-3); letter-spacing: .1em; }
.section-head__count span { color: var(--fg); }

.dims { padding: 40px 0 90px; }
.dims__grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 18px; }
.dim-card {
	display: flex; flex-direction: column; min-width: 0;
	border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
	overflow: hidden; transition: border-color .3s, box-shadow .3s, transform .3s;
}
.dim-card:hover { border-color: var(--c); box-shadow: 0 18px 50px -26px var(--c); transform: translateY(-4px); }
.dim-card__head {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; flex-direction: column; gap: 6px;
	padding: 22px 24px 26px; color: var(--fg);
	border-bottom: 1px solid var(--line);
}
.dim-card__head::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--c); transform: translateY(calc(100% - 6px));
	transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.dim-card__head:hover { color: #06100a; }
.dim-card__head:hover::before { transform: translateY(0); }
.dim-card__top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; letter-spacing: .14em; }
.dim-card__en { color: var(--c); transition: color .2s; }
.dim-card__count { color: var(--fg-3); transition: color .2s; }
.dim-card__head:hover .dim-card__en,
.dim-card__head:hover .dim-card__count { color: #06100a; }
.dim-card__name { font-size: clamp(30px, 3.4vw, 52px); font-weight: 900; line-height: 1.15; letter-spacing: .06em; }
.dim-card__desc { font-size: 13px; color: var(--fg-2); line-height: 1.7; }
.dim-card__head:hover .dim-card__desc { color: #06100a; }
.dim-card__posts { list-style: none; margin: 0; padding: 6px 24px; flex: 1; }
.dim-card__posts li { border-bottom: 1px dashed var(--line-2); }
.dim-card__posts li:last-child { border-bottom: 0; }
.dim-card__posts a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 11px 0; color: var(--fg); }
.dim-card__posts time { font-size: 11px; color: var(--fg-3); }
.dim-card__posts span { font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dim-card__posts a:hover span { color: var(--c); }
:root[data-scheme="light"] .dim-card__posts a:hover span,
:root[data-scheme="light"] .dim-card__en { color: color-mix(in srgb, var(--c) 55%, #000); }
.dim-card__empty { margin: 0; padding: 16px 24px; flex: 1; font-size: 13px; color: var(--fg-3); }
.dim-card__more { align-self: flex-start; margin: 4px 24px 22px; font-size: 12px; color: var(--c); letter-spacing: .1em; }
.dim-card__more:hover { text-decoration: underline; }

.latest { padding: 30px 0 90px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 28px 22px; }
.card { min-width: 0; }
.card__link { display: block; color: var(--fg); }
.card__link:hover { color: var(--fg); }
.card__media {
	position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius);
	background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--c) 70%, transparent), transparent 60%), var(--surface);
	border: 1px solid var(--line);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .4s; }
.card__media::after {
	content: ""; position: absolute; inset: 0; background: var(--c); mix-blend-mode: multiply; opacity: 0; transition: opacity .35s;
}
.card__link:hover .card__media img { transform: scale(1.05); filter: grayscale(1) contrast(1.15); }
.card__link:hover .card__media::after { opacity: .85; }
.card__glyph {
	position: absolute; left: 20px; bottom: 14px; font-family: var(--kr-wide);
	font-size: clamp(30px, 4vw, 52px); line-height: 1; color: var(--c); opacity: .9; word-break: break-all;
}
.card__body { padding: 16px 4px 0; }
.card__meta { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 12px; color: var(--fg-3); }
.card__title { margin: 0 0 8px; font-size: 19px; line-height: 1.5; font-weight: 700; letter-spacing: .03em; transition: color .2s; }
.card__link:hover .card__title { color: var(--accent-text); }
.card__excerpt { margin: 0; font-size: 14px; color: var(--fg-2); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.views { padding: 30px 0 100px; }
.views__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.view-tile {
	position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
	min-height: 280px; padding: 22px; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--line);
}
.view-tile:hover { color: var(--fg); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--glow); }
.view-tile__art { position: absolute; inset: 0 0 auto 0; height: 60%; opacity: .9; }
.view-tile--archive .view-tile__art { background: repeating-linear-gradient(0deg, transparent 0 13px, color-mix(in srgb, var(--accent) 55%, transparent) 13px 14px); mask: linear-gradient(#000, transparent); }
.view-tile--timeline .view-tile__art {
	background:
		linear-gradient(90deg, var(--accent) 0 30%, var(--pink) 30% 52%, var(--blue) 52% 70%, transparent 70%) 22px 30px / 70% 8px no-repeat,
		linear-gradient(90deg, var(--blue) 0 20%, var(--accent) 20% 70%, transparent 70%) 22px 52px / 80% 8px no-repeat,
		linear-gradient(90deg, var(--pink) 0 40%, var(--lemon) 40% 60%, transparent 60%) 22px 74px / 60% 8px no-repeat,
		linear-gradient(90deg, var(--accent) 0 90%, transparent 90%) 22px 96px / 86% 8px no-repeat;
}
.view-tile--river .view-tile__art {
	background:
		radial-gradient(circle, var(--accent) 0 2px, transparent 3px) 0 0 / 22px 18px,
		radial-gradient(circle, var(--pink) 0 2px, transparent 3px) 11px 9px / 22px 18px;
	mask: radial-gradient(ellipse 80% 30% at 50% 55%, #000 40%, transparent 70%);
	animation: soa-flow 8s linear infinite;
}
@keyframes soa-flow { to { background-position: 220px 0, 231px 9px; } }
.view-tile--rhizome .view-tile__art {
	background:
		radial-gradient(circle at 30% 40%, transparent 0 34px, var(--accent) 35px 36px, transparent 37px),
		radial-gradient(circle at 62% 55%, transparent 0 44px, var(--pink) 45px 46px, transparent 47px),
		radial-gradient(circle at 48% 30%, transparent 0 22px, var(--blue) 23px 24px, transparent 25px);
}
.view-tile__en { font-size: 12px; letter-spacing: .2em; color: var(--accent-text); }
.view-tile__zh { font-size: 34px; font-weight: 900; letter-spacing: .08em; line-height: 1.3; }
.view-tile__text { font-size: 13px; color: var(--fg-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; }
.cta {
	text-align: center; padding: clamp(70px, 10vw, 130px) var(--gutter);
	background:
		radial-gradient(ellipse 60% 80% at 50% 120%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%);
	border-bottom: 1px solid var(--line);
}
.cta__kicker { font-size: 12px; letter-spacing: .24em; color: var(--accent-text); margin: 0 0 16px; }
.cta__title { margin: 0 0 34px; font-size: clamp(30px, 4.6vw, 62px); font-weight: 900; letter-spacing: .06em; line-height: 1.3; }
.site-footer__grid {
	width: min(var(--max), 100% - 2 * var(--gutter)); margin: 0 auto;
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 60px; padding: 56px 0 40px;
	align-items: start;
}
.site-footer__name { margin: 0; font-size: clamp(16px, 1.6vw, 22px); line-height: 1.6; font-weight: 700; }
.site-footer__name .kr { letter-spacing: .1em; text-transform: uppercase; }
.site-footer__sep { color: var(--accent-text); margin: 0 .2em; }
.site-footer__desc { font-weight: 500; }
.site-footer__brand .footer-menu { margin-top: 18px; }
.site-footer__cta { text-align: right; }
.site-footer__tagline { margin: 0 0 22px; font-size: clamp(16px, 1.7vw, 24px); line-height: 1.6; color: var(--fg); }
.footer-widgets { grid-column: 1 / -1; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.footer-widgets { font-size: 14px; color: var(--fg-2); }
.site-footer__bar {
	width: min(var(--max), 100% - 2 * var(--gutter)); margin: 0 auto;
	display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center;
	padding: 20px 0 30px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.7; color: var(--fg-2);
}
.site-footer__text { flex: 1 1 420px; margin: 0; }
.site-footer__text .kr { color: var(--fg); }
.site-footer__dot { color: var(--accent-text); margin: 0 .15em; }
.site-footer__top { font-size: 11px; color: var(--fg-3); }
.social { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.social__link {
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
	border: 1px solid var(--line-2); color: var(--fg);
}
.social__link:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: var(--glow); }

.widget { margin-bottom: 28px; font-size: 14px; }
.widget-title { font-family: var(--kr); font-size: 12px; letter-spacing: .14em; color: var(--accent-text); font-weight: 400; text-transform: uppercase; }
.widget ul { list-style: none; padding: 0; }
.widget li { padding: 3px 0; }

/* ==========================================================================
   Lists, single, page
   ========================================================================== */
.list-head { padding: clamp(50px, 8vw, 100px) 0 36px; }
.list-head .eyebrow { color: var(--c, var(--accent-text)); }
.list-title { margin: 0; font-size: clamp(36px, 6vw, 80px); font-weight: 900; letter-spacing: .05em; line-height: 1.15; }
.list-title--cat { color: var(--c, var(--fg)); text-shadow: 0 0 40px color-mix(in srgb, var(--c, var(--accent)) 40%, transparent); }
:root[data-scheme="light"] .list-title--cat { color: var(--fg); text-shadow: none; }
.list-title em { font-style: normal; color: var(--accent-text); }
.list-desc { max-width: var(--measure); color: var(--fg-2); font-size: 15px; margin-top: 12px; }
.list-count { font-size: 12px; color: var(--fg-3); margin: 14px 0 0; }
.list-search { max-width: 640px; margin: 22px 0; }
.list-head + .card-grid,
.content > .card-grid { width: min(var(--max), 100% - 2 * var(--gutter)); margin: 0 auto 40px; }

.entry-row {
	display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px;
	padding: 22px 0; border-bottom: 1px solid var(--line);
}
.entry-row__date { font-size: 12px; color: var(--fg-3); padding-top: 5px; font-family: var(--kr); }
.entry-row__title { margin: 0 0 4px; font-size: 19px; font-weight: 700; line-height: 1.5; letter-spacing: .03em; }
.entry-row__excerpt { font-size: 14px; color: var(--fg-2); line-height: 1.8; }
.entry-row__meta { margin-top: 6px; font-size: 12px; }

.pagination { width: min(var(--max), 100% - 2 * var(--gutter)); margin: 32px auto 60px; font-family: var(--kr); font-size: 13px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--fg-2); }
.pagination .page-numbers.current,
.pagination a.page-numbers:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.single-entry { width: min(var(--measure), 100% - 2 * var(--gutter)); margin: 0 auto; padding-top: clamp(40px, 7vw, 90px); }
.entry-header { margin-bottom: 36px; }
.entry-meta { font-size: 12px; color: var(--fg-3); font-family: var(--kr); }
.entry-meta .cat-link { font-family: var(--body); color: var(--fg); }
.entry-title { margin: 14px 0 10px; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.3; font-weight: 900; letter-spacing: .04em; }
.entry-thumb { margin: 0 calc(50% - min(var(--page-w) * .48, 640px)) 44px; }
.entry-thumb img { width: 100%; display: block; border-radius: var(--radius); }

.citation { margin: 0 0 44px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.citation__label { font-family: var(--kr); font-size: 12px; font-weight: 400; letter-spacing: .14em; color: var(--accent-text); margin: 0 0 10px; }
.citation__text { font-size: 14px; line-height: 1.9; color: var(--fg-2); }
.citation__text p { margin: 0 0 .5em; }
.citation__src { margin: 6px 0 0; font-size: 13px; color: var(--fg-3); }
.citation__src a { color: var(--accent-text); }

.entry-content { font-size: 17px; line-height: 2; letter-spacing: .03em; }
.entry-content > * { margin-top: 0; margin-bottom: 1.35em; }
.entry-content a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.entry-content h2 { font-size: 26px; margin-top: 2.2em; font-weight: 900; }
.entry-content h2::before { content: "■ "; color: var(--accent); font-size: .6em; vertical-align: .2em; }
.entry-content h3 { font-size: 20px; margin-top: 2em; font-weight: 700; }
.entry-content h4 { font-size: 17px; margin-top: 1.8em; }
.entry-content blockquote,
.entry-content .wp-block-quote {
	margin-left: 0; padding: 6px 0 6px 24px;
	border-left: 3px solid var(--accent); color: var(--fg-2);
}
.entry-content .wp-block-pullquote { border: 0; padding: 1.5em 0; text-align: center; font-size: 1.3em; font-weight: 700; }
.entry-content .wp-block-pullquote p { color: var(--accent-text); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content img { border-radius: 10px; }
.entry-content figcaption,
.entry-content .wp-element-caption { font-size: 12px; color: var(--fg-3); text-align: center; margin-top: .6em; }
.entry-content hr,
.entry-content .wp-block-separator { border: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--pink), var(--blue)); margin: 3em auto; }
.entry-content code { font-family: var(--kr); font-size: .86em; background: var(--surface); padding: .12em .4em; border-radius: 6px; }
.entry-content pre { font-family: var(--kr); font-size: 13px; background: var(--surface); padding: 18px; border-radius: 12px; overflow-x: auto; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: 14px; }
.entry-content th,
.entry-content td { border: 1px solid var(--line-2); padding: 8px 12px; }
.entry-content .alignwide { margin-left: calc(-1 * min(140px, 8vw)); margin-right: calc(-1 * min(140px, 8vw)); max-width: none; }
.entry-content .alignfull { margin-left: calc(50% - var(--page-w) / 2); margin-right: calc(50% - var(--page-w) / 2); max-width: var(--page-w); }
.entry-content .alignleft { float: left; margin: .4em 1.5em 1em 0; }
.entry-content .alignright { float: right; margin: .4em 0 1em 1.5em; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .wp-block-button__link { background: var(--accent); color: var(--on-accent); border-radius: 99px; font-size: 15px; font-weight: 700; text-decoration: none; padding: .7em 1.6em; }
.entry-content .wp-block-button__link:hover { box-shadow: var(--glow); }
.entry-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--accent-text); border: 2px solid var(--accent); }
.has-night-color { color: #07090a; }
.has-mist-color { color: #eef5f0; }
.has-neon-color { color: #39ff7f; }
.has-pink-color { color: #ff3fa4; }
.has-blue-color { color: #2f7bff; }
.has-lemon-color { color: #eaff3d; }
.has-violet-color { color: #a259ff; }
.has-orange-color { color: #ff7a1a; }
.has-night-background-color { background-color: #07090a; color: #eef5f0; }
.has-mist-background-color { background-color: #eef5f0; color: #07090a; }
.has-neon-background-color { background-color: #39ff7f; color: #04140a; }
.has-pink-background-color { background-color: #ff3fa4; color: #fff; }
.has-blue-background-color { background-color: #2f7bff; color: #fff; }
.has-lemon-background-color { background-color: #eaff3d; color: #07090a; }
.has-violet-background-color { background-color: #a259ff; color: #fff; }
.has-orange-background-color { background-color: #ff7a1a; color: #07090a; }

.page-links { font-size: 13px; margin: 24px 0; }
.page-links a { padding: 2px 10px; border: 1px solid var(--line-2); border-radius: 99px; }

.entry-footer { margin-top: 64px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-navigation a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.post-navigation a:hover { border-color: var(--accent); color: var(--fg); }
.post-navigation .mono { font-size: 11px; color: var(--accent-text); }
.post-navigation .nav-title { font-size: 15px; font-weight: 700; }
.post-navigation .nav-next { text-align: right; }

.single-widgets,
.comments-area { width: min(var(--measure), 100% - 2 * var(--gutter)); margin: 0 auto 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; border-left: 2px solid var(--line-2); }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.comment-meta { font-size: 12px; color: var(--fg-3); }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-form label { display: block; font-size: 13px; color: var(--fg-2); }
.comment-form input:not([type="checkbox"]):not([type="submit"]),
.comment-form textarea {
	width: 100%; background: var(--surface); color: var(--fg); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; font: inherit;
}
.comment-form .submit { background: var(--accent); border: 0; color: var(--on-accent); padding: 10px 24px; border-radius: 99px; font-size: 13px; font-weight: 700; cursor: pointer; }

/* ---------- Shared page title: English line + Chinese line, same size ---------- */
.page-head { padding: clamp(44px, 7vw, 96px) 0 clamp(22px, 3vw, 36px); }
.page-title {
	margin: 0; display: flex; flex-direction: column; gap: .08em;
	font-size: clamp(30px, 3.6vw, 52px); line-height: 1.1; font-weight: 900;
}
.page-title__en { font-family: var(--kr); font-weight: 700; letter-spacing: .01em; color: var(--accent-text); text-transform: uppercase; overflow-wrap: anywhere; }
.page-title__zh { letter-spacing: .08em; }
.page-head .viz-stats,
.page-head .viz-intro { margin-top: 18px; }

/* ==========================================================================
   Visualization pages
   ========================================================================== */
.viz { width: min(var(--max), 100% - 2 * var(--gutter)); margin: 0 auto; padding-bottom: 60px; }
.viz-head { padding: clamp(44px, 7vw, 96px) 0 clamp(22px, 3vw, 36px); }
.viz-title { margin: 0; font-size: clamp(40px, 6.5vw, 88px); font-weight: 900; letter-spacing: .06em; line-height: 1.1; }
.viz-en { display: inline-block; font-size: 13px; letter-spacing: .2em; color: var(--accent-text); vertical-align: middle; margin-left: 12px; font-weight: 400; }
.viz-stats { font-size: 12px; color: var(--fg-3); margin: 12px 0 0; font-family: var(--kr); }
.viz-intro { max-width: var(--measure); font-size: 15px; color: var(--fg-2); margin-top: 14px; line-height: 1.9; }
.viz-intro > *:last-child { margin-bottom: 0; }

.vz-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 24px; }
.vz-filter {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-2);
	font-family: var(--kr); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2);
}
.vz-filter .zh { font-family: var(--body); letter-spacing: .04em; text-transform: none; font-size: 13px; color: var(--fg); }
.vz-filter .n { color: var(--fg-3); }
.vz-filter i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--accent)); box-shadow: 0 0 8px var(--c, var(--accent)); }
.vz-filter:hover { border-color: var(--c, var(--accent)); }
.vz-filter.is-on { background: var(--c, var(--accent)); border-color: var(--c, var(--accent)); color: #06100a; }
.vz-filter.is-on .zh,
.vz-filter.is-on .n { color: #06100a; }
.vz-filter.is-on i { background: #06100a; box-shadow: none; }

/* archive */
.vz-search { flex: 1 1 280px; max-width: 520px; margin-right: 8px; }
.vz-search input {
	width: 100%; background: var(--surface); border: 1px solid var(--line-2); border-radius: 99px; color: var(--fg);
	font: inherit; font-size: 15px; padding: 10px 18px;
}
.vz-search input:focus { outline: none; border-color: var(--accent); box-shadow: var(--glow); }
.soa-viz .entry-list { border-top: 1px solid var(--line); }
.vz-more { display: block; margin: 32px auto; }
.vz-row-cats { font-size: 13px; margin-top: 6px; color: var(--fg-2); }
.vz-row-cats span { margin-right: 14px; }

/* timeline */
.tl { border-top: 1px solid var(--line); }
.tl-row { border-bottom: 1px solid var(--line); }
.tl-head {
	display: grid; grid-template-columns: 90px 56px minmax(0, 1fr); align-items: center; gap: 14px;
	width: 100%; padding: 14px 0; text-align: left;
}
.tl-head:disabled { cursor: default; opacity: .45; }
.tl-head:not(:disabled):hover .tl-year { color: var(--accent-text); }
.tl-year { font-family: var(--kr); font-weight: 700; font-size: 20px; }
.tl-n { font-family: var(--kr); font-size: 12px; color: var(--fg-3); text-align: right; }
.tl-bar { display: flex; height: 16px; gap: 3px; }
.tl-bar span { background: var(--c); height: 100%; min-width: 4px; border-radius: 99px; box-shadow: 0 0 10px color-mix(in srgb, var(--c) 50%, transparent); transition: opacity .25s; }
.tl-row.is-open .tl-year { color: var(--accent-text); }
.tl-list { display: none; padding: 4px 0 22px 160px; }
.tl-row.is-open .tl-list { display: block; }
.tl-month { font-family: var(--kr); font-size: 11px; color: var(--accent-text); letter-spacing: .14em; margin: 14px 0 4px; }
.tl-item { display: grid; grid-template-columns: 16px 56px minmax(0, 1fr); align-items: baseline; gap: 6px; font-size: 15px; padding: 4px 0; }
.tl-item .dot { margin: 0; }
.tl-item time { font-family: var(--kr); font-size: 11px; color: var(--fg-3); }

/* river */
.river-wrap { position: relative; margin: 0 calc(50% - var(--page-w) / 2); background: var(--viz-bg); border-block: 1px solid var(--line); overflow-x: auto; overscroll-behavior-x: contain; }
.river-svg { display: block; width: 100%; min-width: 980px; height: auto; }
.river-svg .axis text { fill: var(--viz-fg-3); font-family: var(--kr); font-size: 15px; }
.river-svg .axis line { stroke: var(--viz-line); }
.river-svg .lbl { fill: var(--viz-fg); font-family: var(--kr); font-size: 18px; }
.river-svg .lbl.zh { font-family: var(--body); font-size: 18px; font-weight: 500; }
.river-svg a:hover .lbl { fill: var(--accent); }
.river-svg .dot-p { cursor: pointer; transition: opacity .25s; mix-blend-mode: screen; }
.river-svg .dot-p:hover { stroke: var(--viz-fg); stroke-width: 1.5; }
.river-svg.has-focus .dot-p { opacity: .08; }
.river-svg.has-focus .dot-p.is-focus { opacity: 1; }
.vz-tip {
	position: absolute; pointer-events: none; z-index: 5;
	max-width: 360px; padding: 12px 14px; border-radius: 10px;
	background: var(--viz-panel); color: var(--viz-fg); border: 1px solid var(--viz-accent); backdrop-filter: blur(6px);
	font-size: 15px; line-height: 1.6;
	transform: translate(-50%, calc(-100% - 14px));
	opacity: 0; transition: opacity .12s;
}
.vz-tip.is-on { opacity: 1; }
.vz-tip .mono { display: block; font-size: 12px; color: var(--viz-accent); }
.river-legend { text-align: center; font-size: 13px; color: var(--fg-2); margin: 16px 0; }

/* rhizome */
.soa-viz-rhizome .viz { width: 100%; padding: 0; }
.viz--rhizome { position: relative; }
.viz--rhizome .viz-head {
	position: absolute; z-index: 3; left: var(--gutter); top: 22px;
	padding: 0; max-width: 360px; pointer-events: none;
}
.viz--rhizome .page-title { text-shadow: 0 0 24px var(--viz-bg); }
.viz--rhizome .viz-stats { color: var(--viz-fg-3); }
.viz--rhizome .viz-intro { color: var(--viz-fg-2); font-size: 13px; }
.viz--rhizome .soa-viz {
	position: relative; height: calc(100vh - var(--header-h)); min-height: 560px; overflow: hidden;
	background: radial-gradient(ellipse at 50% 50%, var(--viz-bg-2) 0%, var(--viz-bg) 75%);
}
.admin-bar .viz--rhizome .soa-viz { height: calc(100vh - var(--header-h) - 32px); }
.rz-svg { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.rz-svg.is-dragging { cursor: grabbing; }
.rz-svg text { font-family: var(--body); fill: var(--viz-fg); }
.rz-contour { stroke-width: 1.4; fill-opacity: .06; stroke-dasharray: none; }
.rz-contour.sub { stroke: var(--viz-fg-3); stroke-dasharray: 5 6; stroke-width: 1; fill: none; }
.rz-plateau-zh { font-family: var(--body) !important; font-size: calc(30px * var(--u, 1)); font-weight: 900; letter-spacing: .1em; paint-order: stroke; stroke: var(--viz-halo); stroke-width: calc(5px * var(--u, 1)); stroke-linejoin: round; }
.rz-plateau-en { font-family: var(--kr) !important; font-size: calc(11.5px * var(--u, 1)); letter-spacing: .14em; fill: var(--viz-fg-2) !important; paint-order: stroke; stroke: var(--viz-halo); stroke-width: calc(3px * var(--u, 1)); }
.rz-link { stroke: var(--viz-accent); stroke-width: .8; opacity: .18; fill: none; }
.rz-node { cursor: pointer; }
.rz-node text { font-size: calc(14px * var(--u, 1)); paint-order: stroke; stroke: var(--viz-halo); stroke-width: calc(3px * var(--u, 1)); stroke-linejoin: round; }
.rz-node > :not(text) { transform: scale(var(--u, 1)); }
.rz-node .rz-person { fill: var(--viz-fg); }
.rz-node .rz-ring { fill: none; stroke: var(--pink); stroke-width: 1.2; }
.rz-node .rz-x { stroke: var(--viz-concept); stroke-width: 1.6; }
.rz-node .rz-hub-ring { fill: none; stroke: var(--viz-accent); stroke-width: 1.5; }
.rz-node .rz-hub-core { fill: var(--viz-accent); }
.rz-node.concept text { font-family: var(--kr) !important; font-size: calc(13px * var(--u, 1)); fill: var(--viz-concept); }
.rz-node.work text { font-size: calc(12.5px * var(--u, 1)); fill: var(--viz-work); }
.rz-node.hub text { font-size: calc(17px * var(--u, 1)); font-weight: 900; fill: var(--viz-accent); }
.rz-node:hover text { fill: var(--accent) !important; }
.rz-svg.has-focus .rz-node,
.rz-svg.has-focus .rz-link { opacity: .1; }
.rz-svg.has-focus .rz-node.is-near,
.rz-svg.has-focus .rz-link.is-near { opacity: 1; }
.rz-legend {
	position: absolute; right: var(--gutter); top: 22px; z-index: 3;
	padding: 10px 16px; font-size: 14px; line-height: 1.9; border-radius: 12px;
	background: var(--viz-panel); color: var(--viz-fg); border: 1px solid var(--viz-line);
	backdrop-filter: blur(6px);
}
.rz-legend summary { font-family: var(--kr); font-size: 12px; letter-spacing: .14em; color: var(--viz-accent); cursor: pointer; list-style: none; }
.rz-legend summary::-webkit-details-marker { display: none; }
.rz-legend summary::after { content: " +"; }
.rz-legend[open] summary { margin-bottom: 6px; }
.rz-legend[open] summary::after { content: " −"; }
.rz-legend span { display: inline-block; width: 20px; text-align: center; color: var(--viz-accent); }
.rz-foot { position: absolute; right: var(--gutter); bottom: 16px; z-index: 3; font-family: var(--kr); font-size: 12px; letter-spacing: .12em; color: var(--viz-fg-3); }
.rz-zoom { position: absolute; left: var(--gutter); bottom: 16px; z-index: 3; display: flex; gap: 6px; }
.rz-zoom button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--viz-line); background: var(--viz-panel); color: var(--viz-fg); font-family: var(--kr); }
.rz-zoom button:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   Block-built pages (homepage, 人們, 閱讀, 關於)
   ========================================================================== */
/* Classic themes wrap group content in an extra div; let our grids see the real children. */
.front-blocks .wp-block-group__inner-container,
.entry-content .wp-block-group__inner-container { display: contents; }
.front-blocks > .wp-block-group,
.front-blocks > section { margin-block: 0; }
.front-blocks > :not(.wrap):not(.hero):not(.alignfull):not([class*="soa-"]) { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

.wide-page__content { padding-bottom: 60px; }
.wide-page__content > * { max-width: 100%; }
.wide-page__content > p,
.wide-page__content > h2,
.wide-page__content > h3,
.wide-page__content > ul,
.wide-page__content > ol { max-width: var(--measure); }
/* Images, galleries, video and embeds line up with the text column (wide / full-width blocks excepted). */
.wide-page__content > figure:not(.alignwide):not(.alignfull),
.wide-page__content > .wp-block-image:not(.alignwide):not(.alignfull),
.wide-page__content > .wp-block-gallery:not(.alignwide):not(.alignfull),
.wide-page__content > .wp-block-video:not(.alignwide):not(.alignfull),
.wide-page__content > .wp-block-embed:not(.alignwide):not(.alignfull),
.wide-page__content > .wp-block-media-text:not(.alignwide):not(.alignfull) { max-width: var(--measure); width: 100%; margin-left: 0; margin-right: 0; }
.wide-page__content > .wp-block-image:not(.alignwide):not(.alignfull) img,
.wide-page__content > figure:not(.alignwide):not(.alignfull) > img { width: 100%; height: auto; }
.wide-page__content > .wp-block-image.alignleft,
.wide-page__content > .wp-block-image.alignright,
.wide-page__content > .wp-block-image.aligncenter { float: none; }
.wide-page__thumb { margin-bottom: 40px; }
.wide-page__thumb img { max-width: var(--measure); }
.wide-page__thumb img { width: 100%; border-radius: var(--radius); display: block; }
.page-lead { font-size: clamp(18px, 2vw, 24px); line-height: 1.8; font-weight: 300; max-width: 900px; margin: 0 0 44px; }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.person-card {
	position: relative; padding: 24px; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--line);
	transition: border-color .3s, transform .3s;
}
.person-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.person-card::before {
	content: ""; display: block; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 18px;
	background: radial-gradient(circle at 35% 35%, var(--accent) 0 30%, transparent 31%), radial-gradient(circle at 65% 65%, var(--pink) 0 30%, transparent 31%), var(--bg-2);
}
.person-card:nth-child(3n+2)::before { background: radial-gradient(circle at 40% 40%, var(--blue) 0 34%, transparent 35%), radial-gradient(circle at 70% 60%, var(--lemon) 0 22%, transparent 23%), var(--bg-2); }
.person-card:nth-child(3n)::before { background: radial-gradient(circle at 50% 45%, var(--violet) 0 36%, transparent 37%), radial-gradient(circle at 30% 70%, var(--accent) 0 18%, transparent 19%), var(--bg-2); }
.person-card:has(figure)::before,
.person-card:has(img)::before { display: none; }
.person-card figure { margin: 0 0 18px; }
.person-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.person-card > * { margin: 0; }
.person-card__num { font-size: 11px; color: var(--fg-3); margin-bottom: 4px !important; }
.person-card__name { font-size: 20px; font-weight: 900; letter-spacing: .04em; line-height: 1.4; }
.person-card__name::before { content: none !important; }
.person-card__role { font-size: 11px; letter-spacing: .1em; color: var(--accent-text); margin: 4px 0 12px !important; }
.person-card__bio { font-size: 14px; line-height: 1.8; color: var(--fg-2); }

.read-list { border-top: 1px solid var(--line-2); }
.read-item {
	display: grid; grid-template-columns: 160px minmax(0, 1fr); column-gap: 28px;
	padding: 24px 0; border-bottom: 1px solid var(--line-2);
}
.read-item > * { margin: 0; grid-column: 2; }
.read-item__meta { grid-column: 1 !important; grid-row: 1 / span 3; font-size: 11px; letter-spacing: .1em; color: var(--accent-text); padding-top: 6px; }
.read-item__title { font-size: 22px; font-weight: 900; line-height: 1.45; }
.read-item__title::before { content: none !important; }
.read-item__title a { text-decoration: none; color: var(--fg); }
.read-item__title a:hover { color: var(--accent-text); }
.read-item__by { font-size: 13px; color: var(--fg-2); margin-top: 4px; }
.read-item__note { font-size: 15px; line-height: 1.85; margin-top: 8px; }

.statement--page { padding: 0 0 50px; margin-bottom: 40px; border-bottom: 1px solid var(--line-2); }
.entry-content .statement__text { margin: 0; }

/* Day mode: deepen neon category colours drawn on pale canvases */
:root[data-scheme="light"] .river-svg .dot-p { mix-blend-mode: multiply; }
:root[data-scheme="light"] .rz-plateau-zh,
:root[data-scheme="light"] .rz-node.work path { filter: brightness(.62) saturate(1.4); }
:root[data-scheme="light"] .rz-contour { fill-opacity: .1; }
:root[data-scheme="light"] .hero__grain { opacity: .08; mix-blend-mode: multiply; }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* ---------- Desktop: menu as a left or right rail (外觀 → 自訂 → 色彩與字型 → 選單位置) ---------- */
@media (min-width: 1021px) {
	body.nav-left,
	body.nav-right { --rail-w: clamp(124px, 9.5vw, 156px); --header-h: 0px; padding-top: 0; }
	body.nav-left { padding-left: var(--rail-w); }
	body.nav-right { padding-right: var(--rail-w); }
	.nav-left .site-header,
	.nav-right .site-header {
		inset: 0 auto 0 0; width: var(--rail-w); height: auto;
		border-bottom: 0; border-right: 1px solid var(--line);
		background: color-mix(in srgb, var(--bg) 92%, transparent);
		color: var(--fg) !important;
	}
	.nav-right .site-header { inset: 0 0 0 auto; border-right: 0; border-left: 1px solid var(--line); }
	.admin-bar.nav-left .site-header,
	.admin-bar.nav-right .site-header { top: 32px; }
	.has-hero.nav-left .site-header:not(.is-scrolled),
	.has-hero.nav-right .site-header:not(.is-scrolled) {
		background: color-mix(in srgb, var(--viz-bg) 72%, transparent); border-color: var(--viz-line);
		backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--hero-fg) !important;
	}
	.has-hero.nav-left .site-header:not(.is-scrolled) .site-tagline,
	.has-hero.nav-right .site-header:not(.is-scrolled) .site-tagline { color: var(--hero-fg-2); }
	.nav-left .site-header__inner,
	.nav-right .site-header__inner { flex-direction: column; align-items: stretch; gap: 22px; padding: 26px 12px 20px; }
	.nav-left .brand,
	.nav-right .brand { flex-direction: column; text-align: center; gap: 10px; }
	.nav-left .brand__logo,
	.nav-right .brand__logo,
	.nav-left .brand__mark,
	.nav-right .brand__mark { width: 44px; height: 44px; margin: 0 auto; }
	.nav-left .brand__text,
	.nav-right .brand__text { align-items: center; }
	.nav-left .site-name,
	.nav-right .site-name { font-size: 11px; white-space: normal; line-height: 1.5; }
	.nav-left .site-tagline,
	.nav-right .site-tagline { display: block; white-space: normal; font-size: 10px; line-height: 1.6; margin-top: 4px; }
	.nav-left .main-nav,
	.nav-right .main-nav { margin: 0; flex: 1; overflow-y: auto; scrollbar-width: none; }
	.nav-left .nav-menu,
	.nav-right .nav-menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.nav-left .nav-menu a,
	.nav-right .nav-menu a { padding: clamp(8px, 1.5vh, 14px) 6px; }
	.nav-left .nav-menu .nav-en,
	.nav-right .nav-menu .nav-en { font-size: clamp(10px, .8vw, 12.5px); }
	.nav-left .nav-menu .nav-zh,
	.nav-right .nav-menu .nav-zh { font-size: clamp(12px, .95vw, 14.5px); }
	.nav-left .site-header__tools,
	.nav-right .site-header__tools { justify-content: center; }
	.nav-left .search-dialog,
	.nav-right .search-dialog { z-index: 70; }
}

@media (max-width: 1280px) {
	.nav-top .site-tagline { display: none; }
}
@media (max-width: 1100px) {
	.views__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-header__inner { gap: 12px; }
	.nav-menu { gap: 0; }
}
@media (max-width: 1020px) {
	/* Tablets & phones: site title on two lines (name / tagline), never under the buttons. */
	.brand { min-width: 0; gap: 10px; }
	.brand__text { min-width: 0; }
	.site-name { font-size: clamp(11.5px, 3.4vw, 14px); letter-spacing: .08em; white-space: normal; }
	.nav-top .site-tagline,
	.site-tagline { display: block; font-size: clamp(10px, 2.8vw, 12px); line-height: 1.35; white-space: normal; overflow: visible; text-overflow: clip; margin-top: 2px; }
	/* Tablets & phones: menu on top, behind a ☰ button that drops down a full-screen list. */
	:root { --header-h: 64px; }
	.menu-toggle { display: grid; }
	.site-header__inner { gap: 10px; }
	.brand { flex: 1 1 auto; }
	.main-nav {
		position: absolute; top: 100%; left: 0; right: 0; z-index: 39;
		height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
		margin: 0; padding: 12px var(--gutter) 40px;
		background: var(--bg); color: var(--fg);
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: opacity .25s, transform .25s, visibility .25s;
		overflow-y: auto;
	}
	.menu-open .main-nav { opacity: 1; transform: none; visibility: visible; }
	.has-hero .site-header.menu-open { color: var(--fg); }
	.nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-menu a {
		flex-direction: column-reverse; align-items: flex-start; gap: 2px;
		padding: clamp(12px, 2.2vh, 20px) 4px; border-radius: 0; border-bottom: 1px solid var(--line); text-align: left;
	}
	.nav-menu .nav-en { font-size: clamp(22px, 5.4vw, 34px); letter-spacing: .02em; }
	.nav-menu .nav-zh { font-size: clamp(13px, 2.8vw, 17px); }
	.nav-menu .current-menu-item > a,
	.nav-menu .current_page_item > a { background: none; color: var(--accent-text); }
	.concepts__grid { grid-template-columns: minmax(0, 1fr); }
	.statement__cols { grid-template-columns: minmax(0, 1fr); }
	.read-item { grid-template-columns: minmax(0, 1fr); }
	.read-item > *,
	.read-item__meta { grid-column: 1 !important; grid-row: auto; }
	.statement__en { border-left: 0; padding-left: 0; padding-top: 22px; border-top: 1px solid var(--line-2); }
	.concept { min-height: 300px; }
	.concept__title { padding-top: 90px; }
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.site-footer__cta { text-align: left; }
	.dims__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dims__grid[style*="--cols:1"] { grid-template-columns: minmax(0, 1fr); }
	.post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); }
}

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

@media (max-width: 640px) {
	:root { --header-h: 60px; }
	.dims__grid { grid-template-columns: minmax(0, 1fr); }
	.views__grid { grid-template-columns: minmax(0, 1fr); }
	.view-tile { min-height: 220px; }
	.entry-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.tl-head { grid-template-columns: 62px 34px minmax(0, 1fr); }
	.tl-list { padding-left: 0; }
	.viz--rhizome .viz-intro { display: none; }
	.rz-legend { top: auto; bottom: 16px; right: 16px; max-width: calc(100% - 140px); }
	.rz-foot { display: none; }
	.entry-content { font-size: 16px; }
	.entry-content .alignwide { margin-left: 0; margin-right: 0; }
	.hero__dot { margin: 0 .35em; }
}

@media (max-width: 380px) {
	.site-header__inner { gap: 6px; padding-left: 12px; padding-right: 8px; }
	.brand { gap: 8px; }
	.brand__mark,
	.brand__logo { width: 28px; height: 28px; }
	.site-name { font-size: 11px; letter-spacing: .03em; white-space: nowrap; }
	.site-tagline { font-size: 9.5px; letter-spacing: 0; white-space: nowrap; }
	.site-header__tools { gap: 0; }
	.icon-btn { width: 34px; height: 34px; }
}

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

/* ==========================================================================
   Refugee Path additions
   ========================================================================== */

/* ---------- Drop-down menus (one level) ---------- */
.nav-menu > li { position: relative; }
.nav-menu .sub-menu {
	list-style: none; margin: 0; padding: 6px;
	position: absolute; top: calc(100% + 6px); left: 50%; z-index: 45;
	min-width: 240px; transform: translate(-50%, 6px);
	background: var(--bg); color: var(--fg);
	border: 1px solid var(--line-2); border-radius: 14px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
	opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-menu > li:hover > .sub-menu,
.nav-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-menu .sub-menu a { flex-direction: column-reverse; align-items: flex-start; text-align: left; padding: 9px 12px; border-radius: 9px; }
.nav-menu .sub-menu .nav-zh { opacity: 1; font-size: 14px; white-space: normal; }
.nav-menu .sub-menu .nav-en { font-size: 10px; color: var(--fg-3); }
.nav-menu .menu-item-has-children > a .nav-zh::after { content: " ▾"; font-size: .8em; opacity: .6; }
.nav-menu .sub-menu .current-menu-item > a { background: color-mix(in srgb, var(--accent) 18%, transparent); color: inherit; }

@media (min-width: 1021px) {
	/* Side rails (選單位置：左側／右側): children shown under their parent. */
	.nav-left .nav-menu .sub-menu,
	.nav-right .nav-menu .sub-menu { position: static; transform: none; opacity: 1; visibility: visible; min-width: 0; padding: 0 0 6px 10px; border: 0; box-shadow: none; background: none; }
	.nav-left .nav-menu .sub-menu a,
	.nav-right .nav-menu .sub-menu a { padding: 6px; }
}
@media (max-width: 1020px) {
	.nav-menu .sub-menu { position: static; transform: none; opacity: 1; visibility: visible; min-width: 0; padding: 0 0 8px 18px; border: 0; border-radius: 0; box-shadow: none; background: none; }
	.nav-menu .sub-menu a { padding: 10px 4px; border-bottom: 1px dashed var(--line); }
	.nav-menu .sub-menu .nav-en { font-size: 11px; }
	.nav-menu .sub-menu .nav-zh { font-size: 15px; }
	.nav-menu .menu-item-has-children > a .nav-zh::after { content: ""; }
}

/* ---------- Imported content: callouts, panels, toggles, columns ---------- */
.entry-content .rp-callout,
.entry-content .rp-panel {
	padding: clamp(18px, 3vw, 28px); border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--line);
}
.entry-content .rp-callout { border-left: 4px solid var(--accent); }
.entry-content .rp-callout > :last-child,
.entry-content .rp-panel > :last-child { margin-bottom: 0; }
.entry-content .rp-panel .wp-block-columns { margin-bottom: 0; }
.entry-content .wp-block-details {
	margin-bottom: 1em; padding: 0; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
}
.entry-content .wp-block-details > summary {
	cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none;
	display: flex; gap: 10px; align-items: baseline; background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.entry-content .wp-block-details > summary::-webkit-details-marker { display: none; }
.entry-content .wp-block-details > summary::before { content: "＋"; font-family: var(--kr); color: var(--accent-text); }
.entry-content .wp-block-details[open] > summary::before { content: "－"; }
.entry-content .wp-block-details > :not(summary) { margin: 1em 18px; }
.entry-content .wp-block-columns { gap: clamp(18px, 3vw, 40px); }
.entry-content ul ul,
.entry-content ol ul { margin: .3em 0; }
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.entry-content .wp-block-button__link {
	display: inline-flex; align-items: center; padding: 12px 22px; border-radius: 999px;
	background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 700;
}
.entry-content .wp-block-button__link:hover { box-shadow: var(--glow); }
.entry-content .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 12px; }

/* ---------- Page cards (soa/pages) & latest-records blocks inside pages ---------- */
.entry-content .latest { width: 100%; margin: 3em 0; }
.entry-content .latest .section-head { margin-bottom: 18px; }
.entry-content .card a,
.entry-content .card-grid a { text-decoration: none; color: inherit; }
.card--page .card__glyph { font-size: clamp(16px, 2vw, 22px); }

/* ---------- Front-end edit bar (logged-in editors) ---------- */
.rp-edit {
	position: fixed; z-index: 99990; left: 16px; bottom: 16px;
	display: flex; align-items: stretch; gap: 0; max-width: calc(100vw - 32px);
	background: var(--bg); color: var(--fg); border: 1px solid var(--accent);
	border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); font-size: 12px; overflow: hidden;
}
.rp-edit__toggle { background: var(--accent); color: var(--on-accent); font-weight: 700; letter-spacing: .1em; padding: 0 14px; border: 0; cursor: pointer; font-family: var(--kr); }
.rp-edit__links { display: flex; flex-wrap: wrap; }
.rp-edit__links a { padding: 10px 14px; white-space: nowrap; border-left: 1px solid var(--line-2); }
.rp-edit__links a:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.rp-edit__main { color: var(--accent-text); font-weight: 700; }
.rp-edit.is-collapsed .rp-edit__links { display: none; }
@media (max-width: 640px) {
	.rp-edit { left: 10px; bottom: 10px; }
	.rp-edit__links a:not(.rp-edit__main) { display: none; }
}
@media print { .rp-edit { display: none; } }

/* ---------- Logo before the site title ---------- */
.brand__logo { width: var(--logo-size, 40px); height: var(--logo-size, 40px); object-fit: contain; flex: 0 0 auto; }
.brand__logo--default { background: #fff; border-radius: 10px; padding: 2px; }

/* ---------- Split hero: photo + text over the animated background ---------- */
.hero--split {
	display: grid; place-items: stretch;
	grid-template-columns: minmax(0, var(--photo-w, 50%)) minmax(0, 1fr);
	min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
	background: var(--viz-bg);
}
.hero--split::after { display: none; }
.hero--photo-right { grid-template-columns: minmax(0, 1fr) minmax(0, var(--photo-w, 50%)); }
.hero--photo-right .hero__photo { order: 2; }
.hero__photo { position: relative; margin: 0; overflow: hidden; background: var(--bg-2); min-height: 320px; }
.hero__photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero--fit-contain .hero__photo-img { object-fit: contain; padding: clamp(16px, 3vw, 40px); }
.hero__panel {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; align-items: center;
	background: var(--viz-bg); color: var(--hero-fg);
}
.hero__panel::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(90deg, color-mix(in srgb, var(--viz-bg) 55%, transparent) 0%, color-mix(in srgb, var(--viz-bg) 15%, transparent) 75%, transparent 100%);
}
.hero--photo-right .hero__panel::after { background: linear-gradient(270deg, color-mix(in srgb, var(--viz-bg) 55%, transparent) 0%, color-mix(in srgb, var(--viz-bg) 15%, transparent) 75%, transparent 100%); }
.hero__inner--split { width: 100%; text-align: left; padding: clamp(40px, 6vw, 96px) clamp(24px, 5vw, 80px); }
.hero__inner--split .hero__kicker { margin-bottom: 22px; }
.hero__heading { margin: 0 0 28px; font-size: clamp(34px, 4.6vw, 68px); line-height: 1.12; font-weight: 900; letter-spacing: .04em; }
.hero__heading-line { display: block; }
.hero__heading-line.kr { font-family: var(--kr-wide); font-size: .62em; letter-spacing: .02em; color: var(--hero-c); text-shadow: 0 0 22px color-mix(in srgb, var(--hero-c) 55%, transparent); text-transform: uppercase; margin-top: .25em; transition: color .5s; }
.hero__lead { margin: 0 0 1.1em; max-width: 40em; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.95; color: var(--hero-fg); }
.hero__lead--en { font-size: clamp(12.5px, 1vw, 14.5px); line-height: 1.85; color: var(--hero-fg-2); }
.hero__sign { margin: 0 0 26px; color: var(--hero-c); font-size: 14px; letter-spacing: .04em; transition: color .5s; }
.hero__list--split { font-size: clamp(15px, 1.35vw, 19px); line-height: 1.9; font-weight: 700; text-wrap: pretty; }
.hero__list--split .hero__dot { margin: 0 .5em; }
.hero__inner--split .hero__tagline { margin-top: 20px; font-size: 13px; letter-spacing: .06em; }
:root[data-scheme="light"] .hero--split .hero__panel::after { opacity: .9; }

@media (max-width: 900px) {
	.hero--split,
	.hero--photo-right { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.hero--photo-right .hero__photo { order: 0; }
	.hero__photo { aspect-ratio: 16 / 10; min-height: 0; }
	.hero__panel { min-height: 70vh; }
	.hero__panel::after { background: color-mix(in srgb, var(--viz-bg) 55%, transparent); }
	.hero--photo-right .hero__panel::after { background: color-mix(in srgb, var(--viz-bg) 55%, transparent); }
}

/* ---------- 人們 Peoples ---------- */
.entry-content .people-heading { margin-top: 0; }
.people-list { margin: 3.5em 0 0; }
.people-list .section-head { margin-bottom: 18px; }
.person-card__name a { color: inherit; text-decoration: none; }
.person-card__name a:hover { color: var(--accent-text); }
.person-card__records { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.person-card__records li + li { margin-top: 6px; }
.entry-content .person-card__records a { color: var(--fg-2); text-decoration: none; }
.entry-content .person-card__records a:hover { color: var(--accent-text); }
.person-card__records time { color: var(--fg-3); font-size: 11px; margin-right: 4px; }

/* ---------- 中／EN switch ---------- */
html[data-lang="en"] .rp-zh,
html[data-lang="en"] .rp-lang--zh,
html:not([data-lang="en"]) .rp-en,
html:not([data-lang="en"]) .rp-lang--en { display: none !important; }
html[data-lang="en"] .nav-menu .nav-zh { display: none; }
html[data-lang="en"] .nav-menu .nav-en { font-size: clamp(10px, .82vw, 13px); }
html:not([data-lang="en"]) .rp-zh-only .nav-menu .nav-en,
html:not([data-lang="en"]) .rp-zh-only .page-title__en,
html:not([data-lang="en"]) .rp-zh-only .hero__heading-line.kr { display: none; }
.rp-lang > :first-child { margin-top: 0; }
.lang-switch { display: inline-flex; align-items: center; margin-right: 4px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.lang-switch__btn {
	min-width: 32px; height: 28px; padding: 0 9px; border-radius: 999px;
	font-family: var(--kr); font-size: 12px; font-weight: 700; letter-spacing: .04em; color: inherit; opacity: .7;
}
.lang-switch__btn:hover { opacity: 1; color: var(--accent-text); }
.lang-switch__btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); opacity: 1; }
@media (max-width: 640px) {
	.lang-switch__btn { min-width: 28px; padding: 0 7px; font-size: 11px; }
}

/* ---------- 群島: calm start (articles clear, people / concepts faded), filters, pinned focus ---------- */
.rz-node, .rz-link, .rz-people-area { transition: opacity .3s ease; }
.rz-svg.rz-dim-person .rz-node.person,
.rz-svg.rz-dim-person .rz-link--person,
.rz-svg.rz-dim-person .rz-people-area,
.rz-svg.rz-dim-concept .rz-node.concept,
.rz-svg.rz-dim-concept .rz-link--concept { opacity: var(--rz-fade, .15); }
.rz-svg.has-focus .rz-node,
.rz-svg.has-focus .rz-link { opacity: .08; }
.rz-svg.has-focus .rz-node.is-near,
.rz-svg.has-focus .rz-link.is-near { opacity: 1; }
.rz-svg.has-focus .rz-link.is-near { stroke-width: 1.4; }
.rz-filter {
	position: absolute; z-index: 3; left: 50%; top: 22px; transform: translateX(-50%);
	display: flex; gap: 4px; padding: 4px; border-radius: 999px;
	background: var(--viz-panel); border: 1px solid var(--viz-line); backdrop-filter: blur(6px);
}
.rz-filter button { padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--viz-fg-2); }
.rz-filter button:hover { color: var(--viz-accent); }
.rz-filter button[aria-pressed="true"] { background: var(--viz-accent); color: var(--on-accent); }
.rz-legend__hint { margin-top: 6px; font-size: 12px; color: var(--viz-fg-3); max-width: 230px; line-height: 1.6; }
@media (max-width: 782px) {
	.rz-filter { top: auto; bottom: 60px; }
}

/* 群島 labels: no visible halo box on the day background; a soft one at night. */
.rz-svg text { stroke-opacity: .65; }
:root[data-scheme="light"] .rz-svg text,
:root[data-scheme="light"] .rz-plateau-zh,
:root[data-scheme="light"] .rz-plateau-en,
:root[data-scheme="light"] .rz-node text { stroke: none; }
html[data-lang="en"] .hero__heading-line.kr { font-size: .78em; margin-top: 0; }
