/*
Theme Name: Ditado ↯Micro
Theme URI: https://ditado.com/
Author: Ditado
Author URI: https://ditado.com/
Description: Ultra-fast, lightweight, responsive microblog theme inspired by P2 / Twitter feed. 100% PHP 8+ compatible, mobile-first, zero bloat.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: ditado-micro
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES (THEME CONFIGURATION - EASY TO CUSTOMIZE)
   ========================================================================== */
:root {
	/* Primary Brand Colors */
	--color-primary: #c2410c;
	--color-primary-hover: #9a3412;
	--color-primary-light: rgba(194, 65, 12, 0.08);

	/* Neutral / Dark Colors */
	--color-text: #2c3e50;
	--color-text-dark: #111827;
	--color-text-muted: #6b7280;
	--color-text-light: #9ca3af;

	/* Backgrounds */
	--bg-body: #f7f4ee;
	--bg-pattern: url('assets/images/patterns/asanoha.png');
	--bg-card: #ffffff;
	--bg-sidebar: #faf7f0;
	--bg-input: #fffdf8;
	--bg-tag: #faf6ec;

	/* Borders */
	--border-wrapper: #44403c;
	--border-light: #e9e2d4;
	--border-input: #374151;
	--border-tag: #e5ddc9;

	/* Typography */
	--font-sans: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-size-base: 15px;
	--line-height-base: 1.6;

	/* Sizing & Layout */
	--container-max-width: 1300px;
	--wrapper-radius: 14px;
	--avatar-size: 56px;
	--avatar-radius: 10px;
	--sidebar-width: 320px;

	/* Shadows */
	--shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
	--shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   RESET & BOX SIZING
   ========================================================================== */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: var(--font-size-base);
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-sans);
	color: var(--color-text);
	background-color: var(--bg-body);
	background-image: var(--bg-pattern);
	line-height: var(--line-height-base);
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Custom Background support */
body.custom-background {
	background-position: left top;
	background-repeat: repeat;
	background-attachment: scroll;
}

img, svg, iframe {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color 0.15s ease-in-out;
}

a:hover, a:focus {
	color: var(--color-primary-hover);
}

ul, ol {
	list-style: none;
}

/* Screen reader text helper */
.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 !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #fff;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* ==========================================================================
   CONTAINER & LAYOUT
   ========================================================================== */
.site-container {
	width: 95%;
	max-width: var(--container-max-width);
	margin: 0 auto;
	padding: 10px 0 30px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
	padding: 0;
}

.header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.site-logo {
	flex-shrink: 0;
	max-width: 320px;
}

.site-logo a {
	display: inline-block;
}

.site-logo img {
	max-height: 90px;
	width: auto;
	object-fit: contain;
}

.logo-text {
	font-size: 2rem;
	font-weight: 800;
	color: var(--color-text-dark);
	letter-spacing: -0.5px;
}

.header-ad-area {
	flex: 1;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	min-height: 90px;
	overflow: hidden;
}

/* ==========================================================================
   MAIN WRAPPER (THE WHITE ROUNDED CARD CONTAINER)
   ========================================================================== */
.site-wrapper {
	background: var(--bg-card);
	border: 2px solid var(--border-wrapper);
	border-radius: var(--wrapper-radius);
	box-shadow: var(--shadow-card);
	display: flex;
	flex-direction: row;
	overflow: hidden;
	position: relative;
}

.sleeve_main {
	flex: 1;
	min-width: 0;
	padding: 25px 30px 40px;
}

.site-main {
	width: 100%;
}

/* ==========================================================================
   FEED HEADER & TOP WIDGET (SUBMISSION FORM)
   ========================================================================== */
.feed-header-wrap {
	margin-bottom: 20px;
}

.feed-top-widget {
	margin-bottom: 25px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--border-light);
}

.feed-top-widget iframe {
	border: none;
	width: 100%;
	min-height: 280px;
	border-radius: 8px;
}

.feed-title-bar {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--border-light);
}

.feed-main-title {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--color-text-dark);
	letter-spacing: -0.2px;
}

/* ==========================================================================
   MICROBLOG POST CARD (TWITTER / P2 DESIGN)
   ========================================================================== */
.p2-post-list {
	display: flex;
	flex-direction: column;
}

.p2-card {
	display: flex;
	flex-direction: row;
	gap: 18px;
	padding: 22px 0;
	border-bottom: 1px solid var(--border-light);
	position: relative;
}

.p2-card:last-of-type {
	border-bottom: none;
}

/* Left Avatar Column */
.p2-avatar-col {
	flex-shrink: 0;
}

.author-avatar-link {
	display: block;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.author-avatar-link:hover {
	opacity: 0.9;
	transform: scale(1.03);
}

.p2-avatar-col .avatar {
	width: var(--avatar-size);
	height: var(--avatar-size);
	border-radius: var(--avatar-radius);
	object-fit: cover;
	display: block;
}

/* Right Content Column */
.p2-content-col {
	flex: 1;
	min-width: 0;
}

/* Card Header (Author + Actions) */
.p2-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2px;
}

.p2-author-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}

.p2-author-name {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--color-primary);
	line-height: 1.3;
}

.p2-author-name:hover {
	color: var(--color-primary-hover);
	text-decoration: underline;
}

.p2-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: var(--color-text-light);
}

.p2-action-link {
	color: var(--color-text-muted);
	transition: color 0.15s;
}

.p2-action-link:hover {
	color: var(--color-primary);
}

.p2-comment-count {
	font-size: 0.8rem;
	font-weight: 600;
	margin-left: 2px;
}

.p2-edit-sep {
	color: #d1d5db;
	margin: 0 4px;
}

/* Sub-meta (Time + Tags) */
.p2-meta-sub {
	font-size: 0.88rem;
	color: var(--color-text-muted);
	margin-bottom: 8px;
	line-height: 1.4;
}

.p2-time-link {
	color: var(--color-text-muted);
}

.p2-time-link:hover {
	color: var(--color-text);
	text-decoration: underline;
}

.p2-tags {
	color: var(--color-primary);
}

.p2-tags a {
	color: var(--color-primary);
	text-decoration: none;
}

.p2-tags a:hover {
	text-decoration: underline;
}

/* Card Buttons (Responder + icon buttons share the same visual language) */
.p2-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	font-size: 0.82rem;
	font-weight: 700;
	font-family: inherit;
	line-height: 1.5;
	border-radius: 6px;
	border: 1.5px solid var(--color-primary);
	background: var(--color-primary-light);
	color: var(--color-primary);
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.p2-btn:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(194, 65, 12, 0.35);
}

.p2-btn svg {
	flex-shrink: 0;
}

.p2-reply-link svg {
	width: 13px;
	height: 13px;
}

.p2-icon-btn svg {
	width: 14px;
	height: 14px;
}

/* Compact icon buttons (share + permalink) */
.p2-icon-btn {
	width: 30px;
	height: 30px;
	padding: 0;
	justify-content: center;
	border-color: #d1d5db;
	background: #faf6ec;
	color: var(--color-text-muted);
	font-size: 1.05rem;
	line-height: 1;
}

.p2-icon-btn:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: #fff;
}

/* Share popover (opens from the actions row, right-aligned) */
.p2-send-wrap {
	position: relative;
	display: inline-flex;
}

.p2-send-pop {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 190px;
	background: #fff;
	border: 1px solid var(--border-light);
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	padding: 6px;
	display: none;
	z-index: 30;
}

.p2-send-wrap.is-open .p2-send-pop {
	display: block;
	animation: p2-pop-in 0.16s ease;
}

@keyframes p2-pop-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

.p2-send-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px 10px;
	font-size: 0.88rem;
	font-weight: 600;
	font-family: inherit;
	color: var(--color-text);
	background: transparent;
	border: none;
	border-radius: 7px;
	cursor: pointer;
	text-decoration: none;
	text-align: left;
	transition: background 0.15s ease, color 0.15s ease;
}

.p2-send-item:hover {
	background: var(--color-primary-light);
	color: var(--color-primary-hover);
}

.p2-send-item svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	color: var(--color-text-muted);
}

.p2-send-item:hover svg {
	color: var(--color-primary);
}

.p2-send-item.is-copied {
	color: var(--color-primary);
}

/* Keep the open card's popover above the cards below it */
.p2-card:has(.p2-send-wrap.is-open) {
	z-index: 5;
}

/* Post Content / Body (Jokes & Text) */
.p2-post-body {
	font-size: 1.05rem;
	line-height: 1.65;
	color: #2b2b2b;
	word-wrap: break-word;
}

.p2-post-body p {
	margin-bottom: 0.85em;
}

.p2-post-body p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 30px 0 10px;
	flex-wrap: wrap;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: 6px;
	background: #fffdf8;
	border: 1px solid #e0e0e0;
	color: var(--color-primary);
	text-decoration: none;
	transition: all 0.2s ease;
}

.page-numbers:hover {
	background: #f0f0f0;
	color: var(--color-primary-hover);
	border-color: #ccc;
}

.page-numbers.current {
	background: var(--color-primary);
	color: #ffffff;
	border-color: var(--color-primary);
}

.page-numbers.dots {
	background: transparent;
	border: none;
	color: var(--color-text-muted);
}

/* ==========================================================================
   SIDEBAR & WIDGETS
   ========================================================================== */
.site-sidebar {
	width: var(--sidebar-width);
	background: var(--bg-sidebar);
	border-left: 1px solid var(--border-light);
	padding: 25px 20px 40px;
	flex-shrink: 0;
}

.sidebar-widget-list {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.widget {
	width: 100%;
}

.widgettitle {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-text-dark);
	margin-bottom: 12px;
	letter-spacing: -0.2px;
}

.widget p {
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--color-text);
	margin-bottom: 10px;
}

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

/* Search Form Widget */
.searchform-inner {
	display: flex;
	gap: 8px;
	width: 100%;
}

.searchform input[type="text"] {
	flex: 1;
	min-width: 0;
	height: 40px;
	padding: 8px 12px;
	font-size: 0.95rem;
	font-family: inherit;
	background: var(--bg-input);
	border: 2px solid var(--border-input);
	border-radius: 6px;
	color: var(--color-text-dark);
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.searchform input[type="text"]:focus {
	border-color: var(--color-primary);
	background: #fff;
	box-shadow: 0 0 0 3px var(--color-primary-light);
}

.searchform button, #searchsubmit {
	height: 40px;
	padding: 0 16px;
	font-size: 0.95rem;
	font-weight: 600;
	font-family: inherit;
	color: #ffffff;
	background: var(--color-primary);
	border: 2px solid var(--color-primary);
	border-radius: 6px;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s ease;
}

.searchform button:hover, #searchsubmit:hover {
	background: var(--color-primary-hover);
	border-color: var(--color-primary-hover);
	transform: translateY(-1px);
}

/* Temas / Tag Cloud Widget */
.tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tagcloud a {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	font-size: 0.88rem !important;
	color: var(--color-primary);
	background: var(--bg-tag);
	border: 1px solid var(--border-tag);
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.tagcloud a:hover {
	background: var(--color-primary);
	color: #ffffff;
	border-color: var(--color-primary);
	transform: translateY(-1px);
}

/* Jetpack / Email Subscription Form */
.jetpack_subscription_widget input[type="email"] {
	width: 100%;
	height: 40px;
	padding: 8px 12px;
	font-size: 0.95rem;
	border: 2px solid var(--border-input);
	border-radius: 6px;
	background: var(--bg-input);
	margin-bottom: 8px;
}

.jetpack_subscription_widget input[type="submit"] {
	width: 100% !important;
	height: 40px;
	background: var(--color-primary);
	border: 2px solid var(--color-primary);
	color: #fff;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.jetpack_subscription_widget input[type="submit"]:hover {
	background: var(--color-primary-hover);
}
/* Jetpack Subscriptions BLOCK button (squircle + theme font, dark grey) */
.jetpack_subscription_widget button[type="submit"],
.wp-block-jetpack-subscriptions button[type="submit"],
button.wp-block-button__link[name="jetpack_subscriptions_widget"] {
	display: block;
	width: 100%;
	min-height: 40px;
	padding: 8px 16px;
	font-family: var(--font-sans);
	font-size: 0.95rem;
	font-weight: 600;
	color: #ffffff;
	background: #374151;
	border: 2px solid #374151;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.jetpack_subscription_widget button[type="submit"]:hover,
.wp-block-jetpack-subscriptions button[type="submit"]:hover,
button.wp-block-button__link[name="jetpack_subscriptions_widget"]:hover {
	background: #4b5563;
	border-color: #4b5563;
	transform: translateY(-1px);
}

/* ==========================================================================
   COMMENTS & RESPONDER FORM (MODERNIZED & FIXED)
   ========================================================================== */
.comments-area {
	margin-top: 30px;
	padding-top: 25px;
	border-top: 1px solid var(--border-light);
}

.comments-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 20px;
	color: var(--color-text-dark);
}

.comment-list {
	margin-bottom: 30px;
}

.p2-comment-item {
	margin-bottom: 18px;
}

.comment-body {
	display: flex;
	gap: 14px;
	background: #fffdf8;
	padding: 14px;
	border-radius: 8px;
	border: 1px solid #ebebeb;
}

.comment-avatar .avatar {
	width: 44px;
	height: 44px;
	border-radius: 8px;
}

.comment-main {
	flex: 1;
	min-width: 0;
}

.comment-meta {
	font-size: 0.88rem;
	margin-bottom: 6px;
}

.comment-author {
	font-weight: 700;
	color: var(--color-primary);
	margin-right: 6px;
}

.comment-time a {
	color: var(--color-text-muted);
}

.comment-text {
	font-size: 0.98rem;
	line-height: 1.5;
	color: var(--color-text);
	margin-bottom: 8px;
}

.comment-reply a {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--color-text-muted);
}

.comment-reply a:hover {
	color: var(--color-primary);
}

/* Nested Comments */
.comment-list .children {
	margin-left: 30px;
	margin-top: 12px;
}

/* Modern Comment Form */
.comment-respond {
	background: #fdfdfd;
	border: 1px solid var(--border-light);
	border-radius: 8px;
	padding: 20px;
}

.comment-reply-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--color-text-dark);
	margin-bottom: 12px;
}

.comment-notes {
	font-size: 0.85rem;
	color: var(--color-text-muted);
	margin-bottom: 14px;
}

.comment-form p {
	margin-bottom: 14px;
}

.comment-form label {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 5px;
	color: var(--color-text-dark);
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	width: 100%;
	padding: 10px 12px;
	font-size: 0.95rem;
	font-family: inherit;
	border: 2px solid var(--border-input);
	border-radius: 6px;
	background: var(--bg-input);
	color: var(--color-text-dark);
	outline: none;
	transition: border-color 0.2s ease;
}

.comment-form textarea:focus,
.comment-form input:focus {
	border-color: var(--color-primary);
	background: #fff;
}

.comment-form textarea {
	min-height: 100px;
	resize: vertical;
}

.comment-form .submit-btn,
.comment-form input[type="submit"] {
	display: inline-block;
	height: 40px;
	padding: 0 20px;
	background: var(--color-primary);
	border: 2px solid var(--color-primary);
	border-radius: 6px;
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
}

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

/* ==========================================================================
   SINGLE POST & PAGE NAVIGATION
   ========================================================================== */
.post-navigation {
	margin: 25px 0;
	padding: 18px 0;
	border-top: 1px solid var(--border-light);
	border-bottom: 1px solid var(--border-light);
}

.nav-links {
	display: flex;
	justify-content: space-between;
	gap: 15px;
}

.nav-previous, .nav-next {
	flex: 1;
}

.nav-next {
	text-align: right;
}

.nav-subtitle {
	display: block;
	font-size: 0.8rem;
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
}

.nav-title {
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--color-primary);
}

/* Static Page */
.page-title {
	font-size: 1.8rem;
	font-weight: 700;
	margin-bottom: 20px;
	color: var(--color-text-dark);
}

.page-body {
	font-size: 1.05rem;
	line-height: 1.7;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
/* ==========================================================================
   404 PAGE (SILLY NOT-FOUND)
   ========================================================================== */
.error-404-wrap {
	text-align: center;
	padding: 30px 10px 40px;
}

.error-404-mascot {
	font-size: 4rem;
	line-height: 1;
	display: inline-block;
	animation: p2-wobble 2.4s ease-in-out infinite;
}

@keyframes p2-wobble {
	0%, 100% { transform: rotate(-8deg); }
	50% { transform: rotate(8deg); }
}

@media (prefers-reduced-motion: reduce) {
	.error-404-mascot {
		animation: none;
	}
}

.error-404-code {
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--color-text-light);
	margin-top: 10px;
}

.error-404-title {
	font-size: 2rem;
	font-weight: 800;
	color: var(--color-text-dark);
	letter-spacing: -0.5px;
	margin: 6px 0 12px;
}

.error-404-text {
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--color-text);
	max-width: 560px;
	margin: 0 auto 22px;
}

.error-404-search {
	max-width: 420px;
	margin: 0 auto 24px;
}

.error-404-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.error-404-hint {
	font-size: 0.88rem;
	color: var(--color-text-muted);
	margin-top: 22px;
}

.site-footer {
	text-align: center;
	padding: 25px 0 10px;
	font-size: 0.88rem;
	color: var(--color-text-muted);
}

.site-footer a {
	color: var(--color-text-muted);
	text-decoration: underline;
}

.site-footer a:hover {
	color: var(--color-primary);
}

.footer-menu {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-top: 8px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST BREAKPOINTS)
   ========================================================================== */

/* Tablet (Max 920px) */
@media screen and (max-width: 920px) {
	.site-wrapper {
		flex-direction: column;
	}

	.site-sidebar {
		width: 100%;
		border-left: none;
		border-top: 2px solid var(--border-light);
		padding: 30px 20px;
	}

	.sleeve_main {
		padding: 20px 20px 30px;
	}
}

/* Mobile Devices (Max 680px) */
@media screen and (max-width: 680px) {
	.site-container {
		width: 96%;
		padding-top: 5px;
	}

	.header-inner {
		flex-direction: column;
		text-align: center;
		gap: 12px;
	}

	.site-logo {
		margin: 0 auto;
	}

	.header-ad-area {
		justify-content: center;
		width: 100%;
	}

	.sleeve_main {
		padding: 15px 15px 25px;
	}

	.p2-card {
		gap: 12px;
		padding: 18px 0;
	}

	.p2-avatar-col .avatar {
		width: 44px;
		height: 44px;
	}

	.p2-post-body {
		font-size: 1rem;
		line-height: 1.6;
	}

	.p2-author-name {
		font-size: 1.05rem;
	}

	.p2-btn {
		padding: 3px 10px;
		font-size: 0.8rem;
	}

	.p2-icon-btn {
		padding: 0;
	}

	.p2-send-pop {
		min-width: 170px;
	}

	.pagination {
		gap: 4px;
	}

	.page-numbers {
		min-width: 32px;
		height: 32px;
		font-size: 0.88rem;
		padding: 0 6px;
	}

	.comment-list .children {
		margin-left: 15px;
	}
}

/* ==========================================================================
   DITADO SKIN (modern editorial: warm paper, terracotta, serif wisdom)
   ========================================================================== */
:root {
	--font-serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
}

::selection {
	background: #fed7aa;
}

.site-wrapper {
	border: 1px solid #e3dccb;
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(80, 60, 30, 0.1), 0 2px 6px rgba(80, 60, 30, 0.06);
}

.p2-post-body {
	font-family: var(--font-serif);
	font-size: 1.06rem;
	line-height: 1.65;
}

.feed-main-title,
.widgettitle,
.logo-text,
.error-404-title {
	font-family: var(--font-serif);
}

.logo-text {
	font-size: 1.9rem;
	font-weight: 700;
	color: var(--color-text-dark);
	letter-spacing: -0.5px;
}

.logo-link {
	text-decoration: none;
}

.p2-card {
	border-bottom-color: #ece4d2;
}

.p2-btn,
.page-numbers,
.tagcloud a {
	border-radius: 8px;
}

/* Front-page search hero */
.ditado-hero {
	margin: 6px 0 26px;
	text-align: center;
}

.ditado-hero-form {
	display: flex;
	gap: 10px;
	max-width: 560px;
	margin: 0 auto;
}

.ditado-hero-form input[type="text"] {
	flex: 1;
	min-width: 0;
	font-size: 1.05rem;
	padding: 14px 22px;
	border: 1.5px solid #ddd3bd;
	border-radius: 999px;
	background: #fffdf8;
	box-shadow: 0 4px 14px rgba(80, 60, 30, 0.08);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ditado-hero-form input[type="text"]:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.14), 0 4px 14px rgba(80, 60, 30, 0.08);
	outline: none;
}

.ditado-hero-form button {
	font-size: 1rem;
	font-weight: 700;
	font-family: inherit;
	padding: 0 28px;
	border: none;
	border-radius: 999px;
	background: var(--color-primary);
	color: #ffffff;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(194, 65, 12, 0.3);
	transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.ditado-hero-form button:hover {
	background: var(--color-primary-hover);
}

.ditado-hero-chips {
	margin-top: 12px;
	font-size: 0.88rem;
	color: var(--color-text-muted);
}

.ditado-hero-chips span {
	margin-right: 6px;
}

.ditado-hero-chips a {
	display: inline-block;
	margin: 0 3px;
	padding: 3px 12px;
	border: 1px solid #ddd3bd;
	border-radius: 999px;
	background: #fffdf8;
	color: var(--color-primary-hover);
	text-decoration: none;
	font-weight: 600;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ditado-hero-chips a:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: #ffffff;
}

@media (prefers-reduced-motion: no-preference) {
	.ditado-hero-form button:hover {
		transform: translateY(-1px);
		box-shadow: 0 7px 18px rgba(194, 65, 12, 0.35);
	}

	.ditado-hero-form button:active {
		transform: translateY(1px);
		box-shadow: 0 2px 8px rgba(194, 65, 12, 0.3);
	}
}

@media screen and (max-width: 560px) {
	.ditado-hero-form {
		flex-direction: column;
	}

	.ditado-hero-form button {
		padding: 13px 28px;
	}
}

/* ==========================================================================
   ASIAN PATTERN BACKGROUNDS (optional - add class to body)
   ========================================================================== */
/* Usage: add one of these classes to <body> via filter or manually:
   <body class="pattern-seigaiha"> etc.
   All patterns tile seamlessly, <4KB each, on #f7f4ee base.
*/

body.pattern-seigaiha {
	--bg-pattern: url('assets/images/patterns/seigaiha.png');
	background-repeat: repeat;
}

body.pattern-seigaiha-pop {
	--bg-pattern: url('assets/images/patterns/seigaiha-pop.png');
	background-repeat: repeat;
}

body.pattern-asanoha {
	--bg-pattern: url('assets/images/patterns/asanoha.png');
	background-repeat: repeat;
}

body.pattern-kikko {
	--bg-pattern: url('assets/images/patterns/kikko.png');
	background-repeat: repeat;
}

body.pattern-washi-dots {
	--bg-pattern: url('assets/images/patterns/washi-dots.png');
	background-repeat: repeat;
}

body.pattern-sakura {
	--bg-pattern: url('assets/images/patterns/sakura.png');
	background-repeat: repeat;
}

/* Slightly stronger contrast for pop version */
body.pattern-seigaiha-pop {
	background-color: #f7f4ee;
}
