/* ==========================================================================
   玩家評鑑所 Design System v1.0
   1. Tokens  2. Base  3. Layout  4. Components  5. Header/Footer
   6. Home  7. Archive  8. Article  9. Review / Compare  10. Pages  11. Utilities
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	/* Color — 中性為主、紅色僅作強調 */
	--c-bg: #ffffff;
	--c-surface: #f6f7f9;
	--c-surface-2: #eef0f3;
	--c-ink: #15171c;          /* Text Primary / Primary */
	--c-ink-2: #454d5c;        /* Text Secondary */
	--c-ink-3: #697181;        /* Muted */
	--c-border: #e3e6eb;
	--c-border-strong: #cbd0d8;
	--c-primary: #15171c;
	--c-secondary: #2b3445;
	--c-accent: #d42a1e;       /* Brand red */
	--c-accent-hover: #ae2016;
	--c-accent-soft: #fdeeec;
	--c-link: #15171c;
	--c-link-underline: rgba(212, 42, 30, .45);
	--c-link-hover: #ae2016;
	--c-success: #0e7a4a;
	--c-success-soft: #e8f5ee;
	--c-warning: #a85108;
	--c-warning-soft: #fdf3e4;
	--c-error: #b42318;
	--c-error-soft: #fdeceb;
	--c-info: #1f4f8f;
	--c-info-soft: #edf3fb;
	--c-footer: #111318;

	/* Typography */
	--f-sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--f-num: "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, var(--f-sans);
	--fs-12: .75rem;
	--fs-13: .8125rem;
	--fs-14: .875rem;
	--fs-15: .9375rem;
	--fs-16: 1rem;
	--fs-18: 1.125rem;
	--fs-20: 1.25rem;
	--fs-24: 1.5rem;
	--fs-h1: clamp(1.625rem, 1.15rem + 1.9vw, 2.625rem);
	--fs-h2: clamp(1.3125rem, 1.1rem + .9vw, 1.75rem);
	--fs-h3: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
	--lh-tight: 1.3;
	--lh-snug: 1.5;
	--lh-body: 1.75;
	--lh-article: 1.9;

	/* Spacing (4px base) */
	--s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
	--s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px;
	--section: clamp(48px, 4vw + 24px, 80px);

	/* Layout */
	--container: 1200px;
	--measure: 720px;
	--gutter: clamp(16px, 3vw, 24px);
	--header-h: 64px;

	/* Shape */
	--r-sm: 3px;
	--r-md: 6px;
	--r-lg: 8px;
	--shadow-sm: 0 1px 2px rgba(16, 20, 28, .06);
	--shadow-md: 0 6px 20px rgba(16, 20, 28, .10);
	--focus: 0 0 0 3px rgba(212, 42, 30, .28);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-ink);
	font-family: var(--f-sans);
	font-size: var(--fs-16);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--c-link); text-decoration: none; }
a:hover { color: var(--c-link-hover); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
h1, h2, h3, h4 { margin: 0; line-height: var(--lh-tight); font-weight: 700; letter-spacing: .01em; color: var(--c-ink); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: var(--s-8) 0; }
table { border-collapse: collapse; width: 100%; }
.screen-reader-text, .sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--c-ink); color: #fff; padding: 8px 14px; border-radius: var(--r-md); }
.skip-link:focus { top: 12px; color: #fff; }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(880px + var(--gutter) * 2); }
.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }
.section--surface { background: var(--c-surface); padding: var(--section) 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.section--surface + .section { padding-top: var(--section); }
.grid { display: grid; gap: var(--s-6); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-12); align-items: start; }
.stack > * + * { margin-top: var(--s-4); }

@media (max-width: 1100px) {
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.layout-sidebar { grid-template-columns: minmax(0, 1fr) 280px; gap: var(--s-8); }
}
@media (max-width: 900px) {
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.layout-sidebar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.grid { gap: var(--s-4); }
	.grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* 4. Components ------------------------------------------------------------ */

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 20px; border: 1px solid transparent; border-radius: var(--r-md);
	font-size: var(--fs-15); font-weight: 600; line-height: 1.2; cursor: pointer; text-align: center;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-hover); color: #fff; }
.btn--dark { background: var(--c-ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.btn--outline { background: #fff; color: var(--c-ink); border-color: var(--c-border-strong); }
.btn--outline:hover { border-color: var(--c-ink); color: var(--c-ink); }
.btn--ghost { background: transparent; color: var(--c-ink); padding-left: 0; padding-right: 0; min-height: 0; }
.btn--ghost:hover { color: var(--c-accent); }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: var(--fs-14); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: var(--fs-15); color: var(--c-ink); }
.link-arrow::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat; }
.link-arrow:hover { color: var(--c-accent); }

/* Labels / Badges */
.kicker { display: inline-block; font-size: var(--fs-13); font-weight: 700; letter-spacing: .06em; color: var(--c-accent); }
.kicker--muted { color: var(--c-ink-3); }
.badge {
	display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r-sm);
	font-size: var(--fs-12); font-weight: 600; line-height: 1.6; background: var(--c-surface-2); color: var(--c-ink-2); white-space: nowrap;
}
.badge--accent { background: var(--c-accent-soft); color: var(--c-accent-hover); }
.badge--demo { background: #fff4d6; color: #7a4d00; }
.badge--success { background: var(--c-success-soft); color: var(--c-success); }
.badge--warning { background: var(--c-warning-soft); color: var(--c-warning); }
.badge--error { background: var(--c-error-soft); color: var(--c-error); }
.badge--info { background: var(--c-info-soft); color: var(--c-info); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; }
.chip {
	display: inline-flex; align-items: center; min-height: 34px; padding: 4px 14px; border: 1px solid var(--c-border);
	border-radius: 999px; font-size: var(--fs-14); color: var(--c-ink-2); background: #fff;
}
.chip:hover, .chip.is-active { border-color: var(--c-ink); color: var(--c-ink); }

/* Section heading */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); padding-bottom: var(--s-3); border-bottom: 2px solid var(--c-ink); }
.section-head__title { font-size: var(--fs-h2); }
.section-head__desc { margin: 6px 0 0; color: var(--c-ink-3); font-size: var(--fs-15); }
.section-head .link-arrow { flex: none; font-size: var(--fs-14); }
@media (max-width: 640px) { .section-head { flex-direction: column; align-items: flex-start; gap: var(--s-2); } }

/* Media frame (固定比例，避免 CLS) */
.media { position: relative; display: block; overflow: hidden; background: var(--c-surface-2); border-radius: var(--r-md); aspect-ratio: 16 / 9; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--square { aspect-ratio: 1 / 1; }

/* Card */
.card { display: flex; flex-direction: column; min-width: 0; }
.card__media { margin-bottom: var(--s-4); }
.card__meta-top { display: flex; align-items: center; gap: var(--s-2); margin-bottom: 6px; flex-wrap: wrap; }
.card__title { font-size: var(--fs-18); line-height: 1.45; font-weight: 700; margin: 0 0 var(--s-2); }
.card__title a { color: var(--c-ink); }
.card__title a:hover { color: var(--c-accent); }
.card__excerpt { color: var(--c-ink-2); font-size: var(--fs-15); line-height: 1.7; margin: 0 0 var(--s-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin-top: auto; font-size: var(--fs-13); color: var(--c-ink-3); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.card--lg .card__title { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.625rem); line-height: 1.4; }
.card--lg .card__excerpt { -webkit-line-clamp: 3; font-size: var(--fs-16); }
.card--boxed { border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-5); background: #fff; }
.card--boxed .card__media { margin: calc(var(--s-5) * -1) calc(var(--s-5) * -1) var(--s-4); border-radius: var(--r-lg) var(--r-lg) 0 0; }

/* Compact list item */
.list { list-style: none; }
.list-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--s-4); align-items: start; padding: var(--s-4) 0; border-top: 1px solid var(--c-border); }
.list-item:first-child { border-top: 0; padding-top: 0; }
.list-item .media { border-radius: var(--r-sm); }
.list-item__title { font-size: var(--fs-16); line-height: 1.5; font-weight: 600; margin: 0 0 4px; }
.list-item__title a { color: var(--c-ink); }
.list-item__title a:hover { color: var(--c-accent); }
.list-item__meta { font-size: var(--fs-13); color: var(--c-ink-3); }
.list-item--noimg { grid-template-columns: minmax(0, 1fr); }
.list--numbered { counter-reset: n; }
.list--numbered .list-item { grid-template-columns: 32px minmax(0, 1fr); }
.list--numbered .list-item::before { counter-increment: n; content: counter(n, decimal-leading-zero); font-family: var(--f-num); font-weight: 700; font-size: var(--fs-18); color: var(--c-accent); line-height: 1.4; }

/* Score */
.score { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; padding: 8px 10px; border-radius: var(--r-md); background: var(--c-ink); color: #fff; line-height: 1; }
.score__num { font-family: var(--f-num); font-size: 1.625rem; font-weight: 700; letter-spacing: -.01em; }
.score__max { font-size: var(--fs-12); opacity: .7; margin-top: 4px; }
.score--sm { min-width: 48px; padding: 6px 8px; }
.score--sm .score__num { font-size: 1.125rem; }
.score--pending { background: var(--c-surface-2); color: var(--c-ink-3); }
.score--pending .score__num { font-size: var(--fs-14); }
.score--lg { min-width: 96px; padding: 14px; }
.score--lg .score__num { font-size: 2.5rem; }
.stars { display: inline-flex; align-items: center; gap: 6px; line-height: 1; font-size: 16px; white-space: nowrap; }
.stars__track { position: relative; display: inline-block; color: var(--c-border-strong); letter-spacing: 1px; }
.stars__fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #E8A317; }
.stars__num { font-family: var(--f-num); font-weight: 700; font-size: .875em; color: var(--c-ink); }
.stars--sm { font-size: 14px; }
.stars--lg { font-size: 28px; }
.bars { list-style: none; display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 4px 12px; align-items: center; font-size: var(--fs-14); }
.bar__label { color: var(--c-ink-2); }
.bar__val { font-family: var(--f-num); font-weight: 700; text-align: right; }
.bar__track { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--c-surface-2); overflow: hidden; }
.bar__fill { display: block; height: 100%; background: var(--c-ink); border-radius: 3px; }
.bar__fill.is-high { background: var(--c-accent); }

/* Review card */
.rcard { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--c-border); border-radius: var(--r-lg); background: #fff; min-width: 0; }
.rcard:hover { border-color: var(--c-border-strong); }
.rcard__brand { font-size: var(--fs-13); color: var(--c-ink-3); font-weight: 600; margin-bottom: 2px; }
.rcard__title { font-size: var(--fs-18); line-height: 1.45; margin: 0 0 var(--s-2); }
.rcard__title a { color: var(--c-ink); }
.rcard__title a::after { content: ""; position: absolute; inset: 0; }
.rcard { position: relative; }
.rcard__title a:hover { color: var(--c-accent); }
.rcard__verdict { font-size: var(--fs-14); color: var(--c-ink-2); line-height: 1.7; margin: 0 0 var(--s-3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rcard__foot { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: var(--fs-13); color: var(--c-ink-3); }
.rcard__score { display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* VS card */
.vs { position: relative; display: flex; flex-direction: column; border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-5); background: #fff; min-width: 0; }
.vs:hover { border-color: var(--c-border-strong); }
.vs__pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px dashed var(--c-border-strong); }
.vs__name { font-weight: 700; font-size: var(--fs-16); text-align: center; line-height: 1.35; overflow-wrap: anywhere; }
.vs__x { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-accent); color: #fff; font-family: var(--f-num); font-size: var(--fs-12); font-weight: 800; letter-spacing: .02em; }
.vs__title { font-size: var(--fs-16); line-height: 1.5; margin: 0 0 var(--s-2); }
.vs__title a { color: var(--c-ink); }
.vs__title a::after { content: ""; position: absolute; inset: 0; }
.vs__title a:hover { color: var(--c-accent); }
.vs__meta { font-size: var(--fs-13); color: var(--c-ink-3); margin-top: auto; }

/* Notices / callouts */
.notice, .callout {
	position: relative; padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--c-surface);
	border-left: 4px solid var(--c-ink-3); font-size: var(--fs-15); line-height: 1.75; margin: var(--s-6) 0;
}
.notice > :last-child, .callout > :last-child { margin-bottom: 0; }
.notice strong:first-child, .callout__title { display: block; margin-bottom: 4px; font-weight: 700; color: var(--c-ink); }
.notice--success, .callout--success, .callout--tip { background: var(--c-success-soft); border-color: var(--c-success); }
.notice--warning, .callout--warning { background: var(--c-warning-soft); border-color: var(--c-warning); }
.notice--error, .callout--danger, .callout--risk { background: var(--c-error-soft); border-color: var(--c-error); }
.notice--info, .callout--info, .callout--note { background: var(--c-info-soft); border-color: var(--c-info); }
.notice--demo { background: #fff8e6; border-color: #d99a00; }

/* Risk band */
.risk { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-5); align-items: center; padding: var(--s-6); border: 1px solid var(--c-border-strong); border-radius: var(--r-lg); background: #fff; }
.risk__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-accent-soft); color: var(--c-accent); }
.risk__icon svg { width: 24px; height: 24px; }
.risk__title { font-size: var(--fs-18); margin-bottom: 4px; }
.risk__text { margin: 0; color: var(--c-ink-2); font-size: var(--fs-15); line-height: 1.75; }
.risk__actions { display: flex; flex-direction: column; gap: var(--s-2); }
@media (max-width: 800px) {
	.risk { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); padding: var(--s-5); }
	.risk__actions { flex-direction: row; flex-wrap: wrap; }
}

/* Breadcrumb */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: var(--fs-13); color: var(--c-ink-3); }
.breadcrumb li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; color: var(--c-border-strong); }
.breadcrumb a { color: var(--c-ink-3); }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb [aria-current] { color: var(--c-ink-2); max-width: 28em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .breadcrumb [aria-current] { max-width: 14em; } }

/* Pagination */
.pagination { margin-top: var(--s-12); }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--c-border); border-radius: var(--r-md); font-size: var(--fs-15); font-weight: 600; color: var(--c-ink); background: #fff; }
.pagination .page-numbers:hover { border-color: var(--c-ink); }
.pagination .page-numbers.current { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.pagination .page-numbers.dots { border: 0; }

/* Forms */
.form { display: grid; gap: var(--s-5); }
.form__row--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
@media (max-width: 640px) { .form__row--2 { grid-template-columns: minmax(0, 1fr); } }
.form__field label { display: block; font-size: var(--fs-14); font-weight: 600; margin-bottom: 6px; }
.form input[type=text], .form input[type=email], .form input[type=search], .form select, .form textarea, .search-form input[type=search] {
	width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--c-border-strong); border-radius: var(--r-md);
	background: #fff; font-size: 16px; line-height: 1.5; transition: border-color .15s;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus, .search-form input:focus { outline: none; border-color: var(--c-ink); box-shadow: var(--focus); }
.form__check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; }
.form__check input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--c-accent); }
.form__check label { font-weight: 400; font-size: var(--fs-14); color: var(--c-ink-2); margin: 0; }
.form__hp { position: absolute; left: -9999px; }
.req { color: var(--c-accent); }
.search-form { display: flex; gap: var(--s-2); }
.search-form .btn { flex: none; }

/* 5. Header / Footer ------------------------------------------------------- */
.topbar { background: var(--c-ink); color: #c9ced6; font-size: var(--fs-12); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 34px; }
.topbar__note { display: flex; align-items: center; gap: 8px; min-width: 0; }
.topbar__note .age { flex: none; display: inline-grid; place-items: center; height: 20px; padding: 0 6px; border: 1px solid #5b6270; border-radius: var(--r-sm); font-weight: 700; color: #fff; font-family: var(--f-num); }
.topbar__note span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__links { display: flex; gap: var(--s-5); list-style: none; flex: none; }
.topbar__links a { color: #c9ced6; }
.topbar__links a:hover { color: #fff; }
@media (max-width: 800px) { .topbar__links { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--c-border); backdrop-filter: saturate(1.4) blur(6px); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header__inner { display: flex; align-items: center; gap: var(--s-6); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--c-ink); flex: none; }
.brand:hover { color: var(--c-ink); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 1.25rem; font-weight: 800; letter-spacing: .06em; }
.brand__sub { font-family: var(--f-num); font-size: 10px; font-weight: 700; letter-spacing: .2em; color: var(--c-ink-3); margin-top: 3px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__list > li > a { display: flex; align-items: center; height: var(--header-h); padding: 0 12px; font-size: var(--fs-15); font-weight: 600; color: var(--c-ink); position: relative; white-space: nowrap; }
.nav__list > li > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; background: var(--c-accent); transform: scaleX(0); transition: transform .15s; }
.nav__list > li > a:hover::after, .nav__list > .current-menu-item > a::after, .nav__list > .current-menu-ancestor > a::after, .nav__list > .current-post-ancestor > a::after, .nav__list > .current-category-ancestor > a::after { transform: scaleX(1); }
.nav__list > li > a:hover { color: var(--c-ink); }
.header__actions { display: flex; align-items: center; gap: var(--s-2); flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--r-md); background: transparent; color: var(--c-ink); cursor: pointer; }
.icon-btn:hover { background: var(--c-surface); }
.icon-btn svg { width: 22px; height: 22px; }
.menu-toggle { display: none; }

.search-panel { border-top: 1px solid var(--c-border); background: #fff; padding: var(--s-4) 0; }
.search-panel[hidden] { display: none; }
.search-panel .search-form { max-width: 720px; margin: 0 auto; }
.search-panel__hint { max-width: 720px; margin: var(--s-3) auto 0; display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; font-size: var(--fs-13); color: var(--c-ink-3); }

@media (max-width: 1180px) {
	.nav__list > li > a { padding: 0 9px; font-size: var(--fs-14); }
	.nav__list > li > a::after { left: 9px; right: 9px; }
}
@media (max-width: 1024px) {
	:root { --header-h: 58px; }
	.nav { display: none; }
	.menu-toggle { display: inline-grid; }
	.header__actions { margin-left: auto; }
}
@media (max-width: 380px) {
	.brand__name { font-size: 1.125rem; }
	.brand__mark { width: 30px; height: 30px; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.drawer.is-open { display: block; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 12, 16, .45); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); background: #fff; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--s-2) 0 var(--s-5); height: 58px; border-bottom: 1px solid var(--c-border); flex: none; }
.drawer__head strong { font-size: var(--fs-16); }
.drawer__body { padding: var(--s-4) var(--s-5) var(--s-8); }
.drawer__nav { list-style: none; }
.drawer__nav a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-size: var(--fs-16); font-weight: 600; color: var(--c-ink); border-bottom: 1px solid var(--c-border); }
.drawer__nav .current-menu-item > a, .drawer__nav .current-post-ancestor > a { color: var(--c-accent); }
.drawer__nav a::after { content: "›"; color: var(--c-ink-3); font-size: 20px; font-weight: 400; }
.drawer__label { margin: var(--s-6) 0 var(--s-2); font-size: var(--fs-12); font-weight: 700; letter-spacing: .08em; color: var(--c-ink-3); }
.drawer__sub { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-4); }
.drawer__sub a { display: block; padding: 10px 0; font-size: var(--fs-14); color: var(--c-ink-2); }
.drawer .search-form { margin-bottom: var(--s-2); }
body.has-drawer { overflow: hidden; }

/* Footer */
.site-footer { background: var(--c-footer); color: #aeb4bf; font-size: var(--fs-14); }
.footer__risk { border-bottom: 1px solid #262a33; padding: var(--s-6) 0; }
.footer__risk-inner { display: flex; gap: var(--s-4); align-items: flex-start; }
.footer__risk .age { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--c-accent); border-radius: 50%; color: #fff; font-family: var(--f-num); font-weight: 800; font-size: var(--fs-14); }
.footer__risk p { margin: 0; line-height: 1.75; }
.footer__risk strong { color: #fff; }
.footer__main { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s-10); padding: var(--s-12) 0 var(--s-10); }
.footer__brand .brand { color: #fff; }
.footer__brand .brand__mark > rect:first-child { fill: #fff; }
.footer__brand .brand__mark > rect + rect { fill: var(--c-ink); }
.footer__brand .brand__sub { color: #7c8391; }
.footer__about { margin: var(--s-4) 0 0; line-height: 1.8; max-width: 26em; }
.footer__title { font-size: var(--fs-13); letter-spacing: .08em; color: #fff; margin: 0 0 var(--s-4); font-weight: 700; }
.footer__links { list-style: none; display: grid; gap: 10px; }
.footer__links a { color: #aeb4bf; }
.footer__links a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid #262a33; padding: var(--s-5) 0 var(--s-8); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-13); color: #7c8391; }
.footer__bottom a { color: #aeb4bf; }
@media (max-width: 900px) { .footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__main { gap: var(--s-8) var(--s-5); } }

/* 6. Home ------------------------------------------------------------------ */
.hero { padding: var(--s-12) 0 var(--s-12); border-bottom: 1px solid var(--c-border); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-12); align-items: center; }
.hero__title { font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3.125rem); line-height: 1.22; letter-spacing: .01em; margin: var(--s-3) 0 var(--s-5); }
.hero__title em { font-style: normal; color: var(--c-accent); }
.hero__lead { font-size: clamp(1rem, .95rem + .3vw, 1.125rem); color: var(--c-ink-2); line-height: 1.8; margin: 0 0 var(--s-6); max-width: 34em; }
.hero .search-form { max-width: 520px; }
.hero .search-form input[type=search] { min-height: 52px; font-size: 16px; }
.hero .search-form .btn { min-height: 52px; padding: 0 22px; }
.hero__topics { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; font-size: var(--fs-13); color: var(--c-ink-3); }
.hero__feature { position: relative; }
.hero__feature .card__title { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.5rem); }
.hero__badge { position: absolute; top: 12px; right: 12px; z-index: 1; }
@media (max-width: 900px) {
	.hero { padding: var(--s-8) 0; }
	.hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }
}

.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--c-border); }
.principle { display: flex; gap: var(--s-3); padding: var(--s-6) var(--s-5); border-left: 1px solid var(--c-border); }
.principle:first-child { border-left: 0; padding-left: 0; }
.principle__icon { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--c-surface); color: var(--c-ink); }
.principle__icon svg { width: 20px; height: 20px; }
.principle h3 { font-size: var(--fs-15); margin-bottom: 2px; }
.principle p { margin: 0; font-size: var(--fs-13); color: var(--c-ink-3); line-height: 1.6; }
@media (max-width: 1024px) {
	.principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.principle:nth-child(3) { border-left: 0; padding-left: 0; }
	.principle:nth-child(n+3) { border-top: 1px solid var(--c-border); }
}
@media (max-width: 560px) {
	.principles { grid-template-columns: minmax(0, 1fr); }
	.principle { border-left: 0; padding: var(--s-4) 0; }
	.principle + .principle { border-top: 1px solid var(--c-border); }
}

.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s-10); }
@media (max-width: 1024px) { .split { grid-template-columns: minmax(0, 1fr); } }

.panel { border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-6); background: #fff; }
.panel--surface { background: var(--c-surface); border-color: transparent; }
.panel__title { font-size: var(--fs-18); margin-bottom: var(--s-2); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.panel__desc { font-size: var(--fs-13); color: var(--c-ink-3); margin: 0 0 var(--s-4); line-height: 1.6; }
@media (max-width: 480px) { .panel { padding: var(--s-5) var(--s-4); } }

.brandlist { list-style: none; counter-reset: b; }
.brandlist li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: 12px 0; border-top: 1px solid var(--c-border); }
.brandlist li:first-child { border-top: 0; }
.brandlist li::before { counter-increment: b; content: counter(b); font-family: var(--f-num); font-weight: 800; color: var(--c-ink-3); text-align: center; }
.brandlist a { font-weight: 600; color: var(--c-ink); line-height: 1.45; }
.brandlist a:hover { color: var(--c-accent); }
.brandlist small { display: block; font-size: var(--fs-12); color: var(--c-ink-3); font-weight: 400; }

.criteria { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-4); counter-reset: c; list-style: none; }
.criterion { padding: var(--s-5); background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); display: flex; flex-direction: column; }
.criterion__num { font-family: var(--f-num); font-size: 1.25rem; font-weight: 800; line-height: 1; color: var(--c-accent); margin-bottom: var(--s-3); }
.criterion__weight small { font-size: var(--fs-14); color: var(--c-ink-3); font-weight: 600; margin-left: 2px; }
.criterion__bar { height: 4px; border-radius: 2px; background: var(--c-surface-2); margin: var(--s-3) 0 var(--s-4); overflow: hidden; }
.criterion__bar span { display: block; height: 100%; background: var(--c-accent); }
.criterion h3 { font-size: var(--fs-16); margin-bottom: 6px; }
.criterion p { margin: 0; font-size: var(--fs-13); color: var(--c-ink-2); line-height: 1.7; }
@media (max-width: 1100px) { .criteria { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .criteria { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .criteria { grid-template-columns: minmax(0, 1fr); } }

.topic-col { min-width: 0; }
.topic-col__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); padding-bottom: var(--s-3); border-bottom: 1px solid var(--c-ink); }
.topic-col__head h3 { font-size: var(--fs-20); }
.topic-col__head a { font-size: var(--fs-13); font-weight: 600; color: var(--c-ink-3); }
.topic-col__head a:hover { color: var(--c-accent); }
.topic-col .card { margin-bottom: var(--s-4); }

.guide-box { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
@media (max-width: 800px) { .guide-box { grid-template-columns: minmax(0, 1fr); } }
.linklist { list-style: none; }
.linklist li { border-top: 1px solid var(--c-border); }
.linklist li:first-child { border-top: 0; }
.linklist a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: 12px 0; color: var(--c-ink); font-weight: 600; font-size: var(--fs-15); line-height: 1.5; }
.linklist a::after { content: "→"; color: var(--c-ink-3); font-weight: 400; }
.linklist a:hover { color: var(--c-accent); }
.linklist a:hover::after { color: var(--c-accent); }

.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-6); align-items: center; padding: var(--s-10); border-radius: var(--r-lg); background: var(--c-ink); color: #d5d9e0; }
.cta h2 { color: #fff; font-size: clamp(1.375rem, 1.15rem + .9vw, 1.875rem); margin-bottom: var(--s-2); }
.cta p { margin: 0; line-height: 1.75; max-width: 40em; }
.cta .btn--outline { background: transparent; color: #fff; border-color: #545b68; }
.cta .btn--outline:hover { border-color: #fff; }
@media (max-width: 800px) { .cta { grid-template-columns: minmax(0, 1fr); padding: var(--s-8) var(--s-5); } }

/* 7. Archive --------------------------------------------------------------- */
.page-head { padding: var(--s-8) 0 var(--s-10); border-bottom: 1px solid var(--c-border); background: linear-gradient(180deg, var(--c-surface) 0, #fff 100%); }
.page-head .breadcrumb { margin-bottom: var(--s-6); }
.page-head__title { margin: var(--s-2) 0 var(--s-4); }
.page-head__desc { max-width: 46em; color: var(--c-ink-2); font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); line-height: 1.85; }
.page-head__desc p:last-child { margin-bottom: 0; }
.page-head__meta { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--fs-13); color: var(--c-ink-3); }
.page-head__meta strong { color: var(--c-ink); font-family: var(--f-num); }
.page-head .chips { margin-top: var(--s-5); }

.featured-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s-10); }
@media (max-width: 900px) { .featured-row { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); } }

.dir-table { width: 100%; font-size: var(--fs-15); }
.dir-table th { text-align: left; font-size: var(--fs-13); color: var(--c-ink-3); font-weight: 600; padding: 10px 12px; border-bottom: 2px solid var(--c-ink); white-space: nowrap; }
.dir-table td { padding: 16px 12px; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.dir-table td:first-child, .dir-table th:first-child { padding-left: 0; }
.dir-table .brand-cell a { font-weight: 700; color: var(--c-ink); }
.dir-table .brand-cell a:hover { color: var(--c-accent); }
.dir-table .brand-cell small { display: block; color: var(--c-ink-3); font-size: var(--fs-13); font-weight: 400; margin-top: 2px; }
.dir-table .num { font-family: var(--f-num); font-weight: 700; }
@media (max-width: 760px) {
	.dir-table thead { display: none; }
	.dir-table, .dir-table tbody, .dir-table tr, .dir-table td { display: block; width: 100%; }
	.dir-table tr { border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-4); margin-bottom: var(--s-3); }
	.dir-table td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; }
	.dir-table td::before { content: attr(data-label); color: var(--c-ink-3); font-size: var(--fs-13); flex: none; }
	.dir-table td.brand-cell { display: block; padding-bottom: var(--s-2); margin-bottom: var(--s-2); border-bottom: 1px solid var(--c-border); }
	.dir-table td.brand-cell::before { content: none; }
	.dir-table td.summary-cell { display: block; font-size: var(--fs-14); color: var(--c-ink-2); }
	.dir-table td.summary-cell::before { display: block; margin-bottom: 2px; }
}

.bottom-content { max-width: var(--measure); }
.bottom-content h2 { font-size: var(--fs-20); margin: var(--s-8) 0 var(--s-3); }
.bottom-content h2:first-child { margin-top: 0; }
.bottom-content p, .bottom-content li { color: var(--c-ink-2); line-height: 1.9; }
.bottom-content ul { padding-left: 1.25em; margin-bottom: 1em; }

.empty { padding: var(--s-12) var(--s-6); text-align: center; border: 1px dashed var(--c-border-strong); border-radius: var(--r-lg); color: var(--c-ink-3); }

/* 8. Article --------------------------------------------------------------- */
.article-head { padding: var(--s-8) 0 var(--s-8); }
.article-head .breadcrumb { margin-bottom: var(--s-6); }
.article-head__title { font-size: clamp(1.625rem, 1.1rem + 2vw, 2.5rem); line-height: 1.32; margin: var(--s-3) 0 var(--s-4); max-width: 26em; }
.article-head__dek { font-size: clamp(1rem, .96rem + .25vw, 1.125rem); color: var(--c-ink-2); line-height: 1.85; max-width: 42em; margin: 0 0 var(--s-6); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-6); padding: var(--s-4) 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); font-size: var(--fs-14); color: var(--c-ink-2); }
.byline__person { display: flex; align-items: center; gap: 10px; }
.byline__person img, .avatar-ph { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.avatar-ph { display: grid; place-items: center; background: var(--c-ink); color: #fff; font-weight: 700; font-size: var(--fs-14); }
.avatar-ph--alt { background: var(--c-accent); }
.byline__person small { display: block; font-size: var(--fs-12); color: var(--c-ink-3); line-height: 1.3; }
.byline__person a, .byline__name { display: block; color: var(--c-ink); font-weight: 600; }
.byline__dates { display: flex; flex-wrap: wrap; gap: 4px var(--s-4); margin-left: auto; color: var(--c-ink-3); font-size: var(--fs-13); }
.byline__dates strong { color: var(--c-ink-2); font-weight: 600; }
@media (max-width: 720px) { .byline__dates { margin-left: 0; width: 100%; } }

.article-hero { margin: 0 0 var(--s-8); }
.article-hero .media { border-radius: var(--r-lg); }
.article-hero figcaption { font-size: var(--fs-13); color: var(--c-ink-3); margin-top: var(--s-2); }

.article-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr) 240px; gap: 44px; align-items: start; }
.article-layout__aside { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.article-layout__rail { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 1240px) { .article-layout { grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-10); } .article-layout__rail { display: none; } }
@media (max-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .article-layout__aside { position: static; max-height: none; overflow: visible; } }
.article-layout--page { grid-template-columns: 210px minmax(0, var(--measure)); }
@media (max-width: 1024px) { .article-layout--page { grid-template-columns: minmax(0, 1fr); } }
.article-layout--page.is-notoc { grid-template-columns: minmax(0, var(--measure)); justify-content: center; }
.article-layout--page.is-notoc .article-layout__aside { display: none; }

/* TOC */
.toc { font-size: var(--fs-14); }
.toc__title { font-size: var(--fs-13); font-weight: 700; letter-spacing: .08em; color: var(--c-ink-3); margin-bottom: var(--s-3); }
.toc ol { list-style: none; border-left: 2px solid var(--c-border); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--c-ink-2); line-height: 1.5; }
.toc li.lv3 a { padding-left: 28px; font-size: var(--fs-13); color: var(--c-ink-3); }
.toc li a:hover { color: var(--c-ink); }
.toc li a.is-active { color: var(--c-ink); border-left-color: var(--c-accent); font-weight: 600; }
.toc-mobile { display: none; margin: 0 0 var(--s-8); border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-surface); }
.toc-mobile summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 var(--s-4); cursor: pointer; font-weight: 700; list-style: none; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--c-ink-3); }
.toc-mobile[open] summary::after { content: "−"; }
.toc-mobile .toc { padding: 0 var(--s-4) var(--s-4); }
.toc-mobile .toc ol { border-left: 0; counter-reset: t; }
.toc-mobile .toc li a { padding: 8px 0; margin: 0; border: 0; border-top: 1px solid var(--c-border); }
.toc-mobile .toc li.lv3 a { padding-left: 16px; }
@media (max-width: 1024px) { .article-layout__aside .toc--desktop { display: none; } .toc-mobile { display: block; } }

/* Prose */
.prose { font-size: 1.0625rem; line-height: var(--lh-article); color: #23262d; overflow-wrap: break-word; }
.prose > * { margin-top: 0; margin-bottom: 1.2em; }
.prose h2 { font-size: var(--fs-h2); margin: 2.2em 0 .8em; padding-top: .2em; line-height: 1.4; }
.prose h2::before { content: ""; display: block; width: 32px; height: 3px; background: var(--c-accent); margin-bottom: .7em; }
.prose h3 { font-size: var(--fs-h3); margin: 1.8em 0 .6em; line-height: 1.45; }
.prose h4 { font-size: var(--fs-16); margin: 1.6em 0 .5em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose a { color: var(--c-link); text-decoration: underline; text-decoration-color: var(--c-link-underline); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--c-link-hover); text-decoration-color: currentColor; }
.prose strong { font-weight: 700; color: var(--c-ink); }
.prose mark { background: linear-gradient(transparent 60%, #ffe0dc 60%); color: inherit; padding: 0 2px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--c-ink-3); }
.prose ol li::marker { font-family: var(--f-num); font-weight: 700; color: var(--c-ink); }
.prose blockquote { margin: 1.8em 0; padding: .2em 0 .2em 1.25em; border-left: 3px solid var(--c-ink); font-size: 1.125rem; color: var(--c-ink); line-height: 1.8; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite { display: block; font-style: normal; font-size: var(--fs-14); color: var(--c-ink-3); margin-top: .5em; }
.prose img { border-radius: var(--r-md); }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: var(--fs-13); color: var(--c-ink-3); margin-top: var(--s-2); line-height: 1.6; }
.prose hr { margin: 2.4em 0; }
.prose code { font-size: .9em; padding: 2px 6px; background: var(--c-surface-2); border-radius: var(--r-sm); }
.prose .lead { font-size: 1.1875rem; color: var(--c-ink); line-height: 1.85; }

/* Tables（自動包覆 .table-wrap） */
.table-wrap { margin: 1.6em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--c-border); border-radius: var(--r-md); }
.prose table, .table { font-size: var(--fs-15); line-height: 1.6; min-width: 100%; }
.prose th, .prose td, .table th, .table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-border); }
.prose thead th, .table thead th { background: var(--c-surface); font-size: var(--fs-14); font-weight: 700; color: var(--c-ink); white-space: nowrap; border-bottom: 1px solid var(--c-border-strong); }
.prose tbody tr:last-child td, .table tbody tr:last-child td { border-bottom: 0; }
.prose tbody th { background: var(--c-surface); font-weight: 600; width: 30%; }
.prose .wp-block-table { margin: 1.6em 0; }
.prose .wp-block-table .table-wrap { margin: 0; }
@media (max-width: 640px) {
	.prose table, .table { font-size: var(--fs-14); }
	.prose th, .prose td { padding: 10px 12px; }
	/* 4 欄以上：轉為卡片式閱讀 */
	.table-wrap.is-wide { border: 0; overflow: visible; }
	.table-wrap.is-wide table, .table-wrap.is-wide tbody, .table-wrap.is-wide tr, .table-wrap.is-wide td { display: block; width: 100%; }
	.table-wrap.is-wide thead { display: none; }
	.table-wrap.is-wide tr { border: 1px solid var(--c-border); border-radius: var(--r-md); margin-bottom: var(--s-3); overflow: hidden; }
	.table-wrap.is-wide td { display: grid; grid-template-columns: minmax(84px, 38%) minmax(0, 1fr); gap: var(--s-3); border-bottom: 1px solid var(--c-border); }
	.table-wrap.is-wide td:first-child { background: var(--c-surface); font-weight: 700; grid-template-columns: minmax(0, 1fr); }
	.table-wrap.is-wide td:first-child::before { content: none; }
	.table-wrap.is-wide td::before { content: attr(data-label); color: var(--c-ink-3); font-size: var(--fs-13); font-weight: 600; }
	.table-wrap.is-wide tbody tr:last-child td { border-bottom: 1px solid var(--c-border); }
	.table-wrap.is-wide tr td:last-child { border-bottom: 0; }
}

/* Compare table：3 欄（項目 / A / B），手機保持並排並固定首欄 */
.compare-table th:first-child, .compare-table td:first-child { width: 28%; }
.compare-table .win { font-weight: 700; color: var(--c-ink); }
.compare-table .win::after { content: " ●"; color: var(--c-accent); font-size: .7em; vertical-align: middle; }

/* Components inside prose */
.prose .criteria, .prose .linklist, .prose .team { padding-left: 0; }
.prose .criteria > li, .prose .linklist > li { margin-bottom: 0; }
.prose .criterion h3 { margin: 0 0 6px; font-size: var(--fs-16); }
.prose .criteria { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.prose .linklist a { text-decoration: none; }
.prose .author-box { margin-top: 0; }
.prose .author-box__name { margin: 2px 0 8px; font-size: var(--fs-18); }
.prose .author-box a { text-decoration: none; }
.prose .team .chips { padding-left: 0; }
.prose .team .chips li { margin: 0; }

/* Pros / Cons */
.pros-cons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin: 1.6em 0; }
.pros-cons > div { border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--s-5); background: #fff; }
.pros-cons h3, .pros-cons h4, .pros-cons .pc-title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-16) !important; margin: 0 0 var(--s-3) !important; }
.pros-cons h3::before, .prose .pros-cons h3::before { display: none; }
.pros-cons ul { list-style: none; padding: 0; margin: 0; }
.pros-cons li { position: relative; padding-left: 26px; font-size: var(--fs-15); line-height: 1.7; margin-bottom: 8px; }
.pros-cons li::before { position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; line-height: 1; }
.pros-cons .pros li::before { content: "+"; background: var(--c-success-soft); color: var(--c-success); }
.pros-cons .cons li::before { content: "−"; background: var(--c-error-soft); color: var(--c-error); }
.pros-cons .pros { border-top: 3px solid var(--c-success); }
.pros-cons .cons { border-top: 3px solid var(--c-error); }
@media (max-width: 640px) { .pros-cons { grid-template-columns: minmax(0, 1fr); } }

/* FAQ（details） */
.prose details, .faq details { border: 1px solid var(--c-border); border-radius: var(--r-md); margin-bottom: var(--s-3); background: #fff; }
.prose summary, .faq summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 700; position: relative; list-style: none; line-height: 1.6; }
.prose summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.prose summary::after, .faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 20px; font-weight: 400; color: var(--c-ink-3); }
.prose details[open] summary::after, .faq details[open] summary::after { content: "−"; }
.prose details > :not(summary), .faq details > :not(summary) { padding: 0 18px; }
.prose details > :last-child, .faq details > :last-child { padding-bottom: 14px; }

/* Key takeaways */
.takeaways { background: var(--c-surface); border-radius: var(--r-lg); padding: var(--s-6); margin: 0 0 2em; }
.takeaways__title, .prose .takeaways h2 { font-size: var(--fs-16) !important; margin: 0 0 var(--s-3) !important; letter-spacing: .04em; }
.prose .takeaways h2::before { display: none; }
.takeaways ul { list-style: none; padding: 0; margin: 0; }
.takeaways li { position: relative; padding-left: 22px; font-size: var(--fs-15); line-height: 1.75; margin-bottom: 6px; }
.takeaways li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 8px; background: var(--c-accent); border-radius: 1px; }

/* Steps */
.steps { list-style: none !important; padding: 0 !important; counter-reset: st; }
.steps > li { position: relative; padding: 0 0 var(--s-5) 52px; margin: 0 !important; }
.steps > li::before { counter-increment: st; content: counter(st); position: absolute; left: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--c-ink); color: #fff; font-family: var(--f-num); font-weight: 700; font-size: var(--fs-14); }
.steps > li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--c-border); }
.steps > li:last-child::after { display: none; }
.steps > li > strong:first-child { display: block; margin-bottom: 2px; }

/* Article end blocks */
.sources { margin-top: var(--s-10); padding-top: var(--s-6); border-top: 1px solid var(--c-border); font-size: var(--fs-14); }
.sources h2 { font-size: var(--fs-16); margin-bottom: var(--s-3); }
.sources ol { padding-left: 1.4em; color: var(--c-ink-2); }
.sources li { margin-bottom: 6px; overflow-wrap: anywhere; }
.sources a { color: var(--c-ink-2); text-decoration: underline; text-underline-offset: 3px; }
.tags-row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin-top: var(--s-8); font-size: var(--fs-14); color: var(--c-ink-3); }
.disclaimer { margin-top: var(--s-8); padding: var(--s-5); border-radius: var(--r-md); background: var(--c-surface); font-size: var(--fs-13); color: var(--c-ink-3); line-height: 1.8; }
.disclaimer strong { color: var(--c-ink-2); }
.disclaimer p:last-child { margin-bottom: 0; }

.author-box { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-5); margin-top: var(--s-10); padding: var(--s-6); border: 1px solid var(--c-border); border-radius: var(--r-lg); }
.author-box .avatar-ph, .author-box img { width: 64px; height: 64px; font-size: var(--fs-20); border-radius: 50%; }
.author-box__role { font-size: var(--fs-12); font-weight: 700; letter-spacing: .06em; color: var(--c-accent); }
.author-box__name { font-size: var(--fs-18); margin: 2px 0 var(--s-2); }
.author-box__name a { color: var(--c-ink); }
.author-box__bio { font-size: var(--fs-14); color: var(--c-ink-2); line-height: 1.8; margin: 0 0 var(--s-3); }
.author-box__links { display: flex; flex-wrap: wrap; gap: var(--s-4); font-size: var(--fs-14); }
.author-box + .author-box { margin-top: var(--s-4); }
@media (max-width: 520px) { .author-box { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); padding: var(--s-5); } }

.rail-box { border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-5); font-size: var(--fs-14); }
.rail-box + .rail-box { margin-top: var(--s-4); }
.rail-box h2, .rail-box h3 { font-size: var(--fs-15); margin-bottom: var(--s-3); }
.rail-box p { color: var(--c-ink-2); line-height: 1.7; margin-bottom: var(--s-3); }

.related { border-top: 1px solid var(--c-border); padding-top: var(--section); }

/* 9. Review / Compare ------------------------------------------------------ */
.review-summary { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-8); padding: var(--s-6); border: 1px solid var(--c-border); border-radius: var(--r-lg); margin-bottom: var(--s-10); background: #fff; }
.review-summary__label { font-size: var(--fs-13); font-weight: 700; letter-spacing: .06em; color: var(--c-ink-3); margin-bottom: var(--s-2); }
.review-summary__verdict { font-size: var(--fs-18); line-height: 1.8; color: var(--c-ink); margin: 0 0 var(--s-4); }
.review-summary__best { font-size: var(--fs-14); color: var(--c-ink-2); padding-top: var(--s-4); border-top: 1px solid var(--c-border); }
.review-summary__best strong { color: var(--c-ink); }
.review-summary__score { border-left: 1px solid var(--c-border); padding-left: var(--s-8); }
.review-summary__scorehead { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-5); }
.review-summary__scorehead p { margin: 0; font-size: var(--fs-13); color: var(--c-ink-3); line-height: 1.5; }
@media (max-width: 860px) {
	.review-summary { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); padding: var(--s-5); }
	.review-summary__score { border-left: 0; padding-left: 0; border-top: 1px solid var(--c-border); padding-top: var(--s-5); }
}
.facts { margin: 0 0 var(--s-10); }
.facts__title { font-size: var(--fs-20); margin-bottom: var(--s-4); }
.facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--c-border); }
.facts dl > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--s-3); padding: 12px 0; border-bottom: 1px solid var(--c-border); font-size: var(--fs-15); }
.facts dl > div:nth-child(odd) { padding-right: var(--s-6); }
.facts dt { color: var(--c-ink-3); font-size: var(--fs-14); }
.facts dd { margin: 0; color: var(--c-ink); font-weight: 600; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.facts__note { font-size: var(--fs-13); color: var(--c-ink-3); margin-top: var(--s-3); }
@media (max-width: 720px) { .facts dl { grid-template-columns: minmax(0, 1fr); } .facts dl > div:nth-child(odd) { padding-right: 0; } .facts dl > div { grid-template-columns: 96px minmax(0, 1fr); } }

.vs-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s-4); align-items: stretch; margin-bottom: var(--s-8); }
.vs-head__item { border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.vs-head__item h2 { font-size: var(--fs-20); }
.vs-head__item h2::before { display: none; }
.vs-head__item p { font-size: var(--fs-14); color: var(--c-ink-2); margin: 0; line-height: 1.7; }
.vs-head__item a { font-size: var(--fs-14); font-weight: 600; margin-top: auto; }
.vs-head__x { align-self: center; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--c-accent); color: #fff; font-family: var(--f-num); font-weight: 800; }
@media (max-width: 640px) {
	.vs-head { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
	.vs-head__x { justify-self: center; width: 36px; height: 36px; font-size: var(--fs-13); }
}
.verdict-box { padding: var(--s-6); border-radius: var(--r-lg); background: var(--c-surface); margin-bottom: var(--s-10); }
.verdict-box h2 { font-size: var(--fs-16); margin-bottom: var(--s-2); letter-spacing: .04em; }
.verdict-box p { margin: 0; font-size: var(--fs-16); line-height: 1.85; }

/* 10. Pages ---------------------------------------------------------------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
@media (max-width: 720px) { .team { grid-template-columns: minmax(0, 1fr); } }
.team .author-box { margin-top: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s-12); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); } }
.profile-head { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.profile-head .avatar-ph { width: 88px; height: 88px; font-size: 2rem; }
@media (max-width: 520px) { .profile-head { grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-4); } .profile-head .avatar-ph { width: 64px; height: 64px; font-size: 1.5rem; } }
.error-page { text-align: center; padding: var(--s-20) 0; }
.error-page__code { font-family: var(--f-num); font-size: clamp(4rem, 3rem + 5vw, 7rem); font-weight: 800; line-height: 1; color: var(--c-surface-2); -webkit-text-stroke: 2px var(--c-ink); }
.error-page .search-form { max-width: 480px; margin: var(--s-6) auto; }

/* Gutenberg alignment compatibility */
.alignwide { margin-left: 0; margin-right: 0; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-block-image img { height: auto; }
.wp-block-button__link { display: inline-flex; min-height: 44px; align-items: center; padding: 10px 20px; border-radius: var(--r-md); background: var(--c-accent); color: #fff !important; text-decoration: none !important; font-weight: 600; }

/* 11. Utilities ------------------------------------------------------------ */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.muted { color: var(--c-ink-3); }
.hide-mobile { }
@media (max-width: 640px) { .hide-mobile { display: none !important; } }
.only-mobile { display: none; }
@media (max-width: 640px) { .only-mobile { display: block; } }
@media print {
	.topbar, .site-header, .site-footer, .article-layout__aside, .article-layout__rail, .related, .toc-mobile { display: none !important; }
	.article-layout { display: block; }
}
