/*
Theme Name: Penita Original
Theme URI: https://penita.jp/
Author: Penita
Author URI: https://penita.jp/
Description: penita.jp 向けのオリジナルWordPressテーマ（v1）。ブロックエディタ対応・jQuery非依存・軽量なクリーンルーム実装。
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: penita-original
*/

/* ==========================================================================
   1. Design Tokens & Base Reset
   ========================================================================== */
:root {
	--color-bg: #ffffff;
	--color-text: #3e3e3e;
	--color-text-muted: #666666;
	--color-link: #57a1d8;
	--color-link-hover: #9eccef;
	--color-header-bg: #264b67;
	--color-header-text: #ffffff;
	--color-logo: #ecf6ff;
	--color-main: #1865a0;
	--color-footer-bg: #2e3a44;
	--color-footer-text: #ffffff;
	--color-border: #d8d8d8;
	--color-border-soft: rgba(0, 0, 0, 0.1);
	--color-surface: #f7f9fb;

	--font-sans: "Noto Sans JP", Helvetica, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;

	--width-container: 1100px;
	--width-sidebar: 300px;
	--gap-columns: 30px;
	--gutter: 16px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: clamp(15px, 0.4vw + 14px, 16.5px);
	line-height: 1.7;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: bottom;
}

figure {
	margin: 0;
}

a {
	color: var(--color-link);
	text-decoration: none;
	transition: color 0.25s ease-in-out, opacity 0.25s ease-in-out, background-color 0.25s ease-in-out, border-color 0.25s ease-in-out;
}

a:hover {
	color: var(--color-link-hover);
}

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

button,
input,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
}

/* Screen-reader utility */
.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(--color-bg);
	border-radius: 3px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	clip: auto !important;
	clip-path: none;
	color: var(--color-main);
	display: block;
	font-size: 0.9rem;
	font-weight: 700;
	height: auto;
	left: 8px;
	line-height: normal;
	padding: 12px 18px;
	text-decoration: none;
	top: 8px;
	width: auto;
	z-index: 100000;
}

.wrap {
	width: 100%;
	max-width: calc(var(--width-container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Shared category badge overlay */
.cat-label {
	display: inline-block;
	background-color: var(--color-main);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.25;
	padding: 0.25em 0.65em;
	text-align: center;
	letter-spacing: 0.02em;
}

/* ==========================================================================
   2. Header & Global Navigation
   ========================================================================== */
.site-header {
	background-color: var(--color-header-bg);
	color: var(--color-header-text);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	position: relative;
	z-index: 30;
}

.site-header__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 1.1rem;
	padding-bottom: 0.85rem;
}

@media (min-width: 768px) {
	.site-header__inner {
		padding-top: 1.5rem;
		padding-bottom: 0.9rem;
	}
}

.site-header__brand {
	text-align: center;
	max-width: 78%;
}

.site-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.04em;
}

@media (min-width: 768px) {
	.site-title {
		font-size: 2.35rem;
	}
}

.site-title a {
	color: var(--color-logo);
	text-decoration: none;
}

.site-title a:hover {
	color: var(--color-logo);
	opacity: 0.85;
}

.site-description {
	margin: 0.35em 0 0;
	font-size: 0.75rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.85);
}

/* Header Search */
.header-search {
	position: absolute;
	top: 0.6rem;
	right: var(--gutter);
	z-index: 40;
}

@media (min-width: 768px) {
	.header-search {
		top: 0.9rem;
	}
}

.header-search__toggle {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: 44px;
	min-height: 44px;
	padding: 6px;
	background: transparent;
	border: 0;
	border-radius: 4px;
	color: var(--color-header-text);
	cursor: pointer;
	transition: opacity 0.2s ease, background-color 0.2s ease;
}

.header-search__toggle:hover {
	opacity: 0.8;
	background-color: rgba(255, 255, 255, 0.08);
}

.header-search__toggle:focus-visible {
	outline-color: var(--color-logo);
}

.header-search__label {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1;
}

.header-search__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(360px, calc(100vw - var(--gutter) * 2));
	background-color: var(--color-footer-bg);
	border-radius: 4px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
	padding: 6px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-4px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.header-search.is-open .header-search__panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

/* Fallback when JS is disabled: keep search usable in flow */
html:not(.has-js) .header-search {
	position: static;
	margin-top: 0.65rem;
}

html:not(.has-js) .header-search__toggle,
html:not(.has-js) .header-search__close {
	display: none;
}

html:not(.has-js) .header-search__panel {
	position: static;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
	box-shadow: none;
	background: rgba(0, 0, 0, 0.18);
}

.header-search__form {
	display: flex;
	align-items: center;
	gap: 4px;
}

.header-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 38px;
	padding: 0 10px;
	background-color: #ffffff;
	color: var(--color-text);
	border: 1px solid transparent;
	border-radius: 3px;
	font-size: 0.9rem;
}

.header-search__input::placeholder {
	color: #888888;
}

.header-search__submit,
.header-search__close {
	flex: 0 0 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 3px;
	cursor: pointer;
	color: #ffffff;
}

.header-search__submit {
	background-color: var(--color-link);
}

.header-search__submit:hover {
	background-color: var(--color-link-hover);
}

.header-search__close {
	background-color: rgba(255, 255, 255, 0.14);
}

.header-search__close:hover {
	background-color: rgba(255, 255, 255, 0.26);
}

/* Global Navigation: Mobile Horizontal Scroll Bar (< 768px) */
.global-nav {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	position: relative;
}

.global-nav__inner {
	overflow-x: auto;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.global-nav__inner::-webkit-scrollbar {
	display: none;
}

.global-nav__list {
	list-style: none;
	margin: 0;
	padding: 0.15rem 0;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.25rem;
	white-space: nowrap;
}

.global-nav__list > li {
	position: relative;
	flex: 0 0 auto;
}

.global-nav__list > li > a {
	display: block;
	padding: 0.7rem 0.9rem;
	color: var(--color-header-text);
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.3;
	position: relative;
}

.global-nav__list > li > a:focus-visible {
	outline-color: var(--color-logo);
	outline-offset: -3px;
}

.global-nav__list > li.current-menu-item > a,
.global-nav__list > li.current-menu-ancestor > a,
.global-nav__list > li > a[aria-current="page"] {
	color: var(--color-logo);
}

.global-nav__list > li.current-menu-item > a::after,
.global-nav__list > li.current-menu-ancestor > a::after,
.global-nav__list > li > a[aria-current="page"]::after {
	content: "";
	position: absolute;
	left: 0.65rem;
	right: 0.65rem;
	bottom: 2px;
	height: 3px;
	background-color: var(--color-logo);
}

.global-nav__list .sub-menu {
	display: none;
}

/* Subtle scroll cue on mobile right edge */
@media (max-width: 767px) {
	.global-nav::after {
		content: "";
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		width: 28px;
		background: linear-gradient(to right, rgba(38, 75, 103, 0), var(--color-header-bg));
		pointer-events: none;
	}
}

/* Global Navigation: PC Centered Row + Underline Animation (>= 768px) */
@media (min-width: 768px) {
	.global-nav {
		border-top: 0;
	}

	.global-nav__inner {
		overflow: visible;
	}

	.global-nav__list {
		justify-content: center;
		flex-wrap: wrap;
		gap: 0.2rem 0.5rem;
		padding: 0;
	}

	.global-nav__list > li > a {
		padding: 0.75rem 1.05rem 0.9rem;
		font-size: 0.88rem;
	}

	.global-nav__list > li > a::after {
		content: "";
		display: block;
		position: absolute;
		left: 10px;
		right: 10px;
		bottom: 4px;
		height: 3px;
		background-color: var(--color-logo);
		opacity: 0;
		transform: translateY(3px);
		transition: transform 0.25s ease-out, opacity 0.25s ease-out;
		pointer-events: none;
	}

	.global-nav__list > li:hover > a,
	.global-nav__list > li:focus-within > a,
	.global-nav__list > li.current-menu-item > a,
	.global-nav__list > li.current-menu-ancestor > a,
	.global-nav__list > li > a[aria-current="page"] {
		color: var(--color-logo);
	}

	.global-nav__list > li:hover > a::after,
	.global-nav__list > li:focus-within > a::after,
	.global-nav__list > li.current-menu-item > a::after,
	.global-nav__list > li.current-menu-ancestor > a::after,
	.global-nav__list > li > a[aria-current="page"]::after {
		opacity: 1;
		transform: translateY(0);
	}

	/* Dropdown sub-menu */
	.global-nav__list .sub-menu {
		display: block;
		list-style: none;
		margin: 0;
		padding: 0;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 190px;
		background-color: var(--color-footer-bg);
		color: #ffffff;
		box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateY(4px);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
		z-index: 50;
	}

	.global-nav__list li:hover > .sub-menu,
	.global-nav__list li:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
	}

	.global-nav__list .sub-menu li {
		border-bottom: 1px solid rgba(255, 255, 255, 0.16);
	}

	.global-nav__list .sub-menu li:last-child {
		border-bottom: 0;
	}

	.global-nav__list .sub-menu a {
		display: block;
		padding: 0.7rem 1rem;
		color: #ffffff;
		font-size: 0.82rem;
		font-weight: 700;
		white-space: nowrap;
	}

	.global-nav__list .sub-menu a:hover {
		background-color: rgba(255, 255, 255, 0.08);
		color: var(--color-logo);
	}
}

/* ==========================================================================
   3. Pickup Carousel Slider (Front Page)
   ========================================================================== */
.pickup-slider {
	background-color: var(--color-surface);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	padding: 1.25rem 0 1.1rem;
}

.pickup-slider__stage {
	position: relative;
}

.pickup-slider__track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	touch-action: manipulation;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.pickup-slider__track::-webkit-scrollbar {
	display: none;
}

@media (prefers-reduced-motion: no-preference) {
	.pickup-slider__track {
		scroll-behavior: smooth;
	}
}

.pickup-slider__slide {
	flex: 0 0 100%;
	scroll-snap-align: center;
	min-width: 0;
}

@media (min-width: 600px) {
	.pickup-slider__slide {
		flex: 0 0 calc((100% - 16px) / 2);
		scroll-snap-align: start;
	}
}

@media (min-width: 980px) {
	.pickup-slider__slide {
		flex: 0 0 calc((100% - 32px) / 3);
		scroll-snap-align: start;
	}
}

.pickup-slider__card {
	display: block;
	color: var(--color-text);
	text-decoration: none;
	height: 100%;
	transition: opacity 0.25s ease-in-out;
}

.pickup-slider__card:hover {
	color: var(--color-text);
	opacity: 0.72;
}

.pickup-slider__thumb {
	position: relative;
	aspect-ratio: 486 / 290;
	overflow: hidden;
	background-color: #e6ecf2;
	border-radius: 2px;
}

.pickup-slider__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pickup-slider__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #dce6f0, #eef3f8);
}

.pickup-slider__thumb .cat-label {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 6.5em;
	opacity: 0.92;
}

.pickup-slider__title {
	margin: 0.55rem 0 0;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.45;
	color: var(--color-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Prev / Next buttons */
.pickup-slider__controls {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-inline: 6px;
	pointer-events: none;
	z-index: 2;
}

.pickup-slider__btn {
	pointer-events: auto;
	touch-action: manipulation;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 2px solid #ffffff;
	background-color: rgba(24, 101, 160, 0.88);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
	transform: translateY(-18px);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.pickup-slider__btn:hover {
	background-color: var(--color-link);
}

.pickup-slider__btn:focus-visible {
	outline: 2px solid var(--color-header-bg);
	outline-offset: 2px;
}

.pickup-slider__controls[hidden],
.pickup-slider__footer[hidden],
html:not(.has-js) .pickup-slider__controls,
html:not(.has-js) .pickup-slider__footer {
	display: none;
}

/* Slider footer: autoplay pause/resume toggle + dot markers */
.pickup-slider__footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px 12px;
	margin-top: 0.75rem;
}

.pickup-slider__autoplay {
	appearance: none;
	min-width: 28px;
	min-height: 28px;
	padding: 4px;
	border-radius: 999px;
	border: 1.5px solid var(--color-main);
	background-color: #ffffff;
	color: var(--color-main);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	touch-action: manipulation;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.pickup-slider__autoplay:hover {
	background-color: var(--color-main);
	color: #ffffff;
}

.pickup-slider__autoplay:focus-visible {
	outline: 2px solid var(--color-header-bg);
	outline-offset: 2px;
}

.pickup-slider__autoplay-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.pickup-slider__autoplay .pickup-slider__autoplay-icon--play,
.pickup-slider__autoplay.is-paused .pickup-slider__autoplay-icon--pause {
	display: none;
}

.pickup-slider__autoplay.is-paused .pickup-slider__autoplay-icon--play {
	display: inline-flex;
}

/* Dot markers (24px+ touch target, non-color active shape change) */
.pickup-slider__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 4px;
}

.pickup-slider__dots:empty {
	display: none;
}

.pickup-slider__dot {
	appearance: none;
	border: 0;
	background: transparent;
	min-width: 24px;
	min-height: 24px;
	padding: 7px 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	touch-action: manipulation;
}

.pickup-slider__dot::before {
	content: "";
	display: block;
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background-color: #b4c2cf;
	border: 1px solid #8a9bad;
	transition: width 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.pickup-slider__dot:hover::before {
	background-color: var(--color-link);
	border-color: var(--color-link);
}

.pickup-slider__dot[aria-current="true"]::before {
	width: 22px;
	background-color: var(--color-main);
	border-color: var(--color-main);
}

/* ==========================================================================
   4. Breadcrumb
   ========================================================================== */
.breadcrumb {
	border-bottom: 1px solid rgba(100, 100, 100, 0.08);
	padding: 0.7rem 0;
	font-size: 0.76rem;
	line-height: 1.5;
}

.breadcrumb__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0;
}

.breadcrumb__item {
	display: inline-flex;
	align-items: center;
}

.breadcrumb__item:not(:last-child)::after {
	content: ">";
	margin: 0 0.55em;
	color: var(--color-text);
	opacity: 0.45;
}

.breadcrumb__link {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	color: var(--color-link);
}

.breadcrumb__link:hover {
	color: var(--color-link);
	opacity: 0.65;
}

.breadcrumb__current {
	color: var(--color-text-muted);
}

/* ==========================================================================
   5. Main 2-Column Layout (1100px = 770px + 30px + 300px)
   ========================================================================== */
.site-content {
	margin-top: 1.5rem;
	margin-bottom: 3rem;
}

.site-content__inner {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.site-main {
	min-width: 0;
	width: 100%;
}

.site-sidebar {
	min-width: 0;
	width: 100%;
}

@media (min-width: 980px) {
	.site-content {
		margin-top: 2rem;
		margin-bottom: 3.5rem;
	}

	.site-content__inner {
		flex-direction: row;
		align-items: flex-start;
		gap: var(--gap-columns);
	}

	.site-main {
		flex: 1 1 0;
	}

	.site-sidebar {
		flex: 0 0 var(--width-sidebar);
		font-size: 0.87rem;
	}
}

/* ==========================================================================
   6. Archive Header & Simple Horizontal Post List
   ========================================================================== */
.archive-header {
	text-align: center;
	margin: 0 0 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--color-main);
}

.archive-header__kicker {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--color-main);
	margin-bottom: 0.25rem;
}

.archive-header__title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--color-text);
}

.archive-header__desc {
	margin-top: 0.6rem;
	font-size: 0.88rem;
	color: var(--color-text-muted);
}

.archive-header__desc p {
	margin: 0.35em 0 0;
}

/* Simple Horizontal Row List (SWALLOW simple-list style) */
.post-list {
	margin: 0;
}

.post-list__item {
	border-bottom: 1px solid var(--color-border-soft);
}

.post-list__item:first-child {
	border-top: 1px solid var(--color-border-soft);
}

.post-list__link {
	display: flex;
	align-items: flex-start;
	gap: 1.15rem;
	padding: 1.15rem 0.4rem;
	color: var(--color-text);
	text-decoration: none;
	transition: opacity 0.25s ease-in-out;
}

.post-list__link:hover {
	color: var(--color-text);
	opacity: 0.65;
}

.post-list__thumb {
	flex: 0 0 42%;
	max-width: 310px;
	position: relative;
	aspect-ratio: 486 / 290;
	overflow: hidden;
	background-color: #eef2f6;
}

.post-list__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.post-list__thumb .cat-label {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 6em;
	opacity: 0.92;
}

.post-list__body {
	flex: 1 1 0;
	min-width: 0;
}

.post-list__cat-inline {
	margin-bottom: 0.4rem;
}

.post-list__title {
	margin: 0 0 0.4rem;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.45;
	color: var(--color-text);
}

.post-list__meta {
	margin-bottom: 0.45rem;
	font-size: 0.8rem;
	color: var(--color-text);
	opacity: 0.7;
}

.post-list__date {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
}

.post-list__excerpt {
	margin: 0;
	font-size: 0.86rem;
	line-height: 1.65;
	color: var(--color-text-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 600px) {
	.post-list__link {
		gap: 0.85rem;
		padding: 0.95rem 0.15rem;
	}

	.post-list__thumb {
		flex-basis: 40%;
	}

	.post-list__thumb .cat-label {
		font-size: 10px;
		min-width: auto;
		padding: 0.2em 0.5em;
	}

	.post-list__title {
		font-size: 0.95rem;
		margin-bottom: 0.3rem;
	}
}

@media (max-width: 480px) {
	.post-list__excerpt {
		display: none;
	}
}

/* ==========================================================================
   7. Pagination
   ========================================================================== */
.navigation.pagination {
	margin: 2.5rem auto 1rem;
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.navigation.pagination .page-numbers,
.page-links a,
.page-links .post-page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 8px;
	border: 2px solid var(--color-link);
	background-color: #ffffff;
	color: var(--color-link);
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.navigation.pagination .page-numbers.dots {
	border-color: transparent;
	background-color: transparent;
	color: var(--color-text);
	min-width: auto;
	padding: 0 4px;
}

.navigation.pagination .page-numbers:not(.dots).current,
.navigation.pagination a.page-numbers:not(.dots):hover,
.navigation.pagination a.page-numbers:not(.dots):focus-visible,
.page-links .post-page-numbers.current,
.page-links a.post-page-numbers:hover {
	background-color: var(--color-link);
	border-color: var(--color-link);
	color: #ffffff;
}

.page-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 2rem 0;
}

@media (max-width: 480px) {
	.navigation.pagination .page-numbers {
		min-width: 34px;
		height: 34px;
		font-size: 0.85rem;
	}
}

/* ==========================================================================
   8. Single Post & Page Header
   ========================================================================== */
.entry-header {
	margin-bottom: 1.5rem;
}

.entry-title {
	margin: 0 0 0.45em;
	font-size: 1.5em;
	font-weight: 700;
	line-height: 1.45;
	color: var(--color-text);
}

@media (max-width: 600px) {
	.entry-title {
		font-size: 1.32em;
	}
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 1rem;
	font-size: 0.85rem;
	letter-spacing: 0.02em;
	margin-bottom: 0.9rem;
}

.entry-meta__dates {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.9rem;
	opacity: 0.72;
}

.entry-meta__date {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
}

.entry-meta__cats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
}

.entry-meta__cat-item {
	display: inline-flex;
	align-items: center;
}

.entry-meta__cat-item a {
	font-weight: 700;
	color: var(--color-link);
}

.entry-meta__cat-item a:hover {
	color: var(--color-link-hover);
}

.entry-meta__cat-item:not(:last-child)::after {
	content: "|";
	margin: 0 0.45em;
	color: var(--color-text);
	opacity: 0.4;
}

.entry-eyecatch {
	position: relative;
	margin: 0.9rem 0 0;
	overflow: hidden;
	text-align: center;
}

.entry-eyecatch__img {
	width: 100%;
	height: auto;
	display: block;
}

.entry-eyecatch .cat-label {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 7.5em;
	opacity: 0.92;
}

/* ==========================================================================
   9. Entry Content (Scoped strictly to avoid plugin/Pochipp conflicts)
   ========================================================================== */
.entry-content {
	margin-top: 1.75rem;
	line-height: 1.8;
	letter-spacing: 0.025em;
}

.entry-content::after {
	content: "";
	display: table;
	clear: both;
}

.entry-content > p,
.entry-content .wp-block-group p:not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *),
.entry-content .wp-block-column p:not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *),
.entry-content blockquote p:not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) {
	margin-top: 0;
	margin-bottom: 1.75em;
	line-height: 1.8;
	letter-spacing: 0.025em;
}

/* H2: Main blue banner (excludes Pochipp, Rinker, Jetpack descendants) */
.entry-content h2:not(.stylenone):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) {
	position: relative;
	margin: 2.1em 0 1em;
	padding: 0.9em 1em;
	background-color: var(--color-main);
	color: #ffffff;
	font-size: 1.25em;
	font-weight: 700;
	line-height: 1.5;
	border: 0;
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
}

/* H3: Top & bottom 4px main blue borders */
.entry-content h3:not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) {
	margin: 1.8em 0 1em;
	padding: 0.6em 0.2em;
	border-top: 4px solid var(--color-main);
	border-bottom: 4px solid var(--color-main);
	font-size: 1.2em;
	font-weight: 700;
	line-height: 1.5;
	color: var(--color-text);
	background: none;
}

/* H4: Left 4px main blue border */
.entry-content h4:not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) {
	margin: 1.6em 0 0.8em;
	padding: 0.4em 0.1em 0.4em 0.7em;
	border-left: 4px solid var(--color-main);
	font-size: 1.1em;
	font-weight: 700;
	line-height: 1.5;
	color: var(--color-text);
}

@media (max-width: 480px) {
	.entry-content h2:not(.stylenone):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) {
		font-size: 1.15em;
		padding: 0.8em 0.9em;
	}

	.entry-content h3:not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) {
		font-size: 1.12em;
	}

	.entry-content h4:not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) {
		font-size: 1.05em;
	}
}

/* Unordered lists: blue circle dot (scoped away from Pochipp, Rinker, Jetpack & UI blocks) */
.entry-content > ul:not([class]),
.entry-content ul.wp-block-list:not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *),
.entry-content blockquote ul:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *),
.entry-content .wp-block-group > ul:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *),
.entry-content .wp-block-column > ul:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) {
	list-style: none;
	padding-left: 0;
	margin: 0 0 1.75em;
}

.entry-content > ul:not([class]) li,
.entry-content ul.wp-block-list:not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) li,
.entry-content blockquote ul:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) li,
.entry-content .wp-block-group > ul:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) li,
.entry-content .wp-block-column > ul:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) li {
	position: relative;
	list-style: none;
	padding-left: 1.25em;
	margin: 0.7em 0;
}

.entry-content > ul:not([class]) > li::before,
.entry-content ul.wp-block-list:not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) > li::before,
.entry-content blockquote ul:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) > li::before,
.entry-content .wp-block-group > ul:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) > li::before,
.entry-content .wp-block-column > ul:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) > li::before {
	content: "";
	position: absolute;
	left: 0.25em;
	top: 0.65em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: var(--color-main);
}

.entry-content > ul:not([class]) ul,
.entry-content ul.wp-block-list:not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) ul,
.entry-content .wp-block-group > ul:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) ul,
.entry-content .wp-block-column > ul:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) ul {
	list-style: none;
	padding-left: 0.45em;
	margin: 0.4em 0;
}

.entry-content > ul:not([class]) ul > li::before,
.entry-content ul.wp-block-list:not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) ul > li::before,
.entry-content .wp-block-group > ul:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) ul > li::before,
.entry-content .wp-block-column > ul:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) ul > li::before {
	content: "";
	position: absolute;
	left: 0.25em;
	top: 0.65em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: transparent;
	border: 1.5px solid var(--color-main);
}

/* Ordered lists: blue circular number badge */
.entry-content > ol:not([class]),
.entry-content ol.wp-block-list:not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *),
.entry-content blockquote ol:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *),
.entry-content .wp-block-group > ol:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *),
.entry-content .wp-block-column > ol:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) {
	list-style: none;
	counter-reset: penita-ol;
	padding-left: 0;
	margin: 0 0 1.75em;
}

.entry-content > ol:not([class]) > li,
.entry-content ol.wp-block-list:not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) > li,
.entry-content blockquote ol:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) > li,
.entry-content .wp-block-group > ol:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) > li,
.entry-content .wp-block-column > ol:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) > li {
	position: relative;
	list-style: none;
	padding-left: 1.9em;
	margin: 0.8em 0;
	counter-increment: penita-ol;
}

.entry-content > ol:not([class]) > li::before,
.entry-content ol.wp-block-list:not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) > li::before,
.entry-content blockquote ol:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) > li::before,
.entry-content .wp-block-group > ol:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) > li::before,
.entry-content .wp-block-column > ol:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) > li::before {
	content: counter(penita-ol);
	position: absolute;
	left: 0;
	top: 0.18em;
	width: 1.48em;
	height: 1.48em;
	line-height: 1.48em;
	text-align: center;
	font-size: 0.82em;
	font-weight: 700;
	color: #ffffff;
	background-color: var(--color-main);
	border: 1px solid var(--color-main);
	border-radius: 50%;
}

.entry-content > ol:not([class]) ol,
.entry-content ol.wp-block-list:not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) ol,
.entry-content .wp-block-group > ol:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) ol,
.entry-content .wp-block-column > ol:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) ol {
	list-style: none;
	counter-reset: penita-ol-sub;
	padding-left: 0.25em;
	margin: 0.45em 0;
}

.entry-content > ol:not([class]) ol > li,
.entry-content ol.wp-block-list:not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) ol > li,
.entry-content .wp-block-group > ol:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) ol > li,
.entry-content .wp-block-column > ol:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) ol > li {
	position: relative;
	list-style: none;
	padding-left: 1.85em;
	margin: 0.5em 0;
	counter-increment: penita-ol-sub;
}

.entry-content > ol:not([class]) ol > li::before,
.entry-content ol.wp-block-list:not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) ol > li::before,
.entry-content .wp-block-group > ol:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) ol > li::before,
.entry-content .wp-block-column > ol:not([class]):not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) ol > li::before {
	content: counter(penita-ol-sub);
	position: absolute;
	left: 0;
	top: 0.18em;
	width: 1.45em;
	height: 1.45em;
	line-height: 1.38em;
	text-align: center;
	font-size: 0.82em;
	font-weight: 700;
	color: var(--color-main);
	background-color: transparent;
	border: 1px solid var(--color-main);
	border-radius: 50%;
}

/* Blockquote */
.entry-content blockquote,
.entry-content .wp-block-quote {
	position: relative;
	padding: 2.6em 7%;
	margin: 2em 0 2.2em;
	border: 2px solid rgba(103, 103, 103, 0.4);
	border-radius: 7px;
	background-color: transparent;
	color: var(--color-text);
}

.entry-content blockquote::before,
.entry-content blockquote::after,
.entry-content .wp-block-quote::before,
.entry-content .wp-block-quote::after {
	font-family: Georgia, "Times New Roman", serif;
	position: absolute;
	width: 1em;
	height: 1em;
	line-height: 1.15;
	text-align: center;
	font-size: 3.4rem;
	color: var(--color-main);
	opacity: 0.45;
	pointer-events: none;
}

.entry-content blockquote::before,
.entry-content .wp-block-quote::before {
	content: "\201C";
	left: 0.12em;
	top: 0.05em;
}

.entry-content blockquote::after,
.entry-content .wp-block-quote::after {
	content: "\201D";
	right: 0.12em;
	bottom: -0.15em;
}

.entry-content blockquote *:last-child,
.entry-content .wp-block-quote *:last-child {
	margin-bottom: 0;
}

.entry-content blockquote cite,
.entry-content .wp-block-quote cite {
	display: block;
	margin-top: 0.8em;
	font-size: 0.85em;
	font-style: normal;
	color: var(--color-text-muted);
	text-align: right;
}

@media (max-width: 600px) {
	.entry-content blockquote,
	.entry-content .wp-block-quote {
		padding: 2.2em 1.2em;
	}

	.entry-content blockquote::before,
	.entry-content blockquote::after,
	.entry-content .wp-block-quote::before,
	.entry-content .wp-block-quote::after {
		font-size: 2.5rem;
	}
}

/* Tables (responsive horizontal scroll on wp-block-table) */
.entry-content .wp-block-table {
	overflow-x: auto;
	max-inline-size: 100%;
	margin: 1.5em 0;
}

.entry-content table {
	width: 100%;
	font-size: 0.94em;
	margin: 0 0 1.5em;
	border-collapse: collapse;
	border: 1px solid var(--color-border);
}

.entry-content .wp-block-table table {
	margin-bottom: 0;
}

.entry-content table th,
.entry-content table td {
	padding: 0.85em 0.8em;
	border: 1px solid var(--color-border);
	word-break: normal;
	overflow-wrap: anywhere;
	vertical-align: top;
}

.entry-content table th,
.entry-content table thead th,
.entry-content table thead td {
	background-color: rgba(0, 0, 0, 0.05);
	color: var(--color-text);
	font-weight: 700;
	text-align: left;
}

@media (max-width: 480px) {
	.entry-content table {
		font-size: 0.88em;
	}

	.entry-content table th,
	.entry-content table td {
		padding: 0.65em 0.55em;
	}
}

/* Image link hover opacity (excludes Pochipp, Rinker & Jetpack descendants) */
.entry-content a:not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *) img {
	transition: opacity 0.25s ease-in-out;
}

.entry-content a:not(.pochipp-box *, .yyi-rinker-contents *, .jp-relatedposts *, .sharedaddy *):hover img {
	opacity: 0.7;
}

/* Code blocks, HR, Media & Block alignments */
.entry-content pre,
.entry-content pre.wp-block-code {
	background-color: rgba(0, 0, 0, 0.78);
	border-left: 4px solid rgba(0, 0, 0, 0.35);
	color: #ffffff;
	padding: 1.15em 1.25em;
	border-radius: 3px;
	overflow-x: auto;
	margin: 1.5em 0;
	font-size: 0.9em;
	line-height: 1.6;
}

.entry-content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.9em;
}

.entry-content :not(pre) > code {
	background-color: #f1f4f7;
	padding: 0.12em 0.35em;
	border-radius: 3px;
}

.entry-content hr,
.entry-content .wp-block-separator {
	border: 0;
	border-top: 1px solid var(--color-border);
	margin: 2em 0;
}

.entry-content .wp-block-image,
.entry-content .wp-caption {
	margin: 1.5em 0;
	max-width: 100%;
}

.entry-content .wp-block-image figcaption,
.entry-content .wp-caption-text {
	font-size: 0.82em;
	color: var(--color-text-muted);
	text-align: center;
	margin-top: 0.45em;
}

.entry-content .aligncenter {
	display: block;
	margin-inline: auto;
	text-align: center;
}

.entry-content .alignleft {
	float: left;
	margin: 0.3em 1.25em 1em 0;
}

.entry-content .alignright {
	float: right;
	margin: 0.3em 0 1em 1.25em;
}

.entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background) {
	background-color: var(--color-link);
	border: 1px solid var(--color-link);
	color: #ffffff;
	border-radius: 3px;
	padding: 0.85em 2em;
}

.entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background):hover {
	background-color: #ffffff;
	color: var(--color-link);
}

.entry-content .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) {
	color: var(--color-link);
	border: 1px solid var(--color-link);
	border-radius: 3px;
	padding: 0.85em 2em;
}

.entry-content .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color):hover {
	background-color: var(--color-link);
	color: #ffffff;
}

.entry-content iframe {
	max-width: 100%;
}

/* ==========================================================================
   10. Entry Footer (Category & Tag Pills, Prev/Next Navigation)
   ========================================================================== */
.entry-footer {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--color-border-soft);
}

.entry-taxonomies {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1rem;
	margin-bottom: 2rem;
}

.entry-taxonomies__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.term-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.2;
	padding: 0.45em 0.75em;
	border-radius: 0.4em;
	border: 1px solid var(--color-link);
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* Category: solid blue pill */
.term-pill--cat {
	background-color: var(--color-link);
	color: #ffffff;
}

.term-pill--cat:hover {
	background-color: var(--color-link-hover);
	border-color: var(--color-link-hover);
	color: #ffffff;
	transform: translateY(-1px);
}

/* Tag: white background + blue border + blue text */
.term-pill--tag {
	background-color: #ffffff;
	color: var(--color-link);
}

.term-pill--tag:hover {
	background-color: var(--color-link-hover);
	border-color: var(--color-link-hover);
	color: #ffffff;
	transform: translateY(-1px);
}

/* Previous / Next Post Navigation */
.post-nav {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-top: 1.5rem;
}

@media (min-width: 640px) {
	.post-nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.post-nav__link {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	height: 100%;
	padding: 0.9rem 1rem;
	border: 1px solid var(--color-border);
	border-radius: 4px;
	background-color: #ffffff;
	color: var(--color-text);
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.post-nav__link:hover {
	border-color: var(--color-link);
	background-color: var(--color-surface);
	color: var(--color-text);
}

.post-nav__label {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--color-main);
}

.post-nav__item.is-next .post-nav__label {
	justify-content: flex-end;
}

.post-nav__content {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.post-nav__item.is-next .post-nav__content {
	justify-content: flex-end;
	text-align: right;
}

.post-nav__thumb {
	flex: 0 0 60px;
	width: 60px;
	height: 60px;
	overflow: hidden;
	border-radius: 3px;
}

.post-nav__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-nav__title {
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.45;
}

/* ==========================================================================
   11. Comments Area
   ========================================================================== */
.comments-area {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--color-border-soft);
}

.comments-area__title,
.comment-reply-title {
	background-color: var(--color-main);
	color: #ffffff;
	font-size: 1.05rem;
	font-weight: 700;
	padding: 0.65em 0.9em;
	margin: 0 0 1.25rem;
}

.comment-list {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.comment-list .comment {
	border-bottom: 1px dotted rgba(125, 125, 125, 0.35);
	padding: 1rem 0;
}

.comment-list .children {
	list-style: none;
	margin: 0.75rem 0 0 1.5rem;
	padding-left: 1rem;
	border-left: 2px solid var(--color-border);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 700;
	margin-bottom: 0.25rem;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-metadata {
	font-size: 0.78rem;
	color: var(--color-text-muted);
	margin-bottom: 0.6rem;
}

.comment-content p {
	margin: 0 0 0.75rem;
	line-height: 1.7;
}

.comment-form label {
	display: block;
	font-weight: 700;
	font-size: 0.88rem;
	margin-bottom: 0.3rem;
}

.comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.comment-form .comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
	margin-bottom: 0;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: 3px;
	background-color: #ffffff;
}

.comment-form input[type="submit"] {
	background-color: var(--color-link);
	color: #ffffff;
	border: 0;
	border-radius: 3px;
	padding: 0.75em 1.8em;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.comment-form input[type="submit"]:hover {
	background-color: var(--color-link-hover);
}

/* ==========================================================================
   12. Sidebar & Widgets
   ========================================================================== */
.site-sidebar .widget {
	margin-bottom: 2.25rem;
}

.site-sidebar .widget:last-child {
	margin-bottom: 0;
}

/* Widget headings: main blue band */
.site-sidebar .widget-title,
.site-sidebar .widgettitle,
.site-sidebar .widget > .wp-block-heading,
.site-sidebar .widget > .wp-block-group > h2,
.site-sidebar .widget > .wp-block-group > .wp-block-group__inner-container > h2 {
	background-color: var(--color-main);
	color: #ffffff;
	font-size: 1em;
	font-weight: 700;
	line-height: 1.4;
	padding: 0.65em 0.85em;
	margin: 0 0 0.75em;
	border: 0;
}

/* List widgets flush below blue title band */
.site-sidebar .widget_categories .widget-title,
.site-sidebar .widget_archive .widget-title,
.site-sidebar .widget_recent_entries .widget-title,
.site-sidebar .widget_recent_comments .widget-title,
.site-sidebar .widget_nav_menu .widget-title,
.site-sidebar .widget_pages .widget-title,
.site-sidebar .widget_meta .widget-title {
	margin-bottom: 0;
}

/* List widget items: dotted separators + blue ">" chevron */
.site-sidebar .widget_categories ul,
.site-sidebar .widget_archive ul,
.site-sidebar .widget_recent_entries ul,
.site-sidebar .widget_recent_comments ul,
.site-sidebar .widget_nav_menu ul,
.site-sidebar .widget_pages ul,
.site-sidebar .widget_meta ul,
.site-sidebar ul.wp-block-categories-list,
.site-sidebar ul.wp-block-archives-list,
.site-sidebar ul.wp-block-latest-posts:not(.is-grid),
.site-sidebar ul.wp-block-page-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-sidebar .widget_categories li,
.site-sidebar .widget_archive li,
.site-sidebar .widget_recent_entries li,
.site-sidebar .widget_recent_comments li,
.site-sidebar .widget_nav_menu li,
.site-sidebar .widget_pages li,
.site-sidebar .widget_meta li,
.site-sidebar .wp-block-categories-list li,
.site-sidebar .wp-block-archives-list li,
.site-sidebar .wp-block-latest-posts:not(.is-grid) li,
.site-sidebar .wp-block-page-list li {
	border-bottom: 1px dotted rgba(125, 125, 125, 0.38);
	margin: 0;
	padding: 0;
}

.site-sidebar .widget_categories li:last-child,
.site-sidebar .widget_archive li:last-child,
.site-sidebar .widget_recent_entries li:last-child,
.site-sidebar .widget_recent_comments li:last-child,
.site-sidebar .widget_nav_menu li:last-child,
.site-sidebar .widget_pages li:last-child,
.site-sidebar .widget_meta li:last-child,
.site-sidebar .wp-block-categories-list li:last-child,
.site-sidebar .wp-block-archives-list li:last-child,
.site-sidebar .wp-block-latest-posts:not(.is-grid) li:last-child,
.site-sidebar .wp-block-page-list li:last-child {
	border-bottom: 0;
}

.site-sidebar .widget_categories li a,
.site-sidebar .widget_archive li a,
.site-sidebar .widget_recent_entries li a,
.site-sidebar .widget_nav_menu li a,
.site-sidebar .widget_pages li a,
.site-sidebar .widget_meta li a,
.site-sidebar .wp-block-categories-list li a,
.site-sidebar .wp-block-archives-list li a,
.site-sidebar .wp-block-latest-posts:not(.is-grid) li a,
.site-sidebar .wp-block-page-list li a {
	display: block;
	position: relative;
	padding: 0.8em 1.6em 0.8em 0.35em;
	color: var(--color-text);
	text-decoration: none;
	transition: opacity 0.2s ease-in-out;
}

.site-sidebar .widget_categories li a::after,
.site-sidebar .widget_archive li a::after,
.site-sidebar .widget_recent_entries li a::after,
.site-sidebar .widget_nav_menu li a::after,
.site-sidebar .widget_pages li a::after,
.site-sidebar .widget_meta li a::after,
.site-sidebar .wp-block-categories-list li a::after,
.site-sidebar .wp-block-archives-list li a::after,
.site-sidebar .wp-block-latest-posts:not(.is-grid) li a::after,
.site-sidebar .wp-block-page-list li a::after {
	content: "";
	position: absolute;
	right: 8px;
	top: 50%;
	width: 6px;
	height: 6px;
	border-top: 2px solid var(--color-link);
	border-right: 2px solid var(--color-link);
	transform: translateY(-50%) rotate(45deg);
	transition: right 0.15s ease-in-out;
}

.site-sidebar .widget_categories li a:hover,
.site-sidebar .widget_archive li a:hover,
.site-sidebar .widget_recent_entries li a:hover,
.site-sidebar .widget_nav_menu li a:hover,
.site-sidebar .widget_pages li a:hover,
.site-sidebar .widget_meta li a:hover,
.site-sidebar .wp-block-categories-list li a:hover,
.site-sidebar .wp-block-archives-list li a:hover,
.site-sidebar .wp-block-latest-posts:not(.is-grid) li a:hover,
.site-sidebar .wp-block-page-list li a:hover {
	color: var(--color-text);
	opacity: 0.6;
}

.site-sidebar .widget_categories li a:hover::after,
.site-sidebar .widget_archive li a:hover::after,
.site-sidebar .widget_recent_entries li a:hover::after,
.site-sidebar .widget_nav_menu li a:hover::after,
.site-sidebar .widget_pages li a:hover::after,
.site-sidebar .widget_meta li a:hover::after,
.site-sidebar .wp-block-categories-list li a:hover::after,
.site-sidebar .wp-block-archives-list li a:hover::after,
.site-sidebar .wp-block-latest-posts:not(.is-grid) li a:hover::after,
.site-sidebar .wp-block-page-list li a:hover::after {
	right: 4px;
}

/* Nested child lists in sidebar */
.site-sidebar .widget_categories ul.children li a,
.site-sidebar .wp-block-categories-list ul.children li a,
.site-sidebar .widget_nav_menu ul.sub-menu li a {
	padding-left: 1.25em;
}

/* Recent comments padding */
.site-sidebar .widget_recent_comments li {
	padding: 0.7em 0.35em;
	line-height: 1.5;
}

/* ==========================================================================
   13. Search Form, Empty State & 404
   ========================================================================== */
.search-form {
	display: flex;
	gap: 0.45rem;
	max-width: 480px;
}

.search-form__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--color-border);
	border-radius: 3px;
	background-color: #ffffff;
}

.search-form__submit,
.button-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.35rem;
	background-color: var(--color-link);
	color: #ffffff;
	border: 1px solid var(--color-link);
	border-radius: 3px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.search-form__submit:hover,
.button-primary:hover {
	background-color: var(--color-link-hover);
	border-color: var(--color-link-hover);
	color: #ffffff;
}

.no-results,
.error-404 {
	padding: 2rem 1rem;
	text-align: center;
}

.no-results__title,
.error-404__title {
	margin: 0 0 0.75rem;
	font-size: 1.35rem;
	color: var(--color-text);
}

.no-results__text,
.error-404__text {
	margin: 0 0 1.5rem;
	color: var(--color-text-muted);
}

.no-results .search-form,
.error-404__search .search-form {
	margin-inline: auto;
}

.error-404__home {
	margin-top: 1.5rem;
}

/* ==========================================================================
   14. Footer & Back-to-Top Button
   ========================================================================== */
.site-footer {
	background-color: var(--color-footer-bg);
	color: var(--color-footer-text);
	font-size: 0.86rem;
	text-align: center;
}

.site-footer__inner {
	padding-top: 1.85rem;
	padding-bottom: 1.85rem;
}

.site-footer a {
	color: inherit;
	opacity: 0.88;
}

.site-footer a:hover {
	color: inherit;
	opacity: 1;
	text-decoration: underline;
}

.footer-nav {
	margin-bottom: 1.15rem;
}

.footer-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.35rem 0;
}

.footer-nav__list > li {
	display: inline-flex;
	align-items: center;
}

.footer-nav__list > li:not(:last-child)::after {
	content: "/";
	opacity: 0.5;
	margin: 0 0.55em;
}

.footer-nav__list a {
	font-size: 0.84rem;
	padding: 0.2em 0.35em;
}

.site-footer__copyright {
	margin: 0;
	font-size: 0.8rem;
	opacity: 0.9;
}

/* Back-to-top fixed button */
.page-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 90;
	width: 50px;
	height: 50px;
	border-radius: 3px;
	background-color: rgba(51, 51, 51, 0.62);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px);
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, background-color 0.2s ease;
}

.page-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.page-top:hover {
	background-color: var(--color-main);
	color: #ffffff;
}

html:not(.has-js) .page-top {
	opacity: 0.85;
	visibility: visible;
	transform: none;
}

@media (max-width: 767px) {
	.site-footer {
		font-size: 0.78rem;
	}

	.page-top {
		right: 12px;
		bottom: 12px;
		width: 42px;
		height: 42px;
	}
}
