/*
Theme Name: Draft League Theme
Theme URI: https://draftleague.uk/
Author: Draft League
Description: Classic custom theme for Draft League Hub.
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 7.2
Version: 0.1.2
Text Domain: draft-league-theme
*/

:root {
	--dl-theme-bg: #f5f1e6;
	--dl-theme-text: #071827;
	--dl-theme-muted: #536171;
	--dl-theme-line: #d7c99a;
	--dl-theme-navy: #061421;
	--dl-theme-green: #07542f;
	--dl-theme-accent: #d8a928;
	--dl-theme-accent-soft: #fff3cf;
	--dl-theme-gold: #f3c94d;
}

html {
	min-height: 100%;
}

body {
	display: flex;
	flex-direction: column;
	margin: 0;
	min-height: 100vh;
	background: var(--dl-theme-bg);
	color: var(--dl-theme-text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
	color: inherit;
}

.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;
	width: 1px;
	word-wrap: normal;
}

.dl-site-header,
.dl-site-footer {
	border-color: var(--dl-theme-line);
	border-style: solid;
}

.dl-site-header {
	border-width: 0 0 1px;
	background:
		linear-gradient(90deg, rgba(7, 84, 47, 0.18), transparent 38%),
		var(--dl-theme-navy);
	box-shadow: 0 10px 30px rgba(6, 20, 33, 0.14);
	position: sticky;
	top: 0;
	z-index: 20;
	padding: 0 24px;

}

.dl-site-footer {
	border-width: 1px 0 0;
	margin-top: auto;
	background: var(--dl-theme-navy);
}

.dl-site-shell {
	box-sizing: border-box;
	width: min(1180px, 100%);
	margin: 0 auto;
	padding: 0 24px;
}

.dl-site-header__inner,
.dl-site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 14px 0;
}

.dl-site-brand {
	align-items: center;
	display: inline-flex;
	color: #ffffff;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 0;
	text-decoration: none;
}

.dl-site-brand__logo {
	display: block;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
	height: 72px;
	object-fit: contain;
	width: 72px;
}

.dl-menu-toggle {
	align-items: center;
	appearance: none;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(243, 201, 77, 0.38);
	border-radius: 999px;
	cursor: pointer;
	display: none;
	height: 44px;
	justify-content: center;
	margin-left: auto;
	padding: 0;
	width: 44px;
}

.dl-menu-toggle__bar {
	background: #ffffff;
	border-radius: 999px;
	display: block;
	height: 2px;
	position: absolute;
	transition: opacity 160ms ease, transform 160ms ease;
	width: 18px;
}

.dl-menu-toggle__bar:nth-child(1) {
	transform: translateY(-6px);
}

.dl-menu-toggle__bar:nth-child(3) {
	transform: translateY(6px);
}

.dl-menu-toggle[aria-expanded="true"] .dl-menu-toggle__bar:nth-child(1) {
	transform: rotate(45deg);
}

.dl-menu-toggle[aria-expanded="true"] .dl-menu-toggle__bar:nth-child(2) {
	opacity: 0;
}

.dl-menu-toggle[aria-expanded="true"] .dl-menu-toggle__bar:nth-child(3) {
	transform: rotate(-45deg);
}

.dl-menu-toggle:hover,
.dl-menu-toggle:focus-visible {
	background: rgba(243, 201, 77, 0.18);
	border-color: var(--dl-theme-gold);
	outline: 0;
}

.dl-site-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dl-site-nav a {
	border: 1px solid rgba(243, 201, 77, 0);
	border-radius: 999px;
	box-sizing: border-box;
	color: rgba(255, 255, 255, 0.78);
	display: inline-flex;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1;
	padding: 0.65rem 0.8rem;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.dl-site-nav a:hover,
.dl-site-nav a:focus-visible,
.dl-site-nav .current-menu-item > a,
.dl-site-nav .current_page_item > a {
	background: rgba(243, 201, 77, 0.14);
	border-color: rgba(243, 201, 77, 0.48);
	color: #ffffff;
	outline: 0;
}

.dl-site-main {
	flex: 1 0 auto;
}

.dl-content {
	padding-top: 32px;
	padding-bottom: 48px;
}

.dl-content article {
	margin-bottom: 40px;
}

.dl-site-footer {
	color: rgba(255, 255, 255, 0.68);
	font-size: 0.9rem;
}

@media (max-width: 720px) {
	.dl-site-header__inner {
		align-items: center;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 14px;
	}

	.dl-site-footer__inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
	}

	.dl-menu-toggle {
		display: inline-flex;
		position: relative;
	}

	.dl-site-nav--primary {
		flex-basis: 100%;
		width: 100%;
	}

	.dl-site-header.dl-nav-ready .dl-site-nav--primary:not(.is-open) {
		display: none;
	}

	.dl-site-nav ul {
		align-items: stretch;
		display: grid;
		gap: 8px;
		width: 100%;
	}

	.dl-site-nav li {
		display: block;
		width: 100%;
	}

	.dl-site-nav a {
		display: flex;
		justify-content: center;
		min-height: 44px;
		text-align: center;
		width: 100%;
	}

	.dl-site-brand__logo {
		height: 60px;
		width: 60px;
	}
}
