/*
 * myLawCLE Lite: base styles. Plain CSS, no build step. Colours come from the old theme.
 */

:root {
	--navy: #004672;
	--navy-dark: #002f4c;
	--orange: #f5821f;
	--orange-dark: #e46f0a;
	--text: #212529;
	--muted: #6c757d;
	--line: #dee2e6;
	--surface: #f8f9fa;
	--white: #ffffff;
	--danger: #c0392b;
	--success: #2e7d32;
	--radius: 0.375rem;
	--shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
	--font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	--container: 1140px;
	--gutter: 16px;
}

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

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

body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.6;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--navy);
}

a:hover {
	color: var(--orange-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	color: var(--navy);
	font-weight: 600;
	line-height: 1.25;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }

p {
	margin: 0 0 1rem;
}

/* Accessibility */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	z-index: 1000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 0.5rem 1rem;
	clip: auto;
	background: var(--white);
	box-shadow: var(--shadow);
}

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

/* Layout */

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	overflow-x: clip; /* .alignfull blocks use 100vw */
}

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

.site-main:focus {
	outline: none;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.page-content {
	padding-top: 2rem;
	padding-bottom: 3rem;
}

.page-title {
	margin-bottom: 1.5rem;
}

/* Buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.5rem 1rem;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.btn-orange {
	background: var(--orange);
	color: var(--text);
}

.btn-orange:hover {
	background: var(--orange-dark);
	color: var(--white);
}

.btn-navy {
	background: var(--navy);
	color: var(--white);
}

.btn-navy:hover {
	background: var(--navy-dark);
	color: var(--white);
}

/* Header: the live site's navy bar */

.site-header {
	--header-navy: #004376;
	--header-line: #1a5684;
	--header-orange: #f08200;
	position: relative;
	z-index: 100;
	border-bottom: 1px solid var(--header-line);
	background: var(--header-navy);
	color: var(--white);
	font-family: "Inter", var(--font);
	letter-spacing: -0.02em;
}

.site-header a {
	color: var(--white);
	text-decoration: none;
}

.site-header a:hover {
	color: var(--header-orange);
}

.site-header__inner {
	display: flex;
	align-items: stretch;
	min-height: 64px;
}

.site-header__brand {
	display: flex;
	flex: 1 1 50%;
	align-items: center;
	border-right: 1px solid var(--header-line);
}

.site-logo {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	margin-right: 24px;
	padding-right: 24px;
	border-right: 1px solid var(--header-line);
	line-height: 0;
}

.site-logo img {
	width: 118px;
	height: auto;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 32px;
	font-size: 18px;
	line-height: 1.2;
}

.site-header__actions {
	display: flex;
	flex: 1 1 50%;
	align-items: stretch;
	justify-content: flex-end;
}

/* Cart, phone, account: icon links split by short dividers */
.site-header__icon {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 24px;
	white-space: nowrap;
}

.site-header__icon + .site-header__icon::before {
	position: absolute;
	top: 50%;
	left: 0;
	height: 28px;
	border-left: 1px solid var(--header-line);
	content: "";
	transform: translateY(-50%);
}

.site-header .icon {
	width: 20px;
	height: 20px;
}

.site-account__name {
	font-size: 16px;
	font-weight: 600;
}

.site-cart__count {
	position: absolute;
	top: 10px;
	left: 36px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--header-orange);
	color: var(--white);
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.site-subscribe {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: 12px;
	padding: 0 24px;
	border-bottom: 2px solid var(--white);
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
}

.site-subscribe .icon {
	width: 16px;
	height: 16px;
}

.icon {
	flex: 0 0 auto;
}

@media (max-width: 767px) {
	.site-header__inner {
		flex-wrap: wrap;
		min-height: 0;
	}

	/* Logo and icons on the first row, the nav below */
	.site-header__brand {
		display: contents;
	}

	.site-logo {
		min-height: 56px;
		margin-right: 0;
		padding-right: 0;
		border-right: 0;
	}

	.site-header__actions {
		flex: 1 1 auto;
	}

	.site-nav {
		order: 3;
		width: 100%;
		padding: 12px 0;
		border-top: 1px solid var(--header-line);
		font-size: 16px;
	}

	.site-header__icon {
		padding: 0 12px;
	}

	.site-cart__count {
		left: 24px;
	}

	.site-account__name,
	.site-subscribe {
		display: none;
	}
}

/* Footer */

.site-footer {
	margin-top: auto;
	padding: 2.5rem 0 1.5rem;
	border-top: 1px solid var(--line);
	background: var(--navy);
	color: var(--white);
	font-size: 0.875rem;
}

.site-footer a {
	color: var(--white);
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}

.site-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2rem;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2.5rem;
}

.site-footer__bottom p {
	margin: 0;
}

/* Block editor content */

.entry-content > .alignwide {
	max-width: none;
}

.entry-content > .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

.not-found {
	text-align: center;
}
