/*
Theme Name: PatrickMcnutt
Theme URI: https://patrickmcnutt.com
Author: Phil Boulton
Author URI: philboulton.com
Description: The Patrick Mcnutt theme is designed to be flexible, versatile and applicable to any website. Its collection of templates and patterns tailor to different needs, such as presenting a business, blogging and writing or showcasing work. A multitude of possibilities open up with just a few adjustments to color and typography. Patrick Mcnutt comes with style variations and full page designs to help speed up the site building process, is fully compatible with the site editor, and takes advantage of new design tools introduced in WordPress 6.4.
Requires at least: 7.0
Tested up to: 7.1.3
Requires PHP: 7.0
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: patrickmcnutt
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

p {
	overflow-wrap: anywhere;
}

.wp-block-categories li {
    margin-bottom: 0rem;
}

.taxonomy-category a {
    color: var(--wp--preset--color--base)!important;
    text-decoration: none;
}

.taxonomy-category a:hover {
    color: var(--wp--preset--color--base)!important;
    text-decoration: none;
}

.wp-site-blocks *:focus {
    outline-width: 0;
    outline-style: none;
}

/* Pagination Styles
---------------------------------------- */
.wp-block-query-pagination-numbers a {
	padding: 10px 15px;
    margin: 2px;
    background-color: var(--wp--preset--color--base);
    text-decoration: none;
    color: var(--wp--preset--color--base-3);
    border-radius: .33rem;
    border-color: var(--wp--preset--color--base-3);
    border-width: 2px;
    border-style: solid;
}

.wp-block-query-pagination-numbers a:hover {
	padding: 10px 15px;
    margin: 2px;
    background-color: #fff;
    text-decoration: none;
    color: var(--wp--preset--color--primary-base);
    border-color: var(--wp--preset--color--base-3);
}

.wp-block-query-pagination-numbers .current{
	padding: 10px 15px;
    margin: 2px;
    background-color: var(--wp--preset--color--base-3);
    text-decoration: none;
    color: var(--wp--preset--color--primary-base);
    border-color: var(--wp--preset--color--base-3);
    border-width: 2px;
    border-style: solid;
    border-radius: .33rem;
}

.wp-block-query-pagination-next, .wp-block-query-pagination-previous, .wp-block-post-navigation-link a  {
     color: var(--wp--preset--color--base-3);
}

.article--panel {
    border-radius: 8px;
    -webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, .1);
    box-shadow: 0 1px 6px rgba(0, 0, 0, .1);
}

footer {
    margin-top: 0;
}

/* Cover Styles */
.wp-block-cover .wp-block-cover__inner-container a,
.wp-block-cover-image .wp-block-cover__inner-container a {
	color: var( --wp--preset--color--base-3 ); /* swap for whichever link colour/variable you use */
}

h1.header--hero-text, h2.header--hero-text{
    max-width: 900px;
}

.homepage-post-gaps ul, .query-grid ul{
    gap: min(30px);
}

.is-style-pill a{
    background-color: var(--wp--preset--color--accent-5);
    color: var(--wp--preset--color--base)!important;
    padding: 6px 8px;
}

.single-post-category a {
    border-radius: 100px; 
    border: 1px solid var(--wp--preset--color--base-4);
    padding: 5px 8px;
    color: var(--wp--preset--color--base)!important;
}

.single-post-category a:hover, .single-post-category a:focus  {
    background-color: var(--wp--preset--color--base-4);
    color: var(--wp--preset--color--base)!important;
}

/* Adds space and aligns the icon with the button text */

.wp-block-breadcrumbs a {
	color: var(--wp--preset--color--base)!important;
    text-decoration: none;
}

.wp-block-breadcrumbs [aria-current="page"] {
	color: var(--wp--preset--color--base-5);
}


@media (max-width: 767px) { /* Adjust the breakpoint as needed */
    .wp-block-column.hero-image {
      display: none !important;
    }
  }

ul.latest-posts {
    padding-top: var(--wp--preset--spacing--40);
}

ul.latest-posts .wp-block-latest-posts__post-title{
    font-size: var(--wp--preset--font-size--x-large) !important;
    word-break: break-word;
    margin-bottom: var(--wp--preset--spacing--10);
    margin-top: var(--wp--preset--spacing--10);
    font-weight: 500;
    line-height: 1.15;
    padding-top: var(--wp--preset--spacing--40);
    padding-bottom: 0;
    text-decoration: none;
    font-family: var(--wp--preset--font-family--primary);
 } 
ul.latest-posts .wp-block-latest-posts__post-excerpt{
    margin-top: 1rem;
    margin-bottom: var(--wp--preset--spacing--60);
    padding-bottom: var(--wp--preset--spacing--50);
    border-bottom: 1px solid var(--wp--preset--color--accent-5);
}

.box--drop-shadow{
    filter: drop-shadow(0.4rem 0.4rem #eee);
}

.hero-text-shadow {
    filter: drop-shadow(2px 1px 1px #000);
}
.header-title {
    text-shadow: 3px 2px #034055;
}

/*.front-page-link a::after {
    display:block;
    position:relative;
    left:0;
    top:0;
    width:100%;
    height:100%;
    content:'';
}*/


.front-page-link a{
    text-decoration: none!important;
}

.front-page-link a::after {
    content: "";
    display: inline-block;
    width: 15px;
    height: 14px;
    margin-left: 8px;
    /* Replace the URL below with your actual uploaded icon file path */
    background-image: url('../../../wp-content/themes/patrickmcnutt/assets/images/play-button.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.icon-size-28 img {
  width: 28px !important;
  height: auto !important;
  object-fit: contain !important;
}

.icon-size-48 img {
  width: 48px !important;
  height: auto !important;
  object-fit: contain !important;
}

.front-page-posts li + li, .blog-page-posts li + li {
	border-top: 1px solid var(--wp--preset--color--accent-2);
	padding-top: 1rem;
	margin-top: 1rem;
}


/*.is-full-link {
	position: relative;


	.wp-block-cover__inner-container,
	.wp-block-post-title {
		position: static;
	}

	.wp-block-post-title a::before {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		content: "";
	}
}*/

/* Blue colour: #4c77cb or #578db7 */





/* ==========================================================================
   Social Links Card - add this to your theme's style.css (or an enqueued
   stylesheet). Pairs with patterns/social-links.html.
   ========================================================================== */

.social-links-card {
	margin-inline: auto;
	border-radius: var( --social-links-radius );
	overflow: hidden;
	background-color: var(--wp--preset--color--base-3);;
	/* Swap the gradient's second stop for your own photo to match the
	   reference: background-image: linear-gradient(...), url('your-image.jpg'); */
	background-image: linear-gradient( rgba( 10, 6, 6, 0.55 ), rgba( 10, 6, 6, 0.8 ) );
	background-size: cover;
	background-position: center;
	padding: 0;
}

.social-links-list {
	display: flex;
	flex-direction: column;
}

.social-links-row.social-links-row {
	display: grid;
	grid-template-columns: 64px 1fr;
	align-items: center;
	column-gap: 0px;
	padding: 12px 5px;
}

.social-links-row {
	margin-block: 0;
    border-top: 1px solid var(--wp--preset--color--accent-2);
    border-bottom: 1px solid var(--wp--preset--color--accent-2);
    column-gap: 0px;
}

/* Hairline divider between rows only — none above the first, none below the last */
.social-links-row + .social-links-row {
	border-top: 1px solid rgba( 255, 255, 255, 0.14 );
}

.social-links-row__icon {
	display: flex;
	justify-content: center;
	align-items: center;
	justify-self: center;
	width: 40px;
	height: 40px;
	color: #ffffff;
}

.social-links-row__icon svg {
	width: 100%;
	height: 100%;
}

.social-links-row__text {
	text-align: center;
}

.social-links-row__title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
    color: var(--wp--preset--color--base)!important;
}

.social-links-row__title a {
	color: inherit;
	text-decoration: none;
    color: var(--wp--preset--color--base)!important;
}

.social-links-row__title a:hover,
.social-links-row__title a:focus-visible {
	text-decoration: none;
}

.social-links-row__url {
	margin: 0;
	font-size: 12px;
    color: var(--wp--preset--color--contrast-5)!important;
	word-break: break-word;
}

.social-links-row {
	position: relative;
	transition: background-color 0.15s ease;
}

.social-links-row:hover {
	background-color: #4c77cb;
    border-top: 1px solid #2f4f8d;
    border-bottom: 1px solid #2f4f8d;
}

.social-links-row__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}


@media ( max-width: 480px ) {
	.social-links-row {
		grid-template-columns: 44px 1fr;
		padding: 14px 18px;
	}
}

@media (max-width: 600px) {
	.full-bleed-cover {
		--wp--style--root--padding-right: 0;
		--wp--style--root--padding-left: 0;
	}
}
/* ===== Hero banner ===== */
.wp-block-group.hero-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem) !important;
  color: #fff;
  background-image: url('/wp-content/uploads/patrickbanner.webp');
  background-size: cover;
  background-position: 85% center;
}

.wp-block-group.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
    var( --wp--preset--color--base-3 ) 0%,
    var( --wp--preset--color--base-3 ) 55%,
    rgba(88,118,200,.75) 65%,
    rgba(88,118,200,.3) 74%,
    rgba(88,118,200,0) 90%)
}

/* All three text blocks: flush left, white */
.wp-block-group.hero-banner .banner-eyebrow,
.wp-block-group.hero-banner .banner-title,
.wp-block-group.hero-banner .banner-tagline {
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  color: #fff !important;
}

/* Eyebrow: small uppercase label */
.wp-block-group.hero-banner .banner-eyebrow {
  font-size: .9rem !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .9;
  max-width: none !important;
  margin-bottom: 1rem !important;
}

/* Title */
.wp-block-group.hero-banner .banner-title {
  font-size: clamp(2rem, 5vw, 3.6rem) !important;
  line-height: 1.05 !important;
  font-weight: 700 !important;
  max-width: 70% !important;
  margin-bottom: 0 !important;
}
.wp-block-group.hero-banner .wp-block-heading.banner-title::after,
.wp-block-group.hero-banner h2.banner-title::after {
  content: "" !important;
  display: block !important;
  width: 64px !important;
  height: 3px !important;
  margin: 1.1rem 0 1rem !important;
  background: #F07A3A !important;
}

/* Tagline: wraps onto two lines, stays on solid blue */
.wp-block-group.hero-banner .banner-tagline {
  font-size: clamp(1rem, 1.8vw, 1.25rem) !important;
  font-weight: 400 !important;
  max-width: 28ch !important;
  margin-bottom: 0 !important;
}

/* Mobile */
@media (max-width: 700px) {
  .wp-block-group.hero-banner { background-position: 75% center; }
  .wp-block-group.hero-banner::before { background: rgba(88,118,200,.9); }
  .wp-block-group.hero-banner .banner-title,
  .wp-block-group.hero-banner .banner-tagline { max-width: 100% !important; }
  .wp-block-group.hero-banner {
    margin-bottom: 0 !important;
  }
}

.wp-block-group.hero-banner {
  padding: clamp(28px, 4vw, 48px) clamp(28px, 5vw, 56px) !important;
  background-position: right center;
}

.wp-block-group.hero-banner .banner-title {
  font-size: clamp(32px, 4.5vw, 56px) !important;
  max-width: 75% !important;
}

.wp-block-group.hero-banner .banner-eyebrow {
  font-size: 14px !important;
}

.wp-block-group.hero-banner .banner-tagline {
  font-size: clamp(16px, 1.8vw, 20px) !important;
}

.econissues--clickable {
    position: relative;
}

.econissues--clickable a {
    text-decoration: none;
    color: var(--wp--preset--color--base)!important;
}

.econissues--clickable a::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

@media only screen and (min-width: 782px) {

	/* -- Navigation -- */
	.nav-primary--mobile {
		display: none;
	}
}

@media only screen and ( max-width: 781px ) {
	/* -- Navigation -- */
	.nav-primary--desktop {
	 display: none;
	}
	
	.nav-primary--mobile {
		display: flex;
	}
}
