/*
 * Text pages (page-text.php): the privacy policy, the terms of use, the account deletion page. Their content sits in a Group block with
 * the class "travessia-prose". Tailwind's base styles take the size off headings, the bullets off lists and the space between paragraphs,
 * so this gives them back in the site's own voice (Fraunces italic headings, Sweet Sans text), only inside that class: WooCommerce pages,
 * which share the default page template, are not touched.
 *
 * WordPress renders a Group's blocks inside a ".wp-block-group__inner-container" (a theme without theme.json), so "a block after a block"
 * is matched inside that container as well as directly.
 */
.travessia-prose {
	max-width: 46rem;
	margin-left: auto;
	margin-right: auto;
	color: var(--color-body);
	font-size: 1.0625rem;
	line-height: 1.75;
}

.travessia-prose > * + *,
.travessia-prose > .wp-block-group__inner-container > * + * {
	margin-top: 1.1rem;
}

.travessia-prose h2 {
	margin-top: 3.25rem !important;
	font-family: "Fraunces", serif;
	font-style: italic;
	font-weight: 500;
	font-size: 2rem;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--color-heading);
}

.travessia-prose h3 {
	margin-top: 2rem !important;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--color-heading);
}

/* The heading's text belongs with what follows it. */
.travessia-prose h2 + *,
.travessia-prose h3 + * {
	margin-top: 0.6rem !important;
}

.travessia-prose ul {
	padding-left: 1.25rem;
	list-style: disc;
}

.travessia-prose li::marker {
	color: var(--color-secondary);
}

.travessia-prose li + li {
	margin-top: 0.5rem;
}

.travessia-prose a {
	color: var(--color-primary);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.travessia-prose a:hover {
	color: var(--color-accent);
}

.travessia-prose strong {
	color: var(--color-heading);
	font-weight: 600;
}

.travessia-prose code {
	font-size: 0.875em;
	padding: 0.1rem 0.35rem;
	border-radius: 0.25rem;
	background: rgba(45, 45, 45, 0.06);
	color: var(--color-heading);
}

/* "Last updated", the first line of the privacy policy and the terms. */
.travessia-prose > :first-child em:only-child,
.travessia-prose > .wp-block-group__inner-container > :first-child em:only-child {
	font-family: "Fraunces", serif;
	color: var(--color-secondary);
}

/* The account deletion form ([travessia_delete_account]): a box like WooCommerce's login form, which the shortcode also prints. */
.travessia-prose .travessia-delete-form {
	padding: 1.25rem 1.5rem;
	border: 1px solid rgba(45, 45, 45, 0.15);
	border-radius: 5px;
}

.travessia-prose .woocommerce form.login {
	margin: 1.25rem 0 0;
}

/* WooCommerce's shared login form puts the two fields side by side (its checkout layout); stacked, as on My Account. */
.travessia-prose .woocommerce form .form-row-first,
.travessia-prose .woocommerce form .form-row-last {
	float: none;
	width: 100%;
}

.travessia-prose .woocommerce form p + p,
.travessia-prose .travessia-delete-form p + p {
	margin-top: 0.75rem;
}

.travessia-prose .woocommerce a {
	text-decoration: none;
}

.travessia-prose .woocommerce a:hover {
	text-decoration: underline;
}

@media (max-width: 767px) {
	.travessia-prose {
		font-size: 1rem;
	}

	.travessia-prose h2 {
		font-size: 1.65rem;
		margin-top: 2.5rem !important;
	}
}
