/*
 * JCR Richards — main stylesheet.
 * Values measured from the live Themler theme (Jack2023_03) on 4 Nov 2026.
 */

:root {
	--jcr-olive: #879900;        /* links, buttons, post titles */
	--jcr-olive-dark: #545f00;   /* linked titles in lists */
	--jcr-hero: #758117;         /* behind the header portrait */
	--jcr-footer: #222600;       /* footer background */
	--jcr-lime: #f5ffad;         /* site name */
	--jcr-text: #555;
	--jcr-muted: #777;
	--jcr-border: #ddd;
	--jcr-font-body: "Droid Sans", "Noto Sans", Arial, Helvetica, sans-serif;
	--jcr-font-head: "Josefin Sans", Arial, Helvetica, sans-serif;
	--jcr-container: 1170px;
	--jcr-gutter: 15px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: #fff;
	color: var(--jcr-text);
	font-family: var(--jcr-font-body);
	font-size: 15px;
	line-height: 1.7;
	overflow-x: hidden;
}

img, video, iframe { max-width: 100%; }
img { height: auto; }

a { color: var(--jcr-olive); text-decoration: none; }
a:hover, a:focus { color: var(--jcr-olive-dark); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--jcr-font-head);
	font-weight: 500;
	color: var(--jcr-text);
	line-height: 1.43;
	margin: 0 0 .5em;
}
h1 { font-size: 39px; }
h2 { font-size: 32px; }
h3 { font-size: 26px; }
h4 { font-size: 19px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p { margin: 0 0 10.5px; }

blockquote {
	margin: 0 0 1.2em;
	padding: .5em 1.2em;
	border-left: 4px solid var(--jcr-olive);
	background: #f7f8f0;
}

hr { border: 0; border-top: 1px solid var(--jcr-border); margin: 1.5em 0; }

table { border-collapse: collapse; width: 100%; margin-bottom: 1.2em; }
th, td { border: 1px solid var(--jcr-border); padding: 6px 10px; text-align: left; }

input, textarea, select, button { font: inherit; color: inherit; }
input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="password"], textarea, select {
	border: 1px solid #ccc;
	border-radius: 0;
	padding: 6px 12px;
	background: #fff;
	color: #555;
	max-width: 100%;
}
button, input[type="submit"], input[type="button"], .wp-block-button__link, .button {
	display: inline-block;
	border: 1px solid var(--jcr-olive);
	background: var(--jcr-olive);
	color: #fff;
	padding: 6px 12px;
	border-radius: 0;
	cursor: pointer;
	line-height: 1.43;
}
button:hover, input[type="submit"]:hover, .wp-block-button__link:hover, .button:hover {
	background: var(--jcr-olive-dark);
	border-color: var(--jcr-olive-dark);
	color: #fff;
	text-decoration: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 100000;
	padding: 10px 16px; background: #fff; color: #000;
}

.container {
	width: 100%;
	max-width: var(--jcr-container);
	margin: 0 auto;
	padding: 0 var(--jcr-gutter);
}

/* WordPress alignment and caption classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 13px; color: var(--jcr-muted); text-align: center; }
.entry-content::after { content: ""; display: table; clear: both; }

/* ---------- Header ---------- */
.site-hero {
	position: relative;
	background-color: var(--jcr-hero);
	min-height: 465px;
	display: flex;
	flex-direction: column;
}

.site-hero__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}
.site-hero__image {
	position: absolute;
	inset: 0;
	background-position: 50% 50%;
	background-size: cover;
	background-repeat: no-repeat;
	will-change: transform;
}

.site-hero__inner {
	position: relative;
	flex: 1 0 auto;
	text-align: center;
	padding: calc(103px + 20vh) 20px 45px;
}

.site-title {
	margin: 0;
	font-family: var(--jcr-font-head);
	font-weight: 500;
	font-size: 50px;
	line-height: 1.43;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, .3);
}
.site-title a, .site-title a:hover, .site-title a:focus { color: var(--jcr-lime); text-decoration: none; }

.site-tagline {
	margin: 2em 0 0;
	font-family: var(--jcr-font-head);
	font-weight: 500;
	font-size: 21px;
	line-height: 30px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
}

/* ---------- Main menu ---------- */
.site-nav-anchor { position: relative; min-height: 44px; }

.site-nav-bar {
	position: relative;
	z-index: 50;
	background: rgba(0, 0, 0, .25);
}
.site-nav-bar.is-stuck {
	position: fixed;
	top: 0; left: 0; right: 0;
	background: #fff;
}
.site-nav-bar.is-stuck::before {
	content: "";
	position: absolute; inset: 0;
	background: rgba(0, 0, 0, .25);
	pointer-events: none;
}
.admin-bar .site-nav-bar.is-stuck { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-nav-bar.is-stuck { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-nav-bar.is-stuck { top: 0; } }

.site-nav { position: relative; text-align: center; }

.site-nav .menu, .site-nav .sub-menu, .site-nav .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav > .menu {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	vertical-align: top;
}

.site-nav > .menu > li { position: relative; }

.site-nav > .menu > li > a {
	display: block;
	padding: 10px 15px;
	background: rgba(255, 255, 255, .5);
	color: #fff;
	font-family: var(--jcr-font-head);
	font-weight: 600;
	font-size: 17px;
	line-height: 24px;
	letter-spacing: 2px;
	text-transform: uppercase;
	white-space: nowrap;
	text-decoration: none;
}
.site-nav > .menu > li:hover > a,
.site-nav > .menu > li > a:focus {
	background: #333;
	color: #fff;
}
.site-nav > .menu > li.current-menu-item > a,
.site-nav > .menu > li.current_page_item > a,
.site-nav > .menu > li.current-page-ancestor > a,
.site-nav > .menu > li.current_page_ancestor > a {
	background: #fff;
	color: #000;
}

/* Drop-downs */
.site-nav .sub-menu, .site-nav .children {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 184px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
	text-align: left;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s, transform .2s, visibility .2s;
	z-index: 60;
}
.site-nav .sub-menu .sub-menu, .site-nav .children .children { top: 0; left: 100%; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu,
.site-nav li:hover > .children, .site-nav li:focus-within > .children,
.site-nav li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.site-nav .sub-menu a, .site-nav .children a {
	display: block;
	padding: 10px 20px;
	color: #000;
	font-size: 15px;
	line-height: 25.5px;
	text-transform: uppercase;
	white-space: nowrap;
	text-decoration: none;
}
.site-nav .sub-menu li:hover > a, .site-nav .sub-menu a:focus,
.site-nav .children li:hover > a { background: #ededed; color: #000; }

.site-nav__toggle { display: none; }

/* ---------- Layout ---------- */
.site-content { padding: 30px 0 40px; }
.jcr-front-template .site-content { padding-top: 0; }
.jcr-front-template .site-content { padding-bottom: 0; }
/* The home-page template is edge to edge, like the old theme; Beaver Builder rows set their own widths. */
.jcr-front-template .layout { max-width: none; padding: 0; }
.jcr-front-template .entry { margin-bottom: 0; }
.jcr-front-template .site-main { max-width: none; }
/* Block-editor content (not Beaver Builder) on the home template gets the same 20px side margin as the old layout. */
.jcr-front-template .entry-content > :not(.fl-builder-content) { margin-left: 20px; margin-right: 20px; }

.layout { display: flex; align-items: flex-start; gap: 80px; }
/* The old Themler core plugin loads Bootstrap, whose clearfix ::before/::after
   on .container would otherwise become extra flex/grid items. */
.layout::before, .layout::after,
.footer-columns::before, .footer-columns::after { content: none; display: none; }
.site-main { flex: 0 1 845px; min-width: 0; max-width: 845px; }
.site-sidebar { flex: 0 0 245px; width: 245px; }

.jcr-full-width .layout { display: block; }

/* ---------- Posts ---------- */
.entry { margin-bottom: 40px; }
.entry-title {
	font-size: 39px;
	line-height: 1.43;
	color: var(--jcr-olive);
	margin: 0 0 .4em;
}
.entry--page .entry-title { font-size: 52px; }
.entry--list .entry-title a { color: var(--jcr-olive-dark); }
.entry--list .entry-title a:hover { color: var(--jcr-olive); text-decoration: none; }

.entry-content h2 { color: var(--jcr-text); }
.entry-content ul, .entry-content ol { padding-left: 1.6em; margin: 0 0 1em; }

.entry-meta--cats {
	margin-top: 1.5em;
	display: flex;
	gap: 8px;
	align-items: baseline;
}
.entry-meta--cats .icon { color: #ccc; flex: none; position: relative; top: 1px; }

.entry-meta--date {
	margin: -.6em 0 1em;
	font-size: 13px;
	color: var(--jcr-muted);
}

/* Previous / next post */
.post-navigation { margin: 30px 0; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 20px; }
.post-navigation a {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--jcr-border);
	color: var(--jcr-text);
	text-decoration: none;
}
.post-navigation a:hover { background: #f5f5f5; }
.post-navigation .nav-next { margin-left: auto; text-align: right; }

/* Pagination */
.pagination { margin: 21px 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; }
.pagination .page-numbers {
	padding: 6px 12px;
	margin-left: -1px;
	border: 1px solid #fff;
	background: #fff;
	color: var(--jcr-text);
	text-decoration: none;
}
.pagination .page-numbers.current { background: #f5f5f5; font-weight: 700; }
.pagination a.page-numbers:hover { background: #f5f5f5; }

.archive-title { color: var(--jcr-olive); }

/* ---------- Sidebar ---------- */
.site-sidebar .widget { margin-bottom: 40px; font-size: 14px; }
.site-sidebar .widget-title, .site-sidebar .wp-block-heading {
	font-size: 19px;
	font-weight: 400;
	color: var(--jcr-muted);
	margin: 10px 0 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--jcr-olive);
}
.site-sidebar ul { list-style: square; margin: 0; padding-left: 22px; }
.site-sidebar ul ul { padding-left: 16px; }
.site-sidebar li { margin: 0 0 2px; line-height: 1.43; }
.site-sidebar li::marker { color: var(--jcr-text); font-size: .8em; }

/* ---------- Footer ---------- */
.site-footer {
	background: var(--jcr-footer);
	color: #ccc;
	padding: 20px 0;
}
.footer-columns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
.footer-col { padding: 0 5px; }
.site-footer .widget { margin-bottom: 20px; }
.site-footer .widget-title, .site-footer .wp-block-heading {
	font-size: 19px;
	font-weight: 400;
	color: #fff;
	margin: 10px 0;
}
.site-footer ul { list-style: square; margin: 0; padding-left: 22px; }
.site-footer li { line-height: 1.5; }
.site-footer li::marker { color: #ccc; font-size: .8em; }
.site-footer a { color: var(--jcr-olive); }
.site-footer a:hover { color: #b8cc33; }

.site-info {
	text-align: center;
	color: #ddd;
	font-size: 11px;
	line-height: 1.43;
	padding: 10px var(--jcr-gutter) 0;
}
.site-info a { color: #ddd; }

/* Search form (footer and elsewhere) */
.search-form { display: flex; max-width: 100%; }
.search-form label { flex: 1 1 auto; }
.search-form .search-field { width: 100%; height: 35px; }
.search-form .search-submit { height: 35px; }
.wp-block-search__inside-wrapper { display: flex; }
.wp-block-search__button { margin-left: 0; }

/* ---------- Back to top ---------- */
.back-to-top {
	position: fixed;
	right: 127px;
	bottom: 67px;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(135, 153, 0, .5);
	color: #fff;
	z-index: 40;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility .3s, background .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover, .back-to-top:focus { background: var(--jcr-olive); color: #fff; text-decoration: none; }

/* ---------- Comments ---------- */
.comments { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 30px; }
.comment-body { padding: 15px 0; border-bottom: 1px solid #eee; }
.comment-author .avatar { float: left; margin-right: 12px; border-radius: 50%; }
.comment-metadata { font-size: 13px; }
.comment-form label { display: block; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	.back-to-top { right: 20px; bottom: 20px; }
}

@media (max-width: 991px) {
	.layout { display: block; }
	.site-main { max-width: none; }
	.site-sidebar { width: auto; margin-top: 40px; }
	.footer-columns { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
	.site-hero { min-height: 0; }
	.site-hero__inner { padding: 60px 15px 40px; }
	.site-title { font-size: 34px; }
	.site-tagline { font-size: 15px; line-height: 22px; margin-top: 1em; }
	.entry-title, .entry--page .entry-title { font-size: 30px; }
	.footer-columns { grid-template-columns: 1fr; }

	/* Collapsed menu */
	.site-nav { text-align: left; }
	.site-nav__toggle {
		display: flex;
		align-items: center;
		gap: 10px;
		width: 100%;
		background: transparent;
		border: 0;
		color: #fff;
		padding: 10px 15px;
		font-family: var(--jcr-font-head);
		font-weight: 600;
		font-size: 17px;
		letter-spacing: 2px;
		text-transform: uppercase;
	}
	.site-nav-bar.is-stuck .site-nav__toggle { color: #333; }
	.site-nav__toggle-bars, .site-nav__toggle-bars::before, .site-nav__toggle-bars::after {
		display: block;
		width: 22px;
		height: 2px;
		background: currentColor;
		position: relative;
	}
	.site-nav__toggle-bars::before, .site-nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
	.site-nav__toggle-bars::before { top: -7px; }
	.site-nav__toggle-bars::after { top: 7px; }

	.site-nav > .menu { display: none; width: 100%; background: #fff; }
	.site-nav.is-open > .menu { display: block; }
	.site-nav > .menu > li > a {
		background: transparent;
		color: #000;
		border-top: 1px solid #eee;
		white-space: normal;
	}
	.site-nav .sub-menu, .site-nav .children {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		display: none;
		padding-left: 15px;
	}
	.site-nav li.is-open > .sub-menu, .site-nav li.is-open > .children { display: block; }
	.site-nav .sub-menu-toggle {
		position: absolute;
		top: 0; right: 0;
		width: 48px; height: 44px;
		background: transparent; border: 0; color: #000;
		padding: 0;
	}
	.site-nav li { position: relative; }
	.site-nav li.is-open > .sub-menu-toggle svg { transform: rotate(180deg); }
}

@media (min-width: 768px) {
	.site-nav .sub-menu-toggle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.site-hero__image { transform: none !important; }
	* { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.site-hero, .site-sidebar, .site-footer, .back-to-top { display: none; }
}
