/**
 * GW Tools Theme — bridge layer
 * Loaded AFTER gwt-tokens.css → gwt-theme.css → gwt-components.css.
 * Only contains adjustments that wire the WP block layer
 * to the GlitchWood Tools design system.
 */

/* ── Base ────────────────────────────────────────────────────── */
:root {
	--header-height: 64px;
}

html, body {
	background: var(--gwt-bg-0);
	color: var(--gwt-fg-1);
}
body {
	font-family: var(--gw-font-body);
	font-size: 15px;
	line-height: 1.5;
	margin: 0;
	padding: 0;
	overflow-x: clip;
}

/* Page wrapper used by templates — mirrors .gwt-page from the showcase */
.page_content_wrapper,
.wp-site-blocks > .wp-block-group:not(.gwt-topbar):not(.gwt-page) {
	color: var(--gwt-fg-1);
}

/* ── Typography refinements ──────────────────────────────────── */
p:last-child,
ul:last-child,
ol:last-child { margin-bottom: 0; }
ul:empty, ol:empty, li:empty, p:empty { display: none; }
img { max-width: 100%; border: none; outline: none; height: auto; }
input, select, textarea, button { outline: none; }

/* WP heading defaults inherit from theme.json; just nudge the family */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
	font-family: var(--gw-font-display);
	color: var(--gwt-fg-1);
	letter-spacing: -0.015em;
}

/* ── WP core button → gwt-btn--primary ───────────────────────── */
/* Bring core/button closer to .gwt-btn so block-inserted buttons
   feel native to the design without forcing every editor to know
   about gwt-btn classes. */
.wp-element-button,
.wp-block-button__link {
	--btnColor: var(--gwt-brand);
	--btnColorHover: var(--gwt-brand-hover);
	--btnTextColor: #fff;
	background: var(--btnColor);
	color: var(--btnTextColor);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 38px;
	padding: 0 16px;
	font-family: var(--gw-font-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	border: 1px solid transparent;
	border-radius: 3px;
	cursor: pointer;
	transition: background var(--gw-dur-fast) var(--gw-ease-out),
				box-shadow var(--gw-dur-base) var(--gw-ease-out);
	letter-spacing: 0;
	text-transform: none;
}
.wp-element-button:hover,
.wp-block-button__link:hover {
	background: var(--btnColorHover);
	box-shadow: var(--gwt-brand-shadow);
	color: #fff;
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--gwt-brand);
	border: 1px solid var(--gwt-brand);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--gwt-brand);
	color: #fff;
}

/* ── Helpers ─────────────────────────────────────────────────── */
.w-100 { width: 100%; }
.link_wrapper { color: currentColor; text-decoration: none; }
.link_wrapper > .wp-block-group { width: 100%; }

.wp-block-separator {
	border: none;
	border-top: 1px solid var(--gwt-border-1);
	width: 100%;
	margin: var(--gw-space-5) 0;
}
.wp-block-separator.is-style-title-decoration {
	border-top: 3px solid var(--gwt-brand);
	width: 56px;
	margin: 0 0 var(--gw-space-3) 0;
}

.is-style-checklist {
	list-style: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.is-style-checklist li {
	position: relative;
	padding-left: 24px;
	color: var(--gwt-fg-2);
}
.is-style-checklist li::before {
	content: '';
	position: absolute;
	top: 4px; left: 0;
	width: 14px; height: 14px;
	border-radius: 999px;
	background: var(--gwt-brand-soft);
	box-shadow: inset 0 0 0 1px var(--gwt-brand);
}

/* ── WP Site Logo / icons inherit dark inversions ─────────────── */
.wp-block-site-logo img {
	max-height: 28px;
	width: auto;
	display: block;
}

/* ── Media queries (kept for parity with boilerplate) ──────────── */
@media (max-width: 1320px) {}
@media (max-width: 992px) {}
