/* Portfolio page. Sized for older clients: large text, large targets, strong contrast. */

.spm-portfolio {
	font-size: 1.25rem;
	line-height: 1.6;
	max-width: 46rem;
}

.spm-portfolio h2 {
	font-size: 2rem;
	margin: 0 0 1.5rem;
}

.spm-portfolio h3 {
	font-size: 1.5rem;
	margin: 2rem 0 0.75rem;
}

.spm-portfolio__buttons {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0 0 3rem;
}

.spm-portfolio__button {
	display: inline-block;
	padding: 1.1rem 1.75rem;
	border: 2px solid var(--wp--preset--color--light-blue, #addaf1);
	border-radius: 6px;
	background: transparent;
	color: var(--wp--preset--color--white, #fff);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.spm-portfolio__button--primary {
	background: var(--wp--preset--color--light-blue, #addaf1);
	color: var(--wp--preset--color--blue-medium, #365365);
}

.spm-portfolio__button--quiet {
	padding: 0.6rem 1.25rem;
	border-color: currentColor;
	font-size: 1.125rem;
}

.spm-portfolio__button:hover,
.spm-portfolio__button:focus-visible {
	background: var(--wp--preset--color--white, #fff);
	border-color: var(--wp--preset--color--white, #fff);
	color: var(--wp--preset--color--dark, #131c23);
}

.spm-portfolio__button:focus-visible,
.spm-portfolio summary:focus-visible,
.spm-documents a:focus-visible {
	outline: 3px solid var(--wp--preset--color--light-blue, #addaf1);
	outline-offset: 3px;
}

.spm-portfolio__notice {
	margin: 0 0 2rem;
	padding: 1.25rem 1.5rem;
	border-left: 6px solid var(--wp--preset--color--light-blue, #addaf1);
	background: rgba(173, 218, 241, 0.12);
}

.spm-portfolio__notice p {
	margin: 0 0 0.75rem;
}

.spm-portfolio__notice--success {
	border-left-color: #7fd18b;
}

.spm-portfolio__error {
	padding: 0.75rem 1rem;
	background: #fbe3e3;
	color: #7a1010;
	font-weight: 700;
}

.spm-portfolio__password-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 700;
}

.spm-portfolio__password-form input {
	box-sizing: border-box;
	width: 100%;
	max-width: 26rem;
	padding: 0.75rem;
	border: 2px solid #8aa5b5;
	border-radius: 4px;
	font-size: 1.25rem;
}

.spm-portfolio__footer {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.5rem;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.spm-portfolio summary {
	cursor: pointer;
	font-weight: 700;
	text-decoration: underline;
}

.spm-portfolio details[open] summary {
	margin-bottom: 1rem;
}

/* Document lists, also used on public pages via [spm_documents]. */

.spm-documents ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.spm-documents li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.spm-documents a {
	display: block;
	padding: 0.85rem 0;
	color: inherit;
	font-size: 1.15rem;
	/* Light, as on the old site; white text on dark reads heavier than it is. */
	font-weight: 300;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

.spm-documents__type {
	opacity: 0.75;
	font-size: 0.9em;
	white-space: nowrap;
}

@media (min-width: 640px) {
	.spm-portfolio__buttons {
		flex-direction: row;
		flex-wrap: wrap;
	}
}

/* Login form on the portfolio page, laid out like the old site's. */
.spm-login {
	max-width: 450px;
}

.spm-login p {
	margin: 0 0 16px;
}

.spm-login label {
	display: block;
	margin-bottom: 4px;
	color: #fff;
	font-size: 15px;
}

.spm-login input[type="text"],
.spm-login input[type="password"] {
	box-sizing: border-box;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #fff !important;
	border-radius: 2px;
	background: #fff;
	color: #000;
	font-size: 18px;
}

.spm-login input:focus {
	outline: 3px solid #addaf1;
	outline-offset: 1px;
}

.spm-login__submit {
	padding: 10px 22px;
	border: 0;
	border-radius: 8px;
	background: #addaf1;
	color: #131c23;
	font-size: 18px;
	cursor: pointer;
}

.spm-login__submit:hover,
.spm-login__submit:focus {
	background: #fff;
}

.spm-login__lost a {
	color: #addaf1;
	font-size: 15px;
}

.spm-login__error {
	padding: 10px 14px;
	border-left: 4px solid #f2b8b5;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 16px;
}
