:root {
  --gp-slideout-width: 90vw;
}

header.site-header {
	background-color: #222;
	
	@media screen and (min-width: 1024px) {
		position: absolute;
		top: 30px;
		left: 0;
		right: 0;
		z-index: 999;
		background: transparent;
		
		.header-image {
			width: 266px;
		}
	}
	
	@media (max-width: 1024px) {
		.header-image {
			width: 188px;
		}
	}
	
	
}

.main-navigation .menu-toggle {
	font-size: 30px;
	padding-right: 0;
}

.menu-item-has-children .dropdown-menu-toggle {
	padding-left: 5px;
}

.main-navigation .main-nav {
	>ul {
		li {
			cursor: pointer;
		}
		
		li[class*="current-menu-parent"] {
			> a { color: var(--yellow); }
			
			ul li[class*="current-menu-item"] a {
				color: var(--yellow);
				background-color: var(--whitesmoke);
			}
		}
	}
}


hr.has-primary-color {
    color: var(--primary) !important;	
}

hr.wp-block-separator {
	border-top: 1px solid;
}

.gb-text a {
	text-decoration: none;
}

.post-template-default {
	.inside-article {
		max-width: 840px;
    	margin: 40px auto 80px;
		padding-left: 20px !important;
		padding-right: 20px !important;
	}
	
	@media (max-width: 768px) {
		.inside-article {
			margin-top: 20px;
			margin-bottom: 40px;
		}
	}
}

.entry-meta {
	
	.posted-on,
	.byline,
	.cat-links {
		display: none;
	}
	
	.tags-links {
		margin-bottom: 20px;
	}
}


/* Archive post cards */
:is(.archive, .blog) header.page-header {
		display: none;
}

:is(.archive, .blog) .inside-article {
	display: grid;
	grid-template-columns: 200px 1fr;
	grid-template-areas:
		"image header"
		"image summary";
	column-gap: 35px;
	align-items: start;
	padding-bottom: 0;
	
	@media (max-width: 768px) {
		grid-template-columns: 1fr;
		grid-template-areas: "image" "header" "summary";
		row-gap: 20px;
	}
}

/* Grey placeholder behind the image column */
:is(.archive, .blog) .inside-article::before {
	content: "";
	grid-area: image;
	background: #eef1f5;
	aspect-ratio: 1 / 1;
	
	
	@media (max-width: 768px) {
		aspect-ratio: 16 / 9;
	}
}

:is(.archive, .blog) .post-image {
	grid-area: image;
	margin: 0;
}

:is(.archive, .blog) .post-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Fill the whole thumbnail box, whatever the image's proportions */
:is(.archive, .blog) .post-image {
	aspect-ratio: 1 / 1;
	overflow: hidden;

	@media (max-width: 768px) {
		aspect-ratio: 16 / 9;
	}
}

:is(.archive, .blog) .post-image a {
	display: block;
	width: 100%;
	height: 100%;
}

:is(.archive, .blog) .entry-header  { grid-area: header; }
:is(.archive, .blog) .entry-summary { grid-area: summary; }

/* Separator between posts */
:is(.archive, .blog) .site-main > article {
	position: relative;
	border-bottom: 1px solid #e3e7ed;
	padding-bottom: 35px;
	margin-bottom: 10px;
}

:is(.archive, .blog) .site-main > article:last-child {
	margin-bottom: 50px !important;
}

:is(.archive, .blog) .entry-title {
	font-size: 28px;
    font-weight: 700;
	line-height: 1.2;
	margin-bottom: 18px;
	font-family: var(--gp-font--assistant);
}

/* Hide date, author, tags */
:is(.archive, .blog) .entry-meta {
	display: none;
}

/* Read more link, right-aligned with underline */
:is(.archive, .blog) a.read-more {
	position: absolute;
	right: 0;
	bottom: -1px;
	padding-bottom: 8px;
	font-size: 13px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 2px solid currentColor;
	
	@media (max-width: 768px) {
		right: 40px;
	}
}

:is(.archive, .blog) a.read-more::before {
	content: "+ ";
}

.post-navigation {
	position: relative;
	display: flex;
	justify-content: space-between;
	gap: 60px;
	border-top: 1px solid #e3e7ed;
	border-bottom: 1px solid #e3e7ed;
	padding: 30px 0;
	margin: 45px 0;

	a {
		font-weight: 600;
		text-decoration: none;
	}

	.nav-category {
		font-size: 14px;
		font-weight: 400;
		color: #9ca3af;
	}

	/* Chevrons align with the title, not the label */
	.gp-icon {
		grid-row: 1 / span 2;
		margin-top: 3px;
		opacity: 0.5;
	}

	.nav-previous,
	.nav-next {
		position: relative;
		flex: 1;
		display: grid;
		column-gap: 10px;
		row-gap: 6px;
		padding-top: 30px;
	}

	/* Small grey labels */
	.nav-previous::before,
	.nav-next::before {
		position: absolute;
		top: 0;
		font-size: 14px;
		font-weight: bold;
		color: #6b7280;
	}

	.nav-previous {
		grid-template-columns: auto 1fr;
	}

	.nav-previous::before {
		content: "Previous Post";
		left: 30px;
	}

	.nav-previous .gp-icon {
		grid-column: 1;
	}

	.nav-previous .prev,
	.nav-previous .nav-category {
		grid-column: 2;
	}

	.nav-next {
		grid-template-columns: 1fr auto;
		justify-content: flex-end;
		text-align: right;
	}

	.nav-next::before {
		content: "Next Post";
		right: 30px;
	}

	.nav-next .gp-icon {
		grid-column: 2;
	}

	.nav-next .next,
	.nav-next .nav-category {
		grid-column: 1;
	}
}

/* Slanted centre divider — parent's own pseudo, can't nest without & */
.post-navigation::after {
	content: "";
	position: absolute;
	top: 28px;
	bottom: 28px;
	left: 50%;
	width: 1px;
	background: #e3e7ed;
	transform: rotate(18deg);
}



.category .page-header,
.tag .page-header {
	display: none;
}

/* Off-canvas toggle button: keep showing the hamburger icon even while
   the panel is open (the panel has its own X to close). GP core's generic
   .toggled swap targets any menu-toggle, including this off-canvas one. */
#mobile-menu-control-wrapper.toggled .icon-menu-bars svg:nth-child(1) {
	display: block !important;
}
#mobile-menu-control-wrapper.toggled .icon-menu-bars svg:nth-child(2) {
	display: none !important;
}

/* Off-canvas panel: remove the dark dimming wash over the pushed page
   content. */
.slideout-overlay {
	background-color: transparent;
}

/* Off-canvas panel: turn the existing close button into a pink header
   bar across the top of the panel, matching remedyclinic.com's off-canvas
   menu (their .pad_menutitle bar, #cd7399, with a white close icon). */
#generate-slideout-menu.main-navigation button.slideout-exit {
	background-color: #cd7399 !important;
	width: 100%;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 0 20px;
	margin: 0 0 15px 0;
	box-sizing: border-box;
}
#generate-slideout-menu.main-navigation button.slideout-exit .gp-icon {
	color: #fff;
	fill: #fff;
}

/* Off-canvas panel: show all submenus expanded by default instead of
   requiring a tap on the dropdown arrow, and hide the now-redundant
   arrow toggles. */
#generate-slideout-menu.main-navigation ul ul {
	display: block !important;
	opacity: 1;
    transition-delay: 150ms;
    pointer-events: auto;
    height: auto;
    overflow: visible;
}
/*
#generate-slideout-menu .dropdown-menu-toggle {
	display: none !important;
}
*/
#generate-slideout-menu .slideout-menu li {
	margin-bottom: 6px;
}
#generate-slideout-menu .slideout-menu ul li {
	margin-bottom: 0;
}

/* Off-canvas panel: this site uses GP's dynamic typography system, which
   makes GP Premium skip its slideout_font_size/weight settings entirely,
   so set the panel's type scale directly instead. Sized/weighted to match
   remedyclinic.com's off-canvas menu (16px/400 top level, 14px sub-items
   with a "- " prefix, both white, no bold). */
#generate-slideout-menu.main-navigation .main-nav > ul > li > a {
	font-size: 16px;
	font-weight: 400;
	padding-left: 20px;
}
#generate-slideout-menu.main-navigation .main-nav ul ul a {
	font-size: 14px;
	font-weight: 400;
	padding-left: 30px;
}
#generate-slideout-menu.main-navigation .main-nav ul ul a::before {
	content: "- ";
}



/* Right Sidebar */
.wp-block-latest-posts__list {
	li {
		margin: 20px 0;
		
		a { text-decoration: none; }
	}
}

/* Back to top */
.generate-back-to-top,
.generate-back-to-top:visited {
	width: 40px;
	line-height: 38px;
	border-radius: 50%;
	bottom: 20px;
	right: 20px;
	background-color: rgba( 0, 0, 0, 0.2 );
	color: #fff;
	opacity: 0.4;
	transition: all 0.2s ease-out;
}

.generate-back-to-top:hover,
.generate-back-to-top:focus {
	opacity: 1;
	background-color: rgba( 0, 0, 0, 0.5 );
}

body.error404 {
	header.site-header {
		background: #222;
	}
}


@media (max-width: 768px) {
	.post-navigation {
		flex-direction: column;
		gap: 30px;

		.nav-next {
			justify-content: flex-start;
			text-align: right;
		}
		
		.nav-previous,
		.nav-next {
			background: rgba(0, 0, 0, 0.03);
			padding: 40px 10px 20px;
			
			a {
				font-size: 14px;
			}
		}
		
		.nav-previous:before,
		.nav-next:before{
			margin-top: 10px;
		}
	}

	.post-navigation::after {
		display: none;
	}
}

/* Blog page, archives and search: space between hero banner and content */
:is(.blog, .archive, .search) .site-content {
	padding-top: 50px;

	@media (max-width: 768px) {
		padding-top: 30px;
	}
}

/* Blog page: first post lines up with the top of the sidebar */
:is(.blog, .archive, .search) .site-main > article:first-of-type .inside-article {
	padding-top: 0;
}

/* Blog page: post heading color */
.blog .site-main .entry-title,
.blog .site-main .entry-title a {
	color: #666666;
}

/* Sidebar cards: Blog page sidebar + [remedy_sidebar] shortcode */
@media (min-width: 769px) {
	:is(.blog, .archive, .search) .is-right-sidebar { padding-left: 24px; }
}

:is(.blog .is-right-sidebar, .archive .is-right-sidebar, .search .is-right-sidebar, .remedy-sidebar-cards) {
	.widget {
		background: #fff;
		border-radius: 6px;
		box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
		padding: 20px 35px 25px;
		margin-bottom: 30px;
	}

	.widget-title {
		position: relative;
		font-family: var(--gp-font--roboto);
		font-size: 16px;
		font-weight: 700;
		line-height: 1.2;
		color: #222;
		padding-bottom: 10px;
		margin-bottom: 20px;
	}

	.widget-title::after {
		content: "";
		position: absolute;
		left: 0;
		bottom: 0;
		width: 35px;
		height: 2px;
		background: var(--link);
	}

	ul {
		list-style: none;
		margin: 0;
		padding: 0;
	}

	li {
		margin: 0 0 20px 3px;
		padding: 0;
	}

	li:last-child { margin-bottom: 0; }

	a {
		color: var(--link);
		font-size: 15px;
		text-decoration: none;
	}

	a:hover { color: var(--dark-2); }
}

/* Team member pages: e-mail / phone lines use body text color */
.single-team-member .inside-article a.gb-text:is([href^="mailto:"], [href^="tel:"]) {
	color: var(--text);
}


/* Post tags as chips (matches remedyclinic.com) */
.single .entry-meta .tags-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	padding: 8px;
	font-family: var(--gp-font--assistant), sans-serif;
	font-size: 12px;
	line-height: 22px;

	> .gp-icon {
		display: none;
	}

	a[rel~="tag"] {
		display: inline-flex;
		align-items: center;
		padding: 0 5px 2px;
		border-radius: 3px;
		background-color: rgba(0, 0, 0, 0.1);
		color: var(--link);
		text-decoration: none;
	}

	a[rel~="tag"]::before {
		content: "";
		width: 12px;
		height: 12px;
		margin: 2px 6px 0 0;
		background-color: #2b2b2b;
		-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%3E%3Cpath%20d%3D%22M20%2039.5c-8.836%200-16%207.163-16%2016v176c0%204.243%201.686%208.313%204.687%2011.314l224%20224c6.248%206.248%2016.378%206.248%2022.626%200l176-176c6.244-6.244%206.25-16.364.013-22.615l-223.5-224A15.999%2015.999%200%2000196.5%2039.5H20zm56%2096c0-13.255%2010.745-24%2024-24s24%2010.745%2024%2024-10.745%2024-24%2024-24-10.745-24-24z%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
		mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%3E%3Cpath%20d%3D%22M20%2039.5c-8.836%200-16%207.163-16%2016v176c0%204.243%201.686%208.313%204.687%2011.314l224%20224c6.248%206.248%2016.378%206.248%2022.626%200l176-176c6.244-6.244%206.25-16.364.013-22.615l-223.5-224A15.999%2015.999%200%2000196.5%2039.5H20zm56%2096c0-13.255%2010.745-24%2024-24s24%2010.745%2024%2024-10.745%2024-24%2024-24-10.745-24-24z%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
	}

	a[rel~="tag"]:hover {
		color: var(--dark-2);
	}
}


/* Top-level menu dropdown arrows: centre them on the text with flexbox instead of
   baseline alignment, which Firefox renders a few pixels lower than Chrome. */
#site-navigation .main-nav > ul > li.menu-item-has-children > a {
	display: flex;
	align-items: center;
}

#site-navigation .main-nav > ul > li.menu-item-has-children > a .dropdown-menu-toggle {
	display: flex;
	align-items: center;
	line-height: 1;
	height: auto;
}

#site-navigation .main-nav > ul > li.menu-item-has-children > a .dropdown-menu-toggle .gp-icon {
	display: flex;
	line-height: 1;
}

#site-navigation .main-nav > ul > li.menu-item-has-children > a .dropdown-menu-toggle .gp-icon svg {
	top: 0;
}


/* Category/tag archive post titles: #666 with blue hover (matches remedyclinic.com). Scoped to the post list only. */
.archive .site-main > article .entry-title,
.archive .site-main > article .entry-title a {
	color: #666666;
}

.archive .site-main > article .entry-title a:is(:hover, :focus) {
	color: #038ec4;
}


/* ==========================================================================
   TYPOGRAPHY: matched to remedyclinic.com (computed styles, desktop 1360px)
   Body copy: one style, Assistant 16px / 400 / 27.2px / #2b2b2b
   ========================================================================== */

/* Render text like live (GeneratePress forces antialiased, which thins text) */
body {
	-webkit-font-smoothing: auto;
	-moz-osx-font-smoothing: auto;
}




/* Team member pages: name, role, contact lines, pull quote */
body.single-team-member .dynamic-content-template h1 { font-weight: 900; color: #282828; }
body.single-team-member .site-content .dynamic-content-template :is(h1, a:has(> h1)) + div.gb-text {
	font-family: var(--gp-font--assistant), sans-serif;
	font-size: 19px;
	line-height: 27.2px;
	color: #e3b26d;
}
body.single-team-member .site-content .dynamic-content-template a.gb-text:is([href^="mailto:"], [href^="tel:"]),
body.single-team-member .site-content .dynamic-content-template :is(h1, a:has(> h1)) ~ p.gb-text {
	font-family: var(--gp-font--assistant), sans-serif;
	font-size: 19px;
	line-height: 27.2px;
	color: #626161;
}
body.single-team-member .dynamic-content-template h3 { color: #0f79bd; }

/* Post lists (blog, Our Team, archives): titles and read more */
body .site-content .site-main > article .entry-title,
body.page-id-6354 .site-content .team__section h2.gb-text {
	font-family: var(--gp-font--assistant), sans-serif;
	font-size: 28px;
	font-weight: 700;
	line-height: normal;
	color: #666666;
}
body .site-content a.read-more,
body.page-id-6354 .site-content .team__section a.gb-text {
	font-family: var(--gp-font--assistant), sans-serif;
	font-size: 12.8px;
	line-height: 22.4px;
	color: #038ec4;
}

/* Sidebars: widget titles and links */
body :is(.is-right-sidebar, .remedy-sidebar-cards) .widget .widget-title,
body .site-content .widget__title,
body .site-content .widget__title strong {
	font-family: var(--gp-font--roboto), sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: normal;
	color: #282828;
}
body :is(.is-right-sidebar, .remedy-sidebar-cards) .widget li a,
body .site-content .wp-block-latest-posts__post-title {
	font-family: var(--gp-font--assistant), sans-serif;
	font-size: 16px;
	line-height: 28px;
	color: #038ec4;
}

/* Main navigation */
#site-navigation .main-nav > ul > li > a {
	font-family: var(--gp-font--roboto), sans-serif;
	font-size: 16px;
	font-weight: 400;
}
#site-navigation .main-nav > ul > li:is(.current-menu-item, .current-menu-ancestor, .current-menu-parent) > a { color: #e3b26d; }
#site-navigation .main-nav ul ul a {
	font-family: var(--gp-font--roboto), sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #282828;
}

/* Homepage */
body.home .hero__banner h1.gb-text {
	font-family: var(--gp-font--roboto), sans-serif;
	font-weight: 200;
	line-height: normal;
	color: #fff;
}
body.home .hero__banner span.gb-text {
	font-family: var(--gp-font--roboto), sans-serif;
	font-weight: 100;
	line-height: 59.5px;
	color: #fff;
}
body.home .hero__banner a.button {
	font-family: var(--gp-font--assistant), sans-serif;
	font-size: 20px;
	font-weight: 400;
}
body.home .site-content .team__thumb h3 {
	font-family: var(--gp-font--roboto), sans-serif;
	font-weight: 700;
	line-height: normal;
	color: #282828;
	text-transform: uppercase;
}
@media (min-width: 1025px) { body.home .site-content .team__thumb h3 { font-size: 22px; } }
body.home .site-content .team__thumb h3 + div.gb-text {
	font-family: var(--gp-font--assistant), sans-serif;
	font-size: 13px;
	line-height: 27.2px;
	color: #5c5c5c;
}
body.home .site-content h2.gb-text-7f9a038c {
	font-family: var(--gp-font--roboto), sans-serif;
	font-weight: 600;
	line-height: 28px;
	color: #6ec1e4;
}
body.home .site-content a.button:not(.button__blue) {
	font-family: var(--gp-font--poppins), sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 16px;
	color: #fff;
	padding: 20px 45px;
}
body.home .carousel__testimonials .testimonial__client .gb-text {
	font-family: var(--gp-font--roboto), sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: normal;
	color: #636363;
}
body.home .carousel__testimonials .testimonial__content p {
	font-family: var(--gp-font--poppins), sans-serif;
	font-size: 19px;
	font-weight: 400;
	line-height: 30px;
	color: #636363;
}

/* Footer */
.site-footer h3.footer__column-header {
	font-family: var(--gp-font--roboto), sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: normal;
	color: #fff;
}
.site-footer :is(p.gb-text, .footer__column-links .gb-text, .footer__column-links a) {
	font-family: var(--gp-font--assistant), sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 28px;
	color: #fff;
}
.site-footer p.gb-text strong { font-weight: 700; }
.site-footer .footer__column-links :is(.active, .active a) { color: #fff; }
.site-footer .footer__column-links :is(a:hover, a:focus, .is-current, .is-current a) { color: #e3b26d; }


/* Desktop heading sizes from live (smaller screens keep the block's own responsive sizes) */
@media (min-width: 1025px) {
	body.home .site-content .hero__banner h1.gb-text { font-size: 50px; }
}

/* Footer link lists: centre each arrow on the first line of its link (one 28px line box), same in Firefox and Chrome */
.site-footer .footer__column-links > div {
	align-items: flex-start;
}
.site-footer .footer__column-links > div > .gb-shape {
	display: flex;
	align-items: center;
	height: 28px;
	line-height: 1;
	flex-shrink: 0;
}
.site-footer .footer__column-links > div > .gb-shape svg {
	display: block;
}


/* Credentials like "LAc" keep their own capitalisation inside uppercase headings */
.credential { text-transform: none; }

/* Footer spacing (matches remedyclinic.com, desktop) */
.site-footer .footer__column-links > div {
	margin-bottom: 2px;
}
.site-footer .gb-text-b64cfc26 { margin-bottom: 50px; } /* Raleigh, NC line -> Phone */
.site-footer .gb-text-5ccb54de { margin-bottom: 25px; } /* Phone -> Text */
.site-footer .gb-text-3e1d7448 { margin-bottom: 25px; } /* Text -> E-mail */
.site-footer .gb-media-44f13d21 { margin-top: 23px; } /* Veterans badge */
@media (min-width: 1025px) {
	.site-footer .gb-element-958a386c { padding-top: 80px; padding-bottom: 74px; }
}

/* Page/post hero: keep long titles clear of the overlaid header and wrap them like live */
@media (min-width: 1025px) {
	.gb-element-222c5259 { padding-top: 140px; }
	.gb-element-222c5259 h1 { max-width: 1113px; margin-left: auto; margin-right: auto; }
}
