/*
 * GRZ Gaming — conservative reset.
 *
 * Deliberately small. It normalises box sizing, default margins, media and
 * form-control typography, and nothing else.
 *
 * What it explicitly does NOT do, and why:
 *
 * - No borders, padding, background or appearance rules on input / select /
 *   textarea / button. Those selectors would reach WooCommerce checkout fields
 *   and any payment-gateway markup rendered in the page, and Dev.1 must not
 *   restyle commerce surfaces. Only inherited typography is normalised.
 * - No rules on iframe or embed contents, so hosted gateway fields are
 *   untouched.
 * - No display or position rules on generic element selectors, so plugin modals
 *   and third-party widgets keep their own layout.
 * - Nothing in this file is loaded in wp-admin: the whole stylesheet registry
 *   is enqueued on wp_enqueue_scripts only.
 */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	min-block-size: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
	margin-block: 0;
}

ul[class],
ol[class] {
	margin-block: 0;
	padding-inline-start: 0;
	list-style: none;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-inline-size: 100%;
}

img {
	block-size: auto;
}

/*
 * Typography inheritance only. No visual property is set here.
 */
input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

/* Keep long words and URLs from forcing horizontal overflow at 320px. */
p,
li,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

table {
	border-collapse: collapse;
}

:target {
	scroll-margin-block-start: calc(var(--grz-admin-bar-height) + var(--grz-space-md));
}
