/**
 * Base layer: design tokens, reset, accessibility, and layout primitives.
 *
 * This replaces the single 60KB monolith with a small always-loaded core.
 * Component/section styles (cards, hero, single layouts, footer, etc.) are
 * added as modular files during Phase 4 design replication.
 */

/*--------------------------------------------------------------
# Design tokens
--------------------------------------------------------------*/
:root {
	--ga-font: "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ga-container: 1200px;
	--ga-gutter: 16px;
	--ga-text: #1f2430;
	--ga-bg: #ffffff;
	--ga-link: #1e6fff;
	--ga-link-hover: #0b47b3;
	--ga-radius: 12px;
}

/*--------------------------------------------------------------
# Reset / box sizing
--------------------------------------------------------------*/
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--ga-bg);
	color: var(--ga-text);
	font-family: var(--ga-font);
	font-size: 1rem;
	line-height: 1.7;
}

img,
picture,
video,
iframe {
	max-width: 100%;
	height: auto;
}

/* WordPress content alignment classes. */
.aligncenter {
	display: block;
	clear: both;
	margin-inline: auto;
	margin-bottom: 1.5em;
}

img.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignleft {
	float: left;
	margin-inline-end: 1.5em;
	margin-bottom: 1em;
}

.alignright {
	float: right;
	margin-inline-start: 1.5em;
	margin-bottom: 1em;
}

/* Captioned images (figure wrapper) should center too. */
figure.aligncenter,
.wp-caption.aligncenter {
	margin-inline: auto;
}

a {
	color: var(--ga-link);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--ga-link-hover);
	text-decoration: none;
}

/* Visible focus for keyboard users. */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--ga-link);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	line-height: 1.3;
	margin: 0 0 0.6em;
}

/* Note: .container is styled in main.css (full-width layout). */

/*--------------------------------------------------------------
# Accessibility utilities
--------------------------------------------------------------*/
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	inset-inline-start: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}
