/* --- Front Page --- */

.home .site-header__bg {
	height: 100%;
	background: url('../images/header/backgrounds/lots-keyart-hero-promo.jpg') no-repeat center -175px / cover;
	left: 50%;
	transform: translateX(-50%);
	width: 1950px;
}

/* --- Hero Promo (above the navigation) --- */

/* Darkens the key art so the promo text stays legible. Matches the 20% black
   overlay the Drupal site applied over the hero background. */
.home .site-header__bg::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.2);
	z-index: 1;
}

/* Fades the left and right edges of the oversized key art into the black page
   background, so the image does not end in a hard vertical line. */
.home .site-header__bg::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 2;
	background:
		linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 300px),
		linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 300px);
	pointer-events: none;
}

.hero-promo {
	position: relative;
	z-index: 3;
	max-width: 1138px;
	margin: 0 auto;
	min-height: 500px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 90px;
}

.hero-promo__inner {
	text-align: center;
}

.hero-promo__title {
	font: small-caps 400 60px/60px var(--wp--preset--font-family--berling);
	color: var(--wp--preset--color--heading);
	letter-spacing: 0;
	margin: 0;
	padding: 0;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
	text-transform: none;
}

.hero-promo__title em {
	font-family: var(--wp--preset--font-family--custom-tor);
	font-style: normal;
}

.hero-promo__title sup {
	font-size: 16px;
	vertical-align: super;
}

.hero-promo__subtitle {
	font: 400 28px/36px var(--wp--preset--font-family--open-sans);
	color: #F7F3DA;
	margin: 0 0 24px;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.hero-promo__actions {
	margin-top: 40px;
}

/* --- Two column layout --- */

/* 550 + 54 + 346 = 950, the width left after the side margins are taken off the 960px
   content size. The main column has to land on exactly 550px — the video images and the
   section divider graphic are both drawn at that width. */
.front-page__layout {
	display: flex;
	gap: 70px;
	align-items: flex-start;
	margin: 10px 5px;
}

.front-page__main {
	flex: 0 0 550px;
	min-width: 0;
}

.front-page__sidebar {
	flex: 0 0 346px;
	margin-top: 10px;
}

/* --- Latest News --- */

.front-news__item {
	margin-bottom: 30px;
}

.front-news__title {
	font: 400 24px/32px var(--wp--preset--font-family--news-gothic);
	letter-spacing: normal;
	margin: 0 0 12px;
	padding: 0;
}

.front-news__title a {
	color: var(--wp--preset--color--heading);
	text-decoration: none;
}

.front-news__title a:hover,
.front-news__title a:focus {
	color: var(--wp--preset--color--gold);
}

.front-news__content {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.front-news__thumbnail {
	flex: 0 0 220px;
	display: block;
}

/* Stretched to fill for consistency with the news archive — most imported news images
   are only 200px wide, so they are scaled up rather than left undersized. */
.front-news__thumbnail img {
	display: block;
	width: 220px;
	height: 122px;
	object-fit: cover;
}

.front-news__body {
	flex: 1;
	min-width: 0;
}

.front-news__meta {
	margin: 0 0 8px;
	font: 400 14px/20px var(--wp--preset--font-family--system-sans);
	color: var(--wp--preset--color--text);
}

.front-news__meta .entry-date {
	font-weight: 700;
	color: var(--wp--preset--color--heading);
}

/* --- New Media Items --- */

.front-media {
	margin-top: 40px;
}

.front-media__subheading {
	font: 400 20px/26px var(--wp--preset--font-family--news-gothic);
	color: var(--wp--preset--color--heading);
	margin: 25px 0 15px;
}

.front-media__videos {
	display: flex;
	flex-direction: column;
	gap: 45px;
	margin-bottom: 45px;
}

.front-media__video-image {
	display: block;
}

.front-media__video-image img {
	width: 550px;
	height: 120px;
	object-fit: cover;
	display: block;
}

.front-media__video-body {
	margin-top: 10px;
}

.front-media__video-title {
	font: 400 18px/24px var(--wp--preset--font-family--news-gothic);
	margin: 0 0 6px;
}

.front-media__video-title a {
	color: var(--wp--preset--color--heading);
	text-decoration: none;
}

.front-media__video-title a:hover,
.front-media__video-title a:focus {
	color: var(--wp--preset--color--gold);
}

.front-media__video-meta,
.front-media__tile-meta {
	margin: 0;
	font: 400 14px/20px var(--wp--preset--font-family--system-sans);
	color: var(--wp--preset--color--text);
}

.front-media__video-meta .entry-date,
.front-media__tile-meta .entry-date {
	font-weight: 700;
	color: var(--wp--preset--color--heading);
}

/* Two tiles per row, pushed to the outer edges so they line up with the 550px video
   images above. The gap is only a minimum so the tiles wrap instead of squashing on
   narrow screens. */
.front-media__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 15px;
}

.front-media__tile {
	width: 260px;
	margin-bottom: 30px;
}

/* The thumbnail is its own link; the meta line and read-more sit outside it so the
   read-more is not nested inside another link. */
.front-media__tile-link {
	display: block;
	text-decoration: none;
}

.front-media__tile img {
	width: 260px;
	height: 150px;
	object-fit: cover;
	display: block;
}

.front-media__tile-meta {
	margin-top: 8px;
}

.front-media__tile .read-more {
	margin-top: 4px;
}

/* --- Sidebar promo links --- */

.front-promo-link {
	position: relative;
	padding: 40px 40px 0 25px;
	background: url('../images/common/sidebar-divider-glow.png') no-repeat top left;
}

.front-promo-link a {
	position: relative;
	display: block;
	padding: 11px 30px 8px 80px;
	color: var(--wp--preset--color--text);
	text-decoration: none;
	font: 700 22px/22px var(--wp--preset--font-family--news-gothic);
}

.front-promo-link__icon {
	position: absolute;
	left: 0;
	top: 3px;
	width: 62px;
	height: 62px;
	background: url('../images/common/side-promo-icons.png') no-repeat;
}

.front-promo-link--community .front-promo-link__icon {
	background-position: 0 0;
}

.front-promo-link--download .front-promo-link__icon {
	background-position: -62px 0;
}
.front-promo-link--server-status .front-promo-link__icon {
	background-position: -124px 0;
}

.front-promo-link a:hover .front-promo-link__icon,
.front-promo-link a:focus .front-promo-link__icon {
	background-position-y: -62px;
}

.front-promo-link__label {
	display: block;
}

.front-promo-link__sublabel {
	display: block;
	font-weight: 400;
	font-size: 18px;
	color: var(--wp--preset--color--gold);
}

.front-promo-link a:hover,
.front-promo-link a:focus {
	color: var(--wp--preset--color--heading);
}

.front-promo-link a:hover .front-promo-link__sublabel,
.front-promo-link a:focus .front-promo-link__sublabel {
	color: var(--wp--preset--color--heading);
}

.front-promo-link a::after {
	content: '';
	position: absolute;
	right: 0;
	top: 22px;
	width: 18px;
	height: 18px;
	background: url('../images/common/nav-arrows.png') no-repeat 0 -20px;
}

.front-promo-link a:hover::after,
.front-promo-link a:focus::after {
	background-position: -18px -20px;
}

/* --- Sidebar promo cards (front_page_promo post type) --- */

.front-promo-cards {
	display: flex;
    flex-direction: column;
    align-items: center;
	gap: 25px;
	margin-top: 60px;
}

.front-promo-cards__item {
	max-width: 310px;

}

/* The whole card is one link, so image, title and excerpt are all clickable and share a
   single hover state. */
.front-promo-cards__link {
	display: block;
	text-decoration: none;
	margin-bottom: 20px;
}

.front-promo-cards__thumbnail {
	display: block;
	margin-bottom: 10px;
}

/* Cropped to 310x197 on upload by the front-page-promo size. Images narrower than that
   cannot be resized down to it, so they fall back to the original and appear smaller. */
.front-promo-cards__thumbnail img {
	display: block;
	max-width: 100%;
	height: auto;
}

.front-promo-cards__title {
	display: block;
	font: 700 25px/25px var(--wp--preset--font-family--news-gothic);
	margin: 5px 0 4px 0;
	color: var(--wp--preset--color--gold-nav);
}

/* Hovering anywhere on the card highlights the title. */
.front-promo-cards__link:hover .front-promo-cards__title,
.front-promo-cards__link:focus .front-promo-cards__title {
	color: var(--wp--preset--color--heading);
}

.front-promo-cards__excerpt {
	display: block;
	font: 400 20px/24px var(--wp--preset--font-family--news-gothic);
	color: var(--wp--preset--color--heading);
}

/* --- Social links --- */

.front-social {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 30px 0 0 20px;
}

/* Two columns: a fixed 34px icon well (the width of the widest icon in the sprite) and
   the label. Every label starts at the same x regardless of how wide its icon is. */
.front-social__link {
	display: grid;
	grid-template-columns: 34px auto;
	column-gap: 20px;
	align-items: center;
	font: 400 24px/24px var(--wp--preset--font-family--news-gothic);
	color: var(--wp--preset--color--heading);
	text-decoration: none;
	padding: 10px;
}

.front-social__link strong {
	font-weight: 700;
	color: var(--wp--preset--color--gold);
}

.front-social__link:hover,
.front-social__link:focus {
	color: var(--wp--preset--color--heading);
}

.front-social__link:hover strong,
.front-social__link:focus strong {
	color: var(--wp--preset--color--heading);
}

/* Icons sit edge to edge in the sprite, so each offset is the sum of the widths
   before it: facebook 24, X 23, youtube 34, instagram 24. */
.front-social__icon {
	display: block;
	height: 24px;
	background: url('../images/common/social-icons.png') no-repeat;
}

.front-social__link--facebook .front-social__icon {
	width: 24px;
	background-position: 0 0;
}

.front-social__link--twitter .front-social__icon {
	width: 23px;
	background-position: -24px 0;
}

.front-social__link--youtube .front-social__icon {
	width: 34px;
	background-position: -47px 0;
}

.front-social__link--instagram .front-social__icon {
	width: 24px;
	background-position: -81px 0;
}
