/* Tooltip container */
.tooltip {
	position: relative;
	display: inline-block;
	cursor: pointer;
}

/* Style for the trigger word */
.tooltip.trigger-word {
	font-weight: bold;
/* Makes the text bold */
	color: red;
/* Sets the text color to red */
}

/* Tooltip text */
.tooltip .tooltiptext {
	visibility: hidden;
	width: 300px;
/* Match the image width */
	background-color: #333;
	color: #fff;
	text-align: center;
	border-radius: 5px;
	padding: 0;
	position: absolute;
	z-index: 1;
	bottom: 125%;
/* Position above the trigger element */
	left: 50%;
	margin-left: -150px;
/* Center the tooltip text */
	opacity: 0;
	transition: opacity .3s;
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
	content: "";
	position: absolute;
	top: 100%;
/* At the bottom of the tooltip */
	left: 50%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: #333 transparent transparent;
}

/* Show the tooltip text on hover */
.tooltip:hover .tooltiptext {
	visibility: visible;
	opacity: 1;
}

/* Style for lines with valid links */
li a[href]:not([href=""]) {
	color: blue;
/* Change to any color you prefer for valid links */
	text-decoration: underline;
/* Optional: to make it clear that the text is a link */
}

/* Style for lines without valid links */
li a[href=""] {
	color: gray;
/* Change to any color you prefer for lines without links */
	text-decoration: none;
/* Optional: to remove the underline for unlinked lines */
}

/* Put this in Appearance → Customize → Additional CSS */
.novel-toc .wp-block-post {
	box-sizing: border-box;
	padding: 8px;
	background: #fff;
	border-radius: 6px;
	margin-bottom: 12px;
}

/* uniform featured images */
.novel-toc .wp-block-post-featured-image img,
.novel-toc img {
	width: 100%;
	height: 180px;
/* change to 180/220 if you prefer */
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

/* grid columns (adjust column width if needed) */
.novel-toc .wp-block-query .wp-block-post {
	width: calc(33.333% - 12px);
/* 3 columns */
	display: inline-block;
	vertical-align: top;
	margin-right: 12px;
}

/* remove right margin on every third item to keep alignment */
.novel-toc .wp-block-query .wp-block-post:nth-child(3n) {
	margin-right: 0;
}

/* responsive */
@media (max-width:900px) {
	.novel-toc .wp-block-query .wp-block-post {
		width: calc(50% - 12px);
	}
}

@media (max-width:600px) {
	.novel-toc .wp-block-query .wp-block-post {
		width: 100%;
		margin-right: 0;
	}
}