/*
 * Transcend Templates — styles migrated out of the Customiser "Additional CSS"
 * box, so nothing has to live there any more.
 *
 * This sheet is enqueued LATE (wp_enqueue_scripts priority 100, after the
 * theme), so the cascade position matches exactly how these rules behaved when
 * they were Customiser CSS. Faithful copies of the live rules — no behaviour
 * changes — except:
 *   - button font now uses the brand token var(--tt-font-display) (= Norwester)
 *   - a stray duplicate `border-width` line was removed
 *
 * Dead rules dropped during the migration (confirmed unused):
 *   - #momence-plugin-host-schedule {…}  old official Momence embed; the schedule
 *     is now rendered by the Transcend Momence plugin (.tmom-schedule)
 *   - .ics-calendar {…}                  ICS Calendar feature, no longer used
 *     (was also duplicated in the original)
 *   - .wp-block-post-template.is-layout-grid {…} + .o-posts-grid-post-image {…}
 *     Otter posts-grid layout, no longer used
 *
 * The primary-button hover border fix lives in transcend-brand.css (Buttons
 * section), not here.
 */

/* ============================================================
   Buttons — resting state, font and shape
   ============================================================ */
.wp-block-button__link {
	font-family: var(--tt-font-display) !important;
	border-width: 3px !important;
	border-style: solid !important;
	border-radius: 30px !important;
}

.wp-block-button__link:not(:hover) {
	color: var(--nv-text-color);
	background: var(--nv-primary-accent);
	border-color: var(--nv-dark-bg);
}

.tt-booking-buttons .wp-block-button,
.tt-booking-buttons .wp-block-themeisle-blocks-button {
	margin-bottom: 10px !important;
}

/* ============================================================
   Links — inherit text colour; body-content links bold+underlined
   (but never buttons); header/footer kept clean; excerpt read-more
   ============================================================ */
a {
	color: inherit;
}

.nv-content-wrap a:not(.button):not(.wp-block-button__link):not(.btn) {
	text-decoration: underline;
	font-weight: bold;
}

.nv-content-wrap a:not(.button):not(.wp-block-button__link):not(.btn):hover {
	text-decoration: none;
	font-weight: bold;
}

header a,
footer a {
	text-decoration: none;
	font-weight: inherit;
}

.description.excerpt-wrap a {
	color: inherit !important;
	font-weight: bold;
	text-decoration: underline;
}

/* ============================================================
   Blog / archive polish
   ============================================================ */
.nv-thumb-wrap {
	text-align: center;
}

.nv-thumb-wrap img {
	display: inline-block;
}

.nv-post-cover {
	background-attachment: fixed !important;
	background-size: cover !important;
	background-position: center !important;
}

.posts-wrapper article,
.nv-related-posts,
.nv-is-boxed.comment-respond,
.nv-author-biography {
	border-radius: 15px !important;
}

body.single-post.custom-background::before,
body.blog.custom-background::before,
body.archive.custom-background::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: var(--nv-site-bg);
	opacity: 0.75;
	pointer-events: none;
	z-index: -1;
}

.nv-index-posts.search ul.nv-meta-list {
	display: none !important;
}

.nv-index-posts.search .article-content-col .content {
	margin: 20px;
}

/* ============================================================
   Content lists
   ============================================================ */
.wysiwyg ul {
	list-style-type: disc;
	margin-left: 1.5em;
	padding-left: 1.5em;
	margin-bottom: 30px;
}

ul ul {
	list-style-type: circle;
}

ul ul ul {
	list-style-type: square;
}

/* ============================================================
   Sticky-header anchor offset (e.g. the #schedule booking jump)
   ============================================================ */
html {
	scroll-padding-top: 160px;
}

/* ============================================================
   Mobile: right-aligned content images go full width
   ============================================================ */
@media (max-width: 768px) {
	.wp-block-image .alignright img {
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
		display: block !important;
		float: none !important;
		margin: 0 auto 20px auto !important;
		padding: 0 15px !important;
		box-sizing: border-box;
	}

	.wp-block-image.alignright,
	.wp-block-image .alignright {
		text-align: center !important;
		margin: 0 auto 20px auto !important;
		float: none !important;
	}

	.wp-block-image.alignright figcaption,
	.wp-block-image .alignright figcaption {
		text-align: center !important;
		padding: 0 15px !important;
	}
}

/* ============================================================
   Mobile: Otter advanced-columns breathing room
   ============================================================ */
@media (max-width: 767px) {
	.wp-block-themeisle-blocks-advanced-columns {
		padding: 10px !important;
	}

	.wp-block-themeisle-blocks-advanced-column {
		margin-left: 0px !important;
		margin-right: 0px !important;
		margin-top: 10px !important;
		margin-bottom: 10px !important;
		padding: 10px !important;
	}
}
