/* ==========================================================================
   Honor of Kings — site components
   Header & search · ads · cards · homepage · archives · hero story · footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Header
   -------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: rgba(5, 6, 11, 0.9);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(16px) saturate(120%);
	-webkit-backdrop-filter: blur(16px) saturate(120%);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(12px, 2.4vw, 34px);
	min-height: var(--header-h);
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
	color: var(--parchment);
}

.brand:hover {
	color: var(--parchment);
}

.brand__crest {
	position: relative;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--line-strong);
	color: var(--gold-400);
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1;
}

.brand__crest::before,
.brand__crest::after {
	content: '';
	position: absolute;
	width: 5px;
	height: 5px;
	border: 1px solid var(--gold-500);
	opacity: 0.75;
}

.brand__crest::before {
	top: -3px;
	left: -3px;
	border-right: 0;
	border-bottom: 0;
}

.brand__crest::after {
	right: -3px;
	bottom: -3px;
	border-left: 0;
	border-top: 0;
}

.brand__name {
	display: block;
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.1;
	text-transform: uppercase;
}

.brand__tag {
	display: block;
	margin-top: 3px;
	color: var(--parchment-mute);
	font-size: 0.58rem;
	font-weight: 500;
	letter-spacing: 0.26em;
	text-transform: uppercase;
}

.site-nav {
	margin-inline-start: auto;
}

.site-nav ul {
	display: flex;
	align-items: center;
	gap: clamp(10px, 1.8vw, 26px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav li {
	position: relative;
	margin: 0;
}

.site-nav a {
	display: inline-block;
	padding: 8px 0;
	color: var(--parchment-dim);
	font-size: 0.73rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.site-nav a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--gold-500);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--speed) var(--ease);
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
	color: var(--parchment);
}

.site-nav a:hover::after,
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after {
	transform: scaleX(1);
}

/* Submenu (Guides dropdown) ------------------------------------------------ */
.site-nav li.menu-item-has-children > a {
    position: relative;
}

.site-nav li.menu-item-has-children > a::before {
	content: '+';
	position: absolute;
	top: 7px;
	right: -6px;
	display: inline-block;
	width: 5px;
	height: 5px;
	opacity: 0.7;
	font-weight: 700;
}

.site-nav .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: -14px;
	z-index: 40;
	display: block;
	min-width: 210px;
	margin: 0;
	padding: 8px 0;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--ink-900);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease), visibility var(--speed);
	list-style: none;
	gap: 0;
	flex-direction: column;
}

.site-nav li.menu-item-has-children:hover > .sub-menu,
.site-nav li.menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.site-nav .sub-menu li {
	display: block;
	margin: 0;
}

.site-nav .sub-menu a {
	display: block;
	padding: 9px 16px;
	border-bottom: 0;
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	white-space: nowrap;
}

.site-nav .sub-menu a::after {
	display: none;
}

.site-nav .sub-menu li + li {
	border-top: 1px solid var(--line-soft);
}

/* Search ------------------------------------------------------------------ */
.search-slot {
	flex: 0 1 290px;
	min-width: 160px;
}

.search-form {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

.search-form__icon {
	position: absolute;
	left: 13px;
	display: grid;
	place-items: center;
	color: var(--parchment-mute);
	pointer-events: none;
}

.search-form__icon svg {
	width: 15px;
	height: 15px;
}

.search-form__input {
	width: 100%;
	padding: 10px 44px 10px 38px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: rgba(22, 28, 46, 0.6);
	color: var(--parchment);
	font-family: var(--font-text);
	font-size: 0.82rem;
	line-height: 1.3;
	transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.search-form__input::placeholder {
	color: var(--parchment-mute);
}

.search-form__input:hover {
	border-color: var(--line-strong);
}

.search-form__input:focus {
	outline: none;
	border-color: var(--gold-500);
	background: var(--ink-700);
}

.search-form__hint {
	position: absolute;
	right: 12px;
	padding: 1px 6px;
	border: 1px solid var(--line);
	border-radius: 4px;
	color: var(--parchment-mute);
	font-family: var(--font-text);
	font-size: 0.62rem;
	line-height: 1.4;
	pointer-events: none;
}

.search-form__input:focus ~ .search-form__hint {
	opacity: 0;
}

.search-suggest {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	z-index: 120;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--ink-800);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lift);
}

.search-suggest[hidden] {
	display: none;
}

.search-suggest__item a {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 8px;
	border-radius: var(--radius-sm);
	color: var(--parchment);
}

.search-suggest__item a:hover,
.search-suggest__item a:focus-visible,
.search-suggest__item.is-active a {
	background: var(--ink-600);
	color: var(--parchment);
}

.search-suggest__thumb {
	width: 40px;
	height: 40px;
	border-radius: 6px;
	object-fit: cover;
	object-position: top center;
	background: #000;
}

.search-suggest__name {
	display: block;
	font-family: var(--font-display);
	font-size: 0.92rem;
	line-height: 1.2;
}

.search-suggest__meta {
	display: block;
	color: var(--parchment-mute);
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.search-suggest__empty {
	padding: 12px;
	color: var(--parchment-mute);
	font-size: 0.8rem;
}

.search-suggest__all {
	margin-top: 4px;
	border-top: 1px solid var(--line-soft);
}

.search-suggest__all a {
	display: block;
	padding: 10px 8px;
	color: var(--gold-300);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.search-suggest__all a:hover,
.search-suggest__all a:focus-visible {
	background: var(--ink-600);
	color: var(--gold-100);
}

/* Mobile nav -------------------------------------------------------------- */
.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--parchment);
	cursor: pointer;
}

.nav-toggle svg {
	width: 18px;
	height: 18px;
}

.nav-toggle__close {
	display: none;
}

.site-header.is-open .nav-toggle__open {
	display: none;
}

.site-header.is-open .nav-toggle__close {
	display: block;
}

/* --------------------------------------------------------------------------
   2. Ads
   Every slot reserves its real height so ads never shift the layout.
   -------------------------------------------------------------------------- */
.ad-strip {
	padding-block: 14px;
	border-bottom: 1px solid var(--line-soft);
	background: var(--ink-850);
}

.ad-slot {
	display: grid;
	justify-items: center;
	gap: 7px;
	margin: 0;
}

.ad-label {
	color: var(--parchment-mute);
	font-size: 0.58rem;
	font-weight: 500;
	letter-spacing: 0.26em;
	text-transform: uppercase;
}

.ad-slot__inner {
	display: grid;
	place-items: center;
	width: 100%;
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius-sm);
	background: rgba(241, 234, 216, 0.02);
	color: var(--parchment-mute);
	font-size: 0.66rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	overflow: hidden;
}

.ad-slot__inner > * {
	max-width: 100%;
}

.ad-slot--leaderboard .ad-slot__inner {
	max-width: 970px;
	min-height: 90px;
}

.ad-slot--billboard .ad-slot__inner {
	max-width: 970px;
	min-height: 250px;
}

.ad-slot--rectangle .ad-slot__inner {
	max-width: 336px;
	min-height: 280px;
}

.ad-slot--halfpage .ad-slot__inner {
	max-width: 300px;
	min-height: 600px;
}

.ad-slot--mrec .ad-slot__inner {
	max-width: 300px;
	min-height: 250px;
}

.ad-slot--infeed .ad-slot__inner {
	min-height: 100%;
	border-radius: var(--radius);
}

.ad-slot--infeed {
	grid-template-rows: auto 1fr;
	height: 100%;
}

.ad-slot--inline {
	margin-block: clamp(28px, 4vw, 44px);
}

.ad-block {
	margin-block: clamp(32px, 5vw, 56px);
}

/* --------------------------------------------------------------------------
   3. Section headers
   -------------------------------------------------------------------------- */
.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(24px, 3vw, 36px);
}

.section-head__title {
	margin: 0;
	font-size: var(--step-4);
	letter-spacing: 0.02em;
}

.section-head__sub {
	margin: 10px 0 0;
	max-width: 58ch;
	color: var(--parchment-dim);
	font-size: 0.95rem;
}

.section-head__link {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--gold-300);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
}

.section-head__link svg {
	width: 14px;
	height: 14px;
	transition: transform var(--speed) var(--ease);
}

.section-head__link:hover svg {
	transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   4. Hero cards
   -------------------------------------------------------------------------- */
.hero-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: clamp(14px, 2vw, 22px);
}

.hero-card {
	position: relative;
	display: block;
	overflow: hidden;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	background: var(--ink-800);
	color: var(--parchment);
	transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease),
		box-shadow var(--speed) var(--ease);
}

.hero-card:hover {
	transform: translateY(-4px);
	border-color: var(--line-strong);
	box-shadow: var(--shadow);
	color: var(--parchment);
}

.hero-card__media {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #000;
}

.hero-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	transition: transform 600ms var(--ease);
}

.hero-card:hover .hero-card__media img {
	transform: scale(1.045);
}

.hero-card__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(5, 6, 11, 0.1) 0%, transparent 30%, rgba(5, 6, 11, 0.88) 82%, var(--ink-900) 100%);
}

.hero-card__class {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	background: rgba(142, 15, 38, 0.9);
	color: #ffe9ec;
	font-size: 0.6rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1.5;
	text-transform: uppercase;
}

.hero-card__diff {
	position: absolute;
	top: 13px;
	right: 12px;
	z-index: 2;
	display: flex;
	gap: 3px;
}

.hero-card__body {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	padding: 16px 16px 18px;
}

.hero-card__name {
	margin: 0;
	font-size: 1.22rem;
	letter-spacing: 0.03em;
	line-height: 1.15;
}

.hero-card__epithet {
	margin: 3px 0 0;
	color: var(--gold-300);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hero-card__meta {
	margin: 8px 0 0;
	color: var(--parchment-dim);
	font-size: 0.72rem;
	letter-spacing: 0.03em;
}

.hero-card__tier {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
}

.hero-card__tier .tier-badge {
	width: 26px;
	height: 26px;
	font-size: 0.78rem;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.hero-card__win {
	display: inline-block;
	margin-left: 8px;
	padding-left: 8px;
	border-left: 1px solid var(--line);
	color: var(--jade-400);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.06em;
}

/* Difficulty dots --------------------------------------------------------- */
.diff {
	display: inline-flex;
	gap: 3px;
	align-items: center;
}

.diff i {
	display: block;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(241, 234, 216, 0.22);
}

.diff i.is-on {
	background: var(--gold-400);
}

.diff i.is-on.is-high {
	background: var(--crimson-500);
}

/* --------------------------------------------------------------------------
   5. Homepage — mural
   -------------------------------------------------------------------------- */
.mural {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-bottom: 1px solid var(--line);
	background: var(--ink-900);
}

.mural__slices {
	position: absolute;
	inset: 0;
	display: flex;
	gap: 2px;
	opacity: 0.9;
}

.mural__slice {
	flex: 1 1 0;
	background-color: var(--ink-800);
	background-size: cover;
	background-position: center 18%;
	filter: saturate(0.95);
	transition: flex-grow 700ms var(--ease), filter 400ms var(--ease);
}

.mural:hover .mural__slice {
	flex-grow: 0.94;
}

.mural:hover .mural__slice:nth-child(2) {
	flex-grow: 1.22;
	filter: saturate(1.05);
}

.mural__scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, var(--ink-900) 4%, rgba(5, 6, 11, 0.92) 34%, rgba(5, 6, 11, 0.5) 62%, rgba(5, 6, 11, 0.25) 100%),
		linear-gradient(180deg, rgba(5, 6, 11, 0.55) 0%, transparent 30%, rgba(5, 6, 11, 0.72) 88%, var(--ink-900) 100%);
}

.mural__inner {
	position: relative;
	z-index: 2;
	display: grid;
	align-content: center;
	min-height: clamp(520px, 82vh, 780px);
	padding-block: clamp(64px, 10vh, 120px);
}

.mural__content {
	max-width: 640px;
}

.mural h1 {
	margin: 0 0 20px;
	font-size: var(--step-6);
	letter-spacing: 0.01em;
	text-wrap: balance;
}

.mural h1 em {
	color: var(--gold-400);
	font-style: normal;
}

.mural__lede {
	max-width: 52ch;
	color: var(--parchment-dim);
	font-size: var(--step-1);
	line-height: 1.6;
}

.mural__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.mural__cue {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 42px;
	color: var(--parchment-mute);
	font-size: 0.64rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.mural__cue::before {
	content: '';
	width: 1px;
	height: 34px;
	background: linear-gradient(180deg, var(--gold-500), transparent);
}

/* Stat strip -------------------------------------------------------------- */
.stat-strip {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 1px solid var(--line);
	background: rgba(7, 9, 16, 0.86);
}

.stat-strip__item {
	padding: 22px clamp(14px, 2vw, 26px);
	border-right: 1px solid var(--line-soft);
}

.stat-strip__item:last-child {
	border-right: 0;
}

.stat-strip__num {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	font-weight: 600;
	line-height: 1;
	color: var(--gold-300);
}

.stat-strip__label {
	display: block;
	margin-top: 8px;
	color: var(--parchment-mute);
	font-size: 0.62rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

/* Class tiles ------------------------------------------------------------- */
.class-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
}

.class-tile {
	position: relative;
	display: grid;
	gap: 14px;
	padding: 22px 18px 20px;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	background:
		radial-gradient(140% 100% at 50% 0%, rgba(200, 162, 74, 0.09), transparent 62%),
		var(--ink-800);
	color: var(--parchment);
	transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.class-tile:hover {
	border-color: var(--line-strong);
	transform: translateY(-3px);
	color: var(--parchment);
}

.class-tile__icon {
	width: 34px;
	height: 34px;
	color: var(--gold-400);
}

.class-tile__name {
	font-family: var(--font-display);
	font-size: 1.02rem;
	letter-spacing: 0.05em;
}

.class-tile__count {
	color: var(--parchment-mute);
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Editorial split --------------------------------------------------------- */
.editorial {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
}

.editorial__figure {
	position: relative;
	margin: 0;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	overflow: hidden;
	background: #000;
}

.editorial__figure img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: center 25%;
}

.editorial__figure figcaption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 16px 18px;
	background: linear-gradient(180deg, transparent, rgba(5, 6, 11, 0.92));
	color: var(--parchment-dim);
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.editorial__body h2 {
	margin-bottom: 16px;
}

.editorial__body p {
	color: var(--parchment-dim);
}

.editorial__quote {
	margin: 24px 0;
	padding-left: 18px;
	border-left: 2px solid var(--gold-500);
	font-family: var(--font-display);
	font-size: var(--step-1);
	line-height: 1.5;
	color: var(--parchment);
}

/* Lanes ------------------------------------------------------------------- */
.lane-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
}

.lane-card {
	display: grid;
	align-content: start;
	gap: 8px;
	padding: 22px 18px;
	border-top: 2px solid var(--crimson-700);
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	background: linear-gradient(180deg, rgba(22, 28, 46, 0.7), rgba(9, 12, 20, 0.4));
	color: var(--parchment);
	transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.lane-card:hover {
	border-top-color: var(--gold-500);
	color: var(--parchment);
}

.lane-card__index {
	color: var(--parchment-mute);
	font-family: var(--font-display);
	font-size: 0.72rem;
	letter-spacing: 0.18em;
}

.lane-card__name {
	font-family: var(--font-display);
	font-size: 1.05rem;
	letter-spacing: 0.04em;
}

.lane-card__count {
	color: var(--gold-300);
	font-size: 0.66rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.lane-card__desc {
	color: var(--parchment-dim);
	font-size: 0.82rem;
	line-height: 1.6;
}

/* Homepage data hub + data popup ------------------------------------------ */
.data-hub__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.data-card {
	display: grid;
	align-content: start;
	gap: 8px;
	height: 100%;
	padding: 22px 18px;
	border-top: 2px solid var(--gold-500);
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	background: linear-gradient(180deg, rgba(22, 28, 46, 0.7), rgba(9, 12, 20, 0.4));
	color: var(--parchment);
	text-decoration: none;
	transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.data-card:hover {
	border-top-color: var(--gold-300);
	color: var(--parchment);
}

.data-card__index {
	color: var(--parchment-mute);
	font-family: var(--font-display);
	font-size: 0.72rem;
	letter-spacing: 0.18em;
}

.data-card__name {
	font-family: var(--font-display);
	font-size: 1.05rem;
	letter-spacing: 0.04em;
}

.data-card__blurb {
	color: var(--parchment-dim);
	font-size: 0.82rem;
	line-height: 1.6;
}

.data-card__cta {
	margin-top: auto;
	padding-top: 6px;
	color: var(--gold-300);
	font-family: var(--font-text);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

html.dialog-open {
	overflow: hidden;
}

/* The data panel is a right-hand sheet rather than a centred modal. It stops
   just past the header's "H" crest so the mark stays visible behind the
   dimmed backdrop. The gutter is measured from the shell, not from the
   viewport edge: on a wide screen the shell is centred, and a flat 72px
   would reveal only empty background. */
.hub-dialog {
	--sheet-gutter: max(72px, calc((100vw - var(--shell)) / 2 + 80px));

	position: fixed;
	inset: 0 0 0 auto;
	width: calc(100vw - var(--sheet-gutter));
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-left: 1px solid var(--line-strong);
	border-radius: 0;
	background: var(--ink-800);
	color: var(--parchment);
	box-shadow: -40px 0 80px rgba(0, 0, 0, 0.55);
	transform: translateX(100%);
	transition-property: transform, display, overlay;
	transition-duration: 320ms;
	transition-timing-function: var(--ease);
	transition-behavior: allow-discrete;
	overscroll-behavior: contain;
}

.hub-dialog[open] {
	transform: translateX(0);
}

@starting-style {
	.hub-dialog[open] {
		transform: translateX(100%);
	}
}

.hub-dialog::backdrop {
	background: rgba(5, 6, 11, 0.55);
	backdrop-filter: blur(2px);
}

.hub-dialog__inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}

.hub-dialog__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	border-bottom: 1px solid var(--line-soft);
}

.hub-dialog__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--step-2);
	letter-spacing: 0.03em;
}

.hub-dialog__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 38px;
	height: 38px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--parchment-dim);
	cursor: pointer;
	transition: border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}

.hub-dialog__close:hover {
	border-color: var(--gold-500);
	color: var(--gold-300);
}

.hub-dialog__close svg {
	width: 16px;
	height: 16px;
}

.hub-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 16px 24px;
	border-bottom: 1px solid var(--line-soft);
}

.hub-tab {
	padding: 7px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: rgba(241, 234, 216, 0.03);
	color: var(--parchment-dim);
	font-family: var(--font-text);
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: border-color var(--speed) var(--ease), color var(--speed) var(--ease),
		background var(--speed) var(--ease);
}

.hub-tab:hover {
	border-color: var(--gold-500);
	color: var(--gold-300);
}

.hub-tab:focus-visible {
	outline: 2px solid var(--gold-300);
	outline-offset: 2px;
}

.hub-tab[aria-selected='true'] {
	border-color: var(--gold-500);
	background: var(--gold-500);
	color: #17130a;
	font-weight: 600;
}

.hub-dialog__body {
	flex: 1 1 auto;
	min-height: 0;
	padding: 20px 24px;
	overflow: auto;
}

.hub-panel__empty {
	padding: 32px 0;
	color: var(--parchment-mute);
	text-align: center;
}

/* The sheet scrolls the table itself, so cap it rather than nesting two
   vertical scrollers. */
.hub-dialog__body .rank-scroll {
	max-height: min(64vh, 720px);
	max-height: min(64dvh, 720px);
}

.hub-dialog__ads {
	display: grid;
	justify-items: center;
	padding: 0 24px 12px;
}

.hub-dialog__foot {
	padding: 16px 24px 20px;
	border-top: 1px solid var(--line-soft);
}

.ad-slot--modal-desktop,
.ad-slot--modal-mobile {
	display: none;
}

/* The popup's own units: sized to the creative, not to the grid column. */
.ad-slot--modal-billboard .ad-slot__inner {
	width: 728px;
	max-width: 100%;
	min-height: 90px;
}

.ad-slot--modal-rect .ad-slot__inner {
	width: 300px;
	max-width: 100%;
	min-height: 250px;
}

@media (min-width: 721px) {
	.ad-slot--modal-desktop {
		display: block;
	}
}

@media (max-width: 720px) {
	.ad-slot--modal-mobile {
		display: block;
	}

	.data-hub__cards {
		grid-template-columns: minmax(0, 1fr);
	}

	/* On a phone the sheet is one scroll column. Pinning the table to the
	   remaining flex space left it two rows tall once the ad unit and the
	   footer had taken theirs. */
	.hub-dialog__inner {
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.hub-dialog__body {
		flex: 0 0 auto;
		overflow: visible;
	}
}

@media (max-width: 900px) {
	/* Narrower than the crest's peek: the sheet takes the whole viewport. */
	.hub-dialog {
		--sheet-gutter: 0px;
	}
}

@media (max-width: 560px) {
	.hub-dialog__head,
	.hub-tabs,
	.hub-dialog__body,
	.hub-dialog__foot {
		padding-inline: 18px;
	}

	.hub-dialog__body .rank-scroll {
		max-height: 55vh;
		max-height: 55dvh;
	}
}

/* Guide modules ----------------------------------------------------------- */
button.chip,
.mod__tab {
	font-family: var(--font-text);
}

.mod {
	margin: 34px 0;
	padding: 22px;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(22, 28, 46, 0.45), rgba(9, 12, 20, 0.3));
}

.mod__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
}

.mod__tab {
	cursor: pointer;
}

.mod__tab[aria-selected='true'],
.mod__tab:hover {
	border-color: var(--gold-500);
}

.mod__tab[aria-selected='true'] {
	background: var(--gold-500);
	color: #17130a;
	font-weight: 600;
}

.mod__panel h3 {
	margin: 0 0 10px;
	font-family: var(--font-display);
	font-size: var(--step-2);
	letter-spacing: 0.03em;
}

.mod__panel p {
	margin: 0 0 12px;
	color: var(--parchment-dim);
	line-height: 1.8;
}

.mod__panel > :last-child {
	margin-bottom: 0;
}

.mod__eyebrow {
	margin: 0 0 8px;
	color: var(--gold-300);
	font-family: var(--font-text);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.mod__note {
	margin: 16px 0 0;
	color: var(--parchment-mute);
	font-size: 0.82rem;
	line-height: 1.7;
}

.mod__panel--card {
	padding: 20px;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-sm);
	background: rgba(9, 12, 20, 0.35);
}

/* Lane map */
.lane-map {
	margin: 0;
}

.lane-map__stage {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-sm);
	background: var(--ink-900);
}

.lane-map__svg {
	display: block;
	width: 100%;
	height: auto;
}

.lane-map__hotspots {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lane-map__hot {
	position: absolute;
	left: var(--x);
	top: var(--y);
	transform: translate(-50%, -50%);
	padding: 5px 11px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-pill);
	background: rgba(9, 12, 20, 0.86);
	color: var(--parchment-dim);
	font-family: var(--font-text);
	font-size: 0.66rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}

.lane-map__hot:hover {
	border-color: var(--gold-500);
	color: var(--gold-300);
}

.lane-map__hot:focus-visible {
	outline: 2px solid var(--gold-300);
	outline-offset: 2px;
}

.lane-map__hot[aria-selected='true'] {
	border-color: var(--gold-500);
	background: var(--gold-500);
	color: #17130a;
	font-weight: 600;
}

.lane-map__legend {
	margin: 12px 0 0;
	color: var(--parchment-mute);
	font-size: 0.82rem;
}

.lane-map__caption {
	margin-top: 18px;
}

/* Lane picker */
.lane-pick__where {
	margin: 0 0 6px;
	color: var(--gold-300);
	font-family: var(--font-text);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.lane-pick__job {
	color: var(--parchment) !important;
	font-size: 1.02rem;
}

.lane-pick__archetype {
	margin: 0;
	color: var(--parchment-mute);
	font-family: var(--font-text);
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.lane-pick__heroes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0;
	padding: 0;
	list-style: none;
}

.lane-pick__class {
	color: var(--parchment-mute);
	font-size: 0.72rem;
}

.lane-pick__all {
	color: var(--gold-300);
	font-family: var(--font-text);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
}

.lane-pick__all:hover {
	color: var(--gold-100);
}

/* Checklist */
.checklist {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.checklist__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 13px 15px;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.checklist__item:hover {
	border-color: var(--line-strong);
}

.checklist__box {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	accent-color: var(--gold-500);
}

.checklist__text {
	color: var(--parchment-dim);
	font-size: 0.95rem;
	line-height: 1.7;
}

.checklist__item:has(.checklist__box:checked) {
	border-color: rgba(47, 209, 174, 0.35);
	background: rgba(47, 209, 174, 0.06);
}

.checklist__item:has(.checklist__box:checked) .checklist__text {
	color: var(--parchment-mute);
	text-decoration: line-through;
	text-decoration-color: var(--line-strong);
}

.checklist__progress {
	margin: 18px 0 0;
	color: var(--gold-300);
	font-family: var(--font-text);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Objective timeline ruler */
.mod__tabs--ruler {
	position: relative;
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 22px;
	padding-top: 18px;
}

.mod__tabs--ruler::before {
	content: '';
	position: absolute;
	top: 23px;
	right: 6px;
	left: 6px;
	height: 2px;
	background: var(--line);
}

.mod__tick {
	position: relative;
	display: grid;
	flex: 1 1 0;
	justify-items: center;
	gap: 9px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--parchment-mute);
	font-family: var(--font-text);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
}

.mod__tick-mark {
	width: 12px;
	height: 12px;
	border: 2px solid var(--line-strong);
	border-radius: 50%;
	background: var(--ink-800);
	transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}

.mod__tick:hover .mod__tick-mark {
	border-color: var(--gold-500);
}

.mod__tick:focus-visible {
	outline: 2px solid var(--gold-300);
	outline-offset: 3px;
}

.mod__tick[aria-selected='true'] {
	color: var(--gold-300);
}

.mod__tick[aria-selected='true'] .mod__tick-mark {
	border-color: var(--gold-500);
	background: var(--gold-500);
}

/* Guide section nav (built by site.js) ------------------------------------ */
/* A full-width strip directly under the site header. Only its inner content
   is grid-aligned with the article; the ground bleeds to the viewport edges. */
.section-nav {
	position: sticky;
	top: var(--header-h);
	z-index: 80;
	/* Cancel .page-shell's top padding so the strip begins flush under the
	   header instead of floating below a gap. */
	margin: calc(clamp(40px, 6vw, 80px) * -1) 0 0;
}

.section-nav::before {
	content: '';
	position: absolute;
	inset: 0 -100vw;
	background: rgba(5, 6, 11, 0.9);
	backdrop-filter: blur(16px) saturate(120%);
	-webkit-backdrop-filter: blur(16px) saturate(120%);
	border-bottom: 1px solid var(--line);
	pointer-events: none;
}

.section-nav__progress {
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--gold-500);
	transition: width 90ms linear;
}

.section-nav__inner {
	align-items: start;
}

.section-nav__col {
	position: relative;
	min-width: 0;
	padding-block: 9px 12px;
}

.section-nav__toggle {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 36px;
	padding: 6px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--parchment);
	cursor: pointer;
	text-align: left;
}

.section-nav__toggle:hover .section-nav__label,
.section-nav.is-open .section-nav__label {
	color: var(--gold-300);
}

.section-nav__toggle:focus-visible {
	outline: 2px solid var(--gold-300);
	outline-offset: 3px;
}

.section-nav__lead {
	display: inline-flex;
	flex: none;
	color: var(--gold-500);
}

.section-nav__lead svg {
	display: block;
}

.section-nav__label {
	flex: none;
	color: var(--parchment-mute);
	font-family: var(--font-text);
	font-size: 0.64rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.section-nav__divider {
	flex: none;
	width: 1px;
	height: 16px;
	background: var(--line-strong);
}

.section-nav__current {
	min-width: 0;
	overflow: hidden;
	color: var(--gold-300);
	font-family: var(--font-text);
	font-size: 0.82rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.section-nav__chevron {
	display: inline-flex;
	flex: none;
	margin-left: auto;
	color: var(--gold-300);
	transition: transform var(--speed) var(--ease);
}

.section-nav.is-open .section-nav__chevron {
	transform: rotate(180deg);
}

/* The panel overlays the article — opening it never shifts the reader. */
.section-nav__panel {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 81;
	width: 100%;
	max-height: min(50vh, 420px);
	max-height: min(50dvh, 420px);
	padding: 8px 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	border-top: 1px solid var(--line-soft);
	border-bottom: 1px solid var(--line-strong);
	background: rgba(5, 6, 11, 0.97);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: var(--shadow-lift);
}

.section-nav__panel[hidden] {
	display: none;
}

.section-nav__list {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.section-nav__list li + li {
	margin-top: 0;
}

.section-nav__item {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 6px 8px;
	border-radius: var(--radius-sm);
}

.section-nav__item:hover {
	background: rgba(200, 162, 74, 0.06);
}

.section-nav__index {
	flex: none;
	color: var(--parchment-mute);
	font-family: var(--font-text);
	font-size: 0.62rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.08em;
}

.section-nav__list a {
	min-width: 0;
	padding: 5px 12px;
	border-radius: var(--radius-pill);
	color: var(--parchment-dim);
	font-family: var(--font-text);
	font-size: 0.82rem;
	line-height: 1.4;
	text-decoration: none;
	transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}

.section-nav__list a:hover {
	background: rgba(200, 162, 74, 0.14);
	color: var(--gold-100);
}

.section-nav__list a.is-active {
	background: var(--gold-500);
	color: var(--ink-900);
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. Listing pages (archive / taxonomy)
   -------------------------------------------------------------------------- */
.page-head {
	padding-block: clamp(44px, 6vw, 84px) clamp(24px, 3vw, 36px);
	border-bottom: 1px solid var(--line-soft);
}

.page-head h1 {
	margin: 0 0 12px;
	font-size: var(--step-5);
}

.page-head .lede {
	margin: 0;
}

.page-head__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin-top: 18px;
	color: var(--parchment-mute);
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.list-toolbar {
	position: sticky;
	top: var(--header-h);
	z-index: 40;
	padding-block: 14px;
	margin-bottom: clamp(24px, 3vw, 36px);
	border-bottom: 1px solid var(--line-soft);
	background: rgba(5, 6, 11, 0.94);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.list-toolbar__row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.filters li {
	position: relative;
	margin: 0;
}

.field {
	padding: 9px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--ink-700);
	color: var(--parchment);
	font-family: var(--font-text);
	font-size: 0.8rem;
	line-height: 1.3;
}

.field:focus {
	outline: none;
	border-color: var(--gold-500);
}

.field::placeholder {
	color: var(--parchment-mute);
}

.field-wrap {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 200px;
	max-width: 300px;
}

.field-wrap svg {
	position: absolute;
	left: 11px;
	width: 14px;
	height: 14px;
	color: var(--parchment-mute);
	pointer-events: none;
}

.field-wrap .field {
	width: 100%;
	padding-left: 33px;
}

.sort-form {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.sort-form label {
	color: var(--parchment-mute);
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Filter toggle + offcanvas panel ---------------------------------------- */
.filter-toggle {
	padding: 11px 18px;
	white-space: nowrap;
}

.filter-toggle__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--gold-500);
	color: var(--ink-900);
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0;
}

/* The panel lives outside .list-toolbar on purpose: its backdrop-filter
   would otherwise become the containing block for this fixed drawer. */
.filter-panel {
	position: fixed;
	inset: 0 0 0 auto;
	z-index: 120;
	display: flex;
	flex-direction: column;
	width: min(390px, 92vw);
	border-left: 1px solid var(--line);
	background: linear-gradient(180deg, rgba(14, 19, 34, 0.98), rgba(8, 11, 19, 0.99));
	box-shadow: -28px 0 60px rgba(0, 0, 0, 0.5);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform var(--speed) var(--ease), visibility var(--speed);
	overscroll-behavior: contain;
}

.filter-panel.is-open {
	transform: translateX(0);
	visibility: visible;
}

.filter-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 22px;
	border-bottom: 1px solid var(--line-soft);
}

.filter-panel__head h2 {
	margin: 0;
	color: var(--gold-300);
	font-family: var(--font-text);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.filter-panel__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--parchment);
	cursor: pointer;
	transition: border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}

.filter-panel__close:hover {
	border-color: var(--gold-500);
	color: var(--gold-300);
}

.filter-panel__close svg {
	width: 16px;
	height: 16px;
}

.filter-panel__body {
	display: grid;
	gap: 22px;
	padding: 24px 22px;
	overflow-y: auto;
}

.filter-panel__label {
	margin: 0;
	color: var(--parchment-mute);
	font-size: 0.68rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.filter-group {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

/* Selectable filter chips. The radio sits behind the label, so nothing
   navigates until the reader presses Apply. */
.chip-input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.chip-input + .chip {
	cursor: pointer;
	user-select: none;
}

.chip-input:hover + .chip {
	border-color: var(--gold-500);
	color: var(--gold-300);
}

.chip-input:checked + .chip {
	border-color: var(--gold-500);
	background: var(--gold-500);
	color: #17130a;
	font-weight: 600;
}

.chip-input:checked:hover + .chip {
	color: #17130a;
}

.chip-input:focus-visible + .chip {
	outline: 2px solid var(--gold-300);
	outline-offset: 2px;
}

.filter-panel .filters {
	gap: 8px;
}

.filter-panel .sort-form {
	display: grid;
	grid-template-columns: minmax(64px, auto) minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	margin-left: 0;
}

.filter-panel .sort-form .field {
	width: 100%;
}

.filter-panel__foot {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 22px;
	border-top: 1px solid var(--line-soft);
}

.filter-backdrop {
	position: fixed;
	inset: 0;
	z-index: 110;
	background: rgba(5, 6, 11, 0.62);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

html.filter-open {
	overflow: hidden;
}

/* Without JavaScript the drawer cannot open, so it renders inline under the
   toolbar and filtering still works. */
html:not(.js) .filter-panel {
	position: static;
	width: auto;
	max-width: calc(var(--shell) - (2 * var(--gutter)));
	margin: 0 auto clamp(24px, 3vw, 36px);
	padding: 0;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	transform: none;
	visibility: visible;
	box-shadow: none;
}

html:not(.js) .filter-panel__close,
html:not(.js) .filter-toggle,
html:not(.js) .filter-backdrop {
	display: none;
}

@media (max-width: 720px) {
	.list-toolbar__row {
		row-gap: 10px;
	}

	/* Full-width search on its own row; the page head already states the count. */
	.list-toolbar .field-wrap {
		flex: 1 1 100%;
		max-width: none;
	}

	.list-toolbar .result-count {
		display: none;
	}

	.list-toolbar .filter-toggle {
		margin-left: auto;
	}
}

.result-count {
	color: var(--parchment-mute);
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.empty-state {
	padding: clamp(48px, 8vw, 96px) 0;
	max-width: 54ch;
}

.empty-state h2 {
	font-size: var(--step-3);
}

.empty-state p {
	color: var(--parchment-dim);
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	padding-block: clamp(32px, 5vw, 56px);
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--parchment-dim);
	font-size: 0.8rem;
}

.pagination .page-numbers:hover {
	border-color: var(--gold-500);
	color: var(--gold-300);
}

.pagination .current {
	background: var(--gold-500);
	border-color: var(--gold-500);
	color: #17130a;
	font-weight: 600;
}

.pagination .dots {
	border-color: transparent;
}

/* --------------------------------------------------------------------------
   7. Single hero — storytelling page
   -------------------------------------------------------------------------- */
.hero-splash {
	position: relative;
	isolation: isolate;
	display: grid;
	align-items: end;
	min-height: min(88vh, 820px);
	padding-block: clamp(96px, 16vh, 176px) clamp(40px, 6vh, 64px);
	overflow: hidden;
}

.hero-splash__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-color: var(--ink-800);
	background-size: cover;
	background-position: center 22%;
	transform: scale(1.03);
}

.hero-splash::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(5, 6, 11, 0.78) 0%, rgba(5, 6, 11, 0.18) 34%, rgba(5, 6, 11, 0.86) 82%, var(--ink-900) 100%),
		linear-gradient(90deg, rgba(5, 6, 11, 0.8) 0%, rgba(5, 6, 11, 0.25) 55%, transparent 100%);
}

.hero-splash__inner {
	position: relative;
	z-index: 2;
}

.hero-splash__crumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 22px;
	color: var(--parchment-mute);
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hero-splash__crumb a {
	color: var(--parchment-dim);
}

.hero-splash__crumb span[aria-hidden='true'] {
	opacity: 0.5;
}

.hero-splash__eyebrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	color: var(--gold-300);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.hero-splash__epithet {
	margin: 0 0 6px;
	color: var(--gold-300);
	font-family: var(--font-display);
	font-size: clamp(0.95rem, 1.6vw, 1.25rem);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hero-splash h1 {
	margin: 0 0 18px;
	font-size: clamp(2.8rem, 7.2vw, 5.4rem);
	line-height: 0.98;
}

.hero-splash__tagline {
	max-width: 46ch;
	margin: 0 0 24px;
	padding-left: 16px;
	border-left: 2px solid var(--gold-500);
	color: var(--parchment);
	font-family: var(--font-display);
	font-size: clamp(1.05rem, 1.8vw, 1.4rem);
	line-height: 1.5;
}

.hero-splash__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hero-splash__cue {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 40px;
	color: var(--parchment-mute);
	font-size: 0.62rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.hero-splash__cue::before {
	content: '';
	width: 1px;
	height: 32px;
	background: linear-gradient(180deg, var(--gold-500), transparent);
}

/* Chapter nav ------------------------------------------------------------- */
.chapter-nav {
	position: sticky;
	top: var(--header-h);
	z-index: 45;
	border-bottom: 1px solid var(--line-soft);
	background: rgba(7, 9, 16, 0.94);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.chapter-nav__list {
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.chapter-nav__list::-webkit-scrollbar {
	display: none;
}

.chapter-nav__list li {
	margin: 0;
	flex: 0 0 auto;
}

.chapter-nav a {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 15px 16px 13px;
	border-bottom: 2px solid transparent;
	color: var(--parchment-mute);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.chapter-nav a:hover {
	color: var(--parchment);
}

.chapter-nav a.is-active {
	border-bottom-color: var(--gold-500);
	color: var(--gold-300);
}

.chapter-nav__num {
	font-family: var(--font-display);
	font-size: 0.62rem;
	opacity: 0.65;
}

/* Story layout ------------------------------------------------------------ */
.hero-layout {
	display: grid;
	grid-template-columns: minmax(0, 760px) minmax(240px, 320px);
	gap: clamp(28px, 4.5vw, 68px);
	justify-content: center;
	padding-block: clamp(40px, 6vw, 80px);
}

.hero-story {
	min-width: 0;
}

.chapter {
	padding-bottom: clamp(38px, 5vw, 64px);
	margin-bottom: clamp(38px, 5vw, 64px);
	border-bottom: 1px solid var(--line-soft);
	scroll-margin-top: calc(var(--header-h) + 72px);
}

.chapter:last-child {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: 0;
}

.chapter__head {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin-bottom: clamp(18px, 2.4vw, 28px);
}

.chapter__num {
	flex: 0 0 auto;
	color: var(--gold-500);
	font-family: var(--font-display);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.18em;
}

.chapter__title {
	margin: 0;
	font-size: var(--step-3);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.chapter__lede {
	margin: 0 0 24px;
	color: var(--parchment);
	font-family: var(--font-text);
	font-size: var(--step-1);
	line-height: 1.7;
}

.chapter__lede p {
	margin: 0 0 1em;
	padding-left: 18px;
	border-left: 2px solid var(--line-strong);
}

.chapter__lede p:last-child {
	margin-bottom: 0;
}

.chapter__sub {
	margin: 32px 0 14px;
	color: var(--gold-300);
	font-family: var(--font-text);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.lore-body {
	max-width: 66ch;
	color: var(--parchment-dim);
	font-size: 1.02rem;
	line-height: 1.85;
}

.lore-body p + p {
	margin-top: 1.2em;
}

.lore-body > p:first-of-type::first-letter {
	float: left;
	padding: 8px 12px 0 0;
	color: var(--gold-400);
	font-family: var(--font-display);
	font-size: 3.6em;
	line-height: 0.78;
}

.story-quote {
	margin: 30px 0;
	padding: 22px 0 22px 24px;
	border-left: 1px solid var(--gold-500);
	color: var(--parchment);
	font-family: var(--font-display);
	font-size: var(--step-1);
	font-style: normal;
	line-height: 1.6;
}

.story-quote cite {
	display: block;
	margin-top: 10px;
	color: var(--parchment-mute);
	font-family: var(--font-text);
	font-size: 0.68rem;
	font-style: normal;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Annotations ------------------------------------------------------------- */
.annotations {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 1px;
	margin: 30px 0 0;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--line-soft);
}

.annotation {
	padding: 14px 16px;
	background: var(--ink-800);
}

.annotation dt {
	color: var(--parchment-mute);
	font-size: 0.6rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.annotation dd {
	margin: 4px 0 0;
	color: var(--parchment);
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.4;
}

/* Arsenal ----------------------------------------------------------------- */
.form-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line-soft);
}

.form-tab {
	padding: 7px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--parchment-dim);
	font-family: var(--font-text);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
}

.form-tab[aria-selected='true'] {
	border-color: var(--gold-500);
	background: rgba(200, 162, 74, 0.12);
	color: var(--gold-300);
}

.form-tab:hover {
	color: var(--parchment);
}

/* Without JavaScript every skill form is shown, so the tabs are pointless. */
html:not(.js) .form-tabs {
	display: none;
}

html:not(.js) .form-panel[hidden] {
	display: block;
}

html:not(.js) .form-panel + .form-panel {
	margin-top: 12px;
}

.ability-list {
	display: grid;
	gap: 12px;
}

.ability {
	position: relative;
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 18px;
	padding: 18px;
	border: 1px solid var(--line-soft);
	border-left: 2px solid var(--crimson-700);
	border-radius: var(--radius-sm);
	background: linear-gradient(180deg, rgba(22, 28, 46, 0.55), rgba(9, 12, 20, 0.45));
	transition: border-color var(--speed) var(--ease);
}

.ability:hover {
	border-color: var(--line);
	border-left-color: var(--crimson-500);
}

.ability--ultimate {
	border-left-color: var(--gold-500);
}

.ability--ultimate:hover {
	border-left-color: var(--gold-400);
}

.ability__icon {
	width: 56px;
	height: 56px;
	border: 1px solid var(--line);
	border-radius: 12px;
	object-fit: cover;
	background: #000;
}

.ability__icon--empty {
	display: grid;
	place-items: center;
	color: var(--parchment-mute);
	font-family: var(--font-display);
	font-size: 1.1rem;
}

.ability__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 6px;
}

.ability__name {
	font-family: var(--font-display);
	font-size: 1.02rem;
	letter-spacing: 0.03em;
}

.ability__type {
	padding: 3px 8px;
	border-radius: 4px;
	background: var(--crimson-700);
	color: #ffe9ec;
	font-family: var(--font-text);
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1.6;
	text-transform: uppercase;
}

.ability--ultimate .ability__type {
	background: var(--gold-500);
	color: #17130a;
}

.ability__tags {
	margin: 0 0 6px;
	color: var(--gold-300);
	font-size: 0.72rem;
	letter-spacing: 0.04em;
}

.ability__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 0 0 8px;
}

.ability__stat {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	color: var(--parchment-mute);
	font-family: var(--font-text);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ability__stat b {
	color: var(--jade-400);
	font-size: 0.86rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0;
	text-transform: none;
}

.ability__desc {
	margin: 0;
	color: var(--parchment-dim);
	font-size: 0.93rem;
	line-height: 1.75;
}

/* Battle ------------------------------------------------------------------ */
.stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 18px 22px;
	margin: 0 0 30px;
}

.stat {
	display: grid;
	gap: 6px;
}

.stat__value {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}

.stat__value b {
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 600;
	color: var(--parchment);
}

.stat__value span {
	color: var(--parchment-mute);
	font-size: 0.6rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.meter {
	height: 6px;
	border-radius: 3px;
	background: rgba(241, 234, 216, 0.1);
	overflow: hidden;
}

.meter i {
	display: block;
	height: 100%;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--crimson-600), var(--gold-400));
}

.meter--jade i {
	background: linear-gradient(90deg, var(--jade-600), var(--jade-400));
}

.battle-plan {
	margin-top: 28px;
	padding: 22px 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background:
		radial-gradient(120% 140% at 0% 0%, rgba(200, 162, 74, 0.09), transparent 55%),
		rgba(14, 19, 34, 0.8);
}

.battle-plan h3 {
	margin: 0 0 14px;
	font-family: var(--font-text);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold-300);
}

.combo {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
}

.combo__step {
	padding: 6px 11px;
	border: 1px solid var(--line-strong);
	border-radius: 6px;
	background: var(--ink-600);
	color: var(--parchment);
	font-family: var(--font-display);
	font-size: 0.82rem;
	letter-spacing: 0.06em;
}

.combo__arrow {
	color: var(--parchment-mute);
	font-size: 0.8rem;
}

.battle-plan p {
	margin: 0;
	color: var(--parchment-dim);
	font-size: 0.95rem;
	line-height: 1.75;
}

/* Combat playbook (combos / loadout / pro tips) --------------------------- */
.combo-list,
.loadout,
.pro-tips {
	margin-top: 28px;
	padding: 22px 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background:
		radial-gradient(120% 140% at 0% 0%, rgba(200, 162, 74, 0.09), transparent 55%),
		rgba(14, 19, 34, 0.8);
}

.combo-list h3,
.loadout h3,
.pro-tips h3 {
	margin: 0 0 14px;
	font-family: var(--font-text);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold-300);
}

.combo-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	padding: 10px 0;
	border-top: 1px solid var(--line);
}

.combo-row:first-of-type {
	border-top: 0;
	padding-top: 0;
}

.combo-row .combo {
	margin: 0;
}

.combo--tight .combo__step {
	padding: 4px 9px;
	font-size: 0.78rem;
}

.combo-row__label {
	min-width: 84px;
	font-family: var(--font-text);
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold-300);
}

.combo-row__notes {
	color: var(--parchment-dim);
	font-size: 0.88rem;
	line-height: 1.55;
}

.loadout__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 24px;
	margin: 0;
}

.loadout__item--wide {
	grid-column: 1 / -1;
}

.loadout__grid dt {
	margin-bottom: 6px;
	font-family: var(--font-text);
	font-size: 0.64rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--parchment-mute);
}

.loadout__grid dd {
	margin: 0;
	color: var(--parchment);
	font-size: 0.95rem;
	line-height: 1.6;
}

.chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.chip--item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--ink-600);
	padding: 5px 12px;
	color: var(--parchment);
	font-family: var(--font-text);
	font-size: 0.8rem;
	letter-spacing: 0.02em;
}

.chip--item:has(.chip__icon) {
	padding-left: 6px;
}

.chip__icon {
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background: var(--ink-800);
	box-shadow: inset 0 0 0 1px var(--line);
}

.pro-tips ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pro-tips li {
	position: relative;
	padding: 8px 0 8px 22px;
	border-top: 1px solid var(--line);
	color: var(--parchment-dim);
	font-size: 0.95rem;
	line-height: 1.7;
}

.pro-tips li:first-child {
	border-top: 0;
	padding-top: 0;
}

.pro-tips li::before {
	content: "◆";
	position: absolute;
	left: 0;
	top: 8px;
	color: var(--gold-400);
	font-size: 0.7rem;
}

.pro-tips li:first-child::before {
	top: 2px;
}

/* Bonds ------------------------------------------------------------------- */
.bond-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.bond {
	padding: 18px;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-sm);
	background: rgba(14, 19, 34, 0.7);
}

.bond h3 {
	margin: 0 0 12px;
	font-family: var(--font-text);
	font-size: 0.64rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold-300);
}

.bond ul {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bond li {
	margin: 0;
}

.hero-link {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--parchment);
}

.hero-link:hover {
	color: var(--gold-300);
}

.hero-link img {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
	object-position: top center;
	border: 1px solid var(--line);
	background: #000;
	flex: 0 0 auto;
}

.hero-link__name {
	display: block;
	font-size: 0.86rem;
	font-weight: 500;
	line-height: 1.3;
}

.hero-link__class {
	display: block;
	color: var(--parchment-mute);
	font-size: 0.6rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.bond__plain {
	color: var(--parchment-dim);
	font-size: 0.86rem;
	line-height: 1.5;
}

/* Skins ------------------------------------------------------------------- */
.skin-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 12px;
}

.skin {
	position: relative;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--ink-800);
	transition: border-color var(--speed) var(--ease);
}

.skin:hover {
	border-color: var(--line-strong);
}

.skin img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.skin__body {
	padding: 12px 14px 14px;
}

.skin__name {
	display: block;
	font-family: var(--font-display);
	font-size: 0.95rem;
}

.skin__quality {
	display: inline-block;
	margin-top: 4px;
	color: var(--gold-300);
	font-size: 0.6rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.skin__desc {
	margin: 8px 0 0;
	color: var(--parchment-mute);
	font-size: 0.78rem;
	line-height: 1.55;
}

/* Sources ----------------------------------------------------------------- */
.source-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.source-row .tiny {
	margin-left: auto;
}

/* Rail -------------------------------------------------------------------- */
.hero-rail {
	min-width: 0;
}

.hero-rail__sticky {
	position: sticky;
	top: calc(var(--header-h) + 68px);
	display: grid;
	gap: 16px;
}

/* Short viewports: a sticky rail taller than the screen traps content. */
@media (max-height: 760px) {
	.hero-rail__sticky {
		position: static;
	}
}

.rail-card {
	padding: 18px;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	background: rgba(14, 19, 34, 0.72);
}

.rail-card h2 {
	margin: 0 0 14px;
	font-family: var(--font-text);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold-300);
}

.facts {
	display: grid;
	margin: 0;
}

.facts__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding-block: 8px;
	border-bottom: 1px dotted var(--line-soft);
}

.facts__row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.facts dt {
	flex: 0 0 auto;
	color: var(--parchment-mute);
	font-size: 0.66rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.facts dd {
	margin: 0;
	color: var(--parchment);
	font-size: 0.82rem;
	font-weight: 500;
	text-align: right;
	line-height: 1.4;
}

.price-chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}

.price-chip__icon {
	width: 15px;
	height: 15px;
	color: var(--gold-500);
}

.price-sep {
	color: var(--parchment-mute);
}

.toc {
	margin: 0;
	padding: 0;
	list-style: none;
}

.toc li {
	margin: 0 0 2px;
}

.toc a {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 6px 0;
	color: var(--parchment-dim);
	font-size: 0.82rem;
}

.toc a:hover {
	color: var(--parchment);
}

.toc a.is-active {
	color: var(--gold-300);
}

.toc a::before {
	content: '';
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--line-strong);
	flex: 0 0 auto;
	transform: translateY(-2px);
}

.toc a.is-active::before {
	background: var(--gold-500);
}

.rail-next {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 12px;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-sm);
	background: rgba(22, 28, 46, 0.45);
	color: var(--parchment);
}

.rail-next:hover {
	border-color: var(--line-strong);
	color: var(--parchment);
}

.rail-next img {
	width: 54px;
	height: 66px;
	border-radius: 6px;
	object-fit: cover;
	object-position: top center;
}

.rail-next__label {
	display: block;
	color: var(--parchment-mute);
	font-size: 0.58rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.rail-next__name {
	display: block;
	font-family: var(--font-display);
	font-size: 0.95rem;
	line-height: 1.2;
}

/* Related ----------------------------------------------------------------- */
.related {
	padding-block: clamp(40px, 6vw, 72px);
	border-top: 1px solid var(--line-soft);
	background: rgba(7, 9, 16, 0.55);
}

/* Mobile quick facts ------------------------------------------------------ */
.quick-facts {
	display: none;
	margin-bottom: 28px;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	background: rgba(14, 19, 34, 0.72);
}

.quick-facts > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	cursor: pointer;
	color: var(--gold-300);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	list-style: none;
	text-transform: uppercase;
}

.quick-facts > summary::-webkit-details-marker {
	display: none;
}

.quick-facts > summary::after {
	content: '+';
	font-family: var(--font-text);
	font-size: 1rem;
	line-height: 1;
	color: var(--parchment-dim);
}

.quick-facts[open] > summary::after {
	content: '–';
}

.quick-facts__body {
	padding: 0 18px 16px;
}

/* --------------------------------------------------------------------------
   8. Search results, pages, 404
   -------------------------------------------------------------------------- */
.search-hero {
	padding-block: clamp(44px, 6vw, 76px) clamp(20px, 3vw, 32px);
	border-bottom: 1px solid var(--line-soft);
}

.search-hero h1 {
	margin: 0 0 20px;
	font-size: var(--step-5);
}

.search-hero .search-form {
	max-width: 620px;
}

.search-hero .search-form__input {
	padding-block: 13px;
	font-size: 0.95rem;
}

.search-group {
	padding-block: clamp(32px, 4vw, 52px) 0;
}

.search-group__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.search-group__head h2 {
	margin: 0;
	font-size: var(--step-3);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.search-group__head span {
	color: var(--parchment-mute);
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.result-list {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line-soft);
}

.result-list li {
	margin: 0;
}

.result-list a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
	padding: 20px 4px;
	border-bottom: 1px solid var(--line-soft);
	color: var(--parchment);
	transition: background var(--speed) var(--ease);
}

.result-list a:hover {
	background: rgba(241, 234, 216, 0.025);
	color: var(--parchment);
}

.result-list h3 {
	margin: 0 0 4px;
	font-size: 1.1rem;
}

.result-list p {
	margin: 0;
	color: var(--parchment-dim);
	font-size: 0.86rem;
	line-height: 1.6;
}

.result-list svg {
	width: 16px;
	height: 16px;
	color: var(--gold-500);
}

/* Page / 404 -------------------------------------------------------------- */
.page-shell {
	padding-block: clamp(40px, 6vw, 80px);
}

.page-shell__inner {
	max-width: 760px;
	margin-top: 1.5rem;
}

.page-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	justify-content: center;
}

.page-layout--rail {
	grid-template-columns: minmax(0, 760px) minmax(240px, 320px);
	gap: clamp(28px, 4.5vw, 68px);
}

/* Blog index: the article column is cards, not prose, so it takes the space
   the reading measure would otherwise hold back. */
.page-layout--blog {
	grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
	gap: clamp(24px, 2.5vw, 44px);
}

.page-layout--blog .page-shell__inner {
	max-width: none;
}

.page-sidebar {
	min-width: 0;
}

.page-sidebar__sticky {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	display: grid;
	gap: 24px;
	justify-items: center;
}

.page-shell h1 {
	margin-bottom: 24px;
	font-size: var(--step-5);
}

.entry-content {
	color: var(--parchment-dim);
	font-size: 1.02rem;
	line-height: 1.8;
}

.entry-content > * + * {
	margin-top: 1.2em;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 1.8em;
	color: var(--parchment);
}

/* Anchored headings must clear the sticky section strip and the header. */
.entry-content h2,
.entry-content h3 {
	scroll-margin-top: calc(var(--header-h, 76px) + var(--section-nav-h, 56px) + 16px);
}

.entry-content a {
	color: var(--gold-300);
	text-decoration: underline;
	text-decoration-color: var(--line-strong);
	text-underline-offset: 3px;
}

.entry-content a:hover {
	text-decoration-color: var(--gold-500);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.3em;
}

.entry-content li + li {
	margin-top: 0.4em;
}

.entry-content img {
	border-radius: var(--radius-sm);
}

/* Guide pages -------------------------------------------------------------- */
.entry-content .lede {
	color: var(--parchment);
	font-size: 1.12rem;
	line-height: 1.75;
}

.entry-content .footnote {
	color: var(--parchment-mute);
	font-size: 0.86rem;
	line-height: 1.7;
	border-top: 1px solid var(--line-soft);
	padding-top: 14px;
}

.entry-content table {
	display: block;
	width: 100%;
	border-collapse: collapse;
	overflow-x: auto;
	font-size: 0.94rem;
}

.entry-content th,
.entry-content td {
	padding: 11px 14px;
	border: 1px solid var(--line);
	text-align: start;
	vertical-align: top;
	line-height: 1.6;
}

.entry-content thead th {
	background: rgba(14, 19, 34, 0.9);
	color: var(--gold-300);
	font-family: var(--font-text);
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	white-space: nowrap;
}

.entry-content tbody tr:nth-child(odd) {
	background: rgba(20, 26, 44, 0.5);
}

.entry-content tbody td {
	color: var(--parchment-dim);
}

.entry-content tbody td strong {
	color: var(--parchment);
}

/* Hub grid (Guides landing) ------------------------------------------------ */
.hub-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

/* wpautop inserts <br> between the anchors; without this they become grid items. */
.hub-grid br {
	display: none;
}

.hub-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 26px 26px 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background:
		radial-gradient(120% 140% at 0% 0%, rgba(200, 162, 74, 0.08), transparent 55%),
		rgba(14, 19, 34, 0.8);
	color: var(--parchment-dim);
	text-decoration: none;
	transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease), background var(--speed) var(--ease);
}

.entry-content a.hub-card,
.entry-content a.hub-card:hover {
	color: var(--parchment-dim);
	text-decoration: none;
}

.hub-card:hover {
	border-color: var(--line-strong);
	transform: translateY(-3px);
	background:
		radial-gradient(120% 140% at 0% 0%, rgba(200, 162, 74, 0.14), transparent 55%),
		rgba(17, 23, 41, 0.9);
}

.hub-card__num {
	display: block;
	color: var(--gold-500);
	font-family: var(--font-display);
	font-size: 0.86rem;
	letter-spacing: 0.16em;
	opacity: 0.85;
}

.hub-card__title {
	display: block;
	color: var(--parchment);
	font-family: var(--font-display);
	font-size: 1.3rem;
	letter-spacing: 0.02em;
}

.hub-card__text {
	display: block;
	font-size: 0.94rem;
	line-height: 1.7;
}

.hub-card__cta {
	display: block;
	margin-top: auto;
	padding-top: 8px;
	color: var(--gold-300);
	font-family: var(--font-text);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Tier list ---------------------------------------------------------------- */
.tier-table {
	overflow-x: auto;
}

.tier-table table {
	display: table;
	min-width: 480px;
}

.tier-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 6px;
	font-family: var(--font-display);
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--ink-900);
}

.tier-badge--s { background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); }
.tier-badge--a { background: linear-gradient(135deg, var(--jade-400), var(--jade-600)); color: #04120c; }
.tier-badge--b { background: linear-gradient(135deg, var(--parchment-mute), var(--parchment-dim)); }
.tier-badge--c { background: linear-gradient(135deg, var(--crimson-500), var(--crimson-700)); color: var(--parchment); }

.tier-table tbody td {
	color: var(--parchment-dim);
	line-height: 2;
}

/* Ranked ladder table (page template: Rankings & Tiers) -------------------- */
.rank-controls {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 22px;
}

.rank-controls .sort-form {
	margin-left: auto;
	flex-wrap: wrap;
}

html.js .rank-controls__submit {
	display: none;
}

.rank-search {
	min-width: 170px;
}

.rank-count {
	flex: 1 0 100%;
	margin: 0;
	color: var(--parchment-mute);
	font-family: var(--font-text);
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.rank-scroll {
	/* The roster is long: scroll the table itself so the controls and the rest
	   of the page stay put. Sticky headers keep the columns readable. */
	overflow: auto;
	max-height: min(70vh, 720px);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-sm);
}

.rank-empty td {
	padding-block: 28px;
	text-align: center;
}

.rank-table__grid th[data-rank-key] {
	cursor: pointer;
	user-select: none;
}

.rank-table__grid th[data-rank-key]:hover {
	color: var(--gold-100);
}

.rank-table__grid th[data-rank-key]:focus-visible {
	outline: 2px solid var(--gold-300);
	outline-offset: -2px;
}

.rank-table__grid th[data-rank-key]::after {
	content: '↑↓';
	margin-inline-start: 6px;
	opacity: 0.22;
	font-size: 0.85em;
}

.rank-table__grid th[aria-sort='ascending']::after {
	content: '↑';
	opacity: 1;
}

.rank-table__grid th[aria-sort='descending']::after {
	content: '↓';
	opacity: 1;
}

.rank-table__grid {
	display: table;
	width: 100%;
	min-width: 720px;
	border-collapse: collapse;
	font-size: 0.92rem;
}

.rank-table__grid th,
.rank-table__grid td {
	padding: 12px 16px;
	text-align: start;
	vertical-align: middle;
}

.rank-table__grid thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: var(--ink-700);
	color: var(--gold-300);
	font-family: var(--font-text);
	font-size: 0.64rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	white-space: nowrap;
}

.rank-table__grid tbody tr {
	border-top: 1px solid var(--line-soft);
	transition: background var(--speed) var(--ease);
}

.rank-table__grid tbody tr:hover {
	background: rgba(20, 26, 44, 0.55);
}

.rank-table__pos {
	width: 46px;
	color: var(--parchment-mute);
	font-variant-numeric: tabular-nums;
}

.rank-table__num {
	text-align: end;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.rank-table__num b {
	color: var(--parchment);
}

.rank-table__hero {
	color: var(--parchment);
	font-family: var(--font-display);
	font-size: 1.02rem;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.rank-table__hero:hover {
	color: var(--gold-300);
}

.rank-table__dim {
	color: var(--parchment-mute);
	font-size: 0.82rem;
}

.rank-table__date {
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.rank-table__ban {
	color: var(--crimson-400, var(--crimson-500));
}

/* Hero page ranked performance strip --------------------------------------- */
.rank-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0;
	margin: 0 0 12px;
	padding: 4px 0 18px;
	border-bottom: 1px solid var(--line-soft);
}

.rank-strip__cell {
	display: flex;
	flex: 1 1 120px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 16px;
	text-align: center;
}

.rank-strip__cell + .rank-strip__cell {
	border-left: 1px solid var(--line-soft);
}

.rank-strip__value {
	display: inline-flex;
	align-items: baseline;
	gap: 1px;
	color: var(--parchment);
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 3vw, 1.95rem);
	font-weight: 600;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.rank-strip__value i {
	color: var(--gold-300);
	font-size: 0.95rem;
	font-style: normal;
}

.rank-strip__label {
	color: var(--parchment-mute);
	font-family: var(--font-text);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.rank-strip__note {
	margin: 0 0 30px;
	color: var(--parchment-mute);
	font-size: 0.82rem;
}

/* Play-by-play (official guide walkthrough) -------------------------------- */
.guide-breakdown {
	margin-top: 34px;
	padding: 26px 28px 28px;
	border: 1px solid var(--line-soft);
	border-left: 2px solid var(--gold-500);
	border-radius: var(--radius-sm);
	background: linear-gradient(180deg, rgba(22, 28, 46, 0.5), rgba(9, 12, 20, 0.35));
}

.guide-breakdown h3 {
	margin: 0 0 4px;
	color: var(--gold-300);
	font-family: var(--font-text);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.guide-breakdown__note {
	margin: 0 0 22px;
	color: var(--parchment-mute);
	font-size: 0.86rem;
}

.guide-steps {
	margin: 0;
	padding: 0;
	list-style: none;
}

.guide-steps__item {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 16px;
	padding: 16px 0;
	border-top: 1px solid var(--line-soft);
}

.guide-steps__item:first-child {
	border-top: 0;
	padding-top: 0;
}

.guide-steps__num {
	color: var(--gold-500);
	font-family: var(--font-display);
	font-size: 0.92rem;
	letter-spacing: 0.08em;
	opacity: 0.85;
}

.guide-steps__body h4 {
	margin: 0 0 6px;
	color: var(--parchment);
	font-family: var(--font-display);
	font-size: 1.06rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.guide-steps__body p {
	margin: 0;
	color: var(--parchment-dim);
	font-size: 0.95rem;
	line-height: 1.75;
}

.guide-breakdown .btn {
	margin-top: 22px;
}

/* Balance history --------------------------------------------------------- */
.balance-timeline {
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}

.balance-change {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 20px;
	padding: 18px 0;
	border-top: 1px solid var(--line-soft);
}

.balance-change:first-child {
	border-top: 0;
}

.balance-change__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: var(--parchment-mute);
	font-family: var(--font-text);
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
}

.balance-change__season {
	color: var(--gold-300);
	font-weight: 600;
}

.balance-change__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.balance-change__tag {
	align-self: flex-start;
	padding: 3px 10px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	color: var(--parchment-dim);
	font-family: var(--font-text);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	white-space: nowrap;
	text-transform: uppercase;
}

.balance-change__tag--stat-buffs,
.balance-change__tag--mechanics-upgrade {
	border-color: rgba(109, 174, 88, 0.45);
	color: var(--jade-400);
}

.balance-change__tag--stat-nerfs {
	border-color: rgba(142, 15, 38, 0.5);
	color: var(--crimson-500);
}

.balance-change__tag--qol-changes {
	border-color: rgba(57, 106, 227, 0.45);
	color: #6f9bf0;
}

.balance-change__body p {
	margin: 0;
	color: var(--parchment-dim);
	font-size: 0.95rem;
	line-height: 1.7;
}

/* Footnote used outside .entry-content (hero chapters). */
.footnote {
	color: var(--parchment-mute);
	font-size: 0.86rem;
	line-height: 1.7;
	border-top: 1px solid var(--line-soft);
	padding-top: 14px;
}

/* Blog (home.php / single.php) -------------------------------------------- */
.post-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.post-card__link {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
	padding: 18px;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-sm);
	background: linear-gradient(180deg, rgba(22, 28, 46, 0.5), rgba(9, 12, 20, 0.35));
	color: inherit;
	text-decoration: none;
	transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.post-card__link:hover {
	border-color: var(--line-strong);
	transform: translateY(-2px);
}

.post-card__media {
	display: block;
	overflow: hidden;
	border-radius: var(--radius-sm);
	aspect-ratio: 16 / 9;
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.post-card__meta {
	color: var(--parchment-mute);
	font-family: var(--font-text);
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.post-card__title {
	margin: 0;
	color: var(--parchment);
	font-family: var(--font-display);
	font-size: 1.45rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.25;
}

.post-card__excerpt {
	color: var(--parchment-dim);
	font-size: 0.95rem;
	line-height: 1.75;
}

.post-card__cta {
	margin-top: auto;
	padding-top: 6px;
	color: var(--gold-300);
	font-family: var(--font-text);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.post-foot {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--line-soft);
}

.post-foot__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.post-foot__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
}

/* Comments --------------------------------------------------------------- */
.comments {
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid var(--line-soft);
}

.comments__title {
	margin: 0 0 22px;
	font-family: var(--font-text);
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold-300);
}

.comments__title--reply {
	margin: 32px 0 20px;
}

.comment-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .comment-list {
	margin: 18px 0 0 22px;
	padding-left: 22px;
	border-left: 1px solid var(--line-soft);
}

.comment-list > li + li {
	margin-top: 18px;
}

.comment-body {
	padding: 18px;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-sm);
	background: linear-gradient(180deg, rgba(22, 28, 46, 0.4), rgba(9, 12, 20, 0.3));
}

.comment-body .avatar {
	float: inline-start;
	margin: 0 14px 6px 0;
	border-radius: var(--radius-pill);
}

.comment-author {
	font-family: var(--font-display);
	font-size: 1.02rem;
	letter-spacing: 0.02em;
	color: var(--parchment);
}

.comment-author .says {
	display: none;
}

.comment-author .url {
	color: var(--gold-300);
	font-family: var(--font-text);
	font-size: 0.82rem;
}

.comment-metadata {
	margin: 4px 0 12px;
	color: var(--parchment-mute);
	font-family: var(--font-text);
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.comment-metadata a {
	color: var(--parchment-mute);
}

.comment-metadata a:hover {
	color: var(--gold-300);
}

.comment-content p {
	margin: 0;
	color: var(--parchment-dim);
	font-size: 0.96rem;
	line-height: 1.8;
}

.comment-content > * + * {
	margin-top: 0.9em;
}

.comment-reply-link {
	margin-top: 12px;
	color: var(--gold-300);
	font-family: var(--font-text);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.comment-reply-link:hover {
	color: var(--gold-100);
}

.comment-awaiting-moderation {
	padding: 10px 14px;
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius-sm);
	color: var(--parchment-mute);
	font-size: 0.86rem;
}

.comment-respond {
	margin-top: 36px;
}

.comment-form__row {
	display: grid;
	gap: 8px;
	margin: 0 0 16px;
}

.comment-form__row label {
	color: var(--parchment-mute);
	font-family: var(--font-text);
	font-size: 0.64rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.comments__required {
	color: var(--crimson-500);
}

.field--area {
	height: auto;
	min-height: 140px;
	resize: vertical;
	line-height: 1.7;
}

.comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: start;
	gap: 10px;
	margin: 0 0 18px;
	color: var(--parchment-mute);
	font-size: 0.86rem;
	line-height: 1.7;
}

.comment-form .comment-form-cookies-consent input {
	margin-top: 3px;
	accent-color: var(--gold-500);
}

.comments__note,
.logged-in-as,
.must-log-in {
	color: var(--parchment-mute);
	font-size: 0.86rem;
	line-height: 1.7;
}

.logged-in-as a,
.must-log-in a {
	color: var(--gold-300);
}

.comments-nav {
	margin: 24px 0 0;
}

.comments-nav .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.comments-nav .page-numbers {
	padding: 8px 14px;
	border: 1px solid var(--line-soft);
	border-radius: var(--radius-pill);
	color: var(--parchment-dim);
	font-family: var(--font-text);
	font-size: 0.78rem;
}

.comments-nav .page-numbers.current,
.comments-nav .page-numbers:hover {
	border-color: var(--line-strong);
	color: var(--gold-300);
}

#cancel-comment-reply-link {
	margin-left: 14px;
	color: var(--parchment-mute);
	font-family: var(--font-text);
	font-size: 0.78rem;
	text-decoration: underline;
}

@media (max-width: 520px) {
	.comment-list .comment-list {
		margin-left: 0;
		padding-left: 14px;
	}
}

.error-404 {
	padding-block: clamp(56px, 9vw, 120px);
}

.error-404__code {
	margin: 0;
	color: var(--gold-500);
	font-family: var(--font-display);
	font-size: clamp(4rem, 14vw, 9rem);
	line-height: 0.9;
	opacity: 0.9;
}

.error-404 h1 {
	margin: 10px 0 14px;
	font-size: var(--step-4);
}

.error-404 p {
	max-width: 54ch;
	color: var(--parchment-dim);
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.site-footer {
	padding-block: clamp(44px, 6vw, 72px) 28px;
	border-top: 1px solid var(--line);
	background: var(--ink-850);
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
	gap: clamp(24px, 4vw, 48px);
}

.footer-brand p {
	max-width: 36ch;
	margin: 16px 0 0;
	color: var(--parchment-mute);
	font-size: 0.84rem;
	line-height: 1.7;
}

.footer-col h2 {
	margin: 0 0 14px;
	font-family: var(--font-text);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold-300);
}

.footer-col ul {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-col li {
	margin: 0;
}

.footer-col a {
	color: var(--parchment-dim);
	font-size: 0.84rem;
}

.footer-col a:hover {
	color: var(--gold-300);
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	margin-top: clamp(32px, 4vw, 48px);
	padding-top: 22px;
	border-top: 1px solid var(--line-soft);
	color: var(--parchment-mute);
	font-size: 0.74rem;
	line-height: 1.6;
}

.footer-bottom p {
	margin: 0;
	max-width: 70ch;
}

.footer-bottom a {
	color: var(--parchment-dim);
	text-decoration: none;
	transition: color var(--speed) var(--ease);
}

.footer-bottom a:hover {
	color: var(--gold-300);
}

/* --------------------------------------------------------------------------
   10. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
	.hero-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero-rail {
		display: none;
	}

	.page-layout--rail {
		grid-template-columns: minmax(0, 1fr);
	}

	.page-sidebar {
		display: none;
	}

	.quick-facts {
		display: block;
	}

	.stat-strip {
		grid-template-columns: repeat(2, 1fr);
	}

	.stat-strip__item:nth-child(2) {
		border-right: 0;
	}

	.stat-strip__item:nth-child(-n + 2) {
		border-bottom: 1px solid var(--line-soft);
	}

	.lane-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1024px) {
	.nav-toggle {
		display: inline-flex;
		flex: 0 0 auto;
		order: 3;
	}

	.site-nav {
		display: none;
		order: 4;
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		padding: 10px var(--gutter) 24px;
		border-bottom: 1px solid var(--line);
		background: var(--ink-900);
		box-shadow: var(--shadow);
	}

	.site-header.is-open .site-nav {
		display: block;
	}

	.site-nav ul {
		display: grid;
		gap: 0;
	}

	.site-nav a {
		display: block;
		padding: 14px 0;
		border-bottom: 1px solid var(--line-soft);
		font-size: 0.8rem;
	}

	.site-nav a::after {
		display: none;
	}

	.site-nav li.menu-item-has-children > a::before {
		display: none;
	}

	.site-nav .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 4px 14px;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
	}

	.site-nav .sub-menu a {
		padding: 11px 0;
		border-bottom: 1px solid var(--line-soft);
		font-size: 0.74rem;
		letter-spacing: 0.1em;
		color: var(--parchment-mute);
	}

	.site-nav .sub-menu li + li {
		border-top: 0;
	}

	.search-slot {
		flex: 1 1 auto;
		order: 2;
		margin-left: auto;
		max-width: 340px;
	}

	.brand {
		order: 1;
	}

	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bond-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 860px) {
	.editorial {
		grid-template-columns: minmax(0, 1fr);
	}

	.hub-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.lane-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mural__inner {
		min-height: 64vh;
	}

	.mural__slices {
		opacity: 0.55;
	}

	.mural__scrim {
		background:
			linear-gradient(180deg, rgba(5, 6, 11, 0.72) 0%, rgba(5, 6, 11, 0.55) 45%, var(--ink-900) 100%),
			linear-gradient(90deg, rgba(5, 6, 11, 0.8), rgba(5, 6, 11, 0.2));
	}

	.list-toolbar {
		position: static;
	}

	.sort-form {
		margin-left: 0;
		width: 100%;
	}

	.result-list a {
		grid-template-columns: minmax(0, 1fr);
	}

	.result-list svg {
		display: none;
	}
}

@media (max-width: 720px) {
	.hero-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 12px;
	}

	.hero-card__name {
		font-size: 1.05rem;
	}

	.hero-card__epithet {
		font-size: 0.6rem;
	}

	.hero-card__meta {
		display: none;
	}

	.hero-card__body {
		padding: 12px 12px 14px;
	}

	.section-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.stat-strip {
		grid-template-columns: repeat(2, 1fr);
	}

	.class-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.class-tile {
		padding: 18px 14px;
	}

	.lane-grid {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 8px;
		margin-inline: calc(var(--gutter) * -1);
		padding-inline: var(--gutter);
	}

	.lane-card {
		flex: 0 0 68%;
		scroll-snap-align: start;
	}

	.hero-splash {
		min-height: 0;
		padding-block: 88px 40px;
	}

	.hero-splash::before {
		background: linear-gradient(180deg, rgba(5, 6, 11, 0.55) 0%, rgba(5, 6, 11, 0.7) 40%, var(--ink-900) 96%);
	}

	.hero-splash__cue {
		display: none;
	}

	.chapter-nav {
		top: var(--header-h);
	}

	.chapter-nav a {
		padding-inline: 12px;
	}

	.bond-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ad-slot--billboard,
	.ad-slot--halfpage {
		display: none;
	}

	.ad-slot--leaderboard .ad-slot__inner {
		min-height: 100px;
	}

	.page-head h1 {
		font-size: var(--step-4);
	}

	.ability {
		grid-template-columns: 44px minmax(0, 1fr);
		gap: 14px;
		padding: 14px;
	}

	.ability__icon {
		width: 44px;
		height: 44px;
		border-radius: 9px;
	}
}

@media (max-width: 560px) {
	:root {
		/* The header wraps to a brand row plus a full-width search row, so it
		   is 112px tall here — 64px used to park sticky elements behind it. */
		--header-h: 112px;
	}

	.site-header__inner {
		flex-wrap: wrap;
		gap: 10px;
		padding-block: 10px;
	}

	.brand {
		flex: 1 1 auto;
	}

	.brand__tag {
		display: none;
	}

	.search-slot {
		order: 4;
		flex: 1 1 100%;
		max-width: none;
	}

	.nav-toggle {
		order: 2;
	}

	.site-nav {
		order: 5;
	}

	.search-form__hint {
		display: none;
	}

	.mural h1 {
		font-size: clamp(2.2rem, 11vw, 3rem);
	}

	.stat-strip__item {
		padding: 16px;
	}

	.hero-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	/* One post per row on small screens. */
	.post-list {
		grid-template-columns: minmax(0, 1fr);
	}

	/* On a phone the table should fill the device height rather than a
	   desktop proportion of it. */
	.rank-scroll {
		max-height: 80vh;
		max-height: 80dvh;
	}
}

/* Print ------------------------------------------------------------------- */
@media print {
	.site-header,
	.site-footer,
	.ad-slot,
	.page-sidebar,
	.chapter-nav,
	.hero-rail,
	.quick-facts,
	.related {
		display: none !important;
	}

	.page-layout--rail {
		grid-template-columns: minmax(0, 1fr);
	}

	body {
		background: #fff;
		color: #111;
	}

	.hero-splash {
		min-height: 0;
		padding: 0 0 16px;
	}

	.hero-splash__bg {
		display: none;
	}

	.chapter__title,
	.hero-splash h1,
	h2,
	h3 {
		color: #111;
	}
}
