/*
Theme Name: STEADYNESS GeneratePress Child
Template: generatepress
Version: 1.0.0
Description: Child theme for the STEADYNESS homepage.
*/

/*
 * STEADYNESS archive/category and static page styling.
 * CSS-only: no GeneratePress template changes required.
 */

body.category,
body.archive,
body.page {
	background: #f4f7f8;
	color: #17212b;
}

body.category #page,
body.category .site,
body.category .site-content,
body.category .content-area,
body.category .site-main,
body.archive #page,
body.archive .site,
body.archive .site-content,
body.archive .content-area,
body.archive .site-main,
body.page #page,
body.page .site,
body.page .site-content,
body.page .content-area,
body.page .site-main {
	background: transparent;
}

body.category .site-content,
body.archive .site-content,
body.page .site-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(28px, 5vw, 68px) 20px;
}

body.category .site-content,
body.archive .site-content {
	display: flex;
	gap: 28px;
	align-items: flex-start;
}

body.category .content-area,
body.archive .content-area,
body.page .content-area {
	min-width: 0;
}

body.category.right-sidebar .content-area,
body.category.left-sidebar .content-area,
body.archive.right-sidebar .content-area,
body.archive.left-sidebar .content-area {
	width: calc(100% - 368px);
}

body.category.no-sidebar .content-area,
body.archive.no-sidebar .content-area,
body.page.no-sidebar .content-area {
	width: 100%;
	max-width: 920px;
	margin-right: auto;
	margin-left: auto;
}

body.page.right-sidebar .content-area,
body.page.left-sidebar .content-area {
	width: calc(100% - 368px);
}

body.category .page-header,
body.category .inside-article,
body.category #right-sidebar .widget,
body.category #left-sidebar .widget,
body.category #secondary .widget,
body.archive .page-header,
body.archive .inside-article,
body.archive #right-sidebar .widget,
body.archive #left-sidebar .widget,
body.archive #secondary .widget,
body.page .inside-article,
body.page #right-sidebar .widget,
body.page #left-sidebar .widget,
body.page #secondary .widget {
	background: #ffffff;
	border: 1px solid rgba(28, 53, 68, 0.08);
	border-radius: 8px;
	box-shadow: 0 18px 45px rgba(24, 45, 59, 0.08);
}

body.category .page-header,
body.archive .page-header {
	margin-bottom: 24px;
	padding: clamp(26px, 4vw, 40px);
}

body.category .page-header .page-title,
body.archive .page-header .page-title {
	margin: 0;
	color: #101820;
	font-size: clamp(30px, 4vw, 44px);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: 0;
	word-break: keep-all;
}

body.category .taxonomy-description,
body.archive .taxonomy-description {
	max-width: 760px;
	margin-top: 12px;
	color: #5f6f7b;
	font-size: 16px;
	line-height: 1.7;
}

body.category .taxonomy-description p:last-child,
body.archive .taxonomy-description p:last-child {
	margin-bottom: 0;
}

body.category .site-main > article,
body.archive .site-main > article {
	margin-bottom: 20px;
}

body.category .inside-article,
body.archive .inside-article {
	padding: clamp(24px, 4vw, 36px);
	transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

body.category .site-main > article:hover .inside-article,
body.archive .site-main > article:hover .inside-article {
	border-color: rgba(15, 107, 114, 0.22);
	transform: translateY(-2px);
	box-shadow: 0 22px 52px rgba(24, 45, 59, 0.1);
}

body.category .entry-header,
body.archive .entry-header {
	margin-bottom: 14px;
}

body.category .entry-title,
body.archive .entry-title,
body.page .entry-title {
	color: #101820;
	font-weight: 800;
	line-height: 1.22;
	letter-spacing: 0;
	word-break: keep-all;
}

body.category .entry-title,
body.archive .entry-title {
	margin: 0;
	font-size: clamp(24px, 3vw, 34px);
}

body.category .entry-title a,
body.archive .entry-title a {
	color: inherit;
	text-decoration: none;
}

body.category .entry-title a:hover,
body.archive .entry-title a:hover {
	color: #0f6b72;
}

body.category .entry-meta,
body.category .entry-meta a,
body.archive .entry-meta,
body.archive .entry-meta a {
	color: #64737f;
	font-size: 14px;
	line-height: 1.5;
	text-decoration: none;
}

body.category .entry-summary,
body.category .entry-content,
body.archive .entry-summary,
body.archive .entry-content {
	color: #31414d;
	font-size: 16px;
	line-height: 1.75;
}

body.category .entry-summary p:last-child,
body.category .entry-content p:last-child,
body.archive .entry-summary p:last-child,
body.archive .entry-content p:last-child {
	margin-bottom: 0;
}

body.category .post-image,
body.category .featured-image,
body.archive .post-image,
body.archive .featured-image {
	overflow: hidden;
	margin-bottom: 20px;
	border-radius: 8px;
	background: #e9eef0;
}

body.category .post-image img,
body.category .featured-image img,
body.archive .post-image img,
body.archive .featured-image img {
	display: block;
	width: 100%;
	height: auto;
}

body.category .read-more,
body.archive .read-more {
	display: inline-flex;
	align-items: center;
	margin-top: 16px;
	color: #0f6b72;
	font-weight: 800;
	text-decoration: none;
}

body.category .paging-navigation,
body.archive .paging-navigation {
	margin-top: 24px;
	padding: 20px;
	border-radius: 8px;
	background: #ffffff;
	border: 1px solid rgba(28, 53, 68, 0.08);
	box-shadow: 0 18px 45px rgba(24, 45, 59, 0.08);
}

body.category .paging-navigation a,
body.archive .paging-navigation a,
body.category .paging-navigation span,
body.archive .paging-navigation span {
	border-radius: 8px;
}

body.page .inside-article {
	padding: clamp(28px, 5vw, 56px);
}

body.page .entry-header {
	margin-bottom: 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(28, 53, 68, 0.1);
}

body.page .entry-title {
	margin: 0;
	font-size: clamp(32px, 4vw, 46px);
}

body.page .entry-content {
	color: #24323d;
	font-size: 18px;
	line-height: 1.82;
}

body.page .entry-content > *:first-child {
	margin-top: 0;
}

body.page .entry-content a {
	color: #0f6b72;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

body.category #right-sidebar,
body.category #left-sidebar,
body.category #secondary,
body.archive #right-sidebar,
body.archive #left-sidebar,
body.archive #secondary,
body.page #right-sidebar,
body.page #left-sidebar,
body.page #secondary {
	width: 340px;
	padding: 0;
}

body.category #right-sidebar .inside-right-sidebar,
body.category #left-sidebar .inside-left-sidebar,
body.category #secondary .inside-right-sidebar,
body.category #secondary .inside-left-sidebar,
body.archive #right-sidebar .inside-right-sidebar,
body.archive #left-sidebar .inside-left-sidebar,
body.archive #secondary .inside-right-sidebar,
body.archive #secondary .inside-left-sidebar,
body.page #right-sidebar .inside-right-sidebar,
body.page #left-sidebar .inside-left-sidebar,
body.page #secondary .inside-right-sidebar,
body.page #secondary .inside-left-sidebar {
	display: grid;
	gap: 18px;
	margin: 0;
}

body.category #right-sidebar .widget,
body.category #left-sidebar .widget,
body.category #secondary .widget,
body.archive #right-sidebar .widget,
body.archive #left-sidebar .widget,
body.archive #secondary .widget,
body.page #right-sidebar .widget,
body.page #left-sidebar .widget,
body.page #secondary .widget {
	margin: 0;
	padding: 24px;
}

body.category #right-sidebar .widget-title,
body.category #left-sidebar .widget-title,
body.category #secondary .widget-title,
body.category #right-sidebar h2,
body.category #left-sidebar h2,
body.category #secondary h2,
body.archive #right-sidebar .widget-title,
body.archive #left-sidebar .widget-title,
body.archive #secondary .widget-title,
body.archive #right-sidebar h2,
body.archive #left-sidebar h2,
body.archive #secondary h2,
body.page #right-sidebar .widget-title,
body.page #left-sidebar .widget-title,
body.page #secondary .widget-title,
body.page #right-sidebar h2,
body.page #left-sidebar h2,
body.page #secondary h2 {
	margin: 0 0 16px;
	color: #101820;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.3;
}

body.category #right-sidebar a,
body.category #left-sidebar a,
body.category #secondary a,
body.archive #right-sidebar a,
body.archive #left-sidebar a,
body.archive #secondary a,
body.page #right-sidebar a,
body.page #left-sidebar a,
body.page #secondary a {
	color: #17212b;
	text-decoration: none;
}

body.category #right-sidebar a:hover,
body.category #left-sidebar a:hover,
body.category #secondary a:hover,
body.archive #right-sidebar a:hover,
body.archive #left-sidebar a:hover,
body.archive #secondary a:hover,
body.page #right-sidebar a:hover,
body.page #left-sidebar a:hover,
body.page #secondary a:hover {
	color: #0f6b72;
}

body.category #right-sidebar ul,
body.category #left-sidebar ul,
body.category #secondary ul,
body.archive #right-sidebar ul,
body.archive #left-sidebar ul,
body.archive #secondary ul,
body.page #right-sidebar ul,
body.page #left-sidebar ul,
body.page #secondary ul {
	margin: 0;
	list-style: none;
}

body.category #right-sidebar li,
body.category #left-sidebar li,
body.category #secondary li,
body.archive #right-sidebar li,
body.archive #left-sidebar li,
body.archive #secondary li,
body.page #right-sidebar li,
body.page #left-sidebar li,
body.page #secondary li {
	padding: 12px 0;
	border-bottom: 1px solid rgba(28, 53, 68, 0.08);
	line-height: 1.45;
}

body.category #right-sidebar li:last-child,
body.category #left-sidebar li:last-child,
body.category #secondary li:last-child,
body.archive #right-sidebar li:last-child,
body.archive #left-sidebar li:last-child,
body.archive #secondary li:last-child,
body.page #right-sidebar li:last-child,
body.page #left-sidebar li:last-child,
body.page #secondary li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

body.category .widget_search .search-form,
body.category .widget_search .wp-block-search__inside-wrapper,
body.archive .widget_search .search-form,
body.archive .widget_search .wp-block-search__inside-wrapper,
body.page .widget_search .search-form,
body.page .widget_search .wp-block-search__inside-wrapper {
	display: flex;
	gap: 8px;
}

body.category .widget_search input[type="search"],
body.category .wp-block-search__input,
body.archive .widget_search input[type="search"],
body.archive .wp-block-search__input,
body.page .widget_search input[type="search"],
body.page .wp-block-search__input {
	min-width: 0;
	width: 100%;
	height: 46px;
	border: 1px solid rgba(28, 53, 68, 0.14);
	border-radius: 8px;
	background: #f8fbfb;
	color: #17212b;
	font-size: 15px;
}

body.category .widget_search input[type="submit"],
body.category .widget_search button,
body.category .wp-block-search__button,
body.archive .widget_search input[type="submit"],
body.archive .widget_search button,
body.archive .wp-block-search__button,
body.page .widget_search input[type="submit"],
body.page .widget_search button,
body.page .wp-block-search__button {
	height: 46px;
	padding: 0 16px;
	border: 0;
	border-radius: 8px;
	background: #0f6b72;
	color: #ffffff;
	font-weight: 800;
	white-space: nowrap;
}

body.category .widget_recent_entries li a,
body.category .wp-block-latest-posts li a,
body.archive .widget_recent_entries li a,
body.archive .wp-block-latest-posts li a,
body.page .widget_recent_entries li a,
body.page .wp-block-latest-posts li a {
	display: block;
	font-weight: 750;
}

body.category .wp-block-latest-posts__post-date,
body.archive .wp-block-latest-posts__post-date,
body.page .wp-block-latest-posts__post-date {
	display: block;
	margin-top: 5px;
	color: #72808a;
	font-size: 13px;
}

@media (max-width: 1024px) {
	body.category .site-content,
	body.archive .site-content,
	body.page .site-content {
		display: block;
		max-width: 920px;
	}

	body.category.right-sidebar .content-area,
	body.category.left-sidebar .content-area,
	body.archive.right-sidebar .content-area,
	body.archive.left-sidebar .content-area,
	body.page.right-sidebar .content-area,
	body.page.left-sidebar .content-area,
	body.category #right-sidebar,
	body.category #left-sidebar,
	body.category #secondary,
	body.archive #right-sidebar,
	body.archive #left-sidebar,
	body.archive #secondary,
	body.page #right-sidebar,
	body.page #left-sidebar,
	body.page #secondary {
		width: 100%;
	}

	body.category #right-sidebar,
	body.category #left-sidebar,
	body.category #secondary,
	body.archive #right-sidebar,
	body.archive #left-sidebar,
	body.archive #secondary,
	body.page #right-sidebar,
	body.page #left-sidebar,
	body.page #secondary {
		margin-top: 24px;
	}
}

@media (max-width: 680px) {
	body.category .site-content,
	body.archive .site-content,
	body.page .site-content {
		padding: 22px 14px 42px;
	}

	body.category .page-header,
	body.archive .page-header,
	body.category .inside-article,
	body.archive .inside-article,
	body.page .inside-article,
	body.category #right-sidebar .widget,
	body.category #left-sidebar .widget,
	body.category #secondary .widget,
	body.archive #right-sidebar .widget,
	body.archive #left-sidebar .widget,
	body.archive #secondary .widget,
	body.page #right-sidebar .widget,
	body.page #left-sidebar .widget,
	body.page #secondary .widget {
		padding: 20px;
	}

	body.category .page-header .page-title,
	body.archive .page-header .page-title,
	body.page .entry-title {
		font-size: 30px;
	}

	body.page .entry-content {
		font-size: 17px;
		line-height: 1.78;
	}

	body.category .widget_search .search-form,
	body.category .widget_search .wp-block-search__inside-wrapper,
	body.archive .widget_search .search-form,
	body.archive .widget_search .wp-block-search__inside-wrapper,
	body.page .widget_search .search-form,
	body.page .widget_search .wp-block-search__inside-wrapper {
		flex-direction: column;
	}

	body.category .widget_search input[type="submit"],
	body.category .widget_search button,
	body.category .wp-block-search__button,
	body.archive .widget_search input[type="submit"],
	body.archive .widget_search button,
	body.archive .wp-block-search__button,
	body.page .widget_search input[type="submit"],
	body.page .widget_search button,
	body.page .wp-block-search__button {
		width: 100%;
	}
}