/*!
 * Nepal Dining Ultimate Designer Pack — advertisement containers.
 * Every selector is prefixed .ndp- ; nothing global, nothing theme-wide.
 */
.ndp-slot {
	--ndp-gap: 28px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	clear: both;
	width: 100%;
	margin: var(--ndp-gap) auto;
	padding: 0;
	min-height: var(--ndp-reserve, 0);
	text-align: center;
}
.ndp-slot[hidden] { display: none !important; }
.ndp-slot *, .ndp-slot *::before, .ndp-slot *::after { box-sizing: border-box; }

.ndp-slot--site { margin: 18px auto; padding: 0 16px; max-width: 1240px; }
.ndp-float .ndp-slot, .ndp-slot--rail, .ndp-slot--cell { max-width: 100%; }
.ndp-slot--multi { flex-flow: row wrap; justify-content: center; }

.ndp-ad {
	position: relative;
	display: block;
	width: 100%;
	max-width: var(--ndp-w, 100%);
	margin: 0 auto;
	text-align: center;
}
.ndp-ad__label {
	display: block;
	margin: 0 0 7px;
	color: #9a9087;
	font: 600 10px/1.2 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.ndp-ad__body {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	min-height: var(--ndp-h, 0);
	border-radius: 10px;
}
.ndp-ad--adsense .ndp-ad__body,
.ndp-ad--html .ndp-ad__body,
.ndp-ad--external .ndp-ad__body { background: rgba(127, 110, 90, .06); }
.ndp-ad__body > * { max-width: 100%; }
.ndp-ad ins.adsbygoogle { display: block; width: 100%; }

.ndp-link { display: block; width: 100%; line-height: 0; text-decoration: none; border: 0; box-shadow: none; }
.ndp-picture { display: block; width: 100%; }
.ndp-slot .ndp-img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	border: 0;
	border-radius: 10px;
	box-shadow: none;
}
.ndp-ext { display: block; width: 100%; max-width: 100%; border: 0; border-radius: 10px; }

/* Text advertisement */
.ndp-slot a.ndp-text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	padding: 18px 20px;
	border: 1px solid rgba(0, 0, 0, .08);
	border-left: 4px solid var(--ndp-tac, #b23a2b);
	border-radius: 12px;
	background: var(--ndp-tbg, #fbf6ee);
	color: var(--ndp-tfg, #1f1b16);
	font: 400 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	text-align: left;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}
.ndp-slot a.ndp-text:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .45); }
.ndp-text__by { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.ndp-text__title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.ndp-text__body { opacity: .85; }
.ndp-text__cta { align-self: flex-start; margin-top: 4px; color: var(--ndp-tac, #b23a2b); font-weight: 700; }

/* Floating sidebars inside an article */
.ndp-float { margin: 0 auto 20px; max-width: 100%; }
.ndp-float .ndp-slot { margin: 0 auto; }
@media (min-width: 1024px) {
	.ndp-float { width: 300px; max-width: 42%; }
	.ndp-float--right { float: right; margin: 6px 0 20px 32px; }
	.ndp-float--left { float: left; margin: 6px 32px 20px 0; }
}

/* Article Manager sidebar integration */
.ndp-slot--rail { margin: 0 auto; }
@media (min-width: 980px) { .ndp-slot--sticky { position: sticky; top: calc(24px + var(--wp-admin--admin-bar--height, 0px)); } }

/* Listing & related cells */
.ndp-listing-cell, .ndp-related-cell { list-style: none; }
.ndp-listing-cell::marker, .ndp-related-cell::marker { content: none; }
.ndp-slot--in-loop { margin: 24px auto; }
.ndp-listing-cell .ndp-slot, .ndp-slot--cell { margin: 0 auto; justify-content: flex-start; }
.ndp-related-cell .ndp-slot { margin: 0 auto; }

.ndp-slot--manual { margin: 24px auto; }

/* Device visibility (also enforced by the script) */
@media (max-width: 767px) { .ndp-hide-mobile { display: none !important; } }
@media (min-width: 768px) and (max-width: 1023px) { .ndp-hide-tablet { display: none !important; } }
@media (min-width: 1024px) { .ndp-hide-desktop { display: none !important; } }

@media print { .ndp-slot, .ndp-float, .ndp-listing-cell, .ndp-related-cell { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .ndp-slot a.ndp-text { transition: none; } }
