/* Wiki section (/wiki): tab row below hero + article card grid. */

/* Catch-all: any plain, unclassed <a> inside the wiki page (sidebar/news
   list items, admin-authored links inside article bodies) should never
   fall back to the browser's default blue -- only matches anchors with no
   class of their own, so it never overrides classed elements like tabs,
   cards or the search button. */
body.wiki-page a:not([class]) {
	color: rgba(210, 205, 218, 0.88);
	text-decoration: none;
}

body.wiki-page a:not([class]):hover {
	color: #bc8e31;
}

body.wiki-page .wiki-page__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 24px 0 0;
	border-bottom: 1px solid rgba(188, 142, 49, 0.14);
}

body.wiki-page .wiki-page__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	padding: 0;
}

body.wiki-page .wiki-page__search {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 8px 0;
}

body.wiki-page .wiki-page__search-input {
	width: 220px;
	max-width: 60vw;
	padding: 8px 12px;
	font-size: 13px;
	color: #f0ece4;
	background: rgba(20, 14, 10, 0.7);
	border: 1px solid rgba(188, 142, 49, 0.3);
	border-right: 0;
	border-radius: 6px 0 0 6px;
}

body.wiki-page .wiki-page__search-input::placeholder {
	color: rgba(200, 196, 210, 0.5);
}

body.wiki-page .wiki-page__search-input:focus {
	outline: none;
	border-color: rgba(188, 142, 49, 0.7);
}

body.wiki-page .wiki-page__search-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	color: #1b130d;
	background: #bc8e31;
	border: 0;
	border-radius: 0 6px 6px 0;
	cursor: pointer;
	transition: background 0.15s ease;
}

body.wiki-page .wiki-page__search-btn:hover {
	background: #d3a652;
}

body.wiki-page .wiki-page__tab {
	display: inline-flex;
	align-items: center;
	padding: 10px 14px;
	margin-bottom: -1px;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: transparent;
	color: rgba(168, 158, 142, 0.72);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 0.18s ease, border-color 0.18s ease;
}

body.wiki-page .wiki-page__tab:hover {
	color: #f0ece4;
	text-decoration: none;
	border-bottom-color: rgba(240, 236, 228, 0.35);
}

body.wiki-page .wiki-page__tab--active {
	color: #bc8e31;
	font-weight: 700;
	border-bottom-color: rgba(188, 142, 49, 0.95);
}

body.wiki-page .wiki-page__tab--active:hover {
	color: #d3a652;
	border-bottom-color: rgba(188, 142, 49, 0.95);
}

/* Article list (horizontal rows, no image) */
body.wiki-page .wiki-page__grid {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 24px;
}

body.wiki-page .wiki-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 16px 18px;
	text-decoration: none;
	color: inherit;
	border-radius: 8px;
	background: rgba(27, 19, 13, 0.95);
	border: 1px solid rgba(188, 142, 49, 0.2);
	transition: border-color 0.15s ease, background 0.15s ease;
}

body.wiki-page .wiki-card:hover {
	border-color: rgba(188, 142, 49, 0.55);
	background: rgba(37, 27, 19, 0.95);
}

body.wiki-page .wiki-card__body {
	min-width: 0;
	flex: 1 1 auto;
}

body.wiki-page .wiki-card__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	flex: 0 0 auto;
}

body.wiki-page .wiki-card__category-pill {
	padding: 4px 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #1b130d;
	border-radius: 4px;
	background: #bc8e31;
	pointer-events: none;
	white-space: nowrap;
}

body.wiki-page .wiki-card__heading {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0.02em;
	color: #fff;
}

body.wiki-page .wiki-card__excerpt {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(210, 205, 218, 0.82);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.wiki-page .wiki-card__date {
	font-size: 11px;
	letter-spacing: 0.03em;
	color: rgba(200, 196, 210, 0.6);
	white-space: nowrap;
}

body.wiki-page .wiki-page__empty {
	margin-top: 32px;
	padding: 40px 20px;
	text-align: center;
	color: rgba(210, 205, 218, 0.82);
}

/* Article body tables (recipe/material tables etc.) -- article__content has
   no table rules of its own, so style them here, scoped to wiki pages only. */
body.wiki-page .article__content table {
	width: 100%;
	margin: 4px 0 20px;
	border-collapse: collapse;
	font-size: 13px;
}

body.wiki-page .article__content th,
body.wiki-page .article__content td {
	padding: 10px 14px;
	text-align: left;
	border-bottom: 1px solid rgba(188, 142, 49, 0.16);
}

body.wiki-page .article__content th {
	color: #bc8e31;
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: rgba(188, 142, 49, 0.08);
}

body.wiki-page .article__content td {
	color: #dedede;
}

body.wiki-page .article__content tr:last-child td {
	border-bottom: 0;
}

body.wiki-page .article__content tr:hover td {
	background: rgba(188, 142, 49, 0.05);
}

/* Highlighted callout for the "drops from" line at the end of a recipe guide. */
body.wiki-page .article__content .wiki-callout {
	margin: 0 0 20px;
	padding: 14px 16px;
	border-left: 3px solid #bc8e31;
	border-radius: 0 6px 6px 0;
	background: rgba(188, 142, 49, 0.08);
	color: #dedede;
}

body.wiki-page .article__content .wiki-callout strong {
	color: #bc8e31;
}

/* Level range / difficulty meta bar at the top of a Locations article. */
body.wiki-page .article__content .wiki-meta-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 20px;
}

body.wiki-page .article__content .wiki-meta-bar__item {
	display: flex;
	align-items: baseline;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 6px;
	background: rgba(188, 142, 49, 0.08);
	border: 1px solid rgba(188, 142, 49, 0.25);
	font-size: 13px;
	color: #dedede;
}

body.wiki-page .article__content .wiki-meta-bar__label {
	color: #bc8e31;
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

body.wiki-page .wiki-page__sidebar-heading {
	margin: 24px 0 12px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: rgba(240, 236, 228, 0.85);
}

body.wiki-page .wiki-page__sidebar-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.wiki-page .wiki-page__sidebar-list li {
	margin-bottom: 8px;
}

body.wiki-page .wiki-page__sidebar-list a {
	color: rgba(210, 205, 218, 0.88);
	text-decoration: none;
	font-size: 13px;
}

body.wiki-page .wiki-page__sidebar-list a:hover {
	color: #bc8e31;
}

body.wiki-page .wiki-page__sidebar-list--news li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 14px;
}

body.wiki-page .wiki-page__sidebar-list--news time {
	font-size: 11px;
	letter-spacing: 0.03em;
	color: rgba(200, 196, 210, 0.6);
}

body.wiki-page .wiki-page__panel {
	margin-top: 24px;
	margin-bottom: 24px;
	padding: 24px;
	border-radius: 8px;
	background: rgba(27, 19, 13, 0.95);
	border: 1px solid rgba(188, 142, 49, 0.2);
}

body.wiki-page .wiki-page__intro-title {
	margin: 0 0 14px;
	font-size: 22px;
	font-weight: 700;
	color: #fff;
}

body.wiki-page .wiki-page__intro-body {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(210, 205, 218, 0.85);
}

body.wiki-page .wiki-page__panel .wiki-page__sidebar-heading {
	margin-top: 0;
}

body.wiki-page .wiki-page__back-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	padding: 8px 16px;
	border-radius: 6px;
	background: rgba(188, 142, 49, 0.08);
	border: 1px solid rgba(188, 142, 49, 0.3);
	color: #bc8e31;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

body.wiki-page .wiki-page__back-btn:hover {
	background: rgba(188, 142, 49, 0.18);
	border-color: rgba(188, 142, 49, 0.55);
	color: #d3a652;
}

body.wiki-page .wiki-page__panel-cta {
	display: inline-block;
	margin-top: 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #bc8e31;
}

body.wiki-page .wiki-page__panel-cta:hover {
	color: #d3a652;
}
