/**
 * Staff application and WordPress login.
 * Public pages keep using style.css.
 */

body.login {
	background: #111111;
	color: #333333;
}

body.login h1.wp-login-logo {
	display: none;
}

.tombstone-epitaph-login-layout {
	width: 100%;
}

.tombstone-epitaph-login-brand {
	width: min(280px, 70vw);
	margin: 32px auto 0;
	text-align: center;
}

.tombstone-epitaph-login-brand img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto;
	padding: 16px 18px;
	box-sizing: border-box;
	background: #f4f1ea;
}

body.login #login {
	padding-top: 12px;
}

body.login form {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	border: 1px solid #000000;
	border-top: 4px solid #000000;
	background: #ffffff;
	overflow: visible;
}

body.login form > p,
body.login form > .user-pass-wrap {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

body.login #loginform {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
}

body.login #loginform > p:not(.forgetmenot):not(.tombstone-epitaph-login-lost-password),
body.login #loginform > .user-pass-wrap,
body.login #loginform > .submit {
	flex: 1 0 100%;
}

body.login #loginform > .submit {
	order: 4;
}

body.login form .forgetmenot {
	float: none;
	order: 2;
	flex: 0 1 auto;
	width: auto;
	margin: 8px 0 0;
}

body.login .tombstone-epitaph-login-lost-password {
	order: 3;
	flex: 0 1 auto;
	width: auto;
	margin: 8px 0 0 auto;
	text-align: right;
}

body.login form .submit,
body.login #login form p.submit,
body.login #loginform p.submit {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	clear: both;
	float: none;
	width: 100%;
	margin: 16px 0 0;
	padding: 0;
	box-sizing: border-box;
}

body.login.wp-core-ui .button.button-primary,
body.login.wp-core-ui form .submit .button.button-large,
body.login form .submit #wp-submit,
body.login form .submit #tombstone-epitaph-login-app,
body.login form .submit #submit,
body.login #tombstone-epitaph-2fa-verify {
	float: none;
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	min-height: 40px;
	margin: 0;
	padding: 8px 12px;
	box-sizing: border-box;
	line-height: 1.3;
	white-space: normal;
}

body.login #backtoblog {
	margin: 16px 0 0;
	padding: 0;
}

body.login #backtoblog a {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	background: #d9d9d9;
	color: #111111;
	text-align: center;
	text-decoration: none;
	line-height: 1.4;
	white-space: normal;
}

body.login #backtoblog a:hover,
body.login #backtoblog a:focus {
	background: #E8DECE;
	border-color: #E8DECE;
	color: #000000;
}

body.login #nav {
	display: none;
}

body.login #tombstone-epitaph-2fa-alt {
	margin: 24px auto 0;
	padding: 26px 24px;
	background: #ffffff;
	border: 1px solid #000000;
	border-top: 4px solid #000000;
}

body.login a:focus,
body.login input:focus,
body.login button:focus {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

@media screen and (min-width: 768px) {
	body.login:not(.interim-login) {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 100%;
	}

	body.login:not(.interim-login) .tombstone-epitaph-login-layout {
		display: grid;
		grid-template-columns: auto 320px;
		align-items: center;
		column-gap: 48px;
		width: auto;
		max-width: 92vw;
		padding: 40px 24px;
	}

	body.login:not(.interim-login) .tombstone-epitaph-login-brand {
		grid-column: 1;
		grid-row: 1;
		width: auto;
		margin: 0;
		justify-self: end;
	}

	body.login:not(.interim-login) .tombstone-epitaph-login-brand img {
		width: 280px;
	}

	body.login:not(.interim-login) #login {
		grid-column: 2;
		grid-row: 1;
		width: 320px;
		margin: 0;
		padding-top: 0;
	}

	body.login:not(.interim-login) .language-switcher {
		grid-column: 1 / -1;
		justify-self: center;
	}
}

@media screen and (min-width: 1100px) {
	body.login:not(.interim-login) .tombstone-epitaph-login-layout:has(#tombstone-epitaph-2fa-alt) {
		grid-template-columns: auto 320px 320px;
	}

	body.login:not(.interim-login) #tombstone-epitaph-2fa-alt {
		grid-column: 3;
		grid-row: 1;
		width: 320px;
		margin: 0;
	}
}

.tombstone-epitaph-staff {
	margin: 0;
	min-height: 100vh;
	background: #f0f0f0;
	color: #333333;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 18px;
	line-height: 1.45;
}

.tombstone-epitaph-staff * {
	box-sizing: border-box;
}

.tombstone-epitaph-staff a {
	color: #000000;
}

.tombstone-epitaph-staff a:focus,
.tombstone-epitaph-staff button:focus,
.tombstone-epitaph-staff input:focus,
.tombstone-epitaph-staff select:focus,
.tombstone-epitaph-staff textarea:focus,
.tombstone-epitaph-staff summary:focus {
	outline: 2px solid #000000;
	outline-offset: 2px;
}

.tombstone-epitaph-staff-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 20px;
	background: #111111;
	color: #ffffff;
}

.tombstone-epitaph-staff a.tombstone-epitaph-staff-brand,
.tombstone-epitaph-staff a.tombstone-epitaph-staff-brand:hover,
.tombstone-epitaph-staff a.tombstone-epitaph-staff-brand:focus {
	color: #ffffff;
	font-weight: 700;
	text-decoration: none;
}

.tombstone-epitaph-staff-nav ul,
.tombstone-epitaph-staff-menu ul {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tombstone-epitaph-staff-nav a,
.tombstone-epitaph-staff-menu a {
	color: #ffffff;
}

.tombstone-epitaph-staff-menu {
	display: none;
}

.tombstone-epitaph-staff-menu summary {
	cursor: pointer;
}

.tombstone-epitaph-staff-main {
	width: min(1140px, calc(100% - 32px));
	margin: 0 auto;
	padding: 24px 0 104px;
}

.tombstone-epitaph-staff-home {
	padding: 24px 28px 8px;
	background: #ffffff;
	border: 1px solid #dddddd;
}

.tombstone-epitaph-staff-home h1 {
	margin-top: 0;
}

.tombstone-epitaph-staff-home .tombstone-epitaph-staff-app-list {
	margin-top: 20px;
}

.tombstone-epitaph-staff-panel {
	padding: 24px 28px 28px;
	background: #ffffff;
	border: 1px solid #ffffff;
	box-shadow: 0 0 10px 1px #000000;
}

.tombstone-epitaph-staff-panel h1 {
	margin-top: 0;
}

.tombstone-epitaph-staff-signed-in {
	color: #777777;
}

.tombstone-epitaph-staff label {
	display: block;
	margin-bottom: 4px;
	font-weight: 700;
}

.tombstone-epitaph-staff input[type="text"],
.tombstone-epitaph-staff input[type="email"],
.tombstone-epitaph-staff input[type="tel"],
.tombstone-epitaph-staff input[type="search"],
.tombstone-epitaph-staff input[type="date"],
.tombstone-epitaph-staff select,
.tombstone-epitaph-staff textarea {
	width: min(100%, 420px);
	padding: 8px;
	border: 1px solid #333333;
	background: #ffffff;
	font: inherit;
}

.tombstone-epitaph-staff button,
.tombstone-epitaph-staff-button {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid #000000;
	background: #000000;
	color: #ffffff;
	font: inherit;
	text-decoration: none;
	cursor: pointer;
}

.tombstone-epitaph-staff a.tombstone-epitaph-staff-button,
.tombstone-epitaph-staff a.tombstone-epitaph-staff-button:hover,
.tombstone-epitaph-staff a.tombstone-epitaph-staff-button:focus {
	color: #ffffff;
}

.tombstone-epitaph-staff-check label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
}

.tombstone-epitaph-staff-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: end;
}

.tombstone-epitaph-staff-table-wrap {
	overflow-x: auto;
}

.tombstone-epitaph-staff-table {
	width: 100%;
	border-collapse: collapse;
	background: #ffffff;
}

.tombstone-epitaph-staff-table th,
.tombstone-epitaph-staff-table td {
	padding: 8px;
	border-bottom: 1px solid #dddddd;
	text-align: left;
	vertical-align: top;
}

.tombstone-epitaph-staff-flash {
	padding: 12px;
	background: #ffffff;
	border: 1px solid #000000;
}

.tombstone-epitaph-staff-flash.is-error {
	border-color: #8a1f16;
}

.tombstone-epitaph-staff-app-list {
	padding: 0;
	list-style: none;
}

.tombstone-epitaph-staff-app-list li {
	margin: 0 0 16px;
	padding: 16px;
	background: #ffffff;
	border: 1px solid #dddddd;
}

.tombstone-epitaph-staff-app-list span {
	display: block;
	margin-top: 4px;
}

.tombstone-epitaph-staff-footer {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
}

.tombstone-epitaph-staff-footer a {
	display: block;
	margin: 0;
	line-height: 0;
}

.tombstone-epitaph-staff-footer img {
	display: block;
	width: 64px;
	height: 64px;
}

.tombstone-epitaph-staff-footer a:hover img,
.tombstone-epitaph-staff-footer a:focus img {
	opacity: 0.8;
}

.tombstone-epitaph-staff-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

@media screen and (max-width: 782px) {
	.tombstone-epitaph-staff-nav {
		display: none;
	}

	.tombstone-epitaph-staff-menu {
		display: block;
	}

	.tombstone-epitaph-staff-menu ul {
		flex-direction: column;
		margin-top: 8px;
	}
}
