:root {
	--wiko-bp-mobile: 768px;
	--wiko-bp-desktop: 1024px;
	--wiko-bg: #ffffff;
	--wiko-surface: #ffffff;
	--wiko-border: #d9e1ea;
	--wiko-text: #17263a;
	--wiko-text-muted: #3d4f61;
	--wiko-primary: #0c7a61;
	--wiko-primary-hover: #085e4a;
	--wiko-code-bg: #ffffff;
	--wiko-sidebar-bg: #ffffff;
	--wiko-link: #0d5fb8;
	--wiko-link-hover: #0a4a8d;
	--wiko-focus: #e18013;
	--wiko-font-size: 16px;
	--wiko-layout-sidebar: 240px;
	--wiko-layout-toc: 220px;
	--wiko-layout-content-max: 860px;
	--wiko-hero-bg: #ffffff;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	background: var(--wiko-bg);
	color: var(--wiko-text);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Hiragino Sans', 'Noto Sans JP', sans-serif;
	font-size: var(--wiko-font-size);
	line-height: 1.7;
}

a {
	color: var(--wiko-link);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
	color: var(--wiko-link-hover);
}

:focus-visible {
	outline: 2px solid var(--wiko-focus);
	outline-offset: 2px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--wiko-surface);
	clip: auto !important;
	clip-path: none;
	color: var(--wiko-text);
	display: block;
	font-size: 0.875rem;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 0.9rem 1.1rem;
	top: 5px;
	width: auto;
	z-index: 99999;
	border: 1px solid var(--wiko-border);
}

html {
	scroll-behavior: smooth;
}

.wiko-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 1.2rem;
}

.wiko-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--wiko-surface);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--wiko-border);
}

body.wiko-header-not-sticky .wiko-header {
	position: relative;
	top: auto;
}

.wiko-header__inner {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 0.75rem;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0.75rem 1.2rem;
}

.wiko-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.wiko-brand__logo-fallback {
	border-radius: 0.4rem;
	border: 1px solid var(--wiko-border);
	background: var(--wiko-surface);
}

.wiko-brand__title {
	font-weight: 700;
	font-size: 1.1rem;
	text-decoration: none;
	color: var(--wiko-text);
}

.wiko-brand__tagline {
	margin: 0;
	font-size: 0.82rem;
	color: var(--wiko-text-muted);
}

.wiko-header__menu-toggle {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	border: 1px solid var(--wiko-border);
	background: var(--wiko-surface);
	border-radius: 8px;
	padding: 0.5rem;
}

.wiko-header__menu-toggle span {
	display: block;
	width: 1.1rem;
	height: 2px;
	background: var(--wiko-text);
}

.wiko-primary-nav,
.wiko-header__actions {
	display: none;
}

.wiko-primary-nav__close {
	display: none;
}

.wiko-primary-nav__list,
.wiko-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1rem;
}

.wiko-primary-nav__list li {
	position: relative;
}

.wiko-primary-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0.45rem;
	min-width: 220px;
	position: absolute;
	top: calc(100% + 0.3rem);
	left: 0;
	background: var(--wiko-surface);
	border: 1px solid var(--wiko-border);
	border-radius: 0.6rem;
	box-shadow: 0 10px 24px color-mix(in srgb, var(--wiko-text) 10%, transparent);
	display: none;
	z-index: 1001;
	gap: 0;
}

.wiko-primary-nav__list .sub-menu li {
	width: 100%;
}

.wiko-primary-nav__list .sub-menu a {
	display: block;
	padding: 0.45rem 0.55rem;
	border-radius: 0.35rem;
	text-decoration: none;
	white-space: nowrap;
}

.wiko-primary-nav__list .sub-menu a:hover,
.wiko-primary-nav__list .sub-menu a:focus-visible {
	background: var(--wiko-sidebar-bg);
}

.wiko-primary-nav__list > li.menu-item-has-children > a::after {
	content: '▾';
	display: inline-block;
	margin-left: 0.35rem;
	font-size: 0.72em;
	line-height: 1;
	vertical-align: middle;
	color: var(--wiko-text-muted);
	transition: transform 0.2s ease;
}

.wiko-primary-nav__list > li.menu-item-has-children:hover > a::after,
.wiko-primary-nav__list > li.menu-item-has-children:focus-within > a::after {
	transform: rotate(180deg);
}

.wiko-primary-nav__list li.menu-item-has-children:hover > .sub-menu,
.wiko-primary-nav__list li.menu-item-has-children:focus-within > .sub-menu {
	display: block;
}

body.wiko-nav-open .wiko-primary-nav {
	display: block;
	grid-column: 1 / -1;
	background: var(--wiko-surface);
	border: 1px solid var(--wiko-border);
	border-radius: 0.7rem;
	padding: 0.85rem;
}

body.wiko-nav-open .wiko-primary-nav__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.7rem;
	border: 1px solid var(--wiko-border);
	border-radius: 0.55rem;
	padding: 0.45rem 0.7rem;
	background: var(--wiko-surface);
	color: var(--wiko-text);
	cursor: pointer;
}

body.wiko-nav-open .wiko-primary-nav__list {
	flex-direction: column;
	gap: 0.45rem;
}

body.wiko-nav-open .wiko-primary-nav__list .sub-menu {
	position: static;
	display: block;
	box-shadow: none;
	margin-top: 0.25rem;
	margin-left: 0.6rem;
	border-radius: 0.5rem;
	min-width: 0;
}

body.wiko-nav-open .wiko-header__actions {
	display: grid;
	grid-column: 1 / -1;
	gap: 0.55rem;
}

.wiko-search-form {
	position: relative;
	display: flex;
	gap: 0.5rem;
}

.wiko-search-form__field {
	width: 100%;
	padding: 0.65rem 0.8rem;
	border: 1px solid var(--wiko-border);
	border-radius: 0.6rem;
	background: var(--wiko-surface);
	color: var(--wiko-text);
}

.wiko-search-form__submit,
.wiko-button,
.wiko-header__theme-toggle,
.wiko-header__github {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--wiko-border);
	border-radius: 0.6rem;
	padding: 0.6rem 0.85rem;
	background: var(--wiko-surface);
	color: var(--wiko-text);
	text-decoration: none;
	cursor: pointer;
}

.wiko-button,
.wiko-search-form__submit {
	background: var(--wiko-primary);
	color: var(--wiko-surface);
	border-color: var(--wiko-primary);
}

.wiko-button:hover,
.wiko-search-form__submit:hover {
	background: var(--wiko-primary-hover);
	color: var(--wiko-surface);
	border-color: var(--wiko-primary-hover);
}

.wiko-search-form__results {
	position: absolute;
	top: calc(100% + 0.4rem);
	left: 0;
	right: 0;
	background: var(--wiko-surface);
	border: 1px solid var(--wiko-border);
	border-radius: 0.6rem;
	display: none;
	max-height: 360px;
	overflow: auto;
	z-index: 20;
}

.wiko-search-form__results.is-open {
	display: block;
}

.wiko-search-result,
.wiko-search-result-empty {
	display: block;
	padding: 0.7rem 0.8rem;
	border-bottom: 1px solid var(--wiko-border);
	text-decoration: none;
	color: var(--wiko-text);
}

.wiko-search-result:last-child,
.wiko-search-result-empty:last-child {
	border-bottom: 0;
}

.wiko-search-result.is-active {
	background: var(--wiko-sidebar-bg);
}

.wiko-main {
	padding: 1.2rem 0 2rem;
	scroll-margin-top: 6rem;
}

.wiko-post-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.95rem;
}

.wiko-post-list .wiko-card {
	margin-bottom: 0;
}

.wiko-card,
.wiko-entry,
.wiko-topic-card {
	background: var(--wiko-surface);
	border: 1px solid var(--wiko-border);
	border-radius: 0.9rem;
	padding: 1rem;
	margin-bottom: 0.95rem;
}

.wiko-card__thumb-link {
	display: block;
	margin: -1rem -1rem 0.9rem;
	overflow: hidden;
	border-radius: 0.9rem 0.9rem 0 0;
}

.wiko-card__thumb {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.wiko-card:hover .wiko-card__thumb,
.wiko-card:focus-within .wiko-card__thumb {
	transform: scale(1.02);
}

.wiko-entry__thumb-wrap {
	margin: 0 0 1rem;
}

.wiko-entry__thumb {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0.8rem;
	object-fit: cover;
}

.wiko-card__title,
.wiko-entry__title {
	margin: 0 0 0.5rem;
	line-height: 1.25;
}

.wiko-card__meta,
.wiko-entry__meta,
.wiko-breadcrumbs {
	font-size: 0.88rem;
	color: var(--wiko-text-muted);
}

.wiko-entry__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.wiko-meta__author {
	display: inline-flex;
	gap: 0.45rem;
	align-items: center;
}

.wiko-meta__avatar {
	border-radius: 50%;
	border: 1px solid var(--wiko-border);
}

.wiko-breadcrumbs ol {
	list-style: none;
	padding: 0;
	margin: 0 0 0.75rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
}

.wiko-breadcrumbs li:not(:last-child)::after {
	content: '>';
	padding-left: 0.3rem;
	color: var(--wiko-text-muted);
}

.wiko-docs-layout-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	max-width: 1600px;
	margin: 0 auto;
	padding: 1rem;
	align-items: start;
}

.wiko-docs-toolbar {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 1rem;
}

.wiko-docs-toggle {
	border: 1px solid var(--wiko-border);
	background: var(--wiko-surface);
	color: var(--wiko-text);
	border-radius: 0.55rem;
	padding: 0.55rem 0.75rem;
	font-weight: 600;
	cursor: pointer;
}

.wiko-docs-layout-grid__left,
.wiko-docs-layout-grid__right {
	background: var(--wiko-surface);
	border: 0;
	border-radius: 0.8rem;
}

.wiko-sidebar,
.wiko-sidebar-toc {
	position: relative;
}

.wiko-sidebar__inner,
.wiko-sidebar-toc__inner {
	padding: 0.9rem;
}

.wiko-sidebar__close {
	display: none;
}

.wiko-sidebar__list,
.wiko-sidebar__submenu,
.wiko-toc__list,
.wiko-toc__sublist {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.wiko-sidebar__item {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.4rem;
	align-items: center;
	padding: 0.28rem 0;
}

.wiko-sidebar__item--active > .wiko-sidebar__link {
	font-weight: 700;
	color: var(--wiko-primary);
}

.wiko-sidebar__item--ancestor > .wiko-sidebar__link {
	font-weight: 600;
}

.wiko-sidebar__details {
	grid-column: 1 / -1;
}

.wiko-sidebar__summary {
	font-size: 0.82rem;
	color: var(--wiko-text-muted);
	cursor: pointer;
	padding: 0.2rem 0;
}

.wiko-sidebar__summary:focus-visible {
	outline: 2px solid var(--wiko-focus);
	outline-offset: 2px;
}

.wiko-sidebar__empty,
.wiko-sidebar-toc__empty {
	margin: 0;
	font-size: 0.9rem;
	color: var(--wiko-text-muted);
}

.wiko-sidebar-toc__title {
	margin: 0 0 0.6rem;
	font-size: 1rem;
}

.wiko-sidebar__count,
.wiko-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.12rem 0.5rem;
	border-radius: 99px;
	background: var(--wiko-code-bg);
	font-size: 0.76rem;
	color: var(--wiko-text-muted);
	border: 1px solid var(--wiko-border);
}

.wiko-toc {
	font-size: 0.9rem;
}

.wiko-toc__item {
	margin: 0.2rem 0;
}

.wiko-toc__sublist {
	padding-left: 0.9rem;
	margin-top: 0.2rem;
}

.wiko-sidebar-toc__widgets {
	margin-top: 1rem;
}

.wiko-toc a.is-active {
	font-weight: 700;
	color: var(--wiko-primary);
}

.wiko-toc-mobile {
	margin-bottom: 0.9rem;
}

.wiko-doc-nav {
	display: flex;
	justify-content: space-between;
	gap: 0.8rem;
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--wiko-border);
}

.wiko-comments {
	margin-top: 1.5rem;
	padding: 1rem;
	border: 1px solid var(--wiko-border);
	border-radius: 0.9rem;
	background: var(--wiko-surface);
}

.wiko-comments__title {
	margin: 0 0 0.9rem;
	font-size: 1.1rem;
}

.wiko-comments__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.9rem;
}

.wiko-comments .comment-body {
	padding: 0.85rem;
	border: 1px solid var(--wiko-border);
	border-radius: 0.7rem;
	background: var(--wiko-surface);
}

.wiko-comments .comment-meta {
	font-size: 0.85rem;
	color: var(--wiko-text-muted);
	margin-bottom: 0.45rem;
}

.wiko-comments .comment-content p {
	margin: 0.4rem 0;
}

.wiko-comments .comment-reply-link {
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
}

.wiko-comments .comment-respond {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--wiko-border);
}

.wiko-comments .comment-reply-title {
	margin: 0 0 0.8rem;
	font-size: 1rem;
}

.wiko-comments .comment-form {
	display: grid;
	gap: 0.7rem;
}

.wiko-comments .comment-form p {
	margin: 0;
}

.wiko-comments label {
	display: inline-block;
	margin-bottom: 0.3rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.wiko-comments input[type='text'],
.wiko-comments input[type='email'],
.wiko-comments input[type='url'],
.wiko-comments textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--wiko-border);
	border-radius: 0.6rem;
	background: var(--wiko-surface);
	color: var(--wiko-text);
	font: inherit;
}

.wiko-comments textarea {
	min-height: 130px;
	resize: vertical;
}

.wiko-comments .form-submit {
	margin-top: 0.2rem;
}

/* ── Pagination ─────────────────────────────────────────────── */
.navigation.pagination {
	margin-top: 2rem;
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.2rem;
	height: 2.2rem;
	padding: 0 0.6rem;
	border: 1px solid var(--wiko-primary);
	border-radius: 0.6rem;
	background: var(--wiko-primary);
	color: var(--wiko-surface);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.page-numbers.current,
.page-numbers:hover,
.page-numbers:focus-visible {
	background: var(--wiko-primary-hover);
	border-color: var(--wiko-primary-hover);
	color: var(--wiko-surface);
	outline: none;
}

.page-numbers.dots {
	background: transparent;
	border-color: transparent;
	color: var(--wiko-text-light);
	cursor: default;
}

.wiko-comments .submit {
	border: 1px solid var(--wiko-primary);
	background: var(--wiko-primary);
	color: var(--wiko-surface);
	border-radius: 0.6rem;
	padding: 0.6rem 0.9rem;
	cursor: pointer;
	font-weight: 600;
}

.wiko-comments .submit:hover,
.wiko-comments .submit:focus-visible {
	background: var(--wiko-primary-hover);
	border-color: var(--wiko-primary-hover);
}

/* ── Back to top ────────────────────────────────────────────── */
.wiko-back-to-top {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	z-index: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.6rem;
	height: 2.6rem;
	border: 1px solid var(--wiko-border);
	border-radius: 50%;
	background: var(--wiko-surface);
	color: var(--wiko-text);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,.08);
	transition: background 0.2s, color 0.2s, transform 0.2s;
}

.wiko-back-to-top:hover,
.wiko-back-to-top:focus-visible {
	background: var(--wiko-primary-hover);
	border-color: var(--wiko-primary-hover);
	color: var(--wiko-surface);
	transform: translateY(-2px);
	outline: none;
}

.wiko-landing-hero {
	background: var(--wiko-surface);
	border-bottom: 1px solid var(--wiko-border);
	padding: 3rem 0 2.4rem;
}

.wiko-landing-hero .wiko-container {
	display: grid;
	gap: 1rem;
}

.wiko-topic-grid,
.wiko-doc-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
}

.wiko-topic-card {
	text-decoration: none;
	color: inherit;
}

.wiko-topic-card h3 {
	margin-top: 0;
}

.wiko-landing-section {
	padding: 1.4rem 0;
}

.wiko-footer {
	border-top: 1px solid var(--wiko-border);
	background: var(--wiko-surface);
	padding: 0;
}

.wiko-footer__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 1.2rem;
}

.wiko-footer__widgets {
	display: grid;
	gap: 0.85rem;
	margin-bottom: 1rem;
}

.wiko-footer__widgets--1 {
	grid-template-columns: 1fr;
}

.wiko-footer__widgets--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wiko-footer__widgets--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

code,
pre,
pre code {
	font-family: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
	font-size: 0.9em;
}

pre {
	position: relative;
	background: var(--wiko-code-bg);
	border: 1px solid var(--wiko-border);
	padding: 1rem;
	border-radius: 0.7rem;
	overflow: auto;
}

.wiko-copy-btn {
	position: absolute;
	top: 0.55rem;
	right: 0.55rem;
	border: 1px solid var(--wiko-border);
	background: var(--wiko-surface);
	color: var(--wiko-text);
	border-radius: 0.4rem;
	padding: 0.28rem 0.5rem;
	font-size: 0.72rem;
	cursor: pointer;
}

.wiko-offcanvas-overlay {
	position: fixed;
	inset: 0;
	background: color-mix(in srgb, var(--wiko-text) 20%, transparent);
	z-index: 899;
	display: none;
}

body.wiko-nav-open .wiko-offcanvas-overlay {
	display: block;
}

body.wiko-docs-open .wiko-offcanvas-overlay {
	display: block;
}

@media (min-width: 768px) {
	.wiko-sidebar__close {
		display: none !important;
	}

	.wiko-header__inner {
		grid-template-columns: auto 1fr auto;
	}

	.wiko-header__menu-toggle {
		display: none;
	}

	.wiko-primary-nav,
	.wiko-header__actions {
		display: flex;
		align-items: center;
		gap: 0.6rem;
	}

	.wiko-primary-nav__close {
		display: none !important;
	}

	.wiko-docs-layout-grid {
		grid-template-columns: minmax(220px, var(--wiko-layout-sidebar)) minmax(0, 1fr);
		justify-content: center;
	}

	.wiko-docs-layout-grid.wiko-docs-layout-grid--with-toc {
		grid-template-columns: minmax(220px, var(--wiko-layout-sidebar)) minmax(0, 1fr) minmax(180px, var(--wiko-layout-toc));
	}

	.wiko-docs-layout-grid.wiko-docs-layout-grid--reserve-right {
		grid-template-columns: minmax(220px, var(--wiko-layout-sidebar)) minmax(0, 1fr) minmax(180px, var(--wiko-layout-toc));
	}

	.wiko-docs-layout-grid__left {
		position: sticky;
		top: 80px;
		overflow: visible;
	}

	.wiko-docs-toolbar {
		display: none;
	}

	.wiko-docs-layout-grid__right {
		display: none;
		position: sticky;
		top: 80px;
		max-height: calc(100vh - 96px);
		overflow: auto;
	}

	.wiko-docs-layout-grid.wiko-docs-layout-grid--with-toc .wiko-docs-layout-grid__right {
		display: block;
	}

	.wiko-toc-mobile {
		display: none;
	}

	.wiko-topic-grid,
	.wiko-doc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.wiko-posts-columns-2 .wiko-post-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}

	.wiko-landing-hero .wiko-container {
		grid-template-columns: 1.2fr 1fr;
		align-items: end;
	}
}

@media (max-width: 767px) {
	.wiko-sidebar__close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		margin: 0 0 0.85rem;
		border: 1px solid var(--wiko-border);
		border-radius: 0.55rem;
		padding: 0.5rem 0.75rem;
		background: var(--wiko-surface);
		color: var(--wiko-text);
		cursor: pointer;
		position: sticky;
		top: 0;
		z-index: 10;
	}

	.wiko-docs-layout-grid__left {
		position: fixed;
		top: 72px;
		left: 0;
		bottom: 0;
		width: min(85vw, 320px);
		max-height: calc(100vh - 72px);
		overflow-y: auto;
		overscroll-behavior: contain;
		visibility: hidden;
		pointer-events: none;
		transform: translateX(-100%);
		transition: transform 0.2s ease;
		z-index: 950;
	}

	body.wiko-docs-open .wiko-docs-layout-grid__left {
		visibility: visible;
		pointer-events: auto;
		transform: translateX(0);
	}
}

@media (min-width: 1025px) {
	.wiko-docs-layout-grid {
		grid-template-columns: minmax(220px, var(--wiko-layout-sidebar)) minmax(0, var(--wiko-layout-content-max));
		justify-content: center;
	}

	.wiko-docs-layout-grid.wiko-docs-layout-grid--with-toc {
		grid-template-columns: minmax(220px, var(--wiko-layout-sidebar)) minmax(0, var(--wiko-layout-content-max)) minmax(180px, var(--wiko-layout-toc));
	}

	.wiko-docs-layout-grid.wiko-docs-layout-grid--reserve-right {
		grid-template-columns: minmax(220px, var(--wiko-layout-sidebar)) minmax(0, var(--wiko-layout-content-max)) minmax(180px, var(--wiko-layout-toc));
	}

	.wiko-docs-layout-grid__right {
		display: none;
		position: sticky;
		top: 80px;
		max-height: calc(100vh - 96px);
		overflow: auto;
	}

	.wiko-docs-layout-grid.wiko-docs-layout-grid--with-toc .wiko-docs-layout-grid__right {
		display: block;
	}

	.wiko-topic-grid,
	.wiko-doc-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOM MODIFICATIONS
   ═══════════════════════════════════════════════════════════════ */

/* ── Homepage: title-only post list ────────────────────────── */
.wiko-post-item {
	background: none;
	border: none;
	border-radius: 0;
	padding: 0;
	margin: 0;
}

.wiko-post-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	background: var(--wiko-surface);
	border: 1px solid var(--wiko-border);
	border-radius: 0.9rem;
	overflow: hidden;
}

.wiko-post-list .wiko-post-item {
	border-bottom: 1px solid var(--wiko-border);
	transition: background 0.15s;
}

.wiko-post-list .wiko-post-item:last-child {
	border-bottom: none;
}

.wiko-post-list .wiko-post-item:hover {
	background: color-mix(in srgb, var(--wiko-primary) 4%, var(--wiko-surface));
}

.wiko-post-item__title {
	margin: 0;
	font-size: 0.97rem;
	font-weight: 500;
	line-height: 1.4;
}

.wiko-post-item__title a {
	display: block;
	padding: 0.75rem 1rem;
	text-decoration: none;
	color: var(--wiko-text);
	transition: color 0.15s;
}

.wiko-post-item__title a:hover {
	color: var(--wiko-primary);
}

/* ── Heading sizes ──────────────────────────────────────────── */
.wiko-entry__content h2,
.entry-content h2 {
	font-size: 1.3rem;
	line-height: 1.3;
	margin-top: 1.8rem;
	margin-bottom: 0.5rem;
}

.wiko-entry__content h3,
.entry-content h3 {
	font-size: 1.1rem;
	line-height: 1.3;
	margin-top: 1.4rem;
	margin-bottom: 0.4rem;
}

/* ── Styled ordered & unordered lists ──────────────────────── */
.wiko-entry__content ul,
.wiko-entry__content ol,
.entry-content ul,
.entry-content ol {
	padding-left: 0;
	margin: 0.9rem 0 0.9rem 1.2rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.wiko-entry__content ul,
.entry-content ul {
	list-style: none;
	margin-left: 0;
}

.wiko-entry__content ul > li,
.entry-content ul > li {
	padding-left: 1.4rem;
	position: relative;
}

.wiko-entry__content ul > li::before,
.entry-content ul > li::before {
	content: '';
	position: absolute;
	left: 0.35rem;
	top: 0.62em;
	width: 0.42em;
	height: 0.42em;
	background: var(--wiko-primary);
	border-radius: 50%;
}

.wiko-entry__content ol,
.entry-content ol {
	list-style: none;
	counter-reset: wiko-ol;
	margin-left: 0;
}

.wiko-entry__content ol > li,
.entry-content ol > li {
	counter-increment: wiko-ol;
	padding-left: 2rem;
	position: relative;
}

.wiko-entry__content ol > li::before,
.entry-content ol > li::before {
	content: counter(wiko-ol);
	position: absolute;
	left: 0;
	top: 0.1em;
	width: 1.45rem;
	height: 1.45rem;
	background: var(--wiko-primary);
	color: #fff;
	border-radius: 50%;
	font-size: 0.72rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* Nested lists */
.wiko-entry__content ul ul,
.wiko-entry__content ul ol,
.wiko-entry__content ol ul,
.wiko-entry__content ol ol,
.entry-content ul ul,
.entry-content ul ol,
.entry-content ol ul,
.entry-content ol ol {
	margin-top: 0.3rem;
}

.wiko-entry__content ul ul > li::before,
.entry-content ul ul > li::before {
	background: transparent;
	border: 2px solid var(--wiko-primary);
}

/* ── Code & pre highlighting ────────────────────────────────── */
:root {
	--wiko-code-bg: #f6f8fa;
	--wiko-code-text: #c7254e;
	--wiko-code-border: #e1e4e8;
}

/* Inline code */
.wiko-entry__content code,
.entry-content code {
	background: var(--wiko-code-bg);
	color: var(--wiko-code-text);
	border: 1px solid var(--wiko-code-border);
	border-radius: 0.3rem;
	padding: 0.12em 0.4em;
	font-size: 0.875em;
	white-space: nowrap;
}

/* Code blocks */
.wiko-entry__content pre,
.entry-content pre {
	background: #1e1e2e;
	color: #cdd6f4;
	border: 1px solid #313244;
	border-radius: 0.75rem;
	padding: 1.1rem 1.25rem 1.1rem 1rem;
	overflow-x: auto;
	margin: 1.1rem 0;
	position: relative;
	line-height: 1.65;
}

.wiko-entry__content pre code,
.entry-content pre code {
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font-size: 0.875em;
	white-space: pre;
	border-radius: 0;
}

/* Language label */
.wiko-entry__content pre[class*="language-"]::before,
.entry-content pre[class*="language-"]::before {
	content: attr(data-lang);
	position: absolute;
	top: 0.4rem;
	right: 3.2rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #6c7086;
}

/* Syntax-style token colours (minimal, without Prism dependency) */
.wiko-entry__content pre .token-keyword,
.wiko-entry__content pre .kw  { color: #cba6f7; }
.wiko-entry__content pre .token-string,
.wiko-entry__content pre .str { color: #a6e3a1; }
.wiko-entry__content pre .token-comment,
.wiko-entry__content pre .cm  { color: #6c7086; font-style: italic; }
.wiko-entry__content pre .token-number,
.wiko-entry__content pre .num { color: #fab387; }
.wiko-entry__content pre .token-function,
.wiko-entry__content pre .fn  { color: #89b4fa; }

/* ── Related posts in sidebar ───────────────────────────────── */
.wiko-related-posts {
	margin-top: 1.5rem;
	padding-top: 1.2rem;
	border-top: 1px solid var(--wiko-border);
}

.wiko-related-posts__title {
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wiko-text-muted);
	margin: 0 0 0.75rem;
}

.wiko-related-posts__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.wiko-related-posts__item {
	border-radius: 0.45rem;
	transition: background 0.15s;
}

.wiko-related-posts__item:hover {
	background: color-mix(in srgb, var(--wiko-primary) 6%, var(--wiko-surface));
}

.wiko-related-posts__link {
	display: block;
	padding: 0.4rem 0.5rem;
	font-size: 0.88rem;
	color: var(--wiko-text);
	text-decoration: none;
	line-height: 1.35;
	transition: color 0.15s;
}

.wiko-related-posts__link:hover {
	color: var(--wiko-primary);
}

.wiko-related-posts__link::before {
	content: '→ ';
	color: var(--wiko-primary);
	font-weight: 600;
}

/* ── Mobile: responsive polish ─────────────────────────────── */
@media (max-width: 767px) {
	.wiko-entry__content h2,
	.entry-content h2 {
		font-size: 1.15rem;
	}

	.wiko-entry__content h3,
	.entry-content h3 {
		font-size: 1rem;
	}

	.wiko-entry__content pre,
	.entry-content pre {
		border-radius: 0.5rem;
		padding: 0.85rem 0.9rem;
		font-size: 0.82rem;
	}

	.wiko-post-item__title a {
		padding: 0.85rem 0.9rem;
	}

	.wiko-related-posts {
		margin-top: 1rem;
	}
}

/* ── Dark mode code block adjustments ──────────────────────── */
.dark-mode :root,


/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v2
   ═══════════════════════════════════════════════════════════════ */

/* ── Full-width layout (index / archive — no sidebars) ──────── */
.wiko-main--full {
	padding: 1.5rem 0 2.5rem;
}

.wiko-full-content {
	max-width: 860px;
	margin: 0 auto;
	padding: 0 1.2rem;
}

/* ── Post list: no border/card, clean flat links ─────────────── */
.wiko-main--full .wiko-post-list {
	background: none;
	border: none;
	border-radius: 0;
	gap: 0;
}

.wiko-main--full .wiko-post-item {
	border-bottom: 1px solid var(--wiko-border);
}

.wiko-main--full .wiko-post-item:first-child {
	border-top: 1px solid var(--wiko-border);
}

.wiko-main--full .wiko-post-item:hover {
	background: color-mix(in srgb, var(--wiko-primary) 4%, var(--wiko-surface));
}

/* ── Mobile: fix overflow / horizontal scroll ────────────────── */
/* NOTE: overflow-x:hidden on html/body breaks position:sticky globally.
   Use overflow-x:clip on specific containers instead — clip does not
   create a new scroll container so sticky still works. */
.wiko-main,
.wiko-header,
.wiko-footer {
	overflow-x: clip;
}

img,
video,
iframe,
table,
pre {
	max-width: 100%;
}

@media (max-width: 767px) {
	.wiko-full-content {
		padding: 0 0.85rem;
	}

	.wiko-docs-layout-grid {
		padding: 0.75rem;
	}

	.wiko-entry__content pre,
	.entry-content pre {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	/* prevent any element from causing horizontal scroll */
	.wiko-entry__content,
	.entry-content {
		overflow-x: hidden;
		word-break: break-word;
	}

	/* Header stays within viewport */
	.wiko-header__inner {
		padding: 0.6rem 0.85rem;
	}

	.wiko-container {
		padding: 0.85rem;
	}

	/* Pagination readable on small screens */
	.navigation.pagination .nav-links {
		justify-content: center;
	}
}

/* ── Page header (archive title) ─────────────────────────────── */
.wiko-page-header {
	margin-bottom: 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--wiko-border);
}

.wiko-page-title {
	margin: 0 0 0.25rem;
	font-size: 1.4rem;
}

.wiko-page-description {
	color: var(--wiko-text-muted);
	font-size: 0.93rem;
	margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v3 — post item with category + solution count
   ═══════════════════════════════════════════════════════════════ */

/* ── Post item: full-width link row ─────────────────────────── */
.wiko-post-item {
	background: none;
	border: none;
	border-radius: 0;
	padding: 0;
	margin: 0;
}

.wiko-post-item__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.7rem 1rem;
	text-decoration: none;
	color: var(--wiko-text);
	width: 100%;
	transition: background 0.15s, color 0.15s;
}

.wiko-post-item__link:hover {
	background: color-mix(in srgb, var(--wiko-primary) 5%, var(--wiko-surface));
	color: var(--wiko-text);
}

/* ── Left side: category badge + title ──────────────────────── */
.wiko-post-item__left {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	flex: 1;
	min-width: 0;
}

.wiko-post-item__cat {
	flex-shrink: 0;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wiko-primary);
	background: color-mix(in srgb, var(--wiko-primary) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--wiko-primary) 25%, transparent);
	border-radius: 4px;
	padding: 0.15em 0.45em;
	line-height: 1.4;
	white-space: nowrap;
}

.wiko-post-item__title {
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--wiko-text);
	flex: 1;
	/* allow title to be nearly full width, truncate only when needed */
}

.wiko-post-item__link:hover .wiko-post-item__title {
	color: var(--wiko-primary);
}

/* ── Right side: solution count (Japanese) ──────────────────── */
.wiko-post-item__count {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.2em;
	background: color-mix(in srgb, var(--wiko-text) 5%, transparent);
	border: 1px solid var(--wiko-border);
	border-radius: 20px;
	padding: 0.2em 0.65em;
	white-space: nowrap;
}

.wiko-post-item__count-num {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--wiko-primary);
	line-height: 1;
}

.wiko-post-item__count-label {
	font-size: 0.72rem;
	color: var(--wiko-text-muted);
	line-height: 1;
}

/* ── Post list container ────────────────────────────────────── */
.wiko-main--full .wiko-post-list {
	background: var(--wiko-surface);
	border: 1px solid var(--wiko-border);
	border-radius: 0.9rem;
	overflow: hidden;
	gap: 0;
}

.wiko-main--full .wiko-post-item {
	border-bottom: 1px solid var(--wiko-border);
}

.wiko-main--full .wiko-post-item:last-child {
	border-bottom: none;
}

/* ── Recent posts section ───────────────────────────────────── */
.wiko-recent-section {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 2px solid var(--wiko-border);
}

.wiko-recent-section__heading {
	font-size: 1rem;
	font-weight: 700;
	color: var(--wiko-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 0.75rem;
}

.wiko-recent-list {
	list-style: none;
	margin: 0;
	padding: 0;
	background: var(--wiko-surface);
	border: 1px solid var(--wiko-border);
	border-radius: 0.9rem;
	overflow: hidden;
}

.wiko-recent-list__item {
	border-bottom: 1px solid var(--wiko-border);
	transition: background 0.15s;
}

.wiko-recent-list__item:last-child {
	border-bottom: none;
}

.wiko-recent-list__item .wiko-post-item__link:hover {
	background: color-mix(in srgb, var(--wiko-primary) 5%, var(--wiko-surface));
}

/* ── Mobile tweaks ──────────────────────────────────────────── */
@media (max-width: 767px) {
	.wiko-post-item__link {
		padding: 0.75rem 0.85rem;
		gap: 0.5rem;
	}

	.wiko-post-item__left {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
	}

	.wiko-post-item__cat {
		font-size: 0.65rem;
	}

	.wiko-post-item__title {
		font-size: 0.9rem;
	}

	.wiko-post-item__count {
		flex-direction: column;
		align-items: center;
		padding: 0.3em 0.5em;
		gap: 0;
	}

	.wiko-post-item__count-label {
		font-size: 0.62rem;
	}

	.wiko-recent-section {
		margin-top: 1.75rem;
	}
}

/* ═══════════════════════════════════════════════════════════════
   FIXES v4
   ═══════════════════════════════════════════════════════════════ */

/* ── Search button: prevent text wrap ───────────────────────── */
.wiko-search-form__submit {
	white-space: nowrap;
	flex-shrink: 0;
	height: 40px;
	padding: 0 0.9rem;
	line-height: 1;
	font-size: 0.9rem;
}

.wiko-search-form__field {
	min-width: 0;
	height: 40px;
}

/* ── Post item: category + title on one line ─────────────────── */
.wiko-post-item__left {
	display: flex;
	flex-direction: row;
	align-items: center;
	flex-wrap: nowrap;
	gap: 0.5rem;
	flex: 1;
	min-width: 0;
}

.wiko-post-item__cat {
	flex-shrink: 0;
	align-self: center;
}

.wiko-post-item__title {
	/* allow wrapping but stay on same baseline row as cat */
	flex: 1;
	min-width: 0;
}

/* ── Recent posts: only on single post pages ─────────────────── */
/* (block is not rendered on index/archive via PHP, but hide defensively) */
.home .wiko-recent-section,
.archive .wiko-recent-section,
.search .wiko-recent-section,
.category .wiko-recent-section,
.tag .wiko-recent-section {
	display: none;
}

/* ── Mobile: keep category on same line ──────────────────────── */
@media (max-width: 767px) {
	.wiko-post-item__left {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 0.35rem;
	}

	.wiko-post-item__count {
		flex-direction: row;
		padding: 0.25em 0.55em;
	}
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v5 — count left, no cat, full-width, sticky sidebars
   ═══════════════════════════════════════════════════════════════ */

/* ── Post item: count LEFT + full-width title ────────────────── */
.wiko-post-item__link {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.75rem 1rem;
	text-decoration: none;
	color: var(--wiko-text);
	width: 100%;
	transition: background 0.15s;
}

.wiko-post-item__link:hover {
	background: color-mix(in srgb, var(--wiko-primary) 5%, var(--wiko-surface));
}

/* Count pill — left side, compact, no label */
.wiko-post-item__count {
	flex-shrink: 0;
	display: inline-flex;
	align-items: baseline;
	gap: 0.05em;
	background: color-mix(in srgb, var(--wiko-primary) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--wiko-primary) 25%, transparent);
	border-radius: 20px;
	padding: 0.15em 0.55em;
	white-space: nowrap;
	line-height: 1;
}

.wiko-post-item__count-num {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--wiko-primary);
}

.wiko-post-item__count-sep {
	font-size: 0.72rem;
	color: var(--wiko-primary);
	opacity: 0.8;
}

/* Title — takes up all remaining space */
.wiko-post-item__title {
	flex: 1;
	min-width: 0;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--wiko-text);
}

.wiko-post-item__link:hover .wiko-post-item__title {
	color: var(--wiko-primary);
}

/* Hide old left wrapper and category if they exist */
.wiko-post-item__left,
.wiko-post-item__cat {
	display: none;
}

/* ── Sticky sidebars ────────────────────────────────────────── */
/* Left sidebar already has position:sticky in desktop @media.
   We override top so it accounts for header height and stays visible. */
@media (min-width: 768px) {
	.wiko-docs-layout-grid__left {
		position: sticky !important;
		top: 64px !important;
		max-height: calc(100vh - 72px) !important;
		overflow-y: auto;
		align-self: start;
	}

	.wiko-docs-layout-grid__right {
		position: sticky !important;
		top: 64px !important;
		max-height: calc(100vh - 72px) !important;
		overflow-y: auto;
		align-self: start;
	}

	/* Smooth scrollbar inside sidebars */
	.wiko-docs-layout-grid__left::-webkit-scrollbar,
	.wiko-docs-layout-grid__right::-webkit-scrollbar {
		width: 4px;
	}
	.wiko-docs-layout-grid__left::-webkit-scrollbar-thumb,
	.wiko-docs-layout-grid__right::-webkit-scrollbar-thumb {
		background: var(--wiko-border);
		border-radius: 2px;
	}
}

/* ── Mobile: count + title on same row ──────────────────────── */
@media (max-width: 767px) {
	.wiko-post-item__link {
		padding: 0.7rem 0.85rem;
		gap: 0.5rem;
	}

	.wiko-post-item__count {
		padding: 0.12em 0.45em;
	}

	.wiko-post-item__count-num {
		font-size: 0.8rem;
	}

	.wiko-post-item__title {
		font-size: 0.88rem;
	}
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v6 — sticky fix + count wording
   ═══════════════════════════════════════════════════════════════ */

/* ── Sticky sidebars: grid must use align-items: start ──────── */
/* Without this, grid children stretch to row height and
   position:sticky has no effect (element fills the whole track) */
.wiko-docs-layout-grid {
	align-items: start;
}

@media (min-width: 768px) {
	.wiko-docs-layout-grid__left {
		position: sticky !important;
		top: 68px !important;
		overflow: visible !important;
		align-self: start !important;
	}

	.wiko-docs-layout-grid__right {
		position: sticky !important;
		top: 68px !important;
		max-height: calc(100vh - 76px) !important;
		overflow-y: auto !important;
		overflow-x: hidden;
		align-self: start !important;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}

	/* Thin styled scrollbar for sidebars */
	.wiko-docs-layout-grid__left::-webkit-scrollbar,
	.wiko-docs-layout-grid__right::-webkit-scrollbar {
		width: 3px;
	}
	.wiko-docs-layout-grid__left::-webkit-scrollbar-thumb,
	.wiko-docs-layout-grid__right::-webkit-scrollbar-thumb {
		background: var(--wiko-border);
		border-radius: 2px;
	}
	.wiko-docs-layout-grid__left::-webkit-scrollbar-track,
	.wiko-docs-layout-grid__right::-webkit-scrollbar-track {
		background: transparent;
	}
}

/* ── Count pill: new wording (解決策 / 方法) ─────────────────── */
/* Reset old count styles */
.wiko-post-item__count {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.2em;
	background: color-mix(in srgb, var(--wiko-primary) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--wiko-primary) 28%, transparent);
	border-radius: 6px;
	padding: 0.18em 0.55em;
	white-space: nowrap;
	line-height: 1.3;
	font-size: 0.78rem;
}

.wiko-post-item__count-num {
	font-size: 0.85rem;
	font-weight: 800;
	color: var(--wiko-primary);
}

.wiko-post-item__count-word {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--wiko-primary);
	opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v7 — nav links, h1, breadcrumbs, toolbar, recent heading
   ═══════════════════════════════════════════════════════════════ */

/* ── Primary nav: top-level link styles ─────────────────────── */
.wiko-primary-nav__list > li > a {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.35rem 0.6rem;
	border-radius: 0.45rem;
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--wiko-text);
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
}

.wiko-primary-nav__list > li > a:hover,
.wiko-primary-nav__list > li > a:focus-visible,
.wiko-primary-nav__list > li.current-menu-item > a,
.wiko-primary-nav__list > li.current-menu-ancestor > a {
	background: color-mix(in srgb, var(--wiko-primary) 10%, transparent);
	color: var(--wiko-primary);
}

/* ── H1 size reduced ────────────────────────────────────────── */
.wiko-entry__title {
	font-size: 1.65rem !important;
	line-height: 1.25 !important;
	margin-bottom: 0.6rem !important;
}

/* ── Breadcrumbs: hide on mobile ────────────────────────────── */
@media (max-width: 767px) {
	.wiko-breadcrumbs,
	.wiko-entry__breadcrumbs,
	nav[aria-label="パンくずリスト"],
	.breadcrumb,
	.wiko-breadcrumb {
		display: none !important;
	}
}

/* ── Toolbar: two buttons side by side ──────────────────────── */
.wiko-docs-toolbar {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	padding: 0.6rem 1rem;
}

.wiko-docs-toggle {
	flex: 1;
	text-align: center;
}

/* Hide TOC button on desktop (TOC visible in sidebar) */
@media (min-width: 768px) {
	.wiko-docs-toggle--toc {
		display: none !important;
	}
}

/* Mobile TOC drawer toggle */
@media (max-width: 767px) {
	.wiko-docs-layout-grid__right {
		display: none;
	}

	.wiko-docs-layout-grid__right.is-open {
		display: block;
		order: -1;
		padding: 1rem;
		background: var(--wiko-surface);
		border-bottom: 1px solid var(--wiko-border);
	}
}

/* ── Recent posts: hide heading ─────────────────────────────── */
.wiko-recent-section__heading {
	display: none;
}

.wiko-recent-section {
	padding-top: 0;
	border-top: 1px solid var(--wiko-border);
	margin-top: 2rem;
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v8 — toolbar desktop hide, nav gap, h1, footer
   ═══════════════════════════════════════════════════════════════ */

/* ── Hide 関連記事 toolbar on desktop ───────────────────────── */
@media (min-width: 768px) {
	.wiko-docs-toolbar {
		display: none !important;
	}
}

/* ── Primary nav: tighter gap ───────────────────────────────── */
.wiko-primary-nav__list {
	gap: 0.1rem;
}

.wiko-primary-nav__list > li > a {
	padding: 0.3rem 0.45rem;
}

/* ── H1 smaller ─────────────────────────────────────────────── */
.wiko-entry__title {
	font-size: 1.35rem !important;
	line-height: 1.25 !important;
}

@media (max-width: 767px) {
	.wiko-entry__title {
		font-size: 1.2rem !important;
	}
}

/* ── Footer redesign ────────────────────────────────────────── */
.wiko-footer {
	border-top: 1px solid var(--wiko-border);
	background: var(--wiko-surface);
	padding: 0;
	margin-top: 3rem;
}

.wiko-footer__inner {
	max-width: 860px;
	margin: 0 auto;
	padding: 2rem 1.2rem 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	text-align: center;
}

.wiko-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
}

.wiko-footer__logo {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--wiko-text);
	text-decoration: none;
	letter-spacing: -0.01em;
}

.wiko-footer__logo:hover {
	color: var(--wiko-primary);
}

.wiko-footer__desc {
	margin: 0;
	font-size: 0.82rem;
	color: var(--wiko-text-muted);
	max-width: 400px;
}

.wiko-footer__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem 0.1rem;
}

.wiko-footer__links a {
	font-size: 0.85rem;
	color: var(--wiko-text-muted);
	text-decoration: none;
	padding: 0.2rem 0.65rem;
	border-radius: 0.35rem;
	transition: color 0.15s, background 0.15s;
}

.wiko-footer__links a:hover {
	color: var(--wiko-primary);
	background: color-mix(in srgb, var(--wiko-primary) 8%, transparent);
}

/* separator dots between links */
.wiko-footer__links a + a::before {
	content: '·';
	margin-right: 0.55rem;
	color: var(--wiko-border);
	pointer-events: none;
}

.wiko-footer__copyright {
	margin: 0;
	font-size: 0.78rem;
	color: var(--wiko-text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v9 — contrast fixes
   ═══════════════════════════════════════════════════════════════ */

/* ── Count pill: higher contrast text ───────────────────────── */
.wiko-post-item__count {
	background: color-mix(in srgb, var(--wiko-primary) 12%, transparent);
	border-color: color-mix(in srgb, var(--wiko-primary) 35%, transparent);
}

.wiko-post-item__count-num,
.wiko-post-item__count-word {
	color: var(--wiko-primary-hover); /* darker shade of primary for contrast */
	opacity: 1;
}

/* ── Footer links: stronger contrast ────────────────────────── */
.wiko-footer__links a {
	color: #3d4f61; /* same as new text-muted — ~6.5:1 on white */
}

.wiko-footer__links a:hover {
	color: var(--wiko-primary-hover);
}

.wiko-footer__copyright {
	color: #3d4f61;
}

.wiko-footer__desc {
	color: #3d4f61;
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v10 — left sidebar no-scroll FINAL + related links
   ═══════════════════════════════════════════════════════════════ */

/* ── Kill ALL overflow/max-height on left sidebar ───────────── */
/* Using specificity + !important to override every previous rule */
@media (min-width: 768px) {
	.wiko-docs-layout-grid__left,
	.wiko-docs-layout-grid .wiko-docs-layout-grid__left {
		max-height: none !important;
		height: auto !important;
		overflow: visible !important;
		overflow-y: visible !important;
	}
}

/* ── Related posts: no arrow, bigger readable text ──────────── */
.wiko-related-posts__link::before {
	content: none;
	display: none;
}

.wiko-related-posts__link {
	font-size: 0.93rem;
	line-height: 1.45;
	padding: 0.45rem 0.6rem;
	color: var(--wiko-text);
	border-radius: 0.4rem;
}

.wiko-related-posts__link:hover {
	color: var(--wiko-primary);
}

.wiko-related-posts__item {
	border-radius: 0.4rem;
}

.wiko-related-posts__list {
	gap: 0.05rem;
}

.wiko-related-posts__title {
	font-size: 0.75rem;
	letter-spacing: 0.07em;
	margin-bottom: 0.6rem;
}

/* ── Long unbreakable strings (registry paths, URLs, etc.) ──── */
.wiko-entry__content code,
.entry-content code {
	word-break: break-all;
	overflow-wrap: anywhere;
}

.wiko-entry__content p,
.entry-content p,
.wiko-entry__content li,
.entry-content li {
	overflow-wrap: anywhere;
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v11 — SVG logo, no text
   ═══════════════════════════════════════════════════════════════ */

.wiko-brand__logo-link {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
}

.wiko-brand__logo-img {
	display: block;
	height: 36px;   /* comfortable header height */
	width: auto;    /* keep aspect ratio: 985/278 ≈ 3.54 → ~127px wide */
	max-width: 160px;
	object-fit: contain;
}

/* Hide old text elements in case they still render */
.wiko-brand__text,
.wiko-brand__title,
.wiko-brand__tagline,
.wiko-brand__logo-fallback {
	display: none !important;
}

@media (max-width: 767px) {
	.wiko-brand__logo-img {
		height: 30px;
	}
}
