: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 auto 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: 1.15rem 0 1.25rem;
}

.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 auto auto;
	}

	.wiko-header__actions {
		order: 997;
	}

	.wiko-header__search-btn {
		order: 998;
	}

	.wiko-font-size-toggle {
		order: 999;
	}

	.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--no-left {
		grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
		justify-content: center;
	}

	.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--no-left {
		grid-template-columns: minmax(0, var(--wiko-layout-content-max)) minmax(260px, 360px);
		justify-content: center;
	}

	.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 1.25rem;
}

.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 (fecha / soluciones) ─────────────────── */
/* 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="Ruta de navegación"],
	.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;
	}

	.wiko-docs-toggle--index {
		display: none !important;
	}

	.wiko-index-drawer {
		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);
	}

	.wiko-index-drawer {
		display: none;
	}

	.wiko-index-drawer.is-open {
		display: block;
		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 related-posts 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: 1.25rem;
}

.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__policy {
	color: var(--wiko-text-muted);
	font-size: 0.8rem;
	line-height: 1.5;
	max-width: 640px;
	margin: 0.5rem auto 0;
	text-align: center;
}

.wiko-footer__policy code {
	font-size: 0.85em;
}

.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;
	}
}

/* ═══════════════════════════════════════════════════════════════
   2-column post grid on index / archive / search
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
	.wiko-main--full .wiko-post-list {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0;
		border-radius: 0.9rem;
		overflow: hidden;
	}

	/* Border between items in grid */
	.wiko-main--full .wiko-post-item {
		border-bottom: 1px solid var(--wiko-border);
		border-right: 1px solid var(--wiko-border);
	}

	/* Remove right border on every second column */
	.wiko-main--full .wiko-post-item:nth-child(2n) {
		border-right: none;
	}

	/* Remove bottom border on last two items */
	.wiko-main--full .wiko-post-item:nth-last-child(-n+2) {
		border-bottom: none;
	}

	/* If odd total — last item still gets no bottom border */
	.wiko-main--full .wiko-post-item:last-child {
		border-bottom: none;
	}
}

/* Mobile — single column, unchanged */
@media (max-width: 767px) {
	.wiko-main--full .wiko-post-list {
		display: flex;
		flex-direction: column;
		grid-template-columns: none;
	}
}

/* ═══════════════════════════════════════════════════════════════
   3-column grid + wider page on index / archive / search
   ═══════════════════════════════════════════════════════════════ */

/* Widen the content area on full-width pages */
@media (min-width: 1100px) {
	.wiko-main--full .wiko-full-content {
		max-width: 1280px;
	}

	.wiko-main--full .wiko-post-list {
		grid-template-columns: 1fr 1fr 1fr;
	}

	/* Right border: remove on every 3rd column */
	.wiko-main--full .wiko-post-item:nth-child(2n) {
		border-right: 1px solid var(--wiko-border); /* reset 2-col rule */
	}
	.wiko-main--full .wiko-post-item:nth-child(3n) {
		border-right: none;
	}

	/* Bottom border: remove on last 3 items */
	.wiko-main--full .wiko-post-item:nth-last-child(-n+2) {
		border-bottom: 1px solid var(--wiko-border); /* reset 2-col rule */
	}
	.wiko-main--full .wiko-post-item:nth-last-child(-n+3) {
		border-bottom: none;
	}
	.wiko-main--full .wiko-post-item:last-child {
		border-bottom: none;
	}
}

/* Tablet: keep 2 columns */
@media (min-width: 768px) and (max-width: 1099px) {
	.wiko-main--full .wiko-post-list {
		grid-template-columns: 1fr 1fr;
	}
}

/* ═══════════════════════════════════════════════════════════════
   Mobile: pre/code overflow — scroll inside block, not whole page
   ═══════════════════════════════════════════════════════════════ */

/* Contain horizontal overflow to the page */
html {
	overflow-x: hidden;
}

/* pre scrolls internally, never expands the page */
.wiko-entry__content pre,
.entry-content pre,
pre {
	overflow-x: auto;
	overflow-y: visible;
	white-space: pre;
	word-break: normal;
	word-wrap: normal;
	max-width: 100%;
	/* iOS smooth scroll */
	-webkit-overflow-scrolling: touch;
}

/* Inline code wraps anywhere */
.wiko-entry__content code,
.entry-content code {
	word-break: break-all;
	overflow-wrap: anywhere;
	white-space: normal;
}

/* pre > code must NOT wrap — it's handled by pre's scroll */
.wiko-entry__content pre code,
.entry-content pre code {
	word-break: normal;
	overflow-wrap: normal;
	white-space: pre;
}

/* Entry content itself must not overflow */
.wiko-entry__content,
.entry-content {
	overflow-x: hidden;
	/* clip prevents expanding the layout, unlike hidden it doesn't cut scroll */
}

@media (max-width: 767px) {
	.wiko-entry__content,
	.entry-content {
		overflow-x: clip;
	}
}

/* ═══════════════════════════════════════════════════════════════
   TABLE STYLES — technical articles
   ═══════════════════════════════════════════════════════════════ */

/* Wrapper for horizontal scroll on mobile */
.wiko-entry__content table,
.entry-content table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	margin: 1.25rem 0;
	/* pull table out of content clip so it can scroll */
	display: block;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Head row */
.wiko-entry__content thead,
.entry-content thead {
	background: var(--wiko-primary);
	color: #fff;
}

.wiko-entry__content thead th,
.entry-content thead th {
	padding: 0.6rem 0.9rem;
	font-size: 0.78rem;
	font-weight: 700;
	text-align: left;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	border: none;
	color: #fff;
}

/* Body cells */
.wiko-entry__content tbody td,
.entry-content tbody td {
	padding: 0.55rem 0.9rem;
	border-bottom: 1px solid var(--wiko-border);
	vertical-align: top;
	color: var(--wiko-text);
}

/* Zebra rows */
.wiko-entry__content tbody tr:nth-child(even),
.entry-content tbody tr:nth-child(even) {
	background: color-mix(in srgb, var(--wiko-primary) 4%, var(--wiko-surface));
}

.wiko-entry__content tbody tr:nth-child(odd),
.entry-content tbody tr:nth-child(odd) {
	background: var(--wiko-surface);
}

/* Hover highlight */
.wiko-entry__content tbody tr:hover,
.entry-content tbody tr:hover {
	background: color-mix(in srgb, var(--wiko-primary) 8%, var(--wiko-surface));
}

/* Last row: no bottom border */
.wiko-entry__content tbody tr:last-child td,
.entry-content tbody tr:last-child td {
	border-bottom: none;
}

/* Footer row (tfoot) */
.wiko-entry__content tfoot td,
.entry-content tfoot td {
	padding: 0.5rem 0.9rem;
	font-size: 0.8rem;
	color: var(--wiko-text-muted);
	border-top: 2px solid var(--wiko-border);
	background: var(--wiko-surface);
}

/* First column: semi-header style for key-value tables */
.wiko-entry__content tbody td:first-child,
.entry-content tbody td:first-child {
	font-weight: 600;
	color: var(--wiko-text);
	white-space: nowrap;
}

/* Code inside table cells */
.wiko-entry__content table code,
.entry-content table code {
	font-size: 0.82rem;
	background: color-mix(in srgb, var(--wiko-primary) 8%, transparent);
	color: var(--wiko-primary-hover);
	border: none;
	padding: 0.1em 0.35em;
	border-radius: 3px;
	white-space: nowrap;
	word-break: normal;
}

/* Outer border / card look */
.wiko-entry__content table,
.entry-content table {
	border: 1px solid var(--wiko-border);
	border-radius: 0.65rem;
	overflow: hidden; /* clip to border-radius */
}

/* Mobile: allow scrolling, don't shrink font too much */
@media (max-width: 767px) {
	.wiko-entry__content table,
	.entry-content table {
		font-size: 0.82rem;
	}

	.wiko-entry__content thead th,
	.entry-content thead th {
		padding: 0.5rem 0.65rem;
	}

	.wiko-entry__content tbody td,
	.entry-content tbody td {
		padding: 0.45rem 0.65rem;
	}
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v10 — sports news: day-grouped date headings
   ═══════════════════════════════════════════════════════════════ */

/* ── Homepage/archive: one date heading per day ──────────────── */
.wiko-date-heading {
	margin: 0;
	padding: 0.6rem 1.1rem;
	background: color-mix(in srgb, var(--wiko-primary) 8%, var(--wiko-surface));
	border-left: 3px solid var(--wiko-primary);
	border-bottom: 1px solid var(--wiko-border);
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wiko-primary);
	line-height: 1.6;
}

.wiko-date-heading:not(:first-child) {
	margin-top: 1.1rem;
	border-top: 1px solid var(--wiko-border);
}

@media (max-width: 767px) {
	.wiko-date-heading {
		font-size: 0.72rem;
		padding: 0.55rem 0.9rem;
	}
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v11 — one news item per row (undo old 2/3-column
   grid on index/archive/search; also fixes date headings getting
   squeezed into a grid cell instead of spanning full width)
   ═══════════════════════════════════════════════════════════════ */
.wiko-main--full .wiko-post-list {
	display: flex !important;
	flex-direction: column !important;
	grid-template-columns: none !important;
}

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

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

.wiko-date-heading {
	width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v12 — flat minimalist news list (sports feed style):
   plain rows, gray time column, no card/pill chrome, thin dividers
   ═══════════════════════════════════════════════════════════════ */

/* ── Remove card/box chrome from all post lists ──────────────── */
.wiko-main--full .wiko-post-list,
.wiko-recent-list {
	background: none !important;
	border: none !important;
	border-radius: 0 !important;
}

.wiko-main--full .wiko-post-item,
.wiko-recent-list__item {
	border-right: none !important;
	border-bottom: 1px solid var(--wiko-border) !important;
}

.wiko-main--full .wiko-post-item:last-child,
.wiko-recent-list__item:last-child {
	border-bottom: none !important;
}

/* ── Row: time column + title, no background/hover fill ───────── */
.wiko-post-item__link {
	display: flex !important;
	align-items: baseline !important;
	gap: 0.9rem !important;
	padding: 0.6rem 0.25rem !important;
	background: none !important;
}

.wiko-post-item__link:hover {
	background: none !important;
}

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

/* ── Time: plain muted text, fixed-ish width so titles line up ── */
.wiko-post-item__count {
	flex-shrink: 0;
	min-width: 2.75rem;
	background: none !important;
	border: none !important;
	padding: 0 !important;
	border-radius: 0 !important;
	font-variant-numeric: tabular-nums;
}

.wiko-post-item__count-word {
	color: var(--wiko-text-muted) !important;
	font-size: 0.82rem !important;
	font-weight: 500 !important;
	opacity: 1 !important;
}

/* ── Title: normal weight, dark, takes remaining width ─────────── */
.wiko-post-item__title {
	color: var(--wiko-text) !important;
	font-weight: 400 !important;
	font-size: 0.92rem !important;
	line-height: 1.45 !important;
}

/* ── Date heading: subtle uppercase label, same alignment as rows ── */
.wiko-date-heading {
	background: none !important;
	border-left: none !important;
	border-bottom: 1px solid var(--wiko-border) !important;
	color: var(--wiko-text-muted) !important;
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.06em !important;
	padding: 0.55rem 0.25rem !important;
}

.wiko-date-heading:not(:first-child) {
	margin-top: 0.6rem !important;
	border-top: none !important;
}

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

	.wiko-post-item__count-word {
		font-size: 0.76rem !important;
	}
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v13 — category badge + a nicer time treatment
   ═══════════════════════════════════════════════════════════════ */

/* ── Time: bold accent-colored "ticker" style, tabular alignment ── */
.wiko-post-item__count {
	min-width: 3.1rem !important;
}

.wiko-post-item__count-word {
	display: inline-block;
	color: var(--wiko-primary) !important;
	background: color-mix(in srgb, var(--wiko-primary) 9%, transparent);
	border-radius: 5px;
	padding: 0.15em 0.4em;
	font-weight: 700 !important;
	font-size: 0.8rem !important;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.01em;
}

/* ── Category badge: small pill between the time and the title ── */
.wiko-post-item__cat {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-width: 6.2rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-align: center;
	color: var(--wiko-text-muted);
	background: color-mix(in srgb, var(--wiko-text) 6%, transparent);
	border: 1px solid var(--wiko-border);
	border-radius: 4px;
	padding: 0.18em 0.3em;
	line-height: 1.3;
	white-space: nowrap;
}

.wiko-post-item:hover .wiko-post-item__cat {
	border-color: color-mix(in srgb, var(--wiko-primary) 35%, var(--wiko-border));
	color: var(--wiko-primary);
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v14 — restructured rows (meta + link are siblings,
   no nested <a> so the category can link on its own); category
   stacks under the time on narrow screens
   ═══════════════════════════════════════════════════════════════ */

.wiko-post-item {
	display: flex !important;
	align-items: baseline !important;
	gap: 0.9rem !important;
	padding: 0.6rem 0.25rem !important;
}

.wiko-post-item__meta {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	flex-shrink: 0;
}

.wiko-post-item__link {
	display: block !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
	padding: 0 !important;
	background: none !important;
}

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

/* Close icon in the mobile nav drawer */
.wiko-primary-nav__close span {
	font-size: 1.4rem;
	line-height: 1;
}

@media (max-width: 767px) {
	.wiko-post-item__meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
	}
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v15 — inline "related by tag" callout inside the
   post body (after paragraphs 2 and 3)
   ═══════════════════════════════════════════════════════════════ */
.wiko-entry__content .wiko-inline-related {
	margin: 1.4rem 0;
	padding: 0.85rem 1.1rem;
	background: color-mix(in srgb, var(--wiko-primary) 6%, var(--wiko-surface));
	border-left: 3px solid var(--wiko-primary);
	border-radius: 0.4rem;
	font-size: 0.92rem;
}

.wiko-entry__content .wiko-inline-related__label {
	font-weight: 700;
	color: var(--wiko-primary);
	margin-right: 0.35rem;
}

.wiko-entry__content .wiko-inline-related a {
	font-weight: 600;
}

.wiko-entry__content .wiko-inline-related--group {
	display: block;
}

.wiko-entry__content .wiko-inline-related--group .wiko-inline-related__label {
	display: block;
	margin: 0 0 0.5rem;
}

.wiko-entry__content .wiko-inline-related__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.wiko-entry__content .wiko-inline-related__list li {
	padding-left: 1rem;
	position: relative;
	line-height: 1.4;
}

.wiko-entry__content .wiko-inline-related__list li::before {
	content: '→';
	position: absolute;
	left: 0;
	color: var(--wiko-primary);
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v16 — continuous full-article scroll (same category)
   at the bottom of single post pages
   ═══════════════════════════════════════════════════════════════ */
.wiko-article-feed__sentinel {
	height: 1px;
}

.wiko-article-feed__item {
	margin-top: 1.1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--wiko-border);
}

.wiko-article-feed__item .wiko-entry__header {
	margin-top: 0;
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v17 — biography category (ID 49) rows: no time
   badge; title + comma-separated subheadings shown on one line
   ═══════════════════════════════════════════════════════════════ */
.wiko-post-item__subheadings {
	font-weight: 400;
	color: var(--wiko-text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v18 — right sidebar: publish time + wider column
   ═══════════════════════════════════════════════════════════════ */
.wiko-sidebar-toc .wiko-related-posts {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v19 — mobile-only category icon + time next to
   title (desktop keeps the text category badge + separate time as
   before; these rules only repaint the layout below 768px)
   ═══════════════════════════════════════════════════════════════ */
.wiko-post-item__count--desktop {
	display: contents;
}

.wiko-post-item__count--mobile,
.wiko-post-item__cat-icon {
	display: none;
}

@media (max-width: 767px) {
	.wiko-post-item__count--desktop {
		display: none !important;
	}

	.wiko-post-item {
		align-items: center !important;
	}

	.wiko-post-item__cat-icon {
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 2.7rem;
		height: 2.7rem;
		flex-shrink: 0;
		font-size: 1.3rem;
		line-height: 1;
		background: color-mix(in srgb, var(--wiko-text) 6%, transparent);
		border: 1px solid var(--wiko-border);
		border-radius: 0.6rem;
		text-decoration: none;
	}

	.wiko-post-item__count--mobile {
		display: inline-flex !important;
		margin-right: 0.4rem;
		vertical-align: middle;
	}
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v20 — sidebar: always use the mobile-style icon +
   inline time treatment, on desktop too (unlike the homepage list,
   which keeps text badges on desktop)
   ═══════════════════════════════════════════════════════════════ */
.wiko-sidebar-toc .wiko-post-item__cat--text,
.wiko-sidebar-toc .wiko-post-item__count--desktop {
	display: none !important;
}

.wiko-sidebar-toc .wiko-post-item__cat-icon {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 2.7rem;
	height: 2.7rem;
	flex-shrink: 0;
	font-size: 1.3rem;
	line-height: 1;
	background: color-mix(in srgb, var(--wiko-text) 6%, transparent);
	border: 1px solid var(--wiko-border);
	border-radius: 0.6rem;
	text-decoration: none;
}

.wiko-sidebar-toc .wiko-post-item__count--mobile {
	display: inline-flex !important;
	margin-right: 0.4rem;
	vertical-align: middle;
}

.wiko-sidebar-toc .wiko-post-item {
	align-items: center !important;
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v21 — "3 links" block at the end of the article
   (same category as the post), visually separated from the text
   ═══════════════════════════════════════════════════════════════ */
.wiko-end-links {
	display: none;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--wiko-border);
}

@media (min-width: 768px) {
	.wiko-end-links {
		display: block;
	}
}

.wiko-end-links__heading {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	font-weight: 700;
}

.wiko-end-links .wiko-recent-list {
	background: none;
	border: none;
	border-radius: 0;
}

.wiko-end-links .wiko-recent-list__item {
	border-right: none;
	border-bottom: 1px solid var(--wiko-border);
}

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

@media (min-width: 768px) {
	.wiko-end-links .wiko-recent-list--2col {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 1.5rem;
	}

	.wiko-end-links .wiko-recent-list--2col .wiko-post-item {
		display: flex !important;
	}
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v22 — hide the "Siguientes"/"Anteriores" prev/next
   text links, keep only the numbered page links. The "next" link is
   kept in the DOM (just visually hidden) because the category-page
   infinite-scroll script depends on finding it.
   ═══════════════════════════════════════════════════════════════ */
.page-numbers.prev,
.page-numbers.next {
	display: none;
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v23 — mobile-only category icon before the publish
   date on the single-post header (desktop is unaffected)
   ═══════════════════════════════════════════════════════════════ */
.wiko-entry__cat-icon {
	display: none;
}

@media (max-width: 767px) {
	.wiko-entry__cat-icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 1.75rem;
		height: 1.75rem;
		flex-shrink: 0;
		font-size: 0.95rem;
		line-height: 1;
		background: color-mix(in srgb, var(--wiko-text) 6%, transparent);
		border: 1px solid var(--wiko-border);
		border-radius: 0.4rem;
		text-decoration: none;
		vertical-align: middle;
	}

	.wiko-entry__meta {
		gap: 0.45rem;
		font-size: 0.85rem;
		flex-wrap: nowrap;
		overflow: hidden;
	}

	.wiko-entry__cat-icon,
	.wiko-meta__updated {
		flex-shrink: 0;
	}

	.wiko-meta__author {
		gap: 0.25rem;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v24 — font-size increase/decrease toggle (A-/A+)
   for visually impaired readers
   ═══════════════════════════════════════════════════════════════ */
.wiko-font-size-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding-left: 0.75rem;
	border-left: 1px solid var(--wiko-border);
}

.wiko-font-size-toggle__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	padding: 0 0.5rem;
	border: 1px solid var(--wiko-border);
	border-radius: 0.4rem;
	background: var(--wiko-surface);
	color: var(--wiko-text);
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
	line-height: 1;
}

.wiko-font-size-toggle__btn:hover,
.wiko-font-size-toggle__btn:focus-visible {
	border-color: var(--wiko-primary);
	color: var(--wiko-primary);
}

#wiko-font-decrease {
	font-size: 0.7rem;
}

#wiko-font-increase {
	font-size: 0.9rem;
}

@media (max-width: 480px) {
	.wiko-font-size-toggle__btn {
		min-width: 1.8rem;
		height: 1.8rem;
		padding: 0 0.4rem;
	}
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v25 — search collapsed into a magnifying-glass icon
   (both mobile and desktop) + category icons in the mobile nav menu
   ═══════════════════════════════════════════════════════════════ */
.wiko-header__search-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 1px solid var(--wiko-border);
	border-radius: 0.4rem;
	background: var(--wiko-surface);
	color: var(--wiko-text);
	cursor: pointer;
}

.wiko-header__search-btn:hover,
.wiko-header__search-btn[aria-expanded="true"] {
	border-color: var(--wiko-primary);
	color: var(--wiko-primary);
}

.wiko-header__search-panel {
	position: absolute;
	top: 100%;
	right: 1.2rem;
	margin-top: 0.5rem;
	padding: 0.75rem;
	background: var(--wiko-surface);
	border: 1px solid var(--wiko-border);
	border-radius: 0.6rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	width: min(320px, calc(100vw - 2.4rem));
	z-index: 60;
}

/* ── Category icon inside the mobile primary nav menu ────────── */
.wiko-nav-cat-icon {
	margin-right: 0.4rem;
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v26 — category icons everywhere (homepage, sidebar,
   end-of-article links), on both mobile and desktop; text badge
   retired everywhere it still existed
   ═══════════════════════════════════════════════════════════════ */
.wiko-post-item__cat--text {
	display: none !important;
}

.wiko-post-item__cat-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 2.7rem;
	height: 2.7rem;
	flex-shrink: 0;
	font-size: 1.9rem;
	line-height: 1;
	background: color-mix(in srgb, var(--wiko-text) 6%, transparent);
	border: 1px solid var(--wiko-border);
	border-radius: 0.6rem;
	text-decoration: none;
}

.wiko-post-item {
	align-items: center !important;
}

.wiko-post-item__meta {
	align-items: center !important;
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v27 — tighter row spacing between headlines on
   desktop homepage/archive listings
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
	.wiko-main--full .wiko-post-item {
		padding-top: 0.3rem !important;
		padding-bottom: 0.3rem !important;
	}
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v28 — TOC placement: standalone drawer on mobile
   (template-parts/toc-drawer.php), inside the sidebar on desktop
   (above the "latest" list, see sidebar-toc.php)
   ═══════════════════════════════════════════════════════════════ */
.wiko-index-drawer .wiko-toc,
.wiko-toc--sidebar-desktop .wiko-toc {
	line-height: 1.35;
}

.wiko-index-drawer .wiko-toc__item,
.wiko-toc--sidebar-desktop .wiko-toc__item {
	margin: 0.05rem 0;
}

.wiko-index-drawer .wiko-toc a,
.wiko-toc--sidebar-desktop .wiko-toc a {
	display: inline-block;
	padding: 0.15rem 0;
}

.wiko-toc--sidebar-desktop {
	display: none;
}

@media (min-width: 768px) {
	.wiko-toc--sidebar-desktop {
		display: block;
		margin-bottom: 1.25rem;
		padding-bottom: 1.25rem;
		border-bottom: 1px solid var(--wiko-border);
	}
}

.wiko-latest--sidebar-mobile {
	display: block;
}

@media (min-width: 768px) {
	.wiko-latest--sidebar-mobile {
		display: none;
	}
}

/* ═══════════════════════════════════════════════════════════════
   MODIFICATIONS v29 — mobile-only meta row under the H1: category
   (icon + link) on the left, reading time on the right
   ═══════════════════════════════════════════════════════════════ */
.wiko-entry__meta--mobile-only {
	display: none;
}

@media (max-width: 767px) {
	.wiko-entry__meta--mobile-only {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem;
		margin-top: 0.6rem;
	}

	.wiko-entry__cat {
		display: inline-flex;
		align-items: center;
		gap: 0.4rem;
		color: var(--wiko-text);
		text-decoration: none;
		font-size: 0.85rem;
		font-weight: 600;
	}

	.wiko-entry__cat-icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 1.6rem;
		height: 1.6rem;
		font-size: 1.2rem;
		line-height: 1;
		background: color-mix(in srgb, var(--wiko-text) 6%, transparent);
		border: 1px solid var(--wiko-border);
		border-radius: 0.4rem;
		flex-shrink: 0;
	}

	.wiko-entry__reading-time {
		font-size: 0.8rem;
		color: var(--wiko-text-muted);
		flex-shrink: 0;
	}
}
