/* ==========================================================================
   Single Post & Print Styles (loaded conditionally on is_single())
   ========================================================================== */

/* ==========================================================================
   Single Post Editorial Layout (68% Main + 32% Sticky Sidebar)
   ========================================================================== */
.hops-single-page {
	padding: var(--page-pad-top) var(--page-gutter) var(--page-pad-bottom);
}

.hops-single-container {
	max-width: var(--container);
	margin: 0 auto;
}

.hops-single-layout {
	display: grid;
	grid-template-columns: minmax(0, 68%) minmax(0, 32%);
	gap: 40px;
	align-items: stretch;
}

.hops-single-main {
	min-width: 0;
}

.hops-single-header {
	margin-bottom: 20px;
}

.hops-single-title {
	margin: 0 0 10px;
	font-size: clamp(1.75rem, 2.8vw, 2.35rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--text-heading);
}

.hops-single-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	font-size: 0.84rem;
	color: var(--text-body);
}

.hops-single-meta a {
	color: var(--color-primary);
	text-decoration: none;
	font-weight: 700;
}

.hops-single-meta a:hover {
	text-decoration: underline;
}

.hops-single-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2) var(--space-4);
	margin-top: var(--space-3);
}

.hops-single-chips__group {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
}

.hops-single-chips__label {
	font-size: var(--text-xs);
	font-weight: 700;
	color: var(--text-muted);
}

.hops-single-chip {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	background: var(--bg-surface);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-sm);
	font-size: var(--text-xs);
	font-weight: 700;
	color: var(--text-heading);
	text-decoration: none;
}

.hops-single-chip:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-on-primary);
}

.hops-single-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: var(--space-2);
	margin-top: var(--space-3);
}

@media (min-width: 768px) {
	.hops-single-actions {
		justify-content: flex-end;
	}
}

.hops-single-content {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--text-heading);
}

.hops-single-content .wp-caption-text,
.hops-single-content figcaption {
	font-size: 0.875rem;
	color: var(--text-body);
}

.hops-single-content :where(h2):not(.hops-card__title):not([class*="hops-card"]) {
	font-size: 1.5rem;
	font-weight: 700;
	margin-top: 28px;
	margin-bottom: 12px;
	color: var(--text-heading);
}

.hops-single-content :where(h3):not(.hops-card__title):not([class*="hops-card"]) {
	font-size: 1.2rem;
	font-weight: 700;
	margin-top: 28px;
	margin-bottom: 12px;
	color: var(--text-heading);
}

.hops-single-content :where(h4):not(.hops-card__title):not([class*="hops-card"]) {
	font-weight: 700;
	margin-top: 24px;
	margin-bottom: 10px;
	color: var(--text-heading);
}

.hops-single-content ul,
.hops-single-content ol {
	margin: 0 0 18px;
	padding-left: 22px;
}

.hops-single-content li {
	margin-bottom: 6px;
}

.hops-single-content :where(a):not(.hops-btn):not(.hops-card a) {
	color: var(--color-primary);
	text-decoration: underline;
}

.hops-single-content :where(a):not(.hops-btn):not(.hops-card a):hover {
	color: var(--color-primary-hover);
}

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

/* Tags cuối bài */
.hops-single-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid var(--border-soft);
}

.hops-single-tags__label {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--text-heading);
}

.hops-single-tag {
	padding: 4px 10px;
	background: var(--bg-surface);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-sm);
	font-size: 0.78rem;
	color: var(--text-body);
	text-decoration: none;
}

.hops-single-tag:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-on-primary);
}

/* 2. Disclaimer Box (light footnote) */
.hops-disclaimer-box {
	margin-top: 24px;
	padding: 14px 0 0;
	background-color: transparent;
	border: 0;
	border-top: 1px solid var(--border-soft);
	border-radius: 0;
}

.hops-disclaimer-box__title {
	margin: 0 0 4px;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-body);
}

.hops-disclaimer-box__text,
.hops-disclaimer-box .hops-disclaimer-box__report {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.6;
	color: var(--text-body);
}

.hops-disclaimer-box p + p {
	margin-top: 8px;
}

.hops-disclaimer-box .hops-disclaimer-box__report {
	margin-top: 8px;
}

.hops-disclaimer-box__text a,
.hops-disclaimer-box .hops-disclaimer-box__report a {
	color: var(--color-primary-hover);
	font-weight: 700;
	text-decoration: underline;
}

/* 4. Social Bar (6 nút chữ nhật ngang) */
.hops-social-bar {
	margin-top: 16px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 8px;
}

.hops-social-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 40px;
	padding: 8px 10px;
	background: var(--bg-white);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-sm);
	color: var(--text-heading);
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
	text-align: center;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hops-social-btn:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-on-primary);
}

/* 5. Horizontal Pattern Carousel */
.hops-carousel-section {
	margin-top: 38px;
	padding-top: 24px;
	border-top: 1px solid var(--border-soft);
}

.hops-carousel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.hops-carousel-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-heading);
}

.hops-carousel-controls {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hops-carousel-arrow {
	width: 32px;
	height: 32px;
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-sm);
	background: var(--bg-white);
	color: var(--text-heading);
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}

body.hops-theme .hops-carousel-arrow:focus,
body.hops-theme .hops-carousel-arrow:focus-visible,
body.hops-theme .hops-carousel-arrow:active,
body.hops-theme .hops-carousel-arrow:disabled:hover {
	background-color: var(--bg-white);
	color: var(--text-heading);
	box-shadow: none;
}

body.hops-theme .hops-carousel-arrow:hover:not(:disabled) {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-on-primary);
}

.hops-carousel-arrow:disabled {
	opacity: 0.4;
	cursor: default;
}

body.hops-theme .hops-carousel-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 36px;
	height: 36px;
	min-width: 36px;
	min-height: 36px;
	padding: 0;
	margin: 0;
	line-height: 1;
}

@media (hover: none), (max-width: 767px) {
	body.hops-theme .hops-carousel-arrow {
		width: 40px;
		height: 40px;
		min-width: 40px;
		min-height: 40px;
	}
}

.hops-carousel-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 8px;
	scrollbar-width: thin;
	scrollbar-color: var(--border-soft) transparent;
}

.hops-carousel-card {
	flex: 0 0 calc((100% - 32px) / 3);
	scroll-snap-align: start;
}

.hops-carousel-card__thumb {
	display: block;
	width: 100%;
	height: 100%;
}

.hops-carousel-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* 6. Comments Area */
.hops-comments-area {
	margin-top: 38px;
	padding-top: 24px;
	border-top: 1px solid var(--border-soft);
}

.hops-comments-title,
.hops-comments-area .comment-reply-title {
	margin: 0 0 18px;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-heading);
}

.hops-comment-list {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.hops-comment-list .comment-body {
	padding: 16px;
	background: var(--bg-white);
	border: 1px solid var(--border-soft);
}

.hops-comment-list .comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
	color: var(--text-heading);
}

.hops-comment-list .comment-metadata {
	font-size: 0.78rem;
	color: var(--text-body);
	margin-bottom: 8px;
}

.hops-comment-list .comment-metadata a,
.hops-comment-list .reply a {
	color: var(--color-primary);
	text-decoration: none;
}

body.hops-theme .hops-comments-area .comment-author a {
	color: inherit;
	text-decoration: none;
}

body.hops-theme .hops-comments-area .comment-author a:hover {
	text-decoration: underline;
}

body.hops-theme .hops-comments-area .comment-author .says {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

body.hops-theme .hops-comments-area .comment-content {
	margin-top: 0;
	padding: 0;
	border: 0;
	background: transparent;
	overflow-wrap: break-word;
}

body.hops-theme .hops-comments-area .reply {
	margin-top: 12px;
}

body.hops-theme .hops-comments-area .reply a {
	display: inline-block;
	color: var(--color-primary);
	text-decoration: none;
}

body.hops-theme .hops-comments-area .reply a:hover {
	text-decoration: underline;
}

body.hops-theme .hops-comments-area .reply a:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
	border-radius: 2px;
}

body.hops-theme .hops-comments-area ol.children {
	list-style: none;
	margin: 16px 0 0;
	padding: 0 0 0 24px;
	border-left: 2px solid var(--border-soft);
	border-bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.hops-comments-area .comment-form {
	padding: 20px;
	background: var(--bg-surface);
	border: 1px solid var(--border-soft);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hops-comments-area .comment-form a,
.hops-comments-area .comment-form a:hover {
	color: var(--color-primary-hover);
	text-decoration: underline;
}

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

.hops-comments-area .comment-form label {
	display: block;
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--text-heading);
	margin-bottom: 4px;
}

.hops-comments-area .comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hops-comments-area .comment-form-cookies-consent label {
	margin-bottom: 0;
	font-weight: 400;
}

.hops-comments-area .comment-form input[type="text"],
.hops-comments-area .comment-form input[type="email"],
.hops-comments-area .comment-form input[type="url"],
.hops-comments-area .comment-form textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-sm);
	background: var(--bg-white);
	color: var(--text-heading);
	box-sizing: border-box;
}

.hops-comments-area .form-submit input[type="submit"] {
	padding: 10px 22px;
	border: none;
	border-radius: var(--radius-sm);
	background: var(--color-primary);
	color: var(--color-on-primary);
	font-size: 0.88rem;
	font-weight: 700;
	cursor: pointer;
}

.hops-comments-area .form-submit input[type="submit"]:hover {
	background: var(--color-primary-hover);
}

.hops-single-after {
	display: flex;
	flex-direction: column;
}

.hops-single-block--donate,
.hops-single-block--social {
	display: none;
}

@media (max-width: 991px) {
	.hops-single-block--donate,
	.hops-single-block--social {
		display: block;
	}

	.hops-single-sidebar .hops-donate-side-box,
	.hops-single-sidebar .hops-follow-box {
		display: none;
	}
}

/* ==========================================================================
   Right Sticky Sidebar (4 Blocks)
   ========================================================================== */
.hops-single-sidebar {
	position: static;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hops-side-box {
	padding: 20px;
	background: var(--bg-white);
	border: 1px solid var(--border-soft);
}

.hops-side-box__title {
	margin: 0 0 12px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--text-heading);
}

/* Khối 1: Author Bio */
.hops-author-box {
	text-align: center;
}

.hops-author-box__avatar {
	width: 78px;
	height: 78px;
	margin: 0 auto 12px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--bg-surface);
	border: 1px solid var(--border-soft);
	display: flex;
	align-items: center;
	justify-content: center;
}

.hops-author-box__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hops-author-box__monogram {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--text-heading);
}

.hops-author-box__name {
	margin: 0 0 8px;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--text-heading);
}

.hops-author-box__bio {
	margin: 0 0 12px;
	font-size: 0.86rem;
	line-height: 1.55;
	color: var(--text-body);
}

.hops-author-box__link {
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--color-primary);
	text-decoration: none;
}

.hops-author-box__link:hover {
	text-decoration: underline;
}

/* Khối 2: Follow Us */
.hops-follow-icons {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 8px;
}

.hops-follow-icon {
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-surface);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-sm);
	color: var(--text-heading);
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hops-follow-icon:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-on-primary);
}

/* Khối 4: Donate CTA Box */
.hops-side-box.hops-donate-side-box {
	background-color: var(--text-heading);
	border-color: var(--text-heading);
	color: var(--color-on-primary);
}

.hops-donate-inline {
	margin-top: 22px;
}

.hops-donate-side-box .hops-side-box__title,
.hops-donate-side-box .hops-donate-side-box__desc {
	color: var(--color-on-primary);
}

body.hops-theme .hops-donate-side-box .hops-btn--primary,
body.hops-theme .hops-donate-side-box .hops-btn--primary:focus {
	background-color: var(--color-on-primary);
	border-color: var(--color-on-primary);
	color: var(--text-heading);
}

body.hops-theme .hops-donate-side-box .hops-btn--primary:hover,
body.hops-theme .hops-donate-side-box .hops-btn--primary:focus-visible {
	background-color: var(--bg-white);
	border-color: var(--bg-white);
	color: var(--text-heading);
}

body.hops-theme .hops-donate-side-box .hops-btn--secondary,
body.hops-theme .hops-donate-side-box .hops-btn--secondary:focus {
	background-color: transparent;
	border: 1px solid var(--color-on-primary);
	color: var(--color-on-primary);
}

body.hops-theme .hops-donate-side-box .hops-btn--secondary:hover,
body.hops-theme .hops-donate-side-box .hops-btn--secondary:focus-visible {
	background-color: rgba(248, 242, 236, 0.16);
	border-color: var(--color-on-primary);
	color: var(--color-on-primary);
}

.hops-donate-side-box .hops-btn:focus-visible {
	outline-color: var(--color-on-primary);
}

@media (min-width: 992px) {
	.hops-donate-side-box {
		position: sticky;
		top: calc(var(--header-offset, 0px) + var(--space-6));
		align-self: stretch;
	}
}

.hops-donate-side-box__desc {
	margin: 0 0 14px;
	font-size: 0.86rem;
	line-height: 1.5;
	color: var(--text-body);
}

.hops-donate-side-box__btns {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Khối 4: Related Posts */
.hops-related-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hops-related-item {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
}

.hops-related-item__thumb {
	display: block;
	width: 64px;
	height: 64px;
	overflow: hidden;
	background: var(--bg-surface);
	border: 1px solid var(--border-soft);
}

.hops-related-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hops-related-item__cat {
	display: block;
	font-size: var(--text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-primary);
	margin-bottom: 2px;
}

.hops-related-item__title {
	display: block;
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--text-heading);
	text-decoration: none;
}

.hops-related-item__title:hover {
	color: var(--color-primary);
}

@media (max-width: 991px) {
	.hops-single-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.hops-single-sidebar {
		position: static;
	}
}

@media (max-width: 767px) {
	body.hops-theme .hops-comments-area ol.children {
		padding-left: 12px;
	}

	.hops-carousel-track {
		-webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
		mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
	}

	.hops-carousel-card {
		flex: 0 0 82%;
	}
}



.hops-glance-list--5 {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.hops-glance-list--5 .hops-glance-row {
	grid-column: span 2;
}

.hops-glance-list--5 .hops-glance-row:nth-child(n+4) {
	grid-column: span 3;
}

@media (max-width: 639px) {
	.hops-glance-list--5 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hops-glance-list--5 .hops-glance-row,
	.hops-glance-list--5 .hops-glance-row:nth-child(n+4) {
		grid-column: auto;
	}

	.hops-glance-list--5 .hops-glance-row:last-child {
		grid-column: 1 / -1;
	}
}

.hops-single-hero {
	margin: 0 0 22px;
}

.hops-single-hero img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--radius-md);
}

/* YouTube click-to-load facade */
.crochet-video-wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 12px;
	margin: 20px 0;
}

.hops-yt-facade {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 12px;
	background: #2b2420;
	margin: 20px 0;
}

.crochet-video-wrapper > .hops-yt-facade {
	position: absolute;
	inset: 0;
	height: 100%;
	aspect-ratio: auto;
	margin: 0;
}

.hops-yt-facade.is-no-thumb {
	background: linear-gradient(135deg, #f3ede6 0%, #e7dcd0 100%);
}

.hops-yt-facade__thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hops-yt-facade__btn {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: rgba(20, 16, 13, 0.22);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
}

.hops-yt-facade.is-no-thumb .hops-yt-facade__btn {
	background: transparent;
}

.hops-yt-facade__btn:hover,
.hops-yt-facade__btn:focus-visible {
	background: rgba(20, 16, 13, 0.36);
}

.hops-yt-facade__btn:focus-visible {
	outline: 2px solid var(--accent, #c97a63);
	outline-offset: -2px;
}

.hops-yt-facade__play {
	width: 64px;
	height: 44px;
	border-radius: 12px;
	background: rgba(20, 16, 13, 0.82);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.hops-yt-facade__btn:hover .hops-yt-facade__play,
.hops-yt-facade__btn:focus-visible .hops-yt-facade__play {
	transform: scale(1.06);
	background: var(--accent, #c97a63);
}

.hops-yt-facade iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* ==========================================================================
   Print Styles (@media print)
   ========================================================================== */
@media print {
	.hops-header,
	.hops-mega-menu,
	.hops-drawer,
	.hops-drawer-backdrop,
	.site-footer,
	.hops-cookie-bar,
	.hops-cookie-modal,
	.hops-donate-modal,
	.hops-donate-inline,
	.hops-donate-btn,
	.hops-nl-modal,
	.hops-back-to-top,
	.hops-single-sidebar,
	.hops-social-bar,
	.hops-newsletter-block,
	.hops-carousel-section,
	.hops-comments-area,
	.hops-single-tags,
	.hops-pin-save-btn,
	.hops-print-btn,
	.hops-heart-btn,
	.hops-single-header__actions,
	.crochet-video-wrapper,
	.hops-yt-facade {
		display: none !important;
	}

	body {
		background: var(--bg-white) !important;
		color: #000000 !important;
		font-size: 11pt !important;
	}

	.hops-single-page,
	.hops-single-container {
		padding: 0 !important;
		margin: 0 !important;
		max-width: 100% !important;
	}

	.hops-single-layout {
		display: block !important;
	}

	.hops-single-main {
		width: 100% !important;
	}

	.hops-single-title {
		font-size: 20pt !important;
		color: #000000 !important;
	}

	.hops-single-content,
	.hops-single-content :where(h2, h3, h4) {
		color: #000000 !important;
	}

	h2, h3, li {
		page-break-inside: avoid;
		break-inside: avoid;
	}

	p, li {
		orphans: 3;
		widows: 3;
	}

	.hops-print-only {
		display: block !important;
		margin-top: 24px;
		padding-top: 12px;
		border-top: 1px solid #999999;
		font-size: 9.5pt;
		color: #333333;
	}
}

