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

/* TABLE OF CONTENT */
/*-- Press CTRL+F to Search --*/

/* GLOBAL
 * ** Body Height & Fit Content
 * ** Font Size Default
 * ** UL Margin
 * ** Site Padding
 * ** Wide Width
 * ** Button
 * ** Separator
 * ** Width 700
 * ** Box Border Style
 * ** Column Align
 * ** Media Text Style
 * ** Border Image
 * ** Max Width Image
 * ** Table Style
 * ** TablePress Style
 * ** Max Width Site
 * 
 * MENU
 * ** Menu Style
 * ** Sub Menu Style
 * ** Mobile Menu Style
 * 
 * HEADER
 * ** Content Title Style
 * 
 * FOOTER
 * ** Social Media Style
 * ** Align Footer
 * ** Footer Menu
 * ** No Sidebar Width
 * ** Margin Top Footer
 * ** Footer 1 Horizontal Align
 * ** Footer Padding & Margin
 * 
 * SIDEBAR
 * ** 800 Max Width Without Sidebar
 * ** Box Sidebar Style
 * ** Separator After Title
 * 
 * FORM
 * ** Default Style | WP
 * ** Box Form Style | GF
 * ** Remove Input Box Shadow | GF
 * ** Subscribe Footer Style | GF
 * 
 * HOME
 * ** Header Style
 * ** Welcome MAFA
 * 
 * GUILDS
 * ** Container Max Width 100%
 * ** Guilds Grid Template
 * ** Guilds Title
 * ** Guilds Items
 * ** Guilds Font & Margin
 * ** Guilds Content
 * 
 * THE EVENTS CALENDAR
 * ** TEC Disable Description
 * ** TEC Width & Padding
 * 
 * VENDORS
 * ** Terms List Style
 * ** Vendor Thumbnail Image
 * ** Vendor Content
 * 
 * SESSIONS
 * 
 * 
 * SEARCH
 * ** Search Result Style
 * 
 * BLOG
 * ** Content Title Post Style
 * ** Blog Index Style
 * */

/* GLOBAL */

/** Body Height & Fit Content **/
body {
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
	margin: 0;
}

.site {
	flex-grow: 1;
}

/** Font Size Default **/
:root {
  	--wp--preset--font-size--medium: 24px;
}

/** UL Margin **/
ul {
	margin: 0 0 25px 20px;
	line-height: 180%;
}



/** Wide Width **/
.entry-content .alignwide {
	width: calc(100vw - 100px);
	max-width: calc(100vw - 100px);
	margin-left: calc(50% - 50vw + 50px);
}

@media (min-width: 769px) and (max-width: 1024px) {
	.entry-content .alignwide {
		width: calc(100vw - 80px);
		max-width: calc(100vw - 80px);
		margin-left: calc(50% - 50vw + 40px);
	}
}

@media (max-width: 768px) {
	.entry-content .alignwide {
		width: calc(100vw - 60px);
		max-width: calc(100vw - 60px);
		margin-left: calc(50% - 50vw + 30px);
	}
}

/** Button **/
.wp-block-buttons .wp-block-button__link, .wp-block-search__button {
	background-color: transparent;
	border-radius: 10px;
	padding-top: 16px;
	padding-bottom: 16px;
	padding-left: 24px;
	padding-right: 24px;
	border: 1px solid var(--contrast);
}
.wp-block-buttons .wp-block-button__link:hover, .wp-block-search__button:hover {
	border-color: var(--accent-1);
}

.gform_wrapper input[type=submit] {
	color: var(--contrast) !important;
	background-color: transparent !important;
	border-radius: 10px !important;
	padding-top: 16px !important;
	padding-bottom: 16px !important;
	padding-left: 24px !important;
	padding-right: 24px !important;
	border: 1px solid var(--contrast) !important;
}

.gform_wrapper input[type=submit]:hover {
	border-color: var(--accent-1) !important;
}

/** Separator **/
.wp-block-separator:not(.is-style-wide) {
	border-top: 1px solid;
	width: 30px;
	margin-top: 10px;
	margin-bottom: 10px;
}

/** Width 700 **/
.width-700 {
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

/** Box Border Style **/
.box-border-style  {
	border: 1px solid var(--base);
	border-radius: 20px;
	padding-top: 12px;
	padding-bottom: 24px;
	padding-left: 12px;
	padding-right: 12px;
}

.box-border-style figure img {
	max-height: 260px;
}

/** Column Align **/
.column-align .wp-block-column {
	display: flex;
	flex-flow: column;
	justify-content: space-between;
}

/** Media Text Style **/
.media-text-style {
	border: 1px solid var(--base);
	border-radius: 20px;
	overflow: hidden;
	max-width: 1060px;
	margin-left: auto;
	margin-right: auto;
}

.media-text-style .wp-block-media-text__content {
	padding-top: 30px;
	padding-bottom: 30px;
	padding-left: 60px;
	padding-right: 60px;
}

.media-text-style figure {
	display: flex;
	height: 100%;
	align-items: center;
	background-color: white;
	padding: 10px;
}

@media (min-width: 769px) and (max-width: 1024px) {
	.media-text-style .wp-block-media-text__content {
		padding-top: 30px;
		padding-bottom: 30px;
		padding-left: 40px;
		padding-right: 40px;
	}
}

@media (max-width: 768px) {
	.media-text-style .wp-block-media-text__content {
		padding-top: 30px;
		padding-bottom: 30px;
		padding-left: 30px;
		padding-right: 30px;
	}
}

/** Border Image **/
.border-image img {
	border-radius: 10px;
}

/** Max Width Image **/
.max-width-image {
	width: 100%;
}

.max-width-image img {
	width: 100%;
}

/** Table Style **/
.wp-block-table {
	border-width: 1px 1px 0 1px;
	border-style: solid;
	border-color: var(--base);
	border-radius: 10px;
}

.wp-block-table table {
	margin: 0;
	border: 0;
}

.wp-block-table tr:first-child {
	background-color: var(--base-2);
	font-weight: 600;
}

.wp-block-table td {
	border-width: 0 0 1px 0;
	border-color: var(--base);
}

/** TablePress Style **/
table.tablepress tbody tr td {
	font-size: 16px;
}

/** Max Width Site **/

.site.grid-container {
	max-width: min(calc( (100vw - ( 100vw - 100% ) ) - 2 * 30px ), 1280px );
}





/* MENU */

/** Menu Style **/
.menu-item-has-children .dropdown-menu-toggle {
	padding-left: 6px;
	padding-right: 6px;
}

.main-navigation .inside-navigation {
	flex-wrap: nowrap;
}

.main-navigation .menu-bar-items {
	border: 1px solid var(--contrast-3);
	border-radius: 99px;
	width: 60px;
	height: 60px;
}

/** Sub Menu Style **/
.main-navigation:not(.toggled) ul li:hover>ul {
	box-shadow: 0 1px 10px rgba(0,0,0,.1);
	border-radius: 10px;
}

.main-navigation .main-nav ul ul li a {
	padding: 12px 24px;
}

.main-navigation .main-nav ul ul li:first-child a {
	border-radius: 10px 10px 0 0;
}

.main-navigation .main-nav ul ul li:last-child a {
	border-radius: 0 0 10px 10px;
}

/** Mobile Menu Style **/
.mobile-menu-control-wrapper {
	gap: 10px;
}

.mobile-menu-control-wrapper .menu-toggle {
	border: 1px solid var(--contrast-3);
	border-radius: 99px;
	width: 60px;
	height: 60px;
	background-color: var(--base-3);
}

.mobile-menu-control-wrapper .menu-toggle:hover .gp-icon svg {
	fill: var(--accent);
}

.main-navigation .main-nav ul li.menu-item-has-children>a {
	padding-right: 20px;
}

.main-navigation .main-nav ul li a {
	background-color: var(--base-3);
}





/* HEADER */

/** Content Title Style **/
.content-title-style {
	margin-bottom: 60px;
	margin-left: 30px;
	margin-right: 30px;
	border-radius: 20px;
	min-height: 260px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

@media (min-width: 769px) and (max-width: 1024px) {
	.content-title-style {
		margin-bottom: 50px;
		margin-left: 30px;
		margin-right: 30px;
		min-height: 300px;
	}
}

@media (max-width: 768px) {
	.content-title-style {
		margin-bottom: 40px;
		margin-left: 30px;
		margin-right: 30px;
		border-radius: 10px;
		min-height: 200px;
	}
}





/* FOOTER */

/** Social Media Style **/
.social-media-style {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 30px;
	justify-content: center;
	align-items: center;
}

.social-media-style li a {
	display: flex;
	height: 100%;
}

/** Align Footer **/
.widget ul li {
	margin-bottom: 0;
}

/** Footer Menu **/
#menu-menu-footer {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 30px;
	justify-content: center;
	align-items: center;
}

/** No Sidebar Width **/
.no-sidebar:not(.home) .site.footer-widgets {
	max-width: 100%;
}

/** Margin Top Footer **/
.site-footer {
	margin-top: 25px;
}

/** Footer 1 Horizontal Align **/
.footer-widget-1 {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	align-items: center;
	gap: 25px;
}

/** Footer Padding & Margin **/
.site-footer .footer-widgets-container .inner-padding {
	padding: 0;
}

.footer-widgets .widget {
	margin-bottom: 0;
}





/* SIDEBAR */

/** 800 Max Width Without Sidebar **/
.no-sidebar:not(.home) .site {
	max-width: min(calc( (100vw - ( 100vw - 100% ) ) - 2 * 30px ), 800px );
	width:100%;
	margin-left: auto;
	margin-right: auto;
}

/** Box Sidebar Style **/
.sidebar > div {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.sidebar .widget {
	border: 1px solid var(--base);
	border-radius: 20px;
}

.site-content {
	gap: 76px;
}

/** Separator After Title **/
.sidebar .widget .wp-block-group__inner-container {
	position: relative;
}

.sidebar .widget h2 {
	margin-bottom: 0.5em;
}


/* FORM */

/** Default Style | WP **/
input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea {
	border-radius: 10px;
}

/** Box Form Style | GF **/
.box-form-style {
	padding-top: 50px;
	padding-bottom: 50px;
	padding-left: 40px;
	padding-right: 40px;
	border: 1px solid var(--base);
	border-radius: 20px;
}

@media (min-width: 769px) and (max-width: 1024px) {
	.box-form-style {
		padding-top: 40px;
		padding-bottom: 40px;
		padding-left: 40px;
		padding-right: 40px;
	}
}

@media (max-width: 768px) {
	.box-form-style {
		padding-top: 30px;
		padding-bottom: 30px;
		padding-left: 30px;
		padding-right: 30px;
	}
}

/** Remove Input Box Shadow | GF **/
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="password"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="date"],
.gform_wrapper input[type="datetime"],
.gform_wrapper input[type="datetime-local"],
.gform_wrapper input[type="month"],
.gform_wrapper input[type="time"],
.gform_wrapper input[type="week"],
.gform_wrapper input[type="search"],
.gform_wrapper input[type="color"],
.gform_wrapper textarea,
.gform_wrapper select {
	box-shadow: none;
}

/** Button Style | GF **/
.gform_wrapper input[type="button"], .gform_wrapper input[type="submit"] {
	box-shadow: none !important;
	border: 1px solid var(--contrast) !important;
}

.gform_wrapper input[type="button"]:hover, .gform_wrapper input[type="submit"]:hover {
	color: var(--base-3) !important;
	background-color: var(--accent) !important;
	border-color: var(--accent) !important;
}

/** File Style | GF **/
.gform_wrapper input[type="file"]::file-selector-button {
  background-color: var(--base) !important;
}

/** Subscribe Footer Style | GF **/
.gform-theme--foundation .subscribe-footer-style .gform_footer {
	margin-block-start: 0;
}





/* HOME */

/** Header Style **/
.header-style {
	border-radius: 20px;
}

.header-style h1 {
	font-weight: 300;
	line-height: 1.5;
	margin-bottom: 0;
}

@media (min-width: 769px) and (max-width: 1024px) {
	.header-style {
		min-height: 500px !important;
	}
}

@media (max-width: 768px) {
	.header-style {
		min-height: 400px !important;
	}
	
	.header-style h1 {
		font-size: 20px !important;
	}
}

/** Welcome MAFA **/
.welcome-mafa {
	margin-top: -90px;
	position: relative;
	z-index: 999;
	max-width: 1060px;
	margin-left: auto;
	margin-right: auto;
}

@media (min-width: 769px) and (max-width: 1024px) {
	.welcome-mafa {
		margin-top: 50px;
	}
}

@media (max-width: 768px) {
	.welcome-mafa {
		margin-top: 50px;
	}
}





/* GUILDS */

/** Container Max Width 100% **/
.guilds {
	max-width: 100%;
}

/** Guilds Grid Template **/
.guilds-grid-template {
	display: grid;
	grid-template-columns: 180px 1fr;
	margin-bottom: 20px;
}

@media (max-width: 768px) {
	.guilds-grid-template {
		display: flex;
		flex-direction: column;
	}
}

/** Guilds Title **/

.guilds-title {
	grid-column: span 2 / span 2;
}

/** Guilds Items **/

.guilds-item {
	display: flex;
	align-items: center;
	padding-top: 10px;
	padding-bottom: 10px;
	padding-left: 0;
	padding-right: 0;
	border-bottom: 1px solid var(--base);
	word-break: break-word;
}

/** Guilds Font & Margin **/

.guilds-grid-template p {
	font-size: 16px;
	margin-bottom: 0;
}

/** State Group **/
.state-group {
    margin-bottom: 4rem;
}

.state-group__header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--accent);
}

.state-group__title {
    margin: 0;
    font-size: 1.6rem;
}

.state-group__count {
    font-size: 0.85rem;
    color: #888;
}

/** Guilds Grid **/
.state-group__grid {
    display: flex;
	flex-direction: column;
    gap: 1.5rem;
}

/** Guild Card **/
.guild-card {
    border: 1px solid var(--base);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.guild-card__header {
    background: var(--base-2);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--base);
}

.guild-card__title {
    margin: 0;
    font-size: 1.1rem;
}

.guild-card__body {
    padding: 0.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/** Guild Meta List **/
.guild-card__meta-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.guild-card__meta-list li {
    display: flex;
    font-size: 1rem;
    align-items: flex-start;
	flex-direction: column;
}

.meta-label {
    color: var(--contrast);
    flex-shrink: 0;
	font-weight: 600;
}

.meta-value {
    color: var(--contrast-2);
	padding-left: 20px;
}

.meta-value a {
    color: inherit;
    text-decoration: underline;
    word-break: break-all;
}

/** Guild Social Links **/
.guild-card__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.social-link {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 500;
    color: #fff;
}

.social-link--facebook  { background: #1877f2; }
.social-link--ravelry   { background: #e91c7e; }
.social-link--twitter   { background: #1da1f2; }
.social-link--pinterest { background: #e60023; }
.social-link--instagram { background: #c13584; }
.social-link--other     { background: #555; }

/** Guilds Responsive **/
@media (max-width: 600px) {
    .state-group__grid {
        grid-template-columns: 1fr;
    }

    .meta-label {
        min-width: 80px;
    }
}

/** Guilds Gap **/
body.post-type-archive-guilds .site-main {
	gap: 0 !important;
}

/** Guilds Sidebar **/
.post-type-archive-guilds .site-content .sidebar .inside-right-sidebar {
	position: sticky;
	top: 20px;
}

/** Guilds Content **/
.guilds-content {
	margin-bottom: 30px;
}

/** Guilds Sidebar **/
.archive .sidebar .find-guild-state {
	position: relative;
}





/* THE EVENTS CALENDAR */

/** TEC Disable Description **/
.tribe-events-calendar-list__event-details .tribe-events-calendar-list__event-description p {
    display: none;
}

/** TEC Width & Padding **/
.tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-list__event-details {
	width: 100%;
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-l-container {
	padding-left: 0;
	padding-right: 0;
	padding-top: 0;
	padding-bottom: 0;
}

/** Hide Header in Single TEC **/
.single-tribe_events .page-hero {
	display: none;
}

/** Add Padding Top in Single TEC **/
.tribe-events-single {
	padding-top: 50px;
}





/* SAMPLES SINGLE */

/** Remove Page Title on Single Samples **/
.single-samples .page-hero .page-title {
	display: none;
}





/* VENDORS */

/** Terms List Style **/
.vendor-terms-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.vendor-terms-list a {
	padding-top: 3px;
	padding-bottom: 3px;
	padding-left: 9px;
	padding-right: 9px;
	border: 1px solid var(--base);
	border-radius: 10px;
	text-decoration: none;
	color: var(--contrast-2);
	background: var(--base-3);
}

.vendor-terms-list a:hover {
	border-color: var(--contrast);
}

/** Vendor Thumbnail Image **/
.vendor-thumbnail-image {
	border-radius: 10px;
}

/** Vendor Content **/
.vendor-content {
	margin-bottom: 30px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}





/* SESSIONS */

/** Sidebar Responsive **/
@media (min-width: 769px) and (max-width: 1024px) {
	.post-type-archive-sessions .site-content {
		flex-direction: column;
		gap: 36px;
	}
	
	.post-type-archive-sessions .site-content .content-area, .post-type-archive-sessions .site-content .is-right-sidebar {
		width: 100%;
	}
}

/** Sessions Post Meta **/
.gb-element-a8c2bd88 img {
	width: 80px;
	height: 80px;
	border-radius: 10px;
}

.gb-element-d40a45a7 .gb-text {
	margin-bottom: 0;
}

/** Remove Page Title on Single Sessions **/
.single-sessions .page-hero .page-title {
	display: none;
}

/** Sessions Sidebar **/
.archive .sidebar .sessions-sidebar {
	position: relative;
}





/* SEARCH */

/** Search Result Style **/
.search .page-header {
	padding-top: 20px;
	padding-bottom: 20px;
	padding-left: 40px;
	padding-right: 40px;
}

@media (max-width: 768px) {
	.search .page-header {
		padding-left: 30px;
		padding-right: 30px;
	}
}

.search .site-main {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	gap: 24px;
}

.search .site-main article {
	padding-top: 40px;
	padding-bottom: 40px;
	padding-left: 40px;
	padding-right: 40px;
	border: 1px solid var(--base);
	border-radius: 10px;
}

@media (max-width: 768px) {
	.search .site-main article {
		padding-top: 30px;
		padding-bottom: 30px;
		padding-left: 30px;
		padding-right: 30px;
	}
}





/* BLOG */

/** Content Title Post Style **/
.content-title-post-style {
	margin-bottom: 80px;
	margin-left: 50px;
	margin-right: 50px;
	border-radius: 20px;
	min-height: 400px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

@media (min-width: 769px) and (max-width: 1024px) {
	.content-title-post-style {
		margin-bottom: 60px;
		margin-left: 40px;
		margin-right: 40px;
		min-height: 300px;
	}
}

@media (max-width: 768px) {
	.content-title-post-style {
		margin-bottom: 40px;
		margin-left: 30px;
		margin-right: 30px;
		border-radius: 10px;
		min-height: 200px;
	}
}

/** Blog Index & Archive Style **/
.blog .site-main, .archive .site-main {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	gap: 24px;
}

.blog .site-main .post, .archive .site-main .post {
	padding-top: 40px;
	padding-bottom: 40px;
	padding-left: 40px;
	padding-right: 40px;
	border: 1px solid var(--base);
	border-radius: 10px;
}

@media (max-width: 768px) {
	.blog .site-main .post {
		padding-top: 30px;
		padding-bottom: 30px;
		padding-left: 30px;
		padding-right: 30px;
	}
}