/*
 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
*/

/* Header */
.site-header, #mobile-header {
	border-bottom: 1px solid var(--border-color);
}

/* All Archives Images & Expert */
.archives-feature-img {
	height: 100%;
	border-radius: 6px;
}

.archives-feature-img:hover {
	opacity: 80%;
}

/* Single Post Images */
.single-post .entry-content img,
.page-header-image-single .attachment-full {
	border-radius: 8px;
}

.post-image-above-header .inside-article .post-image {
	margin-bottom: 0.8em!important;
}

/* Author Avator */
.author .page-header .avatar {
	border-radius: 50px;
}

/* In-Article Links */
.entry-content a:not(.button) {
	text-decoration: underline;
}

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

/* Expert */
.dynamic-entry-excerpt {
    font-size: 15px;
    line-height: 1.4;
}

/* Meta */
.rank-math-breadcrumb span.last, .rank-math-breadcrumb .separator:nth-last-of-type(2) {
    display: none;
}
.entry-meta,
.rank-math-breadcrumb p {
	font-size: 15px;
	color: var(--contrast-6);
}
.rank-math-breadcrumb p {
	margin-bottom: 1em;
}

/* Widgets Title */
.comments-area h3,
.widget h2 {
	border-bottom: 4px solid var(--border-color);
	padding-bottom: 10px;
}

/* Dropdown Menu */
.main-navigation:not(.toggled) ul li.sfHover > ul,
.main-navigation:not(.toggled) ul li:hover > ul {
	border: 1px solid var(--border-color);
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Off Canvas Menu */
#generate-slideout-menu {
	padding: 10px 20px;
}

/* Search */
.search-modal-form {
	border-radius: 50px;
}

.search-modal-form .search-field,
.search-modal-form .search-field:focus {
	border-radius: 50px 0 0px 50px;
	outline: none;
	border: none;
}

button.search-submit {
	border-radius: 4px;
	padding: 12px 30px;
}

/* lists */
.entry-content ul > li,
.entry-content ol > li {
	margin-left: -15px;
	margin-bottom: 10px;
}

/* Order List Styles */
.entry-content ol {
    list-style-type: none;
    counter-reset: my-awesome-counter;
}

.entry-content ol > li {
	counter-increment: my-awesome-counter;
	position: relative;
	padding-left: 35px;
	margin-left: -35px;
}

.entry-content ol > li::before {
    content: counter(my-awesome-counter);
    position: absolute;
    left: 0;
	  top: 0;
    background-color: #f0f0f0;
    color: var(--contrast);
    width: 25px;
    height: 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
}

/* Generate Back-to-top */
a.generate-back-to-top {
	border-radius: 50px;
}

/* Pagination */
.nav-links .page-numbers {
	display: inline-block;
	padding: 6px 15px;
	margin: 0 5px;
	font-size: 16px;
	border-radius: 4px;
	text-decoration: none;
	color: var(--contrast);
}

.nav-links .page-numbers:hover {
	color: var(--accent);
	background: var(--base-2);
}

.nav-links .page-numbers.current {
	color: var(--base-3);
	background: var(--accent);
}

/* Read More & Search Button */
a.read-more.button,
.wp-block-search__button {
	border-radius: 4px;
}

/* Table */
table td, .wp-block-table td,
table th, .wp-block-table th,
table {
	border: 1px solid var(--border-color);
	font-size: 16px;
	text-align: left;
}

table {
    border-collapse: collapse;
}

.wp-block-table {
	margin: 2.5em 0;
}

figcaption {
	font-size: 15px;
	text-align: center;
	color: var(--contrast-6);
}

.wp-block-preformatted {
	font-size: 15px;
	line-height: 1.6;
}

/* Forms & Comments */
form input[type="text"],
form input[type="email"] {
	width: 100%;
	border-radius: 4px;
}

form input[type="submit"],
input[type="search"] {
	border-radius: 4px;
}

form textarea {
	width: 100%;
	height: 120px;
	border-radius: 6px;
}

.comment-form #url {
	display: none;
}

.comment-content p {
	margin-bottom: 15px;
	font-size: 17px;
}

.comment-content {
	padding: 20px 0;
}

.comment-author-info .entry-meta {
	font-size: 14px;
}

p.logged-in-as {
	font-size: 16px;
	color: var(--contrast-6);
}

/* Search Block */
.wp-block-search__input:focus {
	outline: none;
	box-shadow: none;
}

/* Sidebar Last Widget Sticky */
@media (min-width: 769px) {
	.inside-right-sidebar {
		height: 100%;
	}
	
.inside-right-sidebar aside:last-child {
	position: -webkit-sticky;
	position: sticky;
	top: 70px;
  }
}

/* Responsive Layout */
@media (max-width: 768px) {
	table td, .wp-block-table td,
	table th, .wp-block-table th,
	table {
		font-size: 14px;
	}
	.wp-block-preformatted {
		font-size: 14px;
	}
	blockquote {
		font-size: 16px;
	}
	.entry-meta,
	.rank-math-breadcrumb p {
		font-size: 14px;
	}
	.nav-links .page-numbers {
		font-size: 14px;
	}
}