/* WebTestCenter Core — WebSite Relief brand tokens and directory components. */

:root {
	--wtc-ink: #0b1a2b;
	--wtc-ink-2: #09192f;
	--wtc-blue: #2f63f6;
	--wtc-blue-2: #5b8bff;
	--wtc-paper: #fbfaf8;
	--wtc-sand: #f2eee6;
	--wtc-lime: #c7f04e;
	--wtc-muted: #5a6573;
	--wtc-line: rgba(11, 26, 43, 0.12);
	--wtc-sans: "Plus Jakarta Sans", Helvetica, Arial, sans-serif;
	--wtc-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
	--wtc-radius: 18px;
	--wtc-shadow: 0 18px 50px rgba(11, 26, 43, 0.1);
}

body {
	background: var(--wtc-paper);
	color: var(--wtc-ink);
	font-family: var(--wtc-sans);
	-webkit-font-smoothing: antialiased;
}

body a { color: var(--wtc-blue); }

/* Elementor pages: full width, no theme title, no link underlines on buttons. */
body.elementor-page .site-main { max-width: none; width: 100%; margin: 0; padding: 0; }
body.elementor-page .site-main > .page-header { display: none; }
.elementor a, .page-content .elementor a, .ehf-header a, .ehf-footer a, #masthead a, #colophon a { text-decoration: none; }

/* Pages rendered by the theme (not Elementor): plugin docs, legal pages. */
body:not(.elementor-page) .site-main { max-width: 880px; margin: 0 auto; padding: 4rem 1.5rem 6rem; }
.site-main .page-header .entry-title {
	font-family: var(--wtc-serif);
	font-weight: 400;
	font-size: clamp(2.5rem, 6vw, 4rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 0 0 1.5rem;
}
.site-main h2, .site-main h3 { letter-spacing: -0.01em; }

/* Grids and cards */
.wtc-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.wtc-card {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	background: #fff;
	border: 1px solid var(--wtc-line);
	border-radius: var(--wtc-radius);
	padding: 1.5rem;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.wtc-card:hover { transform: translateY(-3px); box-shadow: var(--wtc-shadow); border-color: rgba(47, 99, 246, 0.35); }
.wtc-card__top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.wtc-card__stack { font-size: 0.8rem; color: var(--wtc-muted); font-weight: 600; }
.wtc-card__title { margin: 0.25rem 0 0; font-size: 1.3rem; font-weight: 700; line-height: 1.25; color: var(--wtc-ink); }
.wtc-card__title a { color: inherit; text-decoration: none; }
.wtc-card__title a:hover { color: var(--wtc-blue); }
.wtc-card__host { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; color: var(--wtc-blue); word-break: break-all; }
.wtc-card__text { margin: 0; color: var(--wtc-muted); font-size: 0.95rem; line-height: 1.6; }
.wtc-card__actions { margin-top: auto; padding-top: 0.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

/* Badges */
.wtc-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: var(--wtc-sand);
	color: var(--wtc-ink);
}
.wtc-badge::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; opacity: 0.7; }
.wtc-badge--building, .wtc-badge--development { background: #fff4d6; color: #8a5a00; }
.wtc-badge--review, .wtc-badge--beta { background: #e7eeff; color: var(--wtc-blue); }
.wtc-badge--approved, .wtc-badge--stable, .wtc-badge--launched { background: #eefbd0; color: #3d5a00; }
.wtc-badge--archived, .wtc-badge--retired { background: #eceef1; color: var(--wtc-muted); }

/* Buttons and links */
.wtc-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.7rem 1.25rem;
	border-radius: 999px;
	background: var(--wtc-ink);
	color: var(--wtc-paper) !important;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
}
.wtc-btn:hover { background: var(--wtc-blue); transform: translateY(-1px); }
.wtc-link { font-weight: 700; font-size: 0.9rem; text-decoration: none; color: var(--wtc-blue); }
.wtc-link:hover { text-decoration: underline; }
.page-content .wtc-btn, .page-content .wtc-card__title a { text-decoration: none; }
.wtc-empty { color: var(--wtc-muted); font-style: italic; }

/* Plugin meta strip */
.wtc-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 2.5rem;
	margin: 0 0 2.5rem;
	padding: 1.25rem 1.5rem;
	background: var(--wtc-sand);
	border-radius: var(--wtc-radius);
}
.wtc-meta dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wtc-muted); }
.wtc-meta dd { margin: 0.15rem 0 0; font-weight: 700; }
.wtc-meta__cta { margin-left: auto; }

/* Docs + changelog */
.wtc-docs { line-height: 1.75; font-size: 1.05rem; }
.wtc-docs code { background: var(--wtc-sand); padding: 0.1em 0.4em; border-radius: 6px; font-size: 0.9em; }
.wtc-docs pre { background: var(--wtc-ink); color: var(--wtc-paper); padding: 1.25rem; border-radius: 12px; overflow-x: auto; }
.wtc-docs pre code { background: none; padding: 0; }
.wtc-section-title { font-family: var(--wtc-serif); font-weight: 400; font-size: 2.25rem; margin: 3.5rem 0 1.25rem; }
.wtc-changelog { display: grid; gap: 1rem; }
.wtc-release { border-left: 3px solid var(--wtc-lime); padding: 0.25rem 0 0.25rem 1.25rem; }
.wtc-release h3 { margin: 0 0 0.5rem; font-size: 1.05rem; font-weight: 700; }
.wtc-release ul { margin: 0; padding-left: 1.1rem; color: var(--wtc-muted); line-height: 1.7; }

/* Forge Forms on the test benches: brand the form accent. Buttons are left to Forge Forms itself. */
.ff-wrap { --ff-accent: var(--wtc-blue); --ff-radius: 12px; font-family: var(--wtc-sans); }

/* 404 page (templates/404.php) */
body.error404 .site-main.wtc-404 { max-width: none; width: 100%; margin: 0; padding: 0; }
.wtc-404 a { text-decoration: none; }
.wtc-404__hero {
	position: relative;
	overflow: hidden;
	background: var(--wtc-ink);
	color: var(--wtc-paper);
	padding: 7rem 2.5rem 8rem;
}
.wtc-404__inner { position: relative; z-index: 2; max-width: 72rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }
.wtc-404__eyebrow {
	display: flex; align-items: center; gap: 1rem; margin: 0;
	font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--wtc-blue-2);
}
.wtc-404__eyebrow span { width: 3rem; height: 1px; background: rgba(251, 250, 248, 0.45); }
.wtc-404__code {
	margin: 0;
	font-family: var(--wtc-serif);
	font-size: clamp(7rem, 22vw, 15rem);
	line-height: 0.85;
	letter-spacing: -0.04em;
	color: var(--wtc-paper);
}
.wtc-404__code em { color: var(--wtc-lime); font-style: italic; }
.wtc-404__title {
	margin: 0;
	max-width: 46rem;
	font-family: var(--wtc-sans);
	font-weight: 800;
	font-size: clamp(2.1rem, 5vw, 3.75rem);
	line-height: 1.02;
	letter-spacing: -0.03em;
	color: var(--wtc-paper);
}
.wtc-404__title em { font-family: var(--wtc-serif); font-weight: 400; letter-spacing: -0.01em; }
.wtc-404__lede { margin: 0; max-width: 38rem; font-size: 1.15rem; line-height: 1.7; color: rgba(251, 250, 248, 0.72); }
.wtc-404__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 0.75rem; }
.wtc-404__btn {
	display: inline-flex; align-items: center;
	padding: 0.95rem 1.75rem;
	border-radius: 999px;
	border: 1px solid rgba(251, 250, 248, 0.28);
	color: var(--wtc-paper) !important;
	font-weight: 700;
	font-size: 0.98rem;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.wtc-404__btn:hover { border-color: var(--wtc-lime); color: var(--wtc-lime) !important; }
.wtc-404__btn--primary { background: var(--wtc-blue); border-color: var(--wtc-blue); }
.wtc-404__btn--primary:hover { background: var(--wtc-blue-2); border-color: var(--wtc-blue-2); color: var(--wtc-paper) !important; }
.wtc-404__orbit {
	position: absolute; z-index: 1;
	right: -12rem; top: 50%;
	width: 44rem; height: 44rem;
	transform: translateY(-50%);
	border-radius: 50%;
	border: 1px solid rgba(91, 139, 255, 0.22);
	box-shadow: 0 0 0 7rem rgba(91, 139, 255, 0.04), 0 0 0 14rem rgba(91, 139, 255, 0.03);
}
.wtc-404__orbit span {
	position: absolute; top: 3rem; left: 8.5rem;
	width: 1.1rem; height: 1.1rem; border-radius: 50%;
	background: var(--wtc-lime);
	box-shadow: 0 0 24px rgba(199, 240, 78, 0.6);
}
.wtc-404__more { background: var(--wtc-paper); padding: 4.5rem 2.5rem 6rem; }
.wtc-404__more-inner { max-width: 76rem; margin: 0 auto; }
.wtc-404__more .wtc-section-title { margin: 0 0 2rem; font-size: 3rem; line-height: 1; }
.wtc-404__more .wtc-section-title em { font-style: italic; }
@media (max-width: 767px) {
	.wtc-404__hero { padding: 4.5rem 1.25rem 5rem; }
	.wtc-404__orbit { display: none; }
	.wtc-404__more { padding: 3rem 1.25rem 4rem; }
	.wtc-404__more .wtc-section-title { font-size: 2.25rem; }
}
