/**
 * CSS Variables
 */ 
:root {
	--header-background-url: url( 
		'/wp-content/uploads/2024/04/Bridge-and-fog-from-Crissy-Field-Beach-CHIMP-CROP-1-scaled.jpeg'
	);
	--header-background-height: 23vw;
}

/**
 * Header
 */ 
.site-header {
	background-image: var( --header-background-url, url( '/wp-content/uploads/2024/02/thefrisc-header-image.jpg' ) );
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.h-sb .site-header .top-header-contain,
.h-sb .site-header .middle-header-contain {
	background: transparent;
}

.middle-header-contain {
	display: flex;
}

.middle-header-contain,
.middle-header-contain .wrapper {
	position: relative;
}

.middle-header-contain:before {
	background: rgba(0,0,0,0.2);
	content: '';
	display: block;
	inset: 0;
	position: absolute;
}

.middle-header-contain .wrapper  {
	z-index: 5;
}

.site-header .social-navigation a,
.mobile-sidebar .social-navigation a {
	align-items: center;
	background-color: #000;
	border-radius: 100%;
	display: flex;
	height: 36px;
	justify-content: center;
	margin: 0;
	transition: background-color 150ms ease-in-out;
	width: 36px;
}

.site-header .social-navigation a svg,
.mobile-sidebar .social-navigation a svg {
	margin-top: 1px;
}

.mobile-sidebar .social-navigation li a {
	display: flex;
}

.site-header .social-navigation a[href*='facebook.com'],
.mobile-sidebar .social-navigation a[href*='facebook.com'] {
	background: #0866ff;
}

.site-header .social-navigation a[href*='instagram.com'],
.mobile-sidebar .social-navigation a[href*='instagram.com'] {
	background: #d62976;
}

.h-sb .site-header .top-header-contain {
	position: absolute;
	width: 100%;
	z-index: 5;
}

.nav1 .main-menu > li > a,
.nav3 {
	text-transform: uppercase;
}

.mobile-sidebar {
	background: #111;
}

.mobile-sidebar .nav2 {
	display: none;
}

.nav3 .menu-highlight a {
	background: var( --newspack-theme-color-primary );
	border: 0;
	border-radius: 3px;
	transition: background 150ms ease-in-out;
}

.nav3 .menu-highlight a:hover {
	background: #111;
	opacity: 1;
}

li.menu-item.menu-item-type-custom.menu-item-object-custom.menu-item-16675 a {
	background: #f3cb1e;
	border: 0;
	border-radius: 3px;
	transition: background 150ms ease-in-out;
	font-size: 0.8rem;
	font-weight: 700;
	color: black;
}

.site-header .nav3 li a {
	font-size: 0.8rem;
	padding: 0.5em 1.25em;
}

.site-header .nav3 li a.newspack-reader__account-link {
	padding-left: 0;
	padding-right: 0;
	text-shadow: 1px 1px 2px rgba( 0, 0, 0, 0.3 );
	font-weight: 500;
}

.site-header .nav3 li a.newspack-reader__account-link:hover {
	opacity: 1;
}


.header-search-contain #search-toggle svg,
.site-header .mobile-menu-toggle,
.newspack-reader__account-link svg {
	filter: drop-shadow( 1px 1px 2px rgb( 0 0 0 / 0.3 ) );
}

.button.mb-cta {
	border-radius: 3px;
	padding: 0.75em 1em
}

/* Homepage */
@media (min-width: 782px) {
	.home .site-header .middle-header-contain,
	.archive .site-header .middle-header-contain {
		min-height: var( --header-background-height );
	}
}

/* Subpages */
@media (min-width: 782px) {
	body:not(.home):not(.archive) .site-header .custom-logo {
		height: auto;
		max-height: 100%;
		max-width: 170px;
	}
}

/**
 * Content
 */ 

@media (min-width: 782px) {
  .site-content {
    margin-top: 3rem;
  }
}

.entry-content a,
.entry-content a:hover {
	color: var( --newspack-theme-color-primary-variation );
}

.entry-content a {
	text-decoration: none;
}

.entry-content p a:hover,
.entry-content li a:hover {
	text-decoration: underline;
}

figcaption, 
.wp-caption-text,
.wp-block-image figcaption {
	font-weight: normal;
	font-size: 0.75rem;
	text-align: center;
}

.avatar, 
.entry-content .wpnbha .avatar {
	border-radius: 100%;
}

.entry-meta {
	font-size: 0.7rem;
}

.entry-meta .byline .author {
	font-weight: normal;
}

.newspack-post-subtitle,
.single .entry-header .newspack-post-subtitle {
	font-style: normal;
	font-family: var(--newspack-theme-font-heading);
}

@media (max-width: 599px) {
	.single .entry-header .newspack-post-subtitle {
		font-size: 0.8rem;
	}
}

/* Blocks - HPB */
.wpnbha .cat-links a,
.wpnbha .cat-links a:visited {
	color: var( --newspack-theme-color-primary );
}

div.wpnbha .newspack-post-subtitle--in-homepage-block {
	font-style: normal;
}

.wpnbha.ts-2 .entry-title {
	font-weight: 600;
}

.wpnbha .entry-wrapper p {
	font-family: var(--newspack-theme-font-heading);
	font-size: 0.9rem;
}

.wpnbha.image-alignbehind .post-has-image  {
	text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

div.wpnbha.image-alignbehind .post-has-image .post-thumbnail::after { 
	background: linear-gradient(0deg, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0) 60%); 
}

/* Inline "Campaign" */
.wpnbha.image-alignleft.np-single-post-embed .post-thumbnail,
.wpnbha.image-alignright.np-single-post-embed .post-thumbnail {
	line-height: 1;
	margin-bottom: 0;
} 

@media (max-width: 599px) {
	.wpnbha.image-alignleft.mobile-stack.np-single-post-embed .post-thumbnail,
	.wpnbha.image-alignright.mobile-stack.np-single-post-embed .post-thumbnail {
		margin-bottom: 0.25em;
	}
}
.wpnbha.image-alignleft.np-single-post-embed .post-thumbnail a,
.wpnbha.image-alignright.np-single-post-embed .post-thumbnail a {
	display: inline-block;
}

.wpnbha.image-alignleft.np-single-post-embed .entry-wrapper,
.wpnbha.image-alignright.np-single-post-embed .entry-wrapper {
	display: flex;
	flex-direction: column;
}

.wpnbha.image-alignleft.np-single-post-embed .entry-wrapper,
.wpnbha.image-alignright.np-single-post-embed .entry-wrapper .entry-title {
	justify-content: center;
}

/* Blocks - Group Block */
.wp-block-group.has-background {
	padding: 1rem;
}

/* Blocks - Button */
.button, 
button, 
input[type="button"],
input[type="reset"], 
input[type="submit"], 
.wp-block-search__button,
.wp-block-button__link {
	border-radius: 3px;
	text-transform: uppercase;
}

/* Blocks - Twitter Embed */
.wp-block-embed-twitter .wp-block-embed__wrapper > * {
	margin-left: auto;
	margin-right: auto;
}

/* Accent Header */
.accent-header:not(.widget-title)::before, 
.article-section-title::before,
.cat-links::before, 
.page-title::before {
	display: none;
}

.accent-header:not(.widget-title), 
.article-section-title {
	font-family: var(--newspack-theme-font-heading);
	color: #111;
	letter-spacing: 0.01em;
}


/* Single Posts */
.single .entry-header .cat-links {
	font-size: 0.75rem;
	letter-spacing: 0.01em;
}

.single .entry-header .cat-links,
.single .entry-header .cat-links a,
.single .entry-header .cat-links a:visited {
	color: var( --newspack-theme-color-primary );
}

.single .entry-header .entry-title {
 font-size: 1.4em;
	/* font-weight: 800; */
}

@media only screen and (min-width: 600px) {
  .single .entry-header .entry-title {
    font-size: 1.8em;
  }
}

@media only screen and (min-width: 782px) {
  .single .entry-header .entry-title {
    font-size: 2.0em;
  }
}

@media only screen and (min-width: 1168px) {
  .single .entry-header .entry-title {
    font-size: 2.2em;
  }
}

.single .entry-header .entry-meta .byline {
	display: inline;
}

.single .entry-header .entry-meta {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
}

.single .entry-header .byline {
	margin-right: 1em;
}

.single-featured-image-behind .entry-header .cat-links,
.single-featured-image-behind  .entry-header .cat-links a {
	color: #fff;
}

/* Social links */

.entry-header .sd-content ul li {
	margin-bottom: 0;
}

.sd-social-icon .sd-content ul li[class*="share-"] a.sd-button {
	/*background: var( --newspack-theme-color-primary ) !important;
	color: #fff !important;*/
}

/* Author bio */
.single .author-bio {
	display: block;
}

.single .author-bio::before,
.single .author-bio::after {
  border-top: 1px solid var(--newspack-theme-color-border);
	content: '';
	display: block;
  height: 1px;
  margin: 2rem auto;
  max-width: 5rem;
}

.single .author-bio .avatar {
	display: none;
}

.single .author-bio .author-bio-text {
	width: 100%;
}

.single .author-bio .author-bio-text p {
	font-style: italic;
}

.author-bio .author-link,
.author-bio .author-link:visited {
	color: var( --newspack-theme-color-primary );
}

/**
 * Archive
 */ 
.page-title {
	text-align: center;
}

.archive .page-description,
.blog .page-description,
.search .page-description {
	display: inline-block;
	font-weight: 900;
	position: relative;
}

.page-description::after {
	background: var( --newspack-theme-color-primary );
	content: '';
	display: inline-block;
	height: 0.2em;
	inset: auto 0 -0.1em;
	position: absolute;
}

.archive .page-header, 
.blog .page-header, 
.search .page-header {
	margin-bottom: 1rem;
}

.archive .entry-title, 
.search .entry-title, 
.blog .entry-title {
	font-size: 1.25rem;
}

.archive #secondary, 
.search #secondary, 
.blog #secondary {
	margin-top: 0;
}

/**
 * Secondary
 */ 
#secondary div.wpnbha {
	font-size: 1.1em;
}

#secondary .wp-block-columns {
	gap: 16px;
}

#secondary .newspack-newsletters-subscribe input[type="submit"] {
	flex: 1 1 100%;
	text-transform: uppercase;
}

/**
 * Prompts
 */ 
.newspack-popup .wp-block-columns .wp-block-columns {
	gap: 16px;
}

@media (max-width: 1199px) {
	.newspack-popup .wp-block-column .newspack-newsletters-subscribe input[type="submit"] {
		flex: 0 0 100%;
	}
}

@media (min-width: 1200px) {
	.newspack-popup .wp-block-column .newspack-newsletters-subscribe .newspack-newsletters-email-input {
		flex-wrap: nowrap;
	}
}

/**
 * Footer
 */ 
.site-footer {
	padding-top: 2rem;
}
@media (min-width: 960px) {
	.site-footer .wp-block-columns {
		gap: 64px;
	}
}

/* Remove RAS My Account / Sign In buttons
.newspack-reader__account-link {
display: none !important;
height: 0px;
}  */

/* Center the "Read more" button under the posts in every Homepage Articles block */
.wp-block-newspack-blocks-homepage-articles .wp-block-buttons,
.wp-block-newspack-blocks-homepage-articles .wp-block-button {
  display: flex;
  justify-content: center;
  text-align: center;
}

/* Button color */
.wp-block-newspack-blocks-homepage-articles .wp-block-button__link,
.wp-block-newspack-blocks-homepage-articles button[data-next] {
  background-color: #c0362c;
  border-color: #c0362c;
  color: #ffffff;
}

/* Optional hover state */
.wp-block-newspack-blocks-homepage-articles .wp-block-button__link:hover,
.wp-block-newspack-blocks-homepage-articles button[data-next]:hover {
  background-color: #a02c24;
  border-color: #a02c24;
  color: #ffffff;
}