/*
Theme Name: POP Members Hub 2025
Theme URI: https://github.com/a8cteam51/members-peopleofprint
Author: Automattic Special Projects
Author URI: https://specialprojects.automattic.com/
Description: People of Print Member site theme
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0.44
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pop-members-hub-2025
Tags: One Column, Custom Colors, custom-menu, Custom Logo, Editor Style, Featured Images, Site Editor, Block Editor Patterns, rtl-language-support, Sticky Post, threaded-comments, translation-ready, Wide Blocks, Block Editor Styles, Style Variations, Accessibility Ready, Blog, Portfolio, News
*/

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Global address styles */
address {
	background-color: var(--wp--preset--color--contrast-10);
	font-style: normal;
	padding: var(--wp--preset--spacing--16);
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

/*
 * Prevent logos from appearing too small in Marquee block
 */
.wp-block-storepress-marquee > .wp-block-storepress-marquee__item {
	flex-basis: auto;
}

/*
 * Special classes for landing page sticky footer underlay
 */
.overlay-container {
	position: relative;
	z-index: 2;
	transform: translateZ(0);
}

.underlay-container {
	top: auto !important;
	bottom: 0;
	z-index: 1;
	transform: translateZ(0);
}

/**
 * Font size preset style bindings
 */
.has-heading-2-font-size,
.has-heading-3-font-size {
	letter-spacing: 0;
	line-height: 0.95;
}

.has-heading-4-font-size {
	letter-spacing: 0.01em;
	line-height: 0.95;
}

.has-heading-5-font-size,
.has-heading-6-font-size {
	font-family: var(--wp--preset--font-family--instrument-sans, sans-serif);
	letter-spacing: -0.01em;
	line-height: 1.25;
	text-transform: inherit;
	font-weight: 700;
}

/*
 * Limit Site Logo width on mobile
 */
@media (max-width: 781px) {
	.wp-block-site-logo img {
		max-width: 64px;
	}
}

h1,
h2,
h3,
h4,
.wp-block-heading,
.wp-block-post-title{
	font-weight: 650;
	font-variation-settings: 'GRAD' 0, 'XOPQ' 96, 'XTRA' 468, 'YOPQ' 79, 'YTAS' 750, 'YTDE' -203, 'YTFI' 738, 'YTLC' 570, 'YTUC' 712, 'slnt' 0, 'opsz' 104, 'wdth' 32;
}

/**
 * --------- Begin WooCommerce and Jetpack fixes and overrides ---------

/* Jetpack Forms required label has insufficient contrast */
.grunion-label-required {
	color: var(--wp--preset--color--contrast-60, grey);
	opacity: 1;
}

/**
 * Override WooCommerce content 1000px max-width
 */
.woocommerce-account .wp-block-post-title, .woocommerce-account main .woocommerce, .woocommerce-cart .wp-block-post-title, .woocommerce-cart main .woocommerce, .woocommerce-checkout .wp-block-post-title, .woocommerce-checkout main .woocommerce {
	max-width: none;
}

/*
 * Jetpack and WC buttons should match default button styling. This is a little wonky
 * because we are duplicating some values from theme.json.
 */
.wp-block-jetpack-button .wp-block-button__link {
	min-height: auto !important;
	padding: 1rem 2.25rem !important;
}

.wp-element-button {
	border-radius: 999px;
}

/**
 * WooCommerce Subscriptions Recurring Totals Panel button fix
 */
.wcs-recurring-totals-panel__details.wc-block-components-panel {
	padding: 16px 16px 0;
}

/*
 * Fix mobile product name legibility
 */
.wc-block-components-product-name {
	font-family: inherit;
	font-weight: inherit;
	line-height: inherit;
	margin: 0;
}

ul.wc-tabs {
	border-bottom: 1px solid var(--wp--preset--color--contrast-20, lightgrey) !important;
}
ul.wc-tabs > li {
	margin-bottom: -1px !important;
	border-bottom: 1px solid transparent !important;
}
ul.wc-tabs .active {
	border-bottom-color: var(--wp--preset--color--contrast-80, grey) !important;
}
.wc-tabs > li a {
	font-weight: 400 !important;
}

@media only screen and (max-width: 768px) {
	ul.wc-tabs {
		border-left: 1px solid var(--wp--preset--color--contrast-20, lightgrey) !important;
		border-bottom: 0 !important;
	}

	ul.wc-tabs > li {
		margin-bottom: 0 !important;
		margin-left: -1px !important;
		border-bottom: none !important;
		border-left: 1px solid transparent !important;
	}

	ul.wc-tabs .active {
		border-left-color: var(--wp--preset--color--contrast-80, grey) !important;
		border-bottom: 0 !important;
	}
}

.woocommerce table.shop_attributes td {
	font-style: inherit !important;
}

.woocommerce div.product div.images {
	margin: 0;
}
.woocommerce > h2 {
	margin: 0;
}
.woocommerce form.login {
	margin: var(--wp--preset--spacing--64) 0;
}
.woocommerce .woocommerce-form-login .woocommerce-form-login__rememberme {
	margin: 0;
	line-height: 52px;
}
.woocommerce-Address-title {
	display: flex;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--12);
	align-items: center;
	margin-bottom: var(--wp--preset--spacing--24);
}
.woocommerce-Address-title h2 {
	margin: 0 !important;
}
.woocommerce-Address-title::before,
.woocommerce-Address-title::after {
	content: none !important;
}
.woocommerce-Address-title .edit {
	float: none !important;
	font-size: var(--wp--preset--font-size--xs);
	margin-bottom: 0 !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

/*
 Fix small WC H2 headings that don't look good in Druk. The range of places we want
 to apply this is pretty broad, and has to override a lot of stubborn WC styles,
 hence the unwieldy selector.
 */
h2.woocommerce-column__title,
.wp-block-woocommerce-order-confirmation-billing-wrapper h2,
.wp-block-woocommerce-order-confirmation-totals-wrapper h2,
.woocommerce-Address-title h2,
.woocommerce-order-details h2,
.woocommerce .woocommerce-customer-details h2:last-child,
.woocommerce .woocommerce-order-details h2:last-child,
.woocommerce .woocommerce-order-downloads h2:last-child,
.woocommerce-MyAccount-content h2,
.wc-block-components-checkout-step__title {
	font-family: var(--wp--preset--font-family--instrument-sans, sans-serif);
	letter-spacing: -0.01em;
	line-height: inherit;
	text-transform: inherit;
	font-weight: 700 !important;
	font-size: var(--wp--preset--font-size--large) !important;
	margin: 2ch 0;
}
.woocommerce-Addresses {
	margin-block-start: var(--wp--preset--spacing--48);
}
.woocommerce-Address address {
	margin: 0 0 var(--wp--preset--spacing--48);
}
.woocommerce-button {
	white-space: nowrap;
}
/*
 * --------- End WooCommerce and Jetpack fixes and overrides ---------
 */
