/*
Theme Name: PlayCross
Theme URI: https://playcross.org
Author: ICO
Description: Independent theme for playcross.org, a crossminton tournament platform — brackets, player registration, rankings and live results.
Version: 1.71.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: playcross-theme
*/

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

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

body {
	margin: 0;
	font-family: var(--pc-font-body);
	font-size: 0.875rem;
	line-height: 1.6;
	background: var(--pc-light-bg);
	color: var(--pc-light-text);
	/* Sticky footer: body is the flex column (header/main/footer), main
	   grows to fill any leftover height so the footer never floats above
	   the bottom of the viewport on short pages. */
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.pc-main {
	flex: 1 0 auto;
}

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

a {
	color: inherit;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--pc-font-heading);
	font-weight: 800;
	line-height: 1.15;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.9rem; }
h6 { font-size: 0.85rem; }

button {
	font: inherit;
}

/* Visually hidden but still announced by screen readers -- the standard
   WordPress-convention name/technique (clip to a 1px box instead of
   display:none, which would also hide it from assistive tech). Already
   referenced by header.php's mobile-menu button ("Menu" label) and by the
   KO bracket's "advances to"/score-summary hints (template-tags.php) --
   this is the one shared definition both rely on. */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
