/* Component: teaser (category list item) + teaser-list. Two columns (image | text) >= 769px, stacked below. */

.hg-teaser {
	position: relative;
	padding-top: 30px;
}

.hg-teaser__inner {
	display: flex;
	margin: -25px -8px 0;
}

.hg-teaser__media,
.hg-teaser__body {
	flex: 0 0 50%;
	max-width: 50%;
	padding-left: 15px;
}

.hg-teaser__body {
	box-sizing: content-box; /* live: 50% + padding (text column overflows the teaser by 15px) */
}

.hg-teaser__media {
	display: block;
	margin: 0 0 10px;
	overflow: hidden;
}

.hg-teaser__media img {
	transition: 0.3s ease-out;
}

.hg-teaser__caption {
	position: relative;
	display: block;
	font-size: 0.9rem;
	font-style: italic;
}

.hg-teaser__date {
	display: block;
	margin: 0;
	font-size: var(--hg-fs-xs);
	font-weight: var(--hg-fw-regular);
	line-height: var(--hg-lh-article);
	color: var(--hg-gold);
}

.hg-teaser__text {
	width: 100%;
	overflow: hidden;
	color: var(--hg-bg-button);
}

.hg-teaser__title {
	margin: 0;
	font-size: var(--hg-fs-md);
	font-weight: var(--hg-fw-bold);
	line-height: var(--hg-lh-base);
	color: var(--hg-text-title);
}

.hg-teaser__title a {
	color: var(--hg-text-title);
}

.hg-teaser__title a:hover,
.hg-teaser__title a:focus {
	color: var(--hg-text-hover-dark);
	text-decoration: none;
}

/* Live: keyboard focus without hover (Phase 5 QA). */
.hg-teaser__title a:focus:not(:hover) {
	color: #545454;
	text-decoration: underline;
}

.hg-teaser__excerpt {
	display: block;
	margin: 5px 0 0;
	font-size: var(--hg-fs-sm);
	line-height: var(--hg-lh-tight);
	color: var(--hg-text-article);
}

/* "..." read-more with arrow (arrow slides right and a line grows on hover). */
.hg-readmore {
	display: inline-block;
	min-height: 30px;
	padding: 0 12px;
	font-size: var(--hg-fs-base);
	font-weight: var(--hg-fw-bold);
	line-height: 30px;
	color: var(--hg-text);
	text-align: center;
	vertical-align: middle;
}

.hg-readmore__dots {
	position: relative;
	display: inline-block;
	min-height: 30px;
	padding-right: 32px;
	color: var(--hg-bg-button);
	vertical-align: middle;
}

.hg-readmore__dots::before,
.hg-readmore__dots::after {
	content: "";
	position: absolute;
	background: var(--hg-bg-button);
}

.hg-readmore__dots::before {
	top: 8px;
	right: 12px;
	width: 14px;
	height: 14px;
	-webkit-mask: url("../../img/angle-right.svg") no-repeat 0 0 / 100% 105%;
	mask: url("../../img/angle-right.svg") no-repeat 0 0 / 100% 105%;
	transition: right 0.25s;
}

.hg-readmore__dots::after {
	top: 50%;
	right: 15px;
	width: 0;
	height: 2px;
	margin-top: -1px;
	transition: width 0.25s, right 0.25s;
}

.hg-readmore:hover .hg-readmore__dots::before,
.hg-readmore:focus .hg-readmore__dots::before {
	right: 0;
}

.hg-readmore:hover .hg-readmore__dots::after,
.hg-readmore:focus .hg-readmore__dots::after {
	right: 4px;
	width: 14px;
}

/* live: items come in rows of two; rows are 35px apart >= 1220px */
@media (min-width: 1220px) {
	.hg-teaser-list > .hg-teaser:nth-child(2n + 3) {
		margin-top: 35px;
	}
}

@media (max-width: 768px) {
	.hg-teaser__inner {
		display: block;
	}

	.hg-teaser__media,
	.hg-teaser__body {
		max-width: 100%;
		padding-left: 0;
	}
}

@media (max-width: 767px) {
	.hg-teaser__excerpt {
		font-size: var(--hg-fs-xs);
	}
}
