/* = Unique Site Styles
-------------------------------------------------------------- */

/* The banner section has position:relative, making it a positioned element.
   The main content wrapper <ul> that follows it is non-positioned, so per the
   CSS painting order spec, the banner paints above the content regardless of
   DOM order. Firefox follows this strictly; Chrome is lenient with flex containers.
   Positioning the content wrapper ensures it paints above the banner via source order. */
.site-wrap-x > ul.column-group {
	position: relative;
	z-index: 1;
}

/* Homepage: prevent CSS table height distribution from inflating the blog preview.
   .height-1of1 applies height:100%!important to the left column's .column-container
   (display:table). When the flex row stretches the <li> taller than its content,
   the table inherits that height and distributes the surplus equally among its
   anonymous table rows — expanding the blog preview row far beyond its natural
   content height. height:auto makes the table size to content instead. */
@media (min-width: 1025px) {
	.home .site-wrap-x > ul.column-group > li.column.percent:first-child > .column-container {
		height: auto !important;
	}
}

/*Desktop Only*/
@media all and (min-width: 1025px) {
	html body #menu-main-menu {
		display: inline-block;
		width: auto;
		float: right;
	}
	
	
	#menu-main-menu .menu-item-has-children {
		position: relative;
	}

	#menu-main-menu .menu-item-has-children:after {
		right: -12px;
		transform: rotate(50deg);
	}
	#menu-main-menu .menu-item-has-children:before {
		right: -17px;
		transform: rotate(-50deg);
	}
	#menu-main-menu .menu-item-has-children:hover:after {
		transform: rotate(-50deg);
	}
	#menu-main-menu .menu-item-has-children:hover:before {
		transform: rotate(50deg);
	}
	#menu-main-menu .menu-item-has-children:after, #menu-main-menu .menu-item-has-children:before {
		background-color: #fff;
		content: "";
		display: block;
		height: 1px;
		position: absolute;
		top: 12px;
		transition: all 0.25s ease-in-out 0s;
		width: 8px;
	}

	html body .main-menu.nav-menu .sub-menu {
		display: block;
	}
	#menu-main-menu .menu-item-has-children .sub-menu {
		position: absolute;
		overflow: hidden;
		top: 15px;
		left: -5px;
		height: 0px;
		padding: 0px 10px 0 10px;
		background: #f5f5f9;
		width: 200px;
		z-index: 100;
		box-shadow: 0 1px 2px 0px #7f7f7f;
	}
	#menu-main-menu .menu-item-has-children .sub-menu li:first-child {
		padding-top: 10px;
	}
	#menu-main-menu .menu-item-has-children .sub-menu li {
		float: none;
		padding-bottom: 10px;
	}

	#menu-main-menu .menu-item-has-children .sub-menu li a {
		color: #55534F;
	}
	#menu-main-menu .menu-item-has-children .sub-menu li > a::after {
		background: #55534F;
	}

	#menu-main-menu .menu-item-has-children .sub-menu .sub-menu {
		position: static;
		padding-top: 0px;
		width: 200px;
		padding-left: 20px;
		box-shadow: none;
	}

	#menu-main-menu .menu-item-has-children:hover .sub-menu, #menu-main-menu .menu-item-has-children .sub-menu:hover {
		height: auto;
	}
}

/*Tablet Only*/
@media all and (min-width: 768px) and (max-width: 1024px){
	.tablet-break-container {
		width: 100vw;
		position: relative;
		left: 50%;
		right: 50%;
		margin-left: -50vw;
		margin-right: -50vw;
		padding: 0px 9px;
	}
}

/*Mobile Only*/
@media (max-width: 767px) {
	.mobile-break-container {
		width: 100vw;
		position: relative;
		left: 50%;
		right: 50%;
		margin-left: -50vw;
		margin-right: -50vw;
		padding: 0px 9px;
	}
}
.events-archive .sep-single {
	display: none;
}

.tribe-events-list-separator-month {
	padding: 0px;
	text-align: left;
}
.tribe-events-list-separator-month:after {
	border: none;
}
.tribe-events-list-separator-month span {
	padding: 0;
}
.pale-bg {
	background-color: #f1e7da;
	transition: all 0.2s ease-out;
}
.pale-bg:hover {
	background-color: #f3ede1;
}
.light-blue-bg {
	background-color: #dee4de;
	transition: all 0.2s ease-out;
}
.light-blue-bg:hover {
	background-color: #eeebe3;
}
.mild-yellow-bg{
	background-color: #f7f3eb;
}

#sidebar-content:before {
    z-index: 0;
    opacity: 0.3;
    content: '';
    position: absolute;
    right: 0;
    bottom: 2em;
    height: 400px;
    width: 45%;
    background: url(../images/trefoil-grey.png) left bottom no-repeat;
    background-size: contain;
}

#page-loop h3,
#page-loop .h3,
#sidebar-content .widget-title, body .icon-title, .tribe-events-list-separator-month {
	position: relative;
	padding-left: 30px;
}

#page-loop h3:before,
#page-loop .h3:before,
#sidebar-content .widget-title:before, body .icon-title:before, .tribe-events-list-separator-month:before {
	content: '';
    background: url(../images/open-cross-orange.png) 0 0.1em no-repeat;
    background-size: 0.78em 1em;
	height: 100%;
	width: 28px;
	left: 0;
	top: 0;
	bottom: 0;
	position: absolute;
}

#menu-button:hover .hamburger-inner, #menu-button:hover .hamburger-inner::before, #menu-button:hover .hamburger-inner::after {
	background-color: #364156;
}

.bbpress #page-loop {
	margin-top: 40px;
}

.hover-login:hover .login-popup {
	opacity: 100;
}

.login-popup {
	transition: all 0.2s ease-out;
	opacity: 0;
}

.search-form label {
	width: 64.9%;
	display: inline-block;
	vertical-align: inherit;
}
.search-form .search-submit {
	width: 25%;
	height: 43px;
	display: inline-block;
	margin-left: 20px;
	border-radius: 0px;
	padding: 0px;
}

html body div.bbp-breadcrumb, html body div.bbp-topic-tags {
    font-size: 15px;
}
.underlined-links a, .bbp-breadcrumb a {
	text-decoration: underline;
}
html body .bbp-template-notice.info {
    margin: 45px 0 25px !important;
}
.the-content-container a {
	color: #3d7278;
}
/* Banner right column: stretch trifold boxes to fill available height */
.content-block .column-container.dark-grey-bg {
	display: flex;
	flex-direction: column;
}
.trifold-headings {
	flex: 1;
}
.trifold-headings h3 {
	background: url(/wp-content/themes/contemplative-custom/images/icon-trefoil-white.png) 0 0.22em no-repeat;
    background-size: 0.9em 0.8em;
    padding: 0 0 0 1.3em;
}
#footer-gallery {
	margin-left: -20px;
	margin-right: -20px;
}
#footer-gallery .gallery-item {
	padding: 10px;
	display: inline-block;
}

#bbpress-forums {
	font-size: 14px;
}

#bbpress-forums ul.bbp-lead-topic,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-replies,
#bbpress-forums ul.bbp-search-results {
	font-size: 15px;
}

#bbpress-forums ul .bbp-reply-header{
	font-size: 14px;
}

#bbpress-forums div.bbp-template-notice p {
    font-size: 14px;
}

#bbpress-forums span.bbp-admin-links a {
    font-size: 13px;
}

#sidebar-content .mild-yellow-bg div h3:not(.widget-title) {
    color: #3d7278;
}
.site-description{
	color: #706e6b;
}
ul.li-2-column li{
	list-style: none;
}

@media all and (min-width: 1024px){
	ul.li-2-column li{
		display: inline-block;
		width: 48%;
		margin: 0;
	}
}

#sidebar-content #esp-sub-menu-2 .widget-title{
	margin: 0 15px 15px 15px;
}

#sidebar-content ul.menu,
#sidebar-content ul.menu ul.sub-menu{
	list-style: none;
	margin-bottom: 0;
	font-size: 16px;
	padding: 15px 0 15px 0;
	background-color: #f1e7da;
}

#sidebar-content ul.menu ul.sub-menu{
	padding: 0;
}

#sidebar-content ul.menu li,
#sidebar-content ul.menu ul.sub-menuli{
	margin-left: 20px;
}

#sidebar-content ul.menu li:last-child,
#sidebar-content ul.menu ul.sub-menu li:last-child{
	margin-bottom: 0;
}

#sidebar-content ul.menu li.current-menu-item{
	font-weight: 700;
}

#sidebar-content ul.menu li.current-menu-item > ul.sub-menu{
	font-weight: 400;
}

/*.post-type-archive-tribe_events .tribe-event-schedule-details .tribe-event-date-start,
.post-type-archive-tribe_events .tribe-event-schedule-details .tribe-event-date-end{
	display: block;
}*/

#menu-main-menu li.main-menu-hide-submenu ul.sub-menu{
    display: none;
}

html body .tribe-events-list-widget .tribe-event-featured {
	background: #eb870f;
}
html body .light-blue-bg:hover {
	background-color: #eeebe3;
}
span.before-quote:before {
    content: open-quote;
    font-size: 2em;
    color: #eb870f;
}
span.after-quote:after {
    content: close-quote;
    font-size: 2em;
    color: #eb870f;
}

span.quote { position:relative; }
body .flickity-viewport .h3 {
    font-size: 1.45em;
}

/* Multimedia library cards */
.multimedia-card {
	text-decoration: none;
	color: inherit;
}
.multimedia-card:hover {
	text-decoration: none;
	color: inherit;
}
.multimedia-card .multimedia-card-thumb {
	transition: opacity 0.3s ease;
}
.multimedia-card:hover .multimedia-card-thumb {
	opacity: 0.85;
}
.multimedia-card-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 20px;
	transition: background 0.3s ease;
}
.multimedia-card-icon .fa-play {
	margin-left: 3px;
}
.multimedia-card:hover .multimedia-card-icon {
	background: rgba(0, 0, 0, 0.65);
}

/* Library collection cards */
.collection-card {
	text-decoration: none;
	color: inherit;
}
.collection-card:hover {
	text-decoration: none;
	color: inherit;
}
.collection-card:hover .pale-bg {
	background-color: #f3ede1;
}
.collection-card:hover .multimedia-card-icon {
	background: rgba(0, 0, 0, 0.65);
}
.library-item-count {
	opacity: 1;
	color: #706e6b;
}

/* Library featured card */
.library-featured-card .light-grey-bg {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Library type badge (bottom-left corner of thumbnail) */
.library-type-badge {
	position: absolute;
	bottom: 8px;
	left: 8px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #55534F;
	font-size: 13px;
	z-index: 2;
	transition: background 0.3s ease;
}
.multimedia-card:hover .library-type-badge {
	background: rgba(255, 255, 255, 1);
}
.library-type-audio .library-type-badge {
	color: #3d7278;
}
.library-type-document .library-type-badge {
	color: #c0392b;
}

/* Library collections sidebar widget */
.library-collections-list {
	list-style: none;
	margin: 0;
	padding: 15px 0;
	background-color: #f1e7da;
}
.library-collections-list li {
	margin-left: 20px;
	margin-bottom: 10px;
}
.library-collections-list li:last-child {
	margin-bottom: 0;
}
.library-collections-list a {
	color: #55534F;
}
/* Active/current collection highlight */
.library-collections-list .current-collection > a {
	font-weight: bold;
	color: #3d7278;
}

/* Member header dropdown — mirrors #menu-main-menu dropdown pattern */
#member-header-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline-block;
}
#member-header-menu .menu-item-has-children {
	position: relative;
}
#member-header-menu .menu-item-has-children > a {
	display: inline-block;
	padding: 5px 20px;
	cursor: pointer;
}
#member-header-menu .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	margin-left: 6px;
	margin-bottom: 2px;
	transition: transform 0.25s ease-in-out;
}
#member-header-menu .menu-item-has-children:hover > a::after {
	transform: rotate(-135deg);
}
#member-header-menu .menu-item-has-children .sub-menu {
	position: absolute;
	top: 100%;
	right: 0;
	padding: 0 10px;
	background: #f5f5f9;
	width: 200px;
	z-index: 999;
	box-shadow: 0 1px 2px 0px #7f7f7f;
	list-style: none;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}
#member-header-menu .menu-item-has-children:hover .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
#member-header-menu .sub-menu li:first-child {
	padding-top: 10px;
}
#member-header-menu .sub-menu li {
	padding-bottom: 10px;
}
#member-header-menu .sub-menu li a {
	color: #55534F;
}
#member-header-menu .sub-menu li a:hover {
	color: #3d7278;
}

/* Library members badge */
.library-members-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #3d7278;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 4px 10px;
	z-index: 2;
}

/* Library filter bar */
.library-filter-bar {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.library-filter-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.library-filter-btn {
	display: inline-block;
	padding: 5px 16px;
	border-radius: 20px;
	border: 2px solid #3d7278;
	background: transparent;
	color: #3d7278;
	font-size: 0.88em;
	line-height: 1.4;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
	font-family: inherit;
}
.library-filter-btn:hover {
	background: rgba(81, 141, 147, 0.1);
}
.library-filter-btn.is-active {
	background: #3d7278;
	color: #fff;
}
.library-filter-all-btn {
	font-weight: 600;
	border-style: dashed;
}


/* CSS Grid layout for library archive — replaces float system for this element only */
@media (min-width: 1025px) {
	#library-item-grid {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		column-gap: 20px;
	}
	#library-item-grid > .column {
		float: none;
		width: auto;
		padding: 0;
		margin-bottom: 20px;
	}
}
@media (min-width: 768px) and (max-width: 1024px) {
	#library-item-grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		column-gap: 20px;
	}
	#library-item-grid > .column {
		float: none;
		width: auto;
		padding: 0;
		margin-bottom: 20px;
	}
}
/* Homepage blog preview: space between excerpt and Read More button */
#homepage-blog-preview .button {
	margin-top: 16px;
	display: inline-block;
	flex-shrink: 0;
}

/* Homepage blog preview: JS pushes #sidebar-whatif down to align with preview bottom */
#homepage-blog-preview {
	overflow: visible;
}

/* Homepage blog preview: flex column chain so excerpt shrinks and Read More stays visible */
@media (min-width: 1025px) {
	#homepage-blog-preview .column:last-child .column-container {
		display: flex;
		flex-direction: column;
	}
	#homepage-blog-preview .column:last-child .column-container > div {
		flex: 1;
		display: flex;
		flex-direction: column;
		min-height: 0;
	}
	#homepage-blog-preview .column:last-child .column-container > div > .kill-last-margin-bottom {
		flex: 1;
		overflow: hidden;
		min-height: 0;
	}
	/* Homepage blog preview: tighten title-to-author gap */
	#homepage-blog-preview .column:last-child .column-container > div > div:first-child {
		margin-bottom: 16px !important;
	}
	/* Homepage blog preview: card title — 2.0rem = 20px (html font-size is 62.5%, so 1rem = 10px) */
	#homepage-blog-preview .column:last-child h3 {
		font-size: 2.0rem;
		font-weight: bold;
	}
	/* Blog preview excerpt: line-clamp for clean truncation at a line boundary */
	#homepage-blog-preview .blog-preview-excerpt {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 4;
		overflow: hidden;
		margin: 0;
	}
}

/* CSS Grid layout for library landing page written-content grid — mirrors #library-item-grid */
@media (min-width: 1025px) {
	#library-written-grid {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		column-gap: 20px;
	}
	#library-written-grid > .column {
		float: none;
		width: auto;
		padding: 0;
		margin-bottom: 20px;
	}
}
@media (min-width: 768px) and (max-width: 1024px) {
	#library-written-grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		column-gap: 20px;
	}
	#library-written-grid > .column {
		float: none;
		width: auto;
		padding: 0;
		margin-bottom: 20px;
	}
}

/* Library search results: collection context label */
.collection-context {
	margin-top: 8px;
	font-size: 0.85em;
	color: #888;
}
.collection-context a {
	color: #3d7278;
	text-decoration: none;
}
.collection-context a:hover {
	text-decoration: underline;
}

/* Library search results: collections section */
.library-search-collections-section {
	margin-bottom: 30px;
}

/* CSS Grid for search result grids — mirrors #library-item-grid */
@media (min-width: 1025px) {
	#library-search-multimedia-grid,
	#library-search-written-grid {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		column-gap: 20px;
	}
	#library-search-multimedia-grid > .column,
	#library-search-written-grid > .column {
		float: none;
		width: auto;
		padding: 0;
		margin-bottom: 20px;
	}
}
@media (min-width: 768px) and (max-width: 1024px) {
	#library-search-multimedia-grid,
	#library-search-written-grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		column-gap: 20px;
	}
	#library-search-multimedia-grid > .column,
	#library-search-written-grid > .column {
		float: none;
		width: auto;
		padding: 0;
		margin-bottom: 20px;
	}
}

/* ---------- Header search toggle & dropdown panel ---------- */

/* The header needs position:relative so the absolutely-positioned
   search panel can anchor to its bottom edge via top:100%.
   z-index:10 overrides .z-index-up (z-index:1) and must exceed
   the content wrapper's z-index:1 so nav dropdowns paint above page content. */
#site-header {
	position: relative;
	z-index: 10;
}

/* Elevate header further when search is open (base z-index is now 10; this
   raises to 100 to ensure the search panel clears any floating page elements) */
#site-header.search-is-open {
	z-index: 100;
}

#header-search-toggle {
	background: none;
	border: none;
	color: inherit;
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	line-height: 0;
	padding: 6px 8px;
	margin-left: 0;
	opacity: 0.8;
	transition: opacity 0.2s ease;
	cursor: pointer;
}
#header-search-toggle:hover,
#header-search-toggle:focus-visible {
	opacity: 1;
	outline: 2px solid rgba(255, 255, 255, 0.5);
}
#header-search-toggle[aria-expanded="true"] {
	opacity: 1;
}

#header-search-panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background-color: #55534F;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding: 16px 20px;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
	box-sizing: border-box;
}
#header-search-panel.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.header-search-inner {
	display: flex;
	align-items: center;
	max-width: 640px;
	margin: 0 auto;
	gap: 8px;
}

#header-search-panel .header-search-form {
	display: flex;
	flex: 1;
	align-items: stretch;
}

#header-search-panel input[type="search"] {
	flex: 1;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-right: none;
	color: #fff;
	padding: 10px 14px;
	font-size: 16px;
	outline: none;
	border-radius: 0;
	-webkit-appearance: none;
	appearance: none;
}
#header-search-panel input[type="search"]:focus {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.6);
}
#header-search-panel input[type="search"]::placeholder {
	color: rgba(255, 255, 255, 0.55);
}
#header-search-panel input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

#header-search-panel button[type="submit"] {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-left: none;
	color: #fff;
	padding: 10px 14px;
	cursor: pointer;
	display: flex;
	align-items: center;
	line-height: 0;
	transition: background 0.2s ease;
}
#header-search-panel button[type="submit"]:hover {
	background: rgba(255, 255, 255, 0.22);
}

#header-search-close {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.65);
	cursor: pointer;
	padding: 6px;
	display: flex;
	align-items: center;
	line-height: 0;
	flex-shrink: 0;
	transition: color 0.2s ease;
}
#header-search-close:hover,
#header-search-close:focus-visible {
	color: #fff;
}

/* Override parent theme's ≤450px rule (button { width:100%; max-width:100% }).
   The submit and close buttons must stay auto-width so the flex:1 input can expand. */
#header-search-panel button[type="submit"],
#header-search-panel #header-search-close {
	width: auto !important;
	max-width: none !important;
}

@media (max-width: 767px) {
	.header-search-inner {
		max-width: 100%;
	}
}
@media (min-width: 768px) and (max-width: 1024px) {
	.header-search-inner {
		max-width: 100%;
	}
}
@media (max-width: 1024px) {
	/* The break-container (mobile-break-container / tablet-break-container) adds
	   9px padding on each side. Zero it out within the site header so the nav bar
	   and slide-down dropdown fill the full viewport width edge-to-edge. */
	#site-header .mobile-break-container,
	#site-header .tablet-break-container {
		padding-left: 0;
		padding-right: 0;
		max-width: none;
		display: block;
	}
	/* Side-by-side mobile nav bar: hamburger fills remaining space, search icon to its right. */
	#mobile-nav-bar {
		display: flex;
		align-items: stretch;
	}
	/* flex: 1 lets the hamburger expand; !important overrides parent theme's
	   max-width: 450px rule that forces all .button/button to width: 100% */
	#mobile-nav-bar #menu-button {
		flex: 1;
		width: auto !important;
		max-width: none !important;
	}
	/* Override width: 100% from parent theme ≤450px rule; size to icon touch target */
	#site-header #header-search-toggle {
		width: auto !important;
		max-width: none !important;
		display: inline-flex;
		align-items: center;
		padding: 12px 14px;
	}
}
@media (min-width: 1025px) {
	/* #mobile-nav-bar is transparent on desktop — children participate in
	   .column-container float layout as if the wrapper didn't exist */
	#mobile-nav-bar {
		display: contents;
	}
	/* Search toggle is now a direct child of .column-container (via display:contents).
	   Float right so it lands at the far right of the header, with nav items
	   floating right immediately to its left. Vertical padding matches nav item height. */
	#site-header #header-search-toggle {
		float: right;
		padding-top: 0;
		padding-bottom: 0;
		margin-left: 8px;
	}
}

/* Fix Firefox: Banner text at top / behind header.
   .height-1of1 (height:100%) fails in Firefox when parent only has min-height.
   Explicit min-height here makes top:50% in absolute-center resolve to 300px+. */
@media (min-width: 1025px) {
	.cf-banner .column-container.height-1of1 > .relative.height-1of1 {
		min-height: 600px;
	}
}

/* Card titles don't need the cross-icon treatment from #page-loop h3.
   Specificity: #page-loop .card h3 = 111 > #page-loop h3 = 101. */
#page-loop .collection-card h3,
#page-loop .multimedia-card h3 {
	padding-left: 0;
}
#page-loop .collection-card h3::before,
#page-loop .multimedia-card h3::before {
	display: none;
}

/* Full-width single library items — focused media viewing, no sidebar */
.single-multimedia #sidebar-content {
	display: none;
}
/* Expand the main content <li> — it has no ID, width comes from parent ul.column-width-2of3 */
.single-multimedia .column-group.flex-group > li.column.percent:first-child {
	width: 100% !important;
}
/* Remove the 4/5 width constraint and large right margin inside content-spacing */
.single-multimedia #content-spacing {
	width: 100% !important;
	margin-right: 0 !important;
}
/* Align breadcrumb bar to full width — width-4of5 + margin-left-auto would otherwise center it */
.single-multimedia #breadcrumb > div {
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
/* Constrain prose body text to a comfortable reading width */
.single-multimedia #page-content {
	max-width: 740px;
}


/* === CF Trefoil Trinity Knot ===
   Variables scoped to .cf-trefoil to avoid global CSS pollution.
   --knot-gap-bg must match the exact page background colour at this point
   on the page; verify in browser DevTools (expected #ffffff). */

.cf-trefoil {
	--knot-outline:   #a6acac;
	--knot-fill:      #c5c9c9;
	--knot-gap-bg:    #ffffff;  /* TODO: verify this matches computed bg in DevTools */
	--accent:         #c0603a;
	--text-primary:   #2f3433;
	--text-secondary: #5f6664;
	--text-tertiary:  #5c6666;
	--panel-bg:       #ffffff;
	--font: "Segoe UI", system-ui, -apple-system, sans-serif;

	display: flex;
	flex-direction: column;
	align-items: center;
	font-family: var(--font);
	max-width: 100%;
	margin: 0 auto;
	padding: 1rem 0;
}
.cf-trefoil svg {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
}

.cf-bo  { fill: none; stroke: var(--knot-outline); stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; }
.cf-bf  { fill: none; stroke: var(--knot-fill);    stroke-width: 17; stroke-linecap: round; stroke-linejoin: round; }
.cf-cas { fill: none; stroke: var(--knot-gap-bg);  stroke-width: 27; stroke-linecap: round; }
.cf-trace {
	fill: none;
	stroke: var(--accent);
	stroke-width: 4.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
}

.cf-ring { fill: none; stroke: var(--text-tertiary); stroke-width: 1.5; opacity: 0.2; }
.cf-lobe { outline: none; }
.cf-lobe path { fill: transparent; stroke: var(--text-secondary); stroke-width: 2.5; pointer-events: all; cursor: pointer; transition: fill .2s, stroke .2s; }
.cf-lobe text { fill: var(--text-secondary); pointer-events: none; transition: fill .2s; }
.cf-lobe .h { font-size: 20px; font-weight: 500; }
.cf-lobe .d { font-size: 13px; }
.cf-lobe:hover path,
.cf-lobe:focus path { fill: rgba(192, 96, 58, .16); stroke: var(--accent); }
.cf-lobe:hover .h,
.cf-lobe:focus .h { fill: var(--text-primary); }
.cf-trefoil svg.all .cf-lobe path { fill: rgba(192, 96, 58, .12); stroke: var(--accent); }

.cf-cbg { fill: var(--panel-bg); stroke: var(--text-tertiary); stroke-width: 1; opacity: 0.5; cursor: pointer; }
.cf-ct  { fill: var(--text-primary); font-weight: 500; text-anchor: middle; pointer-events: none; }
.cf-cl  { fill: var(--text-secondary); font-size: 12px; text-anchor: middle; pointer-events: none; }
.cf-ctr:focus { outline: none; }
.cf-ctr:focus .cf-cbg { stroke: var(--accent); stroke-width: 2; }

.cf-ctrls {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 0.25rem;
}
.cf-ctrls button {
	font: inherit;
	font-size: 15px;
	padding: 8px 18px;
	border: 1.5px solid var(--text-secondary);
	border-radius: 8px;
	background: transparent;
	color: var(--text-primary);
	cursor: pointer;
}
.cf-ctrls button.sel { border-color: var(--accent); color: var(--accent); }
.cf-status {
	margin-top: .85rem;
	font-size: 13px;
	color: var(--text-secondary);
	min-height: 18px;
	text-align: center;
}
.cf-status b { color: var(--text-primary); font-weight: 500; }
.cf-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	border: 0;
}

/* Narrow viewports: shrink in-knot text to prevent overlap with the knot band */
@media (max-width: 400px) {
	.cf-trefoil .cf-lobe .h { font-size: 13px; }
	.cf-trefoil .cf-lobe .d { font-size: 12px; }
}

/* Library sidebar: push first widget down to align with main content below the breadcrumb
   bar (height-70 = 70px). The breadcrumb renders only inside the left <li> column, so the
   right sidebar column starts 70px above the main content without this offset. box-sizing
   border-box keeps the total height at 100% of the parent <li> (set by flexbox stretch). */
.page-template-page-library-php #sidebar-content > .column-container,
.tax-library_collection #sidebar-content > .column-container {
	padding-top: 70px;
	box-sizing: border-box;
}
