*, *::before, *::after {
	box-sizing: border-box;
}

html {
	direction: rtl;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-primary);
	font-size: var(--text-base-size);
	line-height: var(--text-line-height);
	color: var(--color-ink);
	background: var(--color-bg);
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
}

.container {
	width: min(calc(100% - (var(--gutter) * 2)), var(--container-max));
	margin-inline: auto;
}

.section {
	padding-block: var(--section-space);
}

.screen-reader-text,
.skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
	left: var(--space-md);
	top: var(--space-md);
	z-index: 1000;
	background: var(--color-bg);
	padding: var(--space-sm) var(--space-md);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-floating);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-xs);
	min-height: 54px;
	padding: 0 28px;
	border: 0;
	border-radius: 14px;
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, transform .15s ease;
}

.btn-primary {
	background: var(--color-coral);
	color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
	background: var(--color-coral-dark);
}

.btn-secondary {
	background: #fff;
	color: var(--color-ink);
	border: 2px solid var(--color-coral);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
	background: var(--color-surface);
}

:focus-visible {
	outline: 3px solid var(--color-orange);
	outline-offset: 2px;
}

/* Header: see assets/css/header.css */

/* Footer: see assets/css/footer.css */

/* Form status notice */
.form-notice {
	margin: var(--space-md) auto;
	max-width: var(--container-max);
	padding: var(--space-sm) var(--space-md);
	border-radius: var(--radius-sm);
	font-weight: 600;
}

.form-notice--success {
	background: color-mix(in srgb, var(--color-green) 15%, #fff);
	color: var(--color-ink);
	border: 1px solid var(--color-green);
}

.form-notice--error {
	background: color-mix(in srgb, var(--color-coral) 12%, #fff);
	color: var(--color-ink);
	border: 1px solid var(--color-coral);
}

/* Generic content page (Privacy Policy, Accessibility Statement) */
.content-page h1 {
	font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
	margin-bottom: var(--space-md);
}

.content-page__body {
	max-width: 760px;
	color: var(--color-ink);
}

.content-page__body h2 {
	margin-top: var(--space-xl);
}

.content-page__body p {
	color: var(--color-muted);
}

/* Rich-text tables (posts pasted from Word/Sheets carry hardcoded pixel
 * widths/heights and fixed <col> widths as inline styles/attributes — the
 * !important overrides here are a deliberate, narrow exception to make that
 * legacy content responsive again, not a general stylesheet pattern). */
.content-page__body table {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	border-collapse: collapse;
	margin: var(--space-lg) 0;
	font-size: .95rem;
}

.content-page__body table col {
	width: auto !important;
}

.content-page__body th,
.content-page__body td {
	width: auto !important;
	height: auto !important;
	padding: var(--space-sm) var(--space-md);
	text-align: right;
	vertical-align: top;
	border: 1px solid var(--color-border);
}

.content-page__body thead th,
.content-page__body tbody tr:first-child td {
	background: var(--color-coral);
	color: #fff;
	font-weight: 700;
}

.content-page__body tbody tr:nth-child(even) td {
	background: var(--color-surface);
}

@media (max-width: 639px) {
	.content-page__body table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
		-webkit-overflow-scrolling: touch;
	}
}
