/*
Theme Name: The ClassicPress Theme - Child
Description: Child of The ClassicPress Theme. Restyled to match the Achi Systems design system (blue + gold tokens, sizes, sticky header, cards, sidebar widgets, footer). No @font-face / icon fonts included.
Template: the-classicpress-theme
Version: 1.0.0
Requires PHP: 8.0
Requires CP: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
Text Domain: the-classicpress-theme-child
*/

/* ==========================================================================
   NOTE: enqueue in the child theme's functions.php (parent style is loaded by parent):

   add_action( 'wp_enqueue_scripts', function () {
       wp_enqueue_style( 'tcpt-child', get_stylesheet_uri(),
           array( 'the-classicpress-theme-style' ), // change to the parent's real handle
           wp_get_theme()->get( 'Version' ) );
   }, 20 );

   If you don't know the parent's handle, drop the dependency array and use priority 99.
   Fonts: "DM Sans" is first in the stack but is NOT loaded here. Add your own @font-face
   (or Google Fonts link) if you want it; otherwise the system-ui fallback is used.
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
	--c-primary: #316ca6;
	--c-primary-d: #285a8b;
	--c-ink: #1e293b;
	--c-text: #334155;
	--c-body: #475569;
	--c-muted: #586579;
	--c-line: #e2e8f0;
	--c-dash: #cbd5e1;
	--c-soft: #f8fafc;
	--c-tint: #f1f5f9;
	--c-white: #fff;
	--c-gold: #c9a94e;
	--c-gold-l: #e8c87a;
	--c-ok: #10b981;
	--r-xl: 20px;
	--r-lg: 16px;
	--r-md: 12px;
	--r-sm: 10px;
	--sh-card: 0 20px 60px -20px rgba(49, 108, 166, 0.2);
	--sh-mega: 0 30px 80px -20px rgba(49, 108, 166, 0.35);
	--wrap: 1120px;
	--gutter: 20px;
	--hdr: 64px;
	--font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--tcpt-border-radius: 10px;
}
@media (min-width: 768px) {
	:root {
		--gutter: 24px;
	}
}

/* ==========================================================================
   2. BASE / TYPOGRAPHY
   ========================================================================== */
html {
	scroll-padding-top: calc(var(--hdr) + 16px);
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
body,
button,
input,
select,
optgroup,
textarea {
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--c-body);
}
body {
	background-color: var(--c-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font);
	color: var(--c-primary);
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
	padding-top: 0;
	clear: none;
}
h1,
h2,
h3 {
	font-weight: 800;
}
h4,
h5,
h6 {
	font-weight: 600;
}
p {
	margin: 0 0 1em;
}
b,
strong {
	font-weight: 600;
}
img,
svg,
video {
	max-width: 100%;
	height: auto;
}
img {
	display: block;
	border-style: none;
}
ul,
ol {
	margin: 0;
	padding: 0;
}
address {
	font-style: normal;
}
hr {
	background: none;
	border: 0;
	border-top: 1px solid var(--c-line);
	height: 0;
	margin: 32px 0;
}
:focus-visible {
	outline: 2px solid var(--c-primary);
	outline-offset: 2px;
	border-radius: 4px;
}
#masthead :focus-visible,
#colophon :focus-visible {
	outline-color: #fff;
}
::selection {
	background: rgba(49, 108, 166, 0.2);
}
.screen-reader-text:focus {
	background: #fff;
	color: var(--c-primary);
	font-size: 14px;
	padding: 12px 20px;
	border-radius: var(--r-sm);
	box-shadow: var(--sh-card);
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   3. LINKS
   ========================================================================== */
a,
a:visited {
	color: var(--c-primary);
	font-weight: 500;
	border: 0;
	text-underline-offset: 4px;
}
a:hover,
a:focus,
a:active {
	color: var(--c-primary-d);
	border: 0;
}
a:focus {
	outline: 2px solid var(--c-primary);
	outline-offset: 2px;
}
a:hover,
a:active {
	outline: 0;
}
#content h2 a,
#content h3 a,
#content h4 a {
	font-weight: inherit;
	text-decoration: none;
}
#main a {
	font-weight: 600;
}
#main .blog-post h2 a,
#main .nav-links a,
#main .page-numbers {
	font-weight: 600;
}

/* ==========================================================================
   4. BUTTONS & FORM FIELDS
   ========================================================================== */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
#content p.button a,
#sidebar p.readmore a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: var(--r-sm);
	background: var(--c-primary);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
#content p.button a:hover,
#content p.button a:focus,
#content p.button a:active,
#sidebar p.readmore a:hover,
#sidebar p.readmore a:focus {
	background: var(--c-primary-d);
	border-color: transparent;
	color: #fff;
	box-shadow: none;
}
button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: transparent;
}
#content p.button {
	margin: 1.5em 0;
}
#sidebar p.readmore a {
	min-height: 40px;
	padding: 0 16px;
	font-size: 13px;
}
article .button a[target="_blank"]::after,
article a[target="_blank"]::after {
	color: currentColor;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
select,
textarea {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	background: var(--c-soft);
	border: 1px solid var(--c-line);
	border-radius: var(--r-sm);
	font-size: 15px;
	color: var(--c-ink);
	outline: none;
	transition: border-color 0.15s, background-color 0.15s;
}
textarea {
	height: auto;
	min-height: 120px;
	padding: 12px 14px;
}
select {
	width: auto;
	max-width: 100%;
}
input::placeholder,
textarea::placeholder {
	color: var(--c-muted);
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
	color: var(--c-ink);
	background: #fff;
	border-color: var(--c-primary);
	box-shadow: 0 0 0 3px rgba(49, 108, 166, 0.15);
}
input[type="search"] {
	width: 100%;
	max-width: 520px;
	top: 0;
	padding: 0 14px;
}
input[type="range"],
input[type="color"] {
	height: auto;
	padding: 0;
	background: none;
	border: 0;
}
label {
	font-weight: 600;
	color: var(--c-ink);
}
label.fullwidth input {
	width: 100%;
}
.search-form {
	display: flex;
	gap: 10px;
	max-width: 520px;
}
.search-form label {
	flex: 1;
	min-width: 0;
}
span.wpcf7-not-valid-tip {
	color: #b91c1c;
}
div.wpcf7-validation-errors,
div.wpcf7-acceptance-missing {
	border: 2px solid var(--c-primary);
	border-radius: var(--r-sm);
}

/* ==========================================================================
   5. ANNOUNCEMENT BAR
   ========================================================================== */
.announcement {
	background: linear-gradient(180deg, var(--c-gold-l), var(--c-gold));
	color: var(--c-ink);
	font-size: 14px;
	font-weight: 600;
	padding: 10px 16px;
	gap: 12px 20px;
}
.announcement a {
	background: #fff;
	color: var(--c-primary);
	font-weight: 800;
	font-size: 13px;
	border-radius: var(--r-sm);
	padding: 6px 14px;
}
.announcement a:hover {
	background: var(--c-ink);
	color: #fff;
}

/* ==========================================================================
   6. HEADER + NAVIGATION
   ========================================================================== */
#masthead {
	position: sticky;
	top: 0;
	z-index: 50;
	align-items: center;
	min-height: var(--hdr);
	margin: 0;
	padding: 0;
	background: var(--c-primary);
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
#masthead h1,
#masthead p {
	box-shadow: none;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	line-height: 1;
}
#masthead a,
#masthead a:visited {
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}
#masthead a:hover {
	color: #fff;
}
#masthead .custom-logo-link img,
#masthead .logo img {
	max-height: 36px;
	width: auto;
}
#masthead > a > svg {
	width: 34px;
	height: 34px;
}
.logo svg {
	width: 34px;
	height: 34px;
}
#inner-header {
	width: 100%;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
	min-height: var(--hdr);
}

/* menu toggle (mobile) */
#menu-toggle,
#menu-toggle-close {
	display: none;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-right: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--r-sm);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 18px;
	align-self: center;
}
#menu-toggle:hover,
#menu-toggle-close:hover {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

/* menu items */
.menu,
.menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
#primary-menu.menu li {
	letter-spacing: 0;
	text-transform: none;
}
#primary-menu.menu li a,
#primary-menu.menu li a:visited {
	color: rgba(255, 255, 255, 0.88);
	font-size: 13.5px;
	font-weight: 500;
	border-radius: 0;
	text-decoration: none;
}
#primary-menu.menu li a:hover,
#primary-menu.menu li a:focus,
#primary-menu.menu li:hover > a {
	color: #fff;
	background: transparent;
}
#primary-menu.menu li.current_page_parent > a,
#primary-menu.menu li.current_page_item > a,
#primary-menu.menu li.current-menu-item > a {
	background: transparent;
	color: #fff;
	font-weight: 600;
	position: relative;
}
#primary-menu.menu li.current_page_parent > a:hover,
#primary-menu.menu li.current_page_item > a:active {
	background: transparent;
}
#primary-menu .menu-item-has-children > a::after {
	border: 4px solid transparent;
	border-top: 5px solid rgba(255, 255, 255, 0.8);
	margin-left: 4px;
}
#primary-menu li button {
	min-height: 0;
	color: #fff;
	background: transparent;
	border: 0;
}

/* mobile drop-down panel */
@media screen and (max-width: 899px) {
	#masthead {
		flex-wrap: wrap;
	}
	#menu-toggle {
		display: grid;
	}
	#primary-menu {
		gap: 0;
		margin: 0;
		padding: 8px 0 20px;
		background: var(--c-primary);
		border-top: 1px solid rgba(255, 255, 255, 0.15);
	}
	#primary-menu li a,
	#primary-menu.menu li a {
		display: flex;
		align-items: center;
		min-height: 48px;
		padding: 0 4px;
		font-size: 15px;
		font-weight: 600;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}
	#primary-menu.menu ul.sub-menu li a,
	#primary-menu.menu li.menu-item-has-children ul.sub-menu li a {
		padding-left: 20px;
		font-size: 14px;
		font-weight: 500;
	}
}

/* desktop */
@media screen and (min-width: 900px) {
	#masthead {
		padding: 0;
	}
	#inner-header {
		gap: 12px;
	}
	#primary-menu.menu {
		justify-content: flex-end;
		gap: 2px;
		flex-wrap: nowrap;
		height: var(--hdr);
		align-items: stretch;
	}
	#primary-menu.menu > li {
		display: flex;
		align-items: stretch;
		position: relative;
	}
	#primary-menu.menu > li > a {
		display: flex;
		align-items: center;
		padding: 0 12px;
		white-space: nowrap;
	}
	#primary-menu.menu > li.current_page_parent > a::after,
	#primary-menu.menu > li.current_page_item > a::after,
	#primary-menu.menu > li.current-menu-item > a::after {
		content: "";
		position: absolute;
		left: 12px;
		right: 12px;
		bottom: -1px;
		height: 3px;
		border-radius: 3px 3px 0 0;
		background: #fff;
	}
	/* keep the dropdown caret when the item is also "current" */
	#primary-menu.menu > li.menu-item-has-children.current_page_item > a::after,
	#primary-menu.menu > li.menu-item-has-children.current_page_parent > a::after,
	#primary-menu.menu > li.menu-item-has-children.current-menu-item > a::after {
		position: static;
		height: 0;
		background: none;
		border-radius: 0;
		content: "";
		border: 4px solid transparent;
		border-top: 5px solid rgba(255, 255, 255, 0.8);
		margin-left: 4px;
	}

	/* dropdown (mega-menu-style card) */
	.nav--toggle-sub ul ul {
		width: 240px;
		top: 100%;
		left: 0;
		padding: 8px;
		background: #fff;
		border: 1px solid var(--c-line);
		border-top: 0;
		border-radius: 0 0 var(--r-lg) var(--r-lg);
		box-shadow: var(--sh-mega);
	}
	#primary-menu.menu ul.sub-menu li a,
	#primary-menu.menu li.menu-item-has-children ul.sub-menu li a,
	#primary-menu.menu .sub-menu li a {
		display: flex;
		align-items: center;
		padding: 10px 12px;
		min-height: 44px;
		color: var(--c-text);
		font-size: 13.5px;
		font-weight: 500;
		line-height: 1.35;
		border-radius: var(--r-sm);
	}
	#primary-menu.menu ul.sub-menu li a:hover,
	#primary-menu.menu ul.sub-menu li a:focus,
	#primary-menu.menu .sub-menu li a:hover {
		background: var(--c-soft);
		color: var(--c-primary);
	}
	#primary-menu.menu ul.sub-menu li:last-child a,
	#primary-menu.menu li.menu-item-has-children ul.sub-menu li:last-child a {
		border-radius: var(--r-sm);
	}
	#primary-menu.menu .sub-menu li + li {
		border-top: 1px dashed var(--c-dash);
	}
	#primary-menu.menu .sub-menu li.current_page_item > a {
		color: var(--c-primary);
		background: var(--c-soft);
	}
}

/* ==========================================================================
   7. HOMEPAGE WIDGET BAND (hero look)
   ========================================================================== */
#homepage-widgets-container {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--c-tint);
	border: 0;
	border-bottom: 1px solid var(--c-line);
	border-image: none;
	filter: none;
}
#homepage-widgets-container::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(rgba(49, 108, 166, 0.1) 1px, transparent 1.4px),
		linear-gradient(rgba(49, 108, 166, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(49, 108, 166, 0.04) 1px, transparent 1px);
	background-size: 20px 20px, 52px 52px, 52px 52px;
}
#homepage-widgets-container::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: -120px;
	top: -140px;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(201, 169, 78, 0.2), rgba(201, 169, 78, 0));
	pointer-events: none;
}
.homepage-widgets {
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	padding: 48px var(--gutter);
	color: var(--c-body);
}
@media (min-width: 768px) {
	.homepage-widgets {
		padding-block: 80px;
	}
}
.homepage-widgets a {
	color: var(--c-primary);
}
.homepage-widgets h1,
.homepage-widgets h2,
.homepage-widgets h3 {
	color: var(--c-ink);
	font-size: clamp(26px, 4.4vw, 38px);
	line-height: 1.08;
	letter-spacing: -0.025em;
}
.homepage-widgets-inner {
	gap: 28px;
}
@media (min-width: 900px) {
	.homepage-widgets-inner {
		gap: 48px;
	}
}

/* ==========================================================================
   8. PAGE TITLE BAND (page hero)
   ========================================================================== */
#page-title {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--c-tint);
	filter: none;
	border: 0;
	border-bottom: 1px solid var(--c-line);
	border-image: none;
	margin-bottom: 0;
}
#page-title::before,
#page-title::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	pointer-events: none;
}
#page-title::before {
	top: -120px;
	left: -120px;
	width: 520px;
	height: 520px;
	background: radial-gradient(closest-side, rgba(49, 108, 166, 0.16), rgba(49, 108, 166, 0));
}
#page-title::after {
	right: 6%;
	bottom: -160px;
	width: 560px;
	height: 420px;
	background: radial-gradient(closest-side, rgba(201, 169, 78, 0.18), rgba(201, 169, 78, 0));
}
#page-title h1 {
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 32px var(--gutter);
	font-size: clamp(28px, 5vw, 46px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.025em;
	color: var(--c-primary);
}
@media (min-width: 768px) {
	#page-title h1 {
		padding-block: 56px;
	}
}
@media screen and (max-width: 899px) {
	#page-title h1 {
		max-width: 100%;
	}
}

/* ==========================================================================
   9. PAGE STRUCTURE
   ========================================================================== */
#content {
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	padding: 0 var(--gutter);
	margin: 0 auto;
}
body.home #content,
body.single #content {
	margin-top: 0;
	padding-top: 40px;
}
@media (min-width: 768px) {
	body.home #content,
	body.single #content {
		padding-top: 56px;
	}
}
#primary {
	display: flex;
	gap: 40px;
	align-items: flex-start;
	margin-bottom: 0;
	padding-block: 40px 64px;
}
@media (min-width: 768px) {
	#primary {
		padding-block: 56px 88px;
	}
}
body.home #primary,
body.single #primary {
	padding-top: 0;
}
#main {
	flex: 1 1 0;
	width: auto;
	max-width: none;
	min-width: 0;
	padding: 0;
	min-height: 300px;
}
#sidebar {
	flex: 0 0 340px;
	width: 340px;
	max-width: 340px;
	padding: 0;
	display: grid;
	gap: 16px;
}
@media (min-width: 960px) {
	#sidebar {
		position: sticky;
		top: calc(var(--hdr) + 24px);
	}
}
@media screen and (max-width: 899px) {
	#primary {
		display: block;
	}
	#main,
	#sidebar,
	.classic {
		max-width: 100%;
		margin: 0;
	}
	#sidebar {
		width: 100%;
		margin-top: 28px;
	}
}
.center {
	text-align: center;
}

/* ==========================================================================
   10. ENTRY CONTENT
   ========================================================================== */
#main {
	font-size: 16px;
	line-height: 1.75;
	color: var(--c-body);
	overflow-wrap: break-word;
}
#main h1 {
	padding-top: 0;
}
#main h2 {
	margin: 2em 0 0.6em;
	font-size: clamp(24px, 3vw, 30px);
	line-height: 1.15;
}
#main h3 {
	margin: 1.8em 0 0.5em;
	font-size: 21px;
}
#main h4 {
	margin: 1.6em 0 0.5em;
	font-size: 17px;
	color: var(--c-primary);
}
#main h2.small,
#main h2 .small {
	font-size: 21px;
}
#main h3.small,
#main h3 .small {
	font-size: 17px;
}
#main h4.small,
#main h4 .small {
	font-size: 15px;
}
#main > :first-child,
#main article > :first-child,
#main .entry-content > :first-child,
#main h2:first-child,
#main h3:first-child {
	margin-top: 0;
}
h2.subhdtop,
h3.subhdtop,
h4.subhdtop {
	margin-top: 0;
	padding-top: 0;
}
#main ul,
#main ol {
	margin: 0 0 1.2em 1.25em;
	padding: 0;
}
#main ul {
	list-style: disc;
}
#content ul li,
#content ol li {
	margin-bottom: 0.4em;
	padding-top: 0;
	padding-bottom: 0;
}
#main li::marker {
	color: var(--c-primary);
}
#main li > ul,
#main li > ol {
	margin-bottom: 0;
}
#main img {
	border-radius: var(--r-md);
}
#main figure {
	margin: 1.6em 0;
}
#main figcaption,
.wp-caption-text {
	margin-top: 8px;
	font-size: 12.5px;
	color: var(--c-muted);
}
.wp-caption .wp-caption-text {
	margin: 8px 0 0;
}
blockquote {
	margin: 1.6em 0;
	padding: 18px 22px;
	background: var(--c-soft);
	border: 1px solid var(--c-line);
	border-left: 4px solid var(--c-primary);
	border-radius: var(--r-md);
	font-style: italic;
	color: var(--c-text);
}
blockquote p:last-child {
	margin: 0;
}
table {
	width: 100%;
	margin: 0 0 1.5em;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	overflow: hidden;
	font-size: 14px;
}
th,
td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid var(--c-line);
}
th {
	background: var(--c-soft);
	font-weight: 600;
	color: var(--c-ink);
}
tr:last-child td {
	border-bottom: 0;
}
pre,
code,
.code,
kbd,
tt,
var {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}
pre {
	padding: 16px;
	background: var(--c-ink);
	color: #e2e8f0;
	border-radius: var(--r-md);
	overflow-x: auto;
	line-height: 1.6;
	margin-bottom: 1.6em;
}
:not(pre) > code,
.code {
	width: auto;
	padding: 2px 6px;
	background: var(--c-tint);
	border-radius: 6px;
}
.code {
	display: inline-block;
	margin-bottom: 1.4em;
}
pre code {
	background: none;
	padding: 0;
}
.comment-content pre code {
	background: transparent;
}
mark,
ins {
	background: #fff4c2;
}
.alignleft {
	margin: 0 20px 12px 0;
}
.alignright {
	margin: 0 0 12px 20px;
}
.wp-block-button__link {
	border-radius: var(--r-sm) !important;
}

/* ==========================================================================
   11. POSTS: LISTING CARDS, THUMBNAILS, SINGLE
   ========================================================================== */
.hentry {
	margin: 0 0 20px;
}
.entry-meta,
.entry-meta a,
#main p.entry-meta {
	color: var(--c-muted);
	font-size: 12px;
	font-style: normal;
	line-height: 1.5;
}
#main p.entry-meta {
	margin-bottom: 10px;
}
#main .blog-list p.entry-meta {
	margin-bottom: 10px;
}
.entry-meta a {
	color: var(--c-primary);
	font-weight: 600;
	text-decoration: none;
}
.cat-links a,
.comments-link a,
.edit-link a {
	padding: 0;
	margin: 0 12px 0 0;
}
.cat-links a:first-of-type {
	margin-left: 8px;
}
.edit-link a {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
}

.blog-post {
	position: relative;
	width: 100%;
	margin-bottom: 20px;
	padding: 22px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
	transition: border-color 0.15s, box-shadow 0.15s;
}
.blog-list .blog-post:hover {
	border-color: var(--c-primary);
	box-shadow: var(--sh-card);
}
#main .blog-list .blog-post h2,
.blog-list h2 {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.25;
	font-weight: 800;
	color: var(--c-ink);
}
#content .blog-list h2 a,
#main .blog-list .blog-post h2 a {
	color: inherit;
	font-weight: 800;
	text-decoration: none;
}
#content .blog-list h2 a:hover {
	color: var(--c-primary);
}
#main .blog-list .blog-post h2 a::after {
	content: "";
	position: absolute;
	inset: 0;
}
#main .blog-post p {
	font-size: 14px;
	line-height: 1.6;
	color: var(--c-body);
}
.blog h1 {
	margin-bottom: 0;
}

.post-thumbnail,
.blog-post a.post-thumbnail,
.page-main .post-thumbnail,
.post-main .post-thumbnail {
	display: block;
	position: relative;
	margin: 0 0 22px;
	overflow: hidden;
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
}
.post-thumbnail img,
.attachment-post-thumbnail {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 0;
}
.blog-list .blog-post a.post-thumbnail {
	margin: -22px -22px 18px;
	border: 0;
	border-bottom: 1px solid var(--c-line);
	border-radius: 0;
}
.sticky .blog-post a.post-thumbnail::after {
	content: "FEATURED";
	left: 12px;
	bottom: 12px;
	width: auto;
	padding: 4px 10px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--c-gold-l), var(--c-gold));
	color: var(--c-ink);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.09em;
}

.single-post article header {
	gap: 10px;
}
.single-post article header h1 {
	max-width: 100%;
	font-size: clamp(28px, 5vw, 46px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.025em;
	color: var(--c-primary);
}

/* prev / next + pagination */
.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding-bottom: 0;
	margin-top: 24px;
}
.nav-links a {
	color: var(--c-ink);
}
.nav-previous a,
.nav-next a {
	display: block;
	padding: 16px 18px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	background: var(--c-soft);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}
.nav-previous a:hover,
.nav-next a:hover {
	border-color: var(--c-primary);
	color: var(--c-primary);
}
.pagination {
	margin-top: 36px;
}
.pagination .nav-links,
.navigation.pagination .nav-links {
	justify-content: center;
	gap: 8px;
}
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--c-line);
	border-radius: var(--r-sm);
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	color: var(--c-ink);
	text-decoration: none;
}
a.page-numbers:hover {
	border-color: var(--c-primary);
	color: var(--c-primary);
}
.page-numbers.current {
	background: var(--c-primary);
	border-color: var(--c-primary);
	color: #fff;
}
.page-numbers.dots {
	border-color: transparent;
	background: none;
}
.taxonomy-description {
	font-style: normal;
	color: var(--c-body);
}

/* author box */
.author_bio_section {
	margin: 28px 0 0;
	padding: 22px;
	background: var(--c-soft);
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
}
.author_bio_section h5 {
	font-size: 17px;
	font-weight: 800;
	color: var(--c-ink);
	margin: 0 0 4px;
}

/* comments */
ol.comment-list > .comment {
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	margin-top: 14px;
}
.comment-notes {
	font-style: normal;
	color: var(--c-muted);
	font-size: 13px;
}

/* FAQ */
.post-type-archive-faq article {
	border-bottom: 0;
}
.post-type-archive-faq .hentry {
	margin-bottom: 10px;
	padding-bottom: 0;
}
.faq-content {
	margin-top: 0;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
}
details {
	margin-bottom: 10px;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
}
details summary {
	position: relative;
	display: block;
	min-height: 52px;
	padding: 14px 48px 14px 18px;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--c-ink);
	cursor: pointer;
	list-style: none;
}
details summary::-webkit-details-marker {
	display: none;
}
details summary::after {
	content: "+";
	position: absolute;
	right: 18px;
	top: 50%;
	margin-top: -13px;
	font-size: 22px;
	font-weight: 700;
	line-height: 26px;
	color: var(--c-primary);
}
details[open] summary {
	color: var(--c-primary);
}
details[open] summary::after {
	content: "\2013";
}
details > :not(summary) {
	margin-left: 18px;
	margin-right: 18px;
}
details > :last-child {
	margin-bottom: 18px;
}
#main details > summary > h2 {
	font-size: 15.5px;
	margin: 0;
	display: inline;
	color: inherit;
}

/* ==========================================================================
   12. SIDEBAR WIDGETS (card style)
   ========================================================================== */
.widget-container {
	margin: 0;
	padding: 0 0 12px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
}
.widget-container > *:not(.widget-title) {
	margin: 12px 12px 0;
}
#sidebar h3.widget-title,
.widget-container .widget-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 14px 16px;
	background: var(--c-soft);
	border-bottom: 1px solid var(--c-line);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.2;
	color: var(--c-primary);
}
.widget-container ul {
	margin: 12px 12px 0;
	padding: 0;
	list-style: none;
}
.widget-container ul li {
	margin: 0;
	padding: 0;
}
#sidebar p,
#sidebar li {
	font-size: 13.5px;
}
#sidebar .widget-container ul li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 44px;
	padding: 10px 12px;
	border-radius: var(--r-sm);
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--c-text);
	text-decoration: none;
}
#sidebar .widget-container ul li a:hover {
	background: var(--c-soft);
	color: var(--c-primary);
}
#sidebar .widget-container ul li.cat-item.current-cat a,
#sidebar .widget-container ul li.current_page_item > a,
#sidebar .widget-container ul li.current-menu-item > a {
	background: var(--c-soft);
	color: var(--c-primary);
	font-weight: 600;
	box-shadow: inset 0 0 0 1px var(--c-line);
}
.widget-container ul.sub-menu {
	margin: 0;
}
.widget-container ul.sub-menu li {
	margin-left: 8px;
}
.widget-container .search-form {
	font-size: 14px;
	max-width: none;
}
.widget-container .search-field,
.widget-container input[type="search"] {
	width: 100%;
	max-width: none;
	font-size: 15px;
}
#sidebar p {
	margin-bottom: 0.6em;
}
#sidebar p.readmore {
	margin: 12px;
	font-size: 13px;
}
.sidebar-note {
	margin: 0;
	padding: 18px;
	background: var(--c-soft);
	border: 1px solid var(--c-line);
	border-radius: var(--r-lg);
}
.page .sidebar .sidebar-note ul {
	padding-left: 1.25em;
	margin: 0.4em 0;
}
.page .sidebar .sidebar-note li {
	font-size: 13.5px;
}
.page .sidebar .widget-container {
	margin-top: 0;
}

/* ==========================================================================
   13. COLOUR UTILITIES
   ========================================================================== */
.purple {
	color: #fff;
	background: var(--c-primary);
}
.blue {
	color: #fff;
	background: var(--c-primary-d);
}
.white {
	color: var(--c-primary);
	background: #fff;
}
.gray {
	background: var(--c-soft);
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
#colophon {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	margin: 0;
	background: var(--c-primary);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.9);
}
#colophon::before,
#colophon::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	pointer-events: none;
}
#colophon::before {
	left: -140px;
	bottom: -160px;
	width: 520px;
	height: 520px;
	background: radial-gradient(closest-side, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
}
#colophon::after {
	top: -60px;
	right: -40px;
	width: 480px;
	height: 420px;
	background: radial-gradient(closest-side, rgba(232, 200, 122, 0.18), rgba(232, 200, 122, 0));
}
.classic {
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	padding: 44px var(--gutter);
	gap: 32px;
}
@media (min-width: 900px) {
	.classic {
		gap: 40px;
	}
}
.classic,
.classic a,
#colophon a {
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
	font-weight: 500;
}
#colophon a:hover,
#colophon a:focus,
.classic a:hover {
	color: #fff;
	text-decoration: underline;
	border: 0;
}
.classic h1,
.classic h2,
.classic h3,
#colophon .widget-title,
#colophon h3.widget-title {
	margin: 0 0 14px;
	padding: 0;
	background: none;
	border: 0;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
}
#colophon p {
	margin: 0 0 0.6em;
	font-size: 13.5px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.92);
}
#colophon li {
	margin: 0;
	padding: 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.92);
}
#colophon ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 4px;
}
#colophon li a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
}
#colophon .widget-container {
	background: none;
	border: 0;
	border-radius: 0;
	overflow: visible;
	padding: 0;
}
#colophon .widget-container > *:not(.widget-title) {
	margin: 0;
}
#colophon .widget-container ul {
	margin: 0;
}
.footerleft {
	padding: 0;
	gap: 1em;
}
.footerright {
	padding: 0;
}
.footer-widgets {
	gap: 32px;
}
@media (min-width: 900px) {
	.footer-widgets {
		gap: 40px;
	}
}
.footer-widgets .widget-container {
	margin-top: 0;
}
.classic-front p {
	margin-top: 0;
}
#footer-logo,
.footerleft img {
	max-width: 90px;
}
#colophon .social-menu {
	gap: 8px;
}
#colophon .social-menu a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: var(--r-sm);
	font-size: 15px;
	color: #fff;
	text-decoration: none;
}
#colophon .social-menu a:hover,
#colophon .social-menu a:focus {
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.25);
	text-decoration: none;
}
#legal {
	background: transparent;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}
#legal p {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.92);
}
#legal a {
	color: rgba(255, 255, 255, 0.92);
}
#legal a:hover,
#legal a:focus,
#legal a:active {
	color: #fff;
}
.cplegal {
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	padding: 20px var(--gutter);
	gap: 10px 24px;
	flex-wrap: wrap;
	align-items: center;
}
.cpcopyright,
.cppolicy {
	padding: 0;
}

/* ==========================================================================
   15. MISC
   ========================================================================== */
.discourse-comments-area a {
	text-decoration: underline;
}
body.page-cart .coupon,
body.page-checkout .woocommerce-form-coupon-toggle {
	display: none;
}

@media screen and (max-width: 600px) {
	.cplegal {
		display: block;
	}
	.cplegal p + p {
		margin-top: 8px;
	}
	input[type="search"] {
		width: 100%;
	}
}

@media print {
	#masthead,
	#colophon,
	#sidebar,
	#menu-toggle,
	.announcement {
		display: none !important;
	}
	#page-title,
	#homepage-widgets-container {
		background: none;
		border: 0;
	}
}