/* AOU guides — dark + gold (matches Classic AO accordion UI) */

.aou-guides-page.aou-content,
.aou-guides-page .aou-content {
	max-width: 1100px;
	margin: 0 auto;
	padding: 1.25rem 1rem 3rem;
}
.aou-guides-page.aou-content img,
.aou-guides-page .aou-content img {
	max-width: 100%;
	height: auto;
}
.aou-guides-page.aou-content a,
.aou-guides-page .aou-content a {
	color: #e6c15a;
}
.aou-guides-page.aou-content a:hover,
.aou-guides-page .aou-content a:hover {
	color: #f5d97a;
}

.aou-crumb {
	color: #d4af37;
	font-size: 0.9rem;
	margin: 0 0 0.85rem;
	font-weight: 500;
}
.aou-crumb a {
	color: #d4af37 !important;
	text-decoration: none;
}
.aou-crumb a:hover {
	color: #f0d078 !important;
	text-decoration: underline;
}

/* Expansion tabs */
.aou-guides-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0 0 0.85rem;
	padding: 0;
	list-style: none;
}
.aou-guides-nav li {
	margin: 0;
}
.aou-guides-nav a {
	display: inline-block;
	padding: 0.45rem 0.95rem;
	border: 1px solid #d4af37;
	border-radius: 6px 6px 0 0;
	background: #0f131a;
	color: #e6c15a !important;
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.2;
}
.aou-guides-nav a:hover {
	background: rgba(212, 175, 55, 0.12);
	color: #f5d97a !important;
}
.aou-guides-nav a.active {
	background: #d4af37;
	border-color: #d4af37;
	color: #0f131a !important;
	font-weight: 700;
}

/* Main panel */
.aou-guide-panel {
	background: #121820;
	color: #e8eef2;
	border-radius: 10px;
	padding: 0 1.35rem 1.5rem;
	border: 1px solid #d4af37;
	box-shadow:
		0 0 0 1px rgba(212, 175, 55, 0.12),
		0 8px 28px rgba(0, 0, 0, 0.45);
}
.aou-guide-panel > h1,
.aou-search-head h1 {
	margin: 0 -1.35rem 0.85rem;
	padding: 0.85rem 1.25rem 0.85rem 1.45rem;
	color: #e6c15a;
	font-size: 1.45rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	border: 0;
	border-bottom: 1px solid #d4af37;
	background: linear-gradient(
		180deg,
		#1a2030 0%,
		#2a3344 45%,
		#151b26 100%
	);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
	box-shadow:
		inset 5px 0 0 #d4af37,
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
	border-radius: 9px 9px 0 0;
}
.aou-search-head h1 {
	margin: 0 0 0.75rem;
	padding: 0.65rem 0.85rem 0.65rem 1.15rem;
	border: 1px solid #d4af37;
	border-radius: 6px;
	font-size: 1.2rem;
	box-shadow:
		inset 5px 0 0 #d4af37,
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.aou-search-hint {
	color: #9aa3b2;
	margin: 0 0 1rem;
	font-size: 0.95rem;
}

.aou-guide-panel a {
	color: #e6c15a !important;
}
.aou-guide-panel a:hover {
	color: #f5d97a !important;
}

.aou-guide-panel.aou-guide-authors { text-align: center; margin-top:2em; }
.aou-guide-panel.aou-guide-authors h3 { font-size:1em; font-style: italic; margin-top:6px; }

/* Category buttons — gold outline + inset left gold bar + metallic gradient */
.knowledge h2,
.guest-page .knowledge h2,
.aou-guide-panel .knowledge h2 {
	padding: 0.7rem 1rem 0.7rem 1.35rem !important;
	margin: 0 0 0.55rem !important;
	cursor: pointer;
	border: 1px solid #d4af37 !important;
	border-radius: 6px !important;
	font-weight: 700 !important;
	font-size: 1.05rem !important;
	line-height: 1.35 !important;
	color: #e6c15a !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
	background: linear-gradient(
		180deg,
		#141920 0%,
		#2a3340 48%,
		#10151c 100%
	) !important;
	box-shadow:
		inset 5px 0 0 #d4af37,
		inset 0 1px 0 rgba(255, 255, 255, 0.08),
		inset 0 -2px 4px rgba(0, 0, 0, 0.4) !important;
	user-select: none;
}
.knowledge h2::before,
.guest-page .knowledge h2::before,
.aou-guide-panel .knowledge h2::before,
.aou-guide-panel > h1::before {
	content: none !important;
	display: none !important;
}
.knowledge h2:first-of-type,
.guest-page .knowledge h2:first-of-type {
	margin-top: 0 !important;
}
.knowledge h2 span.c,
.guest-page .knowledge h2 span.c {
	margin-left: 0.45rem;
	color: #e6c15a;
	opacity: 1;
	font-size: 0.95em;
	font-weight: 700;
}

.knowledge h3 {
	margin: 1rem 0 0.35rem;
	padding: 0.35rem 0.6rem;
	color: #e6c15a;
	font-size: 0.95rem;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0.02em;
	background: rgba(8, 12, 20, 0.55);
	border-left: 3px solid #d4af37;
}

.knowledge .kl_list > h3:first-child {
	margin-top: 0.25rem;
}

.kl_list {
	border: 1px solid rgba(212, 175, 55, 0.28);
	background: rgba(8, 12, 20, 0.45);
	border-radius: 8px;
	padding: 4px;
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 0.85rem;
	box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.28);
}
.kl_list a { color: #e8eef2 !important; text-decoration: none; display: block; }
.kl_list a:hover { background: rgba(212, 175, 55, 0.1); }
.kl_list .rh,
.kl_list .rb > a {
	display: grid;
	grid-template-columns: 1.4fr 2fr 0.7fr 0.8fr 0.7fr 0.9fr;
	gap: 2px;
	align-items: stretch;
}
.kl_list .rh > div {
	border-radius: 4px;
	padding: 6px 8px;
	border: 1px solid rgba(212, 175, 55, 0.28);
	background: rgba(212, 175, 55, 0.12);
	font-weight: 700;
	text-align: center;
	font-size: 0.8rem;
	color: #e6c15a;
}
.kl_list .rb {
	border: 1px solid rgba(212, 175, 55, 0.2);
	border-width: 1px 1px 0 1px;
}
.kl_list .rb:last-child {
	border-bottom-width: 1px;
	border-radius: 0 0 4px 4px;
}
.kl_list .rb > a > div {
	padding: 6px 8px;
	text-align: center;
	font-size: 0.85rem;
}
.kl_list .rb:nth-child(odd) { background: rgba(255, 255, 255, 0.03); }
.kl_list .rb:nth-child(even) { background: rgba(0, 0, 0, 0.18); }
.kl_list .rb > a > div:first-child { text-align: left; font-weight: 600; }
.kl_list .rb > a > div:nth-child(2) { text-align: left; color: #9aa3b2; }
@media (max-width: 900px) {
	.kl_list .rh { display: none; }
	.kl_list .rb > a {
		grid-template-columns: 1fr;
		padding: 0.5rem;
	}
	.kl_list .rb > a > div:nth-child(n+3) { display: none; }
}

.aou-guide-panel .kltable {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: rgba(8, 12, 20, 0.45);
	border: 1px solid rgba(212, 175, 55, 0.28);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.25);
	margin: 0.75rem 0 1.25rem;
}
.aou-guide-panel .kltable td {
	padding: 0.65rem 0.75rem;
	border-top: 1px solid rgba(212, 175, 55, 0.18);
	vertical-align: top;
	color: #e8eef2;
}
.aou-guide-panel .kltable tr:first-child td {
	border-top: 0;
	background: rgba(212, 175, 55, 0.14);
	font-weight: 700;
	color: #f5e4a4;
}

.aou-guide-panel .tbox {
	background: rgba(8, 12, 20, 0.65);
	border: 1px solid rgba(212, 175, 55, 0.28);
	color: #cfd8e8;
	box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.25);
}
.aou-guide-panel .tbox a { color: #e6c15a !important; }
.aou-guide-panel .tbox.toc a { color: #f5e4a4 !important; }
.aou-guide-panel .waypoint {
	background: rgba(8, 12, 20, 0.65);
	border-color: rgba(212, 175, 55, 0.28);
	color: #cfd8e8;
}
.aou-guide-panel .waypoint .coords { color: #f0c674; }

.tbox {
	background: #161d28;
	border: 1px solid rgba(212, 175, 55, 0.28);
	border-radius: 6px;
	padding: 0.55rem 0.75rem;
	margin: 0 0 1rem;
	max-width: 380px;
	box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.28);
}
.tbox.goleft { float: left; margin-right: 1.25rem; }
.tbox.goright { float: right; margin-left: 1.25rem; }

.tbox.toc {
	float: right;
	margin: 0 0 1rem 1rem;
	max-width: min(340px, 100%);
	clear: right;
	background: #161d28;
	border: 1px solid rgba(212, 175, 55, 0.28);
	border-radius: 6px;
	padding: 0.45rem 0.7rem 0.5rem;
	box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}
.tbox.toc .toc.pointer,
.tbox.toc > .toc {
	display: block;
	text-align: right;
	cursor: pointer;
	user-select: none;
	color: #e8eef2;
	font-size: 0.9rem;
	line-height: 1.3;
}
.tbox.toc .font_courier {
	font-family: "Courier New", Courier, monospace;
}
.tbox.toc ul,
.tbox.toc #texttoc {
	margin: 0.45rem 0 0.15rem;
	padding: 0 0 0 1.15rem;
	text-align: left;
	list-style: disc;
}
.tbox.toc ul.hidden,
.tbox.toc #texttoc.hidden {
	display: none !important;
}
.tbox.toc ul.visible,
.tbox.toc #texttoc.visible {
	display: block !important;
}
.tbox.toc ul li {
	margin: 0.15rem 0;
}
.tbox.toc ul a,
.tbox.toc #texttoc a {
	display: block;
	color: #e6b84a !important;
	text-decoration: none;
	font-size: 0.88rem;
	line-height: 1.35;
}
.tbox.toc ul a:hover,
.tbox.toc #texttoc a:hover {
	color: #f0d078 !important;
	text-decoration: underline;
}
.aou-guide-panel .tbox.toc a {
	color: #e6b84a !important;
}
.bbcenter { text-align: center; margin: 0.75rem 0; }
.bblink { color: #e6c15a; }
.waypoint {
	display: inline-block;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	margin: 0.25rem;
	border: 1px dashed rgba(212, 175, 55, 0.35);
	border-radius: 4px;
	background: #161d28;
}
.waypoint .coords { font-size: 0.8rem; color: #9aa3b2; }
.articlesearchbox { display: none; }
.pointer { cursor: pointer; }
.hidden { display: none !important; }
.visible { display: block !important; }
#commentboxshort, #commentlinkshort { display: none !important; }
.aoidlink { max-width: 100%; }

/* Legacy hub cards (kept if linked elsewhere) */
.aou-hub-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
	margin-top: 1.5rem;
}
.aou-hub-card {
	display: block;
	padding: 1.25rem;
	border: 1px solid #d4af37;
	border-radius: 8px;
	background: #141a24;
	color: #e8eef2 !important;
	text-decoration: none;
	box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.25);
	transition: border-color .15s, background .15s;
}
.aou-hub-card:hover {
	border-color: #f0d078;
	background: rgba(212, 175, 55, 0.1);
}
.aou-hub-card strong {
	display: block;
	font-size: 1.1rem;
	margin-bottom: 0.35rem;
	color: #e6c15a;
}

/* Search page */
.aou-search-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.75rem;
}
.aou-search-head h1 {
	margin: 0;
}
.aou-search-form {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.aou-search-form label {
	color: #9aa3b2;
	margin: 0;
}
.aou-search-form input[type="text"] {
	min-width: 180px;
	padding: 0.4rem 0.65rem;
	border: 1px solid rgba(212, 175, 55, 0.35);
	border-radius: 4px;
	background: #0d1218;
	color: #e8eef2;
}
.aou-search-form button {
	padding: 0.4rem 0.9rem;
	border: 1px solid #d4af37;
	border-radius: 4px;
	background: #121820;
	color: #e8eef2;
	cursor: pointer;
}
.aou-search-form button:hover {
	background: #d4af37;
	color: #121820;
}
.aou-search-summary {
	color: #e6c15a;
	font-weight: 700;
	margin: 0.5rem 0 0.25rem;
}
.aou-search-sections .kl_list .rb > a {
	grid-template-columns: 1.2fr 2fr;
}
.aou-search-sections .kl_list .rh {
	grid-template-columns: 1.2fr 2fr;
}
