/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* frank-ruhl-libre-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/frank-ruhl-libre-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* frank-ruhl-libre-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/frank-ruhl-libre-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/inter-v12-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/inter-v12-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/inter-v12-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

code {
	background: beige;
}

/* Related Products */
.product-banner {
	width: 300px;
	margin: 1.5em auto 1.5em;
	padding: 20px;
	border: 3px solid var(--accent);
	text-align: center;
}

.product-banner span {
	font-size: 0.725em;
	max-width: 256px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: inline-block;
	margin-top: 5px;
	background: beige;
	border-radius: 20px;
	padding: 5px 15px;
	font-weight: 700;
}

.product-banner .small {
	text-transform: uppercase;
	color: #ddd;
	font-size: .7em;
	text-align: right;
}

/* Affiliate Notice */
.disclaimer {
	background: var(--base-2);
  font-size: 0.725em;
  padding: 12px 20px;
  color: var(--base);
  margin-bottom: 1.5em;
  border-radius: 8px;
}

/* Cookie Notification */
#cookie-notification {
	font-size: 0.9em;
	background-color: #fff;
	padding: 25px;
	position: fixed;
	bottom: 25px;
	left: 25px;
	width: 100%;
	max-width: 400px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, .2);
	border-radius: 5px;
	margin: 0;
	visibility: hidden;
	z-index: 1000000;
	box-sizing: border-box;
}

#cookie-notification button {
	font-weight: 700;
	border: 0;
	padding: 10px;
	margin-top: 20px;
	width: 100%;
	cursor: pointer;
	border-radius: 5px;
}

#cookie-notification a {
	text-decoration: underline;
	font-size: 0.9em;
}

@media only screen and (max-width:600px) {
	#cookie-notification {
		max-width: 100%;
		bottom: 0;
		left: 0;
		border-radius: 0
	}
}

/* Table */
thead {
	background: #eaf0ff;
}

th {
	font-weight: 600;
}

th,
td {
	padding: 8px 15px;
}

table {
	margin: 2em 0;
	box-shadow: 0 0 30px 0 rgba(184, 184, 184, 0.2);
	text-align: left;
	background: #fff;
	color: #444;
}

table tr:nth-of-type(even) {
	background-color: #f8f9fa;
}

table,
td,
th {
	border: 0;
}

/* Sidebar Widget */
.sidebar .widget {
	border-radius: 5px;
	box-shadow: 0 2px 20px 0 rgb(184 184 184/10%);
}

/* Content Image */
.post-image img,
.entry-content img,
.featured-image img {
	box-shadow: 0 0 30px 0 rgba(184, 184, 184, 0.3);
	border-radius: 8px;
}

/* Site Header */
.inside-header {
	padding: 0 40px;
}

.site-header {
	box-shadow: 0 2px 20px 0 rgb(184 184 184/20%);
	transition: box-shadow .3s ease;
}

/* Breadcrumb */
.rank-math-breadcrumb p {
	font-size: 0.85rem;
	background: var(--base-3);
	padding: 10px 10px 10px 20px;
	border-radius: 5px;
	color: #777;
	box-shadow: 0 0 20px 0 rgb(184 184 184/10%);
	max-width: 73rem;
	margin: 0 auto 2rem;
}

.rank-math-breadcrumb a {
	text-decoration: none;
}

/* YouTube Embed */
.youtube-video {
	aspect-ratio: 16 / 9;
	width: 100%;
	box-shadow: 0 0 30px 0 rgba(184, 184, 184, 0.3);
}

/* Inline Related Posts */
.related {
	padding: 10px 20px;
	background: #eee;
	font-size: 0.9em;
	border-left: 3px solid var(--accent);
}

/* Related Posts */
.related-stories {
	padding: 25px 35px;
	border: 1px solid rgb(229, 229, 229);
	margin: 2rem 0;
	border-radius: 5px
}

.related-stories h2,
.related-stories h3 {
	padding-left: 1em;
	display: block;
	border-left: 2px solid var(--accent);
	margin-bottom: 1em;
	font-weight: 600;
	font-size: 18px;
}

.related-stories ul {
	margin: 0;
	list-style-type: circle;
	list-style-position: inside;
}

.related-stories li {
	font-size: 15px;
	margin-bottom: 1em;
}

.related-stories a {
	color: #000;
	text-decoration: none;
}

.related-stories a:hover {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 5px;
}

/* Social Sharing Buttons */
.ns-buttons-wrapper {
	display: flex;
	flex-wrap: wrap;
}

a.ns-button {
	padding: 7px 10px 7px 10px !important;
	color: #fff;
	border-radius: 2px;
	margin: 0 10px 10px 0;
	cursor: pointer;
	background-clip: padding;
	-webkit-background-clip: padding-box;
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2);
	-moz-box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2);
	-webkit-box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2);
	display: inline-flex;
	height: 40px;
	width: 40px;
	min-width: 40px;
}

a.ns-button:hover,
a.ns-button:active {
	color: #fff;
}

.twitter {
	background: #00aced;
}

.twitter:hover,
.twitter:active {
	background: #0084b4;
}

.facebook {
	background: #3B5997;
}

.facebook:hover,
.facebook:active {
	background: #2d4372;
}

.buffer {
	background: #444;
}

.buffer:hover,
.buffer:active {
	background: #222;
}

.pinterest {
	background: #bd081c;
}

.pinterest:hover,
.pinterest:active {
	background: #bd081c;
}

.linkedin {
	background: #0074A1;
}

.linkedin:hover,
.linkedin:active {
	background: #006288;
}

.email {
	background: #D64937;
}

.email:hover,
.email:active {
	background: #b53525;
}

/* Author Box */
.page-header .author-info {
	padding: .85em;
	background: var(--base-3);
	border-left: 5px solid var(--accent);
	color: var(--contrast-2);
}

.author-box {
	display: flex;
	align-items: center;
	border-top: 1px solid #ededed;
	padding: 30px 0;
	margin-top: 40px;
	background-color: #fff;
	border-bottom: 1px solid #ededed;
}

.author-box .author-avatar {
	flex: 0 0 70px;
	margin-right: 20px;
	overflow: hidden;
}

.author-box .author-avatar img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.author-box .author-info {
	flex: 1 1 85%;
	max-width: 85%;
}

.author-box h4 {
	margin-bottom: 10px;
	font-weight: 600;
	font-size: 1.125rem;
}

.author-box p {
	font-size: 1em;
	margin-bottom: 0;
}