/*
Theme Name: Coruscant
Theme URI:
Author: SWTOR
Description: Star Wars: The Old Republic marketing theme — migrated from Drupal, block theme.
Version: 3.1.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: coruscant
Domain Path: /languages
*/

main {
	position: relative;
	z-index: 101;
	background: url('assets/images/common/content-bg-tile.png') repeat-x top center;
	margin-top: -20px;
	padding-top: 40px;
	transition: padding-top 0.5s ease;
}

/* --- Focus Styles --- */

:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
}

a:focus-visible {
	outline: none;
	color: var(--wp--preset--color--gold);
}

a:has(img):focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
}

/* --- Decorative Elements --- */

h1 {
	padding-bottom: 30px;
}

hr {
	border: none;
	height: 6px;
	max-width: 600px;
	margin: 35px auto;
	background: url('assets/images/common/divider-ornament.png') no-repeat center;
}

main p,
main ul,
main li {
	font: 400 14px/20px var(--wp--preset--font-family--system-sans);
}

main p:empty {
	min-height: 20px;
}

strong {
	font-weight: bold;
	color: var(--wp--preset--color--heading);
}


/* --- Pagination --- */

.wp-block-query-pagination,
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	margin-top: 50px;
	margin-bottom: 25px;
	gap: 5px;
}

.pagination a,
.pagination span {
	display: inline-block;
	padding: 5px 15px;
	font: 400 16px/35px var(--wp--preset--font-family--news-gothic);
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	position: relative;
}

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

.pagination a:focus-visible {
	outline: none;
	color: var(--wp--preset--color--heading);
}

.pagination .page-numbers {
	height: 35px;
	line-height: 35px;
	padding: 0 17px;
	position: relative;
}

.pagination .page-numbers:not(.prev):not(.next):not(.first):not(.last)::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('assets/images/common/pagination-bg-tile.png') repeat-x 0 -2px;
	transform: skewX(-45deg);
	z-index: -1;
}

.pagination .current {
	color: var(--wp--preset--color--heading);
	font: 700 14px/35px var(--wp--preset--font-family--system-sans);
}

.pagination .current::before {
	display: none;
}

.pagination .page-numbers:not(.prev):not(.next):not(.first):not(.last):hover::before,
.pagination .page-numbers:not(.prev):not(.next):not(.first):not(.last):focus::before {
	background-position: 0 -38px;
}

.pagination .page-numbers:not(.prev):not(.next):not(.first):not(.last):hover,
.pagination .page-numbers:not(.prev):not(.next):not(.first):not(.last):focus {
	color: var(--wp--preset--color--heading);
}

.pagination .prev,
.pagination .next,
.pagination .first,
.pagination .last {
	color: var(--wp--preset--color--gold);
	text-transform: uppercase;
	font: 400 14px/35px var(--wp--preset--font-family--system-sans);
}

.pagination .next,
.pagination .last {
	padding-right: 25px;
}

.pagination .prev,
.pagination .first {
	padding-left: 25px;
}

.pagination .next::after,
.pagination .last::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	background: url('assets/images/common/nav-arrows.png') no-repeat 0 -20px;
}

.pagination .prev::before,
.pagination .first::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	background: url('assets/images/common/nav-arrows.png') no-repeat 0 -40px;
}

.pagination .next:hover::after,
.pagination .last:hover::after,
.pagination .next:focus::after,
.pagination .last:focus::after {
	background-position: -18px -20px;
}

.pagination .prev:hover::before,
.pagination .first:hover::before,
.pagination .prev:focus::before,
.pagination .first:focus::before {
	background-position: -18px -40px;
}

/* --- Section Header --- */

.section-header {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	font: small-caps 700 30px/30px var(--wp--preset--font-family--berling);
	color: var(--wp--preset--color--heading);
	margin-left: 5px;
	letter-spacing: 1px;
}

h1.section-header {
	margin: 0 0 0 5px;
	padding: 0;
	text-transform: none;
}

.section-header__icon {
	display: inline-block;
	width: 30px;
	height: 30px;
	background: url('assets/images/common/section-icons.png') no-repeat 0 center;
}

.section-header__icon--about { background-position: -30px center; }
.section-header__icon--holonet { background-position: -60px center; }
.section-header__icon--myswtor { background-position: -90px center; }
.section-header__icon--community { background-position: -244px center; }

.section-header--no-icon {
	margin-left: 0;
}

.section-header .read-more {
	margin-left: auto;
	letter-spacing: initial;
}

.section-header__divider {
	height: 25px;
	background: url('assets/images/common/section-divider.png') no-repeat center;
	margin-bottom: 30px;
}

.section-header__divider--narrow {
	height: 8px;
	background: url('assets/images/common/section-divider-550.png') no-repeat left center;
}

/* --- Error pages (404): Droid and message panel --- */

.error-page {
	padding-bottom: 15px;
}

.error-page .section-header__divider {
	margin-bottom: 10px;
}

.section-header__icon--emblem { background-position: 0 center; }

.error-page__body {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
}

.error-page__droid {
	width: 220px;
}

.error-page__droid-message {
	position: relative;
	z-index: 2;
	width: 170px;
	margin: 0 5px;
	padding: 35px 20px;
	border: 1px solid var(--wp--preset--color--error-border);
	border-radius: 6px;
	background: linear-gradient(var(--wp--preset--color--error-message-top), var(--wp--preset--color--error-message-middle) 50%, var(--wp--preset--color--error-message-bottom) 80%);
	font: 14px/20px var(--wp--preset--font-family--news-gothic);
	text-align: center;
	text-transform: uppercase;
	color: var(--wp--preset--color--error-message-text);
}

.error-page__droid-frame {
	position: relative;
	width: 201px;
	height: 205px;
	margin: -2px 10px 0;
	border: 1px solid var(--wp--preset--color--error-border);
	background-color: var(--wp--preset--color--base);
}

.error-page__droid-frame::before {
	content: '';
	position: absolute;
	top: -40px;
	left: 0;
	z-index: 5;
	width: 201px;
	height: 262px;
	background: url('assets/images/errors/droid.png') no-repeat left bottom;
}

.error-page__panel {
	box-sizing: border-box;
	width: 710px;
	min-height: 255px;
	margin: 0 5px;
	padding: 20px;
	background: linear-gradient(var(--wp--preset--color--error-panel-top), var(--wp--preset--color--error-panel-middle) 60px, var(--wp--preset--color--error-panel-bottom));
}

.error-page__box {
	margin: 40px 30px;
	padding: 30px;
	border: 1px solid var(--wp--preset--color--error-box-border);
	border-radius: 2px;
	background-color: var(--wp--preset--color--error-box);
	font: 14px/20px var(--wp--preset--font-family--system-sans);
}

.error-page__box .error-page__title {
	margin: 0 5px 10px;
	padding: 0;
	font: 400 20px/20px var(--wp--preset--font-family--news-gothic);
	letter-spacing: normal;
	text-transform: none;
	color: var(--wp--preset--color--heading);
}

.error-page__box p {
	margin: 0 5px 10px;
}

.error-page__box .read-more {
	display: inline-block;
	margin-top: 20px;
}

/* --- Components --- */

.entry-date {
	font-size: 12px;
	text-transform: uppercase;
	color: var(--wp--preset--color--heading);
	font: 400 14px/16px var(--wp--preset--font-family--system-sans);
}

.archive-thumbnail {
	flex: 0 0 200px;
	width: 200px;
	height: 150px;
	object-fit: cover;
}

.view-all-link {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--wp--preset--color--gold);
}

.read-more {
	display: inline-block;
	position: relative;
	padding-right: 25px;
	font: 400 14px/20px var(--wp--preset--font-family--system-sans);
	color: var(--wp--preset--color--gold);
}

.read-more::after {
	content: '';
	position: absolute;
	right: 0;
	width: 18px;
	height: 18px;
	background: url('assets/images/common/nav-arrows.png') no-repeat 0 -20px;
}

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

.read-more:hover::after,
.read-more:focus::after {
	background-position: -18px -20px;
}

/* --- Promo Buttons --- */

.promo-btn-group {
	display: flex;
	flex-wrap: wrap;
	gap: 25px;
	justify-content: center;
	align-items: center;
}

.promo-btn {
	position: relative;
	display: inline-block;
	padding: 14px 40px;
	margin: 0;
	height: auto;
	font-size: 24px;
	line-height: 32px;
	color: var(--wp--preset--color--heading);
	text-decoration: none;
	background-color: #00000080;
	border: 1px solid #c8a34e80;
	transition: all 300ms ease;
	text-transform: uppercase;
}

.promo-btn:hover,
.promo-btn:focus {
	color: var(--wp--preset--color--heading);
	background-color: #000000cc;
	border-color: var(--wp--preset--color--gold-border);
}

/* Primary variant — solid gold fill to draw the eye. */
.promo-btn-primary {
	background-color: #d3ae00b3;
	border-color: #ffffff66;
}

.promo-btn-primary:hover,
.promo-btn-primary:focus {
	background-color: var(--wp--preset--color--gold-promo);
	border-color: #ffffff99;
	box-shadow: 0 0 20px #ffffff99 inset;
}

/* --- Discuss this article (news, community blog, media) --- */

.discuss-article {
	position: relative;
	margin: 40px 0;
	padding-left: 80px;
	min-height: 62px;
}

.discuss-article__icon {
	position: absolute;
	left: 0;
	top: -10px;
	width: 62px;
	height: 62px;
	background: url('assets/images/common/side-promo-icons.png') no-repeat -187px 0;
}

.discuss-article__link {
	display: inline-block;
	position: relative;
	padding-right: 40px;
	text-decoration: none;
}

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

.discuss-article__line--accent {
	color: var(--wp--preset--color--gold);
}

.discuss-article__link:hover .discuss-article__line,
.discuss-article__link:focus .discuss-article__line {
	color: var(--wp--preset--color--heading);
	text-decoration: none;
}

.discuss-article__link::after {
	content: '';
	position: absolute;
	right: 0;
	top: 15px;
	width: 18px;
	height: 18px;
	background: url('assets/images/common/nav-arrows.png') no-repeat 0 -20px;
}

.discuss-article__link:hover::after,
.discuss-article__link:focus::after {
	background-position: -18px -20px;
}
