/*
Theme Name: ExpertHive Child — RTN
Theme URI: https://repairtechnetwork.com/
Description: Update-safe Repair Tech Network customizations for ExpertHive and HivePress.
Author: Repair Tech Network
Template: experthive
Version: 1.0.1
Text Domain: experthive-child-rtn
*/

/*
 * Shared hero artwork.
 *
 * The same dark, wide RTN equipment banner gives standard page headers and
 * the homepage hero a consistent visual identity. The translucent navy layer
 * preserves readable headings without altering the site's global palette.
 */
.header-hero {
	background-image:
		linear-gradient(rgba(8, 31, 68, 0.68), rgba(8, 31, 68, 0.68)),
		url("https://repairtechnetwork.com/wp-content/uploads/2026/07/oem-laser-tech-modules-banner-no-text-dark-30.png") !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
}

.header-hero,
.header-hero h1,
.header-hero h2,
.header-hero p,
.header-hero a {
	color: #fff;
}

/*
 * Standard page headers.
 *
 * Keep interior-page banners substantial enough to identify the page while
 * avoiding the oversized blank header treatment from the parent theme.
 */
.header-hero:not(.header-hero--large) {
	padding-top: 2.75rem;
	padding-bottom: 2.75rem;
}

/*
 * Homepage hero — phone layouts.
 *
 * Compact typography and spacing keep the search controls close to the
 * introduction. ExpertHive's decorative three-image collage is hidden on
 * narrow screens because stacked images overwhelm the useful content.
 */
@media only screen and (max-width: 47.99em) {
	.home .header-hero--large {
		padding-top: 2rem;
		padding-bottom: 2.5rem;
	}

	.home .header-hero--large .header-hero__content h1 {
		font-size: 2rem;
		line-height: 1.18;
	}

	.home .header-hero--large .header-hero__content p {
		font-size: 1rem !important;
		line-height: 1.5;
	}

	.home .header-hero--large .header-hero__images {
		display: none;
	}
}

/*
 * Homepage hero — tablet and desktop.
 *
 * Reduce the parent's large vertical padding and visually scale its image
 * collage so the complete introduction fits comfortably in the first screen.
 */
@media only screen and (min-width: 48em) {
	.home .header-hero--large {
		padding-top: 2.5rem;
		padding-bottom: 3rem;
	}

	.home .header-hero--large .header-hero__content h1 {
		font-size: 2.8rem;
		line-height: 1.12;
	}

	.home .header-hero--large .header-hero__images {
		transform: scale(0.84);
		transform-origin: center center;
		margin-top: -2.25rem;
		margin-bottom: -2.25rem;
	}
}

/*
 * Echo Knowledge Base articles — sticky table of contents.
 *
 * ExpertHive hides overflow on the outer site container, which prevents
 * Echo's left table of contents from honoring position: sticky. Limit the
 * correction to Echo article pages so other templates remain untouched.
 */
body.single-epkb_post_type_1 .site-container {
	overflow: visible;
}


/*
 * Block listing cards — contained price and favorite controls.
 *
 * ExpertHive lays block-card sections in a single horizontal flex row. In a
 * three-column homepage grid, the footer becomes wider than the remaining
 * space and escapes the card. Anchor that footer inside the card, reserve
 * space beneath the content, and keep both controls inset from the edges.
 */
@media only screen and (min-width: 48em) {
	.hp-listing--view-block {
		position: relative;
		padding-bottom: 5rem;
	}

	.hp-listing--view-block .hp-listing__footer {
		position: absolute;
		left: 2rem;
		right: 1.75rem;
		bottom: 1.75rem;
		width: auto;
		justify-content: space-between;
	}

	.hp-listing--view-block .hp-listing__actions--primary {
		margin-left: auto;
		padding-left: 1rem;
	}
}


/*
 * WooCommerce beta notice — slim, branded, and non-obstructive.
 *
 * WooCommerce positions its default notice over the top of the page. Keep the
 * dismissible native notice in normal document flow so it never covers the
 * site navigation, and use RTN blue instead of WooCommerce purple.
 */
.woocommerce-store-notice.demo_store {
	position: relative !important;
	top: auto !important;
	bottom: auto !important;
	left: auto !important;
	right: auto !important;
	width: 100%;
	height: auto !important;
	min-height: 2.25rem !important;
	margin: 0;
	padding: 0.5rem 1rem;
	background: #164fae;
	box-shadow: none;
	font-size: 0.875rem;
	line-height: 1.35;
	text-align: center;
	z-index: 10;
}

.woocommerce-store-notice.demo_store a {
	color: #fff;
}

.woocommerce-store-notice.demo_store .woocommerce-store-notice__dismiss-link {
	margin-left: 0;
}

@media only screen and (max-width: 47.99em) {
	.woocommerce-store-notice.demo_store {
		min-height: 3.75rem !important;
		padding: 0.45rem 0.75rem;
		font-size: 0.8rem;
	}
}


/* ==========================================================
   RTN KB ARTICLE GUTTER
   Gives the sticky table of contents and article body a clear
   desktop gutter while preserving the plugin's mobile stack.
   ========================================================== */
@media (min-width: 900px) {
  #eckb-article-body {
    grid-template-columns: minmax(220px, 28%) minmax(0, 1fr) 0 !important;
    column-gap: 1.75rem !important;
  }
}
