/* ***************************************
	Typography
*************************************** */
body {
	font-family: var(--elgg-font-family);
	
	/* Break everywhere as a fallback */
	word-break: break-all;
	/* Instead use this non-standard one as it is better */
	word-break: break-word;
}

a {
	color: var(--elgg-anchor-color);
	
	&:hover,
	&.selected {
		color: var(--elgg-anchor-color-hover);
		text-decoration: underline;
	}
}

pre, code {
	font-family: Monaco, "Courier New", Courier, monospace;
	font-size: 0.75rem;

	background: #EBF5FF;
	color: #000;
	overflow: auto;

	white-space: pre-wrap;
	word-wrap: break-word; /* IE 5.5-7 */

}

pre {
	padding: 0.25rem 1rem;
	margin: 0 0 1rem 0;
	line-height: 1.3rem;
}

code {
	padding: 0.25rem;
}

.elgg-monospace {
	font-family: Monaco, "Courier New", Courier, monospace;
}

blockquote {
	padding: 0.5rem 1rem;
	margin: 0 0 1rem 0;
	background-color: var(--elgg-state-notice-background-color);
	border: 1px solid var(--elgg-state-notice-border-color);
	color: var(--elgg-state-notice-font-color);
}

h1, h2, h3, h4, h5, h6 {
	font-weight: 500;
	font-family: var(--elgg-h-font-family, var(--elgg-font-family));
}

h1 {
	font-size: var(--elgg-h1-font-size);
}

h2 {
	font-size: var(--elgg-h2-font-size);
}

h3 {
	font-size: var(--elgg-h3-font-size);
}

h4 {
	font-size: var(--elgg-h4-font-size);
}

h5 {
	font-size: var(--elgg-h5-font-size);
}

h6 {
	font-size: var(--elgg-h6-font-size);
}

.elgg-subtext {
	color: var(--elgg-text-color-mild);
	font-size: 0.75rem;
}

time,
.elgg-river-timestamp,
.elgg-text-help,
.elgg-quiet,
.elgg-tags {
	display: inline-block;
	color: var(--elgg-text-color-soft);
	font-size: 0.75rem;
	line-height: normal;
}

.elgg-text-help,
.elgg-tags {
	margin-top: 0.25rem;
}

.elgg-loud {
	font-weight: var(--elgg-font-bold-weight);
}

.elgg-more,
.elgg-widget-more {
	padding: 0.5rem;
	font-size: 0.85rem;
	font-weight: var(--elgg-font-bold-weight);
}

.elgg-state {
	&.elgg-state-success {
		 color: var(--elgg-state-success-font-color);
	}
	&.elgg-state-error,
	&.elgg-state-danger {
		 color: var(--elgg-state-danger-font-color);
	}
	&.elgg-state-notice {
		 color: var(--elgg-state-notice-font-color);
	}
	&.elgg-state-warning {
		 color: var(--elgg-state-warning-font-color);
	}
}
