/*
Theme Name: HealthWatchlist Twenty Twenty-Five Child
Theme URI: https://healthwatchlist.com/
Description: The custom presentation layer for HealthWatchlist, built as a child theme of Twenty Twenty-Five.
Author: HealthWatchlist
Author URI: https://healthwatchlist.com/
Template: twentytwentyfive
Version: 1.1.0
Requires at least: 6.7
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: healthwatchlist-twenty-twenty-five-child
*/

/*
 * HealthWatchlist visual foundation
 *
 * Plain white reading surfaces, IBM Plex Sans throughout, ink-blue brand
 * accents, and dedicated evidence-state colours. Functional evidence-system
 * code belongs in the separate HealthWatchlist Evidence Core plugin.
 */

:root {
	--hwl-white: #ffffff;
	--hwl-ink: #202524;
	--hwl-navy: #18324a;
	--hwl-blue: #274c6b;
	--hwl-blue-soft: #f1f6fa;
	--hwl-line: #dce3e9;
	--hwl-muted: #657078;
	--hwl-green: #22744f;
	--hwl-green-soft: #edf7f1;
	--hwl-amber: #9a5a00;
	--hwl-amber-soft: #fff5e6;
	--hwl-red: #a83f36;
	--hwl-red-soft: #fff0ee;
	--hwl-grey: #6c757d;
	--hwl-grey-soft: #f3f5f6;
	--hwl-safety: #8a5b22;
	--hwl-safety-soft: #fff8ed;
}

body {
	background: var(--hwl-white);
	color: var(--hwl-ink);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--hwl-navy);
}

:where(a, button, input, select, textarea):focus-visible {
	outline: 3px solid var(--hwl-blue);
	outline-offset: 3px;
}

header.wp-block-template-part {
	background: var(--hwl-white);
	border-top: 4px solid var(--hwl-blue);
	border-bottom: 1px solid var(--hwl-line);
}

header.wp-block-template-part .wp-block-site-title {
	letter-spacing: -0.035em;
}

header.wp-block-template-part .wp-block-navigation-item__content {
	color: var(--hwl-ink);
	font-weight: 500;
	text-decoration: none;
}

header.wp-block-template-part .wp-block-navigation-item__content:hover {
	color: var(--hwl-blue);
}

footer.wp-block-template-part {
	background: var(--hwl-white);
	border-top: 1px solid var(--hwl-line);
}

.wp-block-post-content > p,
.wp-block-post-content > ul,
.wp-block-post-content > ol {
	line-height: 1.68;
}

.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4 {
	margin-block-start: 1.8em;
}

.wp-block-post-content a {
	font-weight: 500;
}

.wp-block-quote {
	border-left-color: var(--hwl-blue);
}

.wp-block-table table {
	border-collapse: collapse;
}

.wp-block-table th {
	background: var(--hwl-blue-soft);
	color: var(--hwl-navy);
	font-weight: 600;
}

.wp-block-table th,
.wp-block-table td {
	border-color: var(--hwl-line);
	padding: 0.75rem 0.85rem;
}

/* Shared presentation hooks for the forthcoming Evidence Core plugin. */
.hwl-evidence-summary,
.hwl-safety-note {
	margin-block: 1.75rem;
	padding: clamp(1rem, 3vw, 1.4rem);
}

.hwl-evidence-summary {
	background: var(--hwl-blue-soft);
	border-left: 4px solid var(--hwl-blue);
}

.hwl-safety-note {
	background: var(--hwl-safety-soft);
	border-left: 4px solid var(--hwl-safety);
}

.hwl-component-label {
	margin: 0 0 0.45rem;
	color: var(--hwl-blue);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.075em;
	line-height: 1.35;
	text-transform: uppercase;
}

.hwl-safety-note .hwl-component-label {
	color: var(--hwl-safety);
}

.hwl-evidence-rating {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-block: 0.65rem;
}

.hwl-evidence-marker {
	display: inline-block;
	width: 0.9rem;
	height: 0.9rem;
	flex: 0 0 auto;
	border-radius: 50%;
}

.hwl-evidence-marker--green {
	background: var(--hwl-green);
}

.hwl-evidence-marker--amber {
	background: var(--hwl-amber);
}

.hwl-evidence-marker--red {
	background: var(--hwl-red);
}

.hwl-evidence-marker--grey {
	background: var(--hwl-grey);
}

.hwl-evidence-score {
	color: var(--hwl-ink);
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.2;
}

.hwl-article-meta {
	color: var(--hwl-muted);
	font-size: 0.875rem;
	line-height: 1.5;
}

@media (max-width: 600px) {
	body {
		font-size: 1.0625rem;
	}

	.wp-block-table {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}
