/* Single post categories and tags */
.superb-single-post-tags-categories .taxonomy-post_tag, 
.superb-single-post-tags-categories .taxonomy-category {
	margin:0px !important;
}
.superb-single-post-tags-categories .taxonomy-post_tag a, 
.superb-single-post-tags-categories .taxonomy-category a{
	border-radius: 5px;
	border:1px solid var(--wp--preset--color--mono-3);
	padding: 5px 10px;
	text-decoration:none !important;
	display:inline-block;
	margin-right:5px !important;
	margin-bottom:8px !important;
	color: var(--wp--preset--color--mono-2);
}
.superb-single-post-tags-categories .taxonomy-post_tag a:hover, 
.superb-single-post-tags-categories .taxonomy-category a:hover {
	border:1px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}
/* Contact us boxes */
.column-parent-border-radius .wp-block-column {
	border-radius:20px;
}

/* Footer one */
.superbthemes-footer-one .wp-block-navigation{
	margin-top:0px !important;
}

/* Off canvas close button fix */
.wp-block-navigation__responsive-container.is-menu-open {
	padding:20px !important;
}

/* Comments start */
.wp-block-comments #reply-title,
.wp-block-comments h2#comments {
	font-size: 26px;
}

.wp-block-comments p.logged-in-as,
.wp-block-comments p.comment-notes,
.wp-block-comments label {
	font-size:16px;
}
.wp-block-comments .wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]), 
.wp-block-comments .wp-block-post-comments-form textarea {
	padding: 10px 15px;
	font-size: 15px;
}
.wp-block-post-comments-form .comment-form-cookies-consent #wp-comment-cookies-consent {
	margin-top:3px;
}
.comment-form input:not([type=submit]), 
.comment-form textarea {
	border-radius:5px;
	border:1px solid var(--wp--preset--color--mono-2);
}

/* Remove template margin */
.wp-block-template-part {
	margin-top: 0px !important;
}

@media only screen and (max-width: 768px) {
	/* navigation-004 start */
	.superbthemes-navigation-004 .superbthemes-navigation-004-columns-wrapper .superbthemes-navigation-004-columns-button {
		display: none !important;
	}
	.superbthemes-navigation-004 .superbthemes-navigation-004-columns-wrapper .superbthemes-navigation-004-columns-logo {
		flex-basis: 40% !important;
	}
	.superbthemes-navigation-004 .superbthemes-navigation-004-columns-wrapper .superbthemes-navigation-004-columns-nav {
		flex-basis: 60% !important;
	}
	.superbthemes-navigation-004 .superbthemes-navigation-004-columns-wrapper .superbthemes-navigation-004-columns-nav .wp-block-navigation__container{
		justify-content: end !important;
	}
	.superbthemes-navigation-004 .superbthemes-navigation-004-headline {
		word-break:break-all !important;
	}


	/* features-005 start */
	.superbthemes-features-005 .wp-block-columns .wp-block-column{
		max-width: 48% !important;
		width: 100% !important;
	}

	/* footer-001 start */
	.superbthemes-footer-001 {
		text-align: center;
	}
	.superbthemes-footer-001 ul {
		justify-content: center!important;
	}
}

@media only screen and (max-width: 599px) { 
	/* navigation-004 start */
	.has-modal-open .wp-block-navigation .wp-block-navigation__responsive-dialog { 
		justify-content: center !important; 
		display: flex; 
	}
	.superbthemes-navigation-004 .superbthemes-navigation-004-columns-wrapper .superbthemes-navigation-004-columns-nav .wp-block-navigation__container {
		align-items:center !important;
	}
	.superbthemes-navigation-004 .superbthemes-navigation-004-columns-wrapper .superbthemes-navigation-004-columns-nav {
		flex-basis: 20% !important;
	}
	.superbthemes-navigation-004 .superbthemes-navigation-004-columns-wrapper .superbthemes-navigation-004-columns-logo {
		flex-basis: 80% !important;
	}
	.superbthemes-navigation-004 .superbthemes-navigation-004-columns-wrapper .superbthemes-navigation-004-columns-nav nav {
		justify-content: end !important;
		display:flex !important;
	}
	.superbthemes-navigation-004 .superbthemes-navigation-004-headline {
		font-size:38px !important;
	}

	/* features-005 start */
	.superbthemes-features-005 .wp-block-columns .wp-block-column{
		max-width: 100% !important;
	}
	.superbthemes-features-005 .wp-block-columns .wp-block-column .wp-block-group {
		justify-content: center !important;
		flex-direction: column !important;
		flex-wrap: wrap !important;
		align-items: center !important;
	}


/* Navigation superbthemes navigation two columns */
.superbthemes-navigation-two-columns .superbthemes-navigation-two-columns-left {
	flex-basis: 80% !important;
}
.superbthemes-navigation-two-columns .superbthemes-navigation-two-columns-right {
	flex-basis: 20% !important;
}
.superbthemes-navigation-two-columns .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
	align-self: center;
}
.superbthemes-navigation-two-columns .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container li,
.superbthemes-navigation-two-columns .is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container li .wp-block-navigation-item__content {
	align-self: center;
}
}

/* Blog Feed One  */
.blog-feed-one .wp-block-post-featured-image {
	min-width:40% !important;
	width:40%;
}
.blog-feed-one .wp-block-query-pagination-numbers>a,
.blog-feed-one .wp-block-query-pagination-numbers>span {
	border-radius: 3px;
	border:1px solid var(--wp--preset--color--mono-3);
	padding: 5px 10px;
}
.blog-feed-one .wp-block-query-pagination-numbers>span.current {
	opacity: 0.5;
}
.blog-feed-one .wp-block-query-pagination-numbers>span.page-numbers.dots {
	border: 0px;
	padding: 5px 4px;
}
@media only screen and (max-width: 750px) {
	.blog-feed-one .wp-block-post-featured-image {
		min-width:100% !important;
		width:100%;
	}
	.blog-feed-one .has-post-thumbnail .wp-block-group{
		-ms-flex-wrap:wrap !important;
		flex-wrap:wrap !important;
	}
	.blog-feed-one .wp-block-query-pagination-numbers {
		display:none;
	}
}
/* Featured post banner */
@media only screen and (max-width: 781px) { 
	.featured-post-banner .wp-block-social-links {
		justify-content: center !important;
	}
	.featured-post-banner .wp-block-post-template .wp-block-group {
		justify-content: center !important;
	}
}


/* Full width page template  */
.page-template-page-full-width .entry-content {
	margin-top: 0px;
}


/* Navigation three */
@media only screen and (max-width: 1024px) {
	.superbthemes-navigation-three .superbthemes-navigation-three-columns-wrapper .superbthemes-navigation-three-columns-button {
		display: none !important;
	}
	.superbthemes-navigation-three .superbthemes-navigation-three-columns-wrapper .superbthemes-navigation-three-columns-logo {
		flex-basis: 40% !important;
	}
	.superbthemes-navigation-three .superbthemes-navigation-three-columns-wrapper .superbthemes-navigation-three-columns-nav {
		flex-basis: 60% !important;
	}
	.superbthemes-navigation-three .superbthemes-navigation-three-columns-wrapper .superbthemes-navigation-three-columns-nav .wp-block-navigation__container{
		justify-content: end !important;
	}
	.superbthemes-navigation-three .superbthemes-navigation-three-headline {
		word-break:break-all !important;
	}
}
@media only screen and (max-width: 599px) { 
	.superbthemes-navigation-three .superbthemes-navigation-three-columns-wrapper .superbthemes-navigation-three-columns-nav .wp-block-navigation__container {
		align-items:center !important;
	}
	.superbthemes-navigation-three .superbthemes-navigation-three-columns-wrapper .superbthemes-navigation-three-columns-nav .wp-block-navigation__container li a {
		font-size:18px;
		color:black !important;
	}
	.superbthemes-navigation-three .superbthemes-navigation-three-columns-wrapper .superbthemes-navigation-three-columns-nav {
		flex-basis: 20% !important;
	}
	.superbthemes-navigation-three .superbthemes-navigation-three-columns-wrapper .superbthemes-navigation-three-columns-logo {
		flex-basis: 80% !important;
	}
	.superbthemes-navigation-three .superbthemes-navigation-three-columns-wrapper .superbthemes-navigation-three-columns-nav nav {
		justify-content: end !important;
		display:flex !important;
	}
	.superbthemes-navigation-three .superbthemes-navigation-three-headline {
		font-size:38px !important;
	}
}


/* Black style nav fix */
@media only screen and (max-width: 599px) { 
	.wp-block-navigation__responsive-close,	
	.wp-block-navigation__container li a {
		font-size:18px;
		color:black !important;
	}
}
/* ==========================================================================
   CENO Refresh — mosaic archive grid + site-wide motion
   Added by Claude for the ceno.org.uk visual refresh project.
   ========================================================================== */

/* Smooth scrolling, respecting reduced-motion users */
:root { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }

/* Generic hover motion for links/buttons/nav */
a, .wp-block-button__link, .wp-block-navigation-item__content {
  transition: color .3s ease, background-color .3s ease, transform .25s ease, box-shadow .3s ease;
}
.wp-block-button__link:hover, .wp-block-button__link:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.wp-block-navigation-item__content { position: relative; }
.wp-block-navigation-item__content::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -4px;
  height: 2px; background: currentColor; transition: right .3s ease;
}
.wp-block-navigation-item__content:hover::after { right: 0; }

/* ---- Scroll-reveal (class toggled by inline JS, safe no-op without it) ---- */
@media (prefers-reduced-motion: no-preference) {
  .ceno-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
  .ceno-reveal.is-inview { opacity: 1; transform: none; }
}

/* ==========================================================================
   Mosaic / bento grid for archive feeds (Articles, Policy Briefs, Quick Bytes)
   ========================================================================== */
.blog-feed-one .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 1.5rem;
  list-style: none;
  padding-left: 0;
  margin: 0 0 2rem 0;
}
.blog-feed-one .wp-block-post-template > li.wp-block-post {
  margin: 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--wp--preset--color--featured);
  box-shadow: 0 3px 14px rgba(0,0,0,.08);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease;
}
.blog-feed-one .wp-block-post-template > li.wp-block-post:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.16);
  z-index: 2;
}
.blog-feed-one .wp-block-post-template > li:nth-child(6n+1) { grid-column: span 4; grid-row: span 2; }
.blog-feed-one .wp-block-post-template > li:nth-child(6n+2) { grid-column: span 2; grid-row: span 1; }
.blog-feed-one .wp-block-post-template > li:nth-child(6n+3) { grid-column: span 2; grid-row: span 1; }
.blog-feed-one .wp-block-post-template > li:nth-child(6n+4) { grid-column: span 2; grid-row: span 1; }
.blog-feed-one .wp-block-post-template > li:nth-child(6n+5) { grid-column: span 2; grid-row: span 1; }
.blog-feed-one .wp-block-post-template > li:nth-child(6n)   { grid-column: span 2; grid-row: span 1; }

/* Card inner: turn the horizontal image+text row into a full-bleed photo card */
.blog-feed-one .wp-block-post-template > li > .wp-block-group {
  display: block !important;
  height: 100%;
  width: 100%;
  position: relative;
  padding: 0 !important;
  margin: 0 !important;
}
.blog-feed-one .wp-block-post-template > li .wp-block-post-featured-image {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}
.blog-feed-one .wp-block-post-template > li .wp-block-post-featured-image a {
  display: block; width: 100%; height: 100%;
}
.blog-feed-one .wp-block-post-template > li .wp-block-post-featured-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.blog-feed-one .wp-block-post-template > li:hover .wp-block-post-featured-image img {
  transform: scale(1.08);
}
.blog-feed-one .wp-block-post-template > li .wp-block-post-featured-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 35%, rgba(10,10,10,.82) 100%);
}
.blog-feed-one .wp-block-post-template > li > .wp-block-group > div.wp-block-group {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.1rem 1.25rem 1.35rem !important;
  margin: 0 !important;
}
.blog-feed-one .wp-block-post-template h2.wp-block-post-title,
.blog-feed-one .wp-block-post-template h2.wp-block-post-title a,
.blog-feed-one .wp-block-post-template .wp-block-post-date,
.blog-feed-one .wp-block-post-template .wp-block-post-date time,
.blog-feed-one .wp-block-post-template .wp-block-post-author,
.blog-feed-one .wp-block-post-template .wp-block-post-excerpt {
  color: #fff !important;
}
.blog-feed-one .wp-block-post-template .wp-block-post-date,
.blog-feed-one .wp-block-post-template .wp-block-post-author {
  opacity: .85;
}
.blog-feed-one .wp-block-post-template h2.wp-block-post-title {
  font-size: clamp(1.05rem, 1.4vw, 1.5rem) !important;
  line-height: 1.25 !important;
  margin: 0 0 .35rem !important;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-feed-one .wp-block-post-template > li:nth-child(6n+1) h2.wp-block-post-title {
  font-size: clamp(1.4rem, 2.2vw, 2.1rem) !important;
  -webkit-line-clamp: 4;
}
.blog-feed-one .wp-block-post-template .wp-block-post-excerpt {
  font-size: .9rem !important;
  margin-top: .4rem !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-feed-one .wp-block-post-template > li:not(:nth-child(6n+1)) .wp-block-post-excerpt {
  display: none;
}

@media only screen and (max-width: 900px) {
  .blog-feed-one .wp-block-post-template { grid-template-columns: repeat(2, 1fr) !important; }
  .blog-feed-one .wp-block-post-template > li { grid-column: span 1 !important; grid-row: span 1 !important; }
  .blog-feed-one .wp-block-post-template > li:nth-child(6n+1) { grid-column: span 2 !important; }
}
@media only screen and (max-width: 560px) {
  .blog-feed-one .wp-block-post-template { grid-template-columns: 1fr !important; grid-auto-rows: 260px; }
  .blog-feed-one .wp-block-post-template > li { grid-column: span 1 !important; }
}

/* Sidebar 'Popular' lists: subtle lift + tint on hover, no full mosaic */
.superb-addons-hide-on-mobile .wp-block-post-template > li.wp-block-post {
  transition: transform .3s ease, background-color .3s ease;
  border-radius: 12px;
}
.superb-addons-hide-on-mobile .wp-block-post-template > li.wp-block-post:hover {
  background: var(--wp--preset--color--featured);
  transform: translateX(4px);
}

/* ==========================================================================
   CENO Refresh v2 — remove archive sidebar, editorial-grade type scale
   ========================================================================== */

/* Drop the search / Popular / tag-filter sidebar on archive feeds and let
   the mosaic use the full content width */
.wp-block-columns:has(.blog-feed-one) {
  display: block !important;
}
.wp-block-columns:has(.blog-feed-one) > .wp-block-column {
  width: 100% !important;
  flex-basis: 100% !important;
  max-width: 100% !important;
}
.wp-block-columns:has(.blog-feed-one) > .wp-block-column:not(:has(.blog-feed-one)) {
  display: none !important;
}

/* Re-tune the grid now that it spans the full width */
.blog-feed-one .wp-block-post-template {
  grid-auto-rows: 260px !important;
  gap: 1.25rem !important;
}
@media only screen and (max-width: 900px) {
  .blog-feed-one .wp-block-post-template { grid-auto-rows: 230px !important; }
}
@media only screen and (max-width: 560px) {
  .blog-feed-one .wp-block-post-template { grid-auto-rows: 230px !important; gap: 1rem !important; }
}

/* Calmer, editorial-grade type scale for the mosaic cards */
.blog-feed-one .wp-block-post-template > li > .wp-block-group > div.wp-block-group {
  padding: 1rem 1.15rem 1.15rem !important;
}
.blog-feed-one .wp-block-post-template h2.wp-block-post-title {
  font-size: .95rem !important;
  font-weight: 600 !important;
  line-height: 1.32 !important;
  letter-spacing: -.005em;
  margin: 0 0 .3rem !important;
  -webkit-line-clamp: 2;
}
.blog-feed-one .wp-block-post-template > li:nth-child(6n+1) h2.wp-block-post-title {
  font-size: clamp(1.05rem, 1.3vw, 1.35rem) !important;
  -webkit-line-clamp: 3;
}
.blog-feed-one .wp-block-post-template .wp-block-post-date,
.blog-feed-one .wp-block-post-template .wp-block-post-author {
  font-size: .66rem !important;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600 !important;
  opacity: .82;
}
.blog-feed-one .wp-block-post-template .wp-block-post-excerpt {
  font-size: .78rem !important;
  line-height: 1.5 !important;
  opacity: .85;
  margin-top: .3rem !important;
  font-weight: 400 !important;
}

/* Accessible focus state to match the hover treatment */
.blog-feed-one .wp-block-post-template > li.wp-block-post:focus-within {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 3px;
}

/* ==========================================================================
   CENO Refresh v3 — higher-specificity fix for sidebar removal
   (a plugin/theme rule elsewhere was winning the flex/display fight)
   ========================================================================== */
.wp-block-columns.wp-block-columns.wp-block-columns:has(.blog-feed-one) {
  display: block !important;
}
.wp-block-columns.wp-block-columns.wp-block-columns:has(.blog-feed-one) > .wp-block-column {
  width: 100% !important;
  flex-basis: 100% !important;
  max-width: 100% !important;
}
.wp-block-columns.wp-block-columns.wp-block-columns:has(.blog-feed-one) > .wp-block-column:not(:has(.blog-feed-one)) {
  display: none !important;
}
