/*
 * Guides "info section": MuDream's layout (380px accordion menu + 1112px content column, tabs above
 * the page) dressed in OUR theme instead of their navy palette --
 *   panels   .bg-major-black  #171920 on the #0b0c10 page
 *   accent   --default-color  #ba6356 (the theme's red-orange), gradient for the active tab
 *   type     --theme-font     GothamSSm-Light, antialiased like the rest of the site
 * Their measured geometry is kept (padding 18/20, 48px icons, 18px titles, 14px subtitles) so the
 * structure still lines up with theirs.
 */
.guide-page{
	/* Their layout is a 380px menu + a 1112px content column; the theme container is narrower,
	   so this page widens itself to the same total, still centred and capped by the viewport. */
	width:min(1512px, calc(100vw - 40px));
	margin-left:calc((100% - min(1512px, calc(100vw - 40px))) / 2);
	--gs-panel:#171920;
	--gs-accent:var(--default-color, #ba6356);
	--gs-active:rgba(186,99,86,.12);
	--gs-muted:rgba(240,240,255,.5);
	font-family:var(--theme-font, 'GothamSSm-Light', sans-serif);
	color:#fff;
	-webkit-font-smoothing:antialiased;
	-moz-osx-font-smoothing:grayscale;
	text-rendering:optimizeLegibility;
	display:flex;
	align-items:flex-start;
	gap:20px;
	margin:20px 0 40px;
}

/* ---- side menu ---------------------------------------------------------- */
.guide-menu{
	flex:0 0 380px;
	max-width:380px;
	background:var(--gs-panel);
	border-radius:3px;
	overflow:hidden;
}
.guide-menu-section + .guide-menu-section{border-top:1px solid rgba(255,255,255,.06)}
.guide-menu-head{
	display:flex;align-items:center;gap:15px;
	padding:18px 40px 18px 20px;
	position:relative;cursor:pointer;
	transition:background .15s;
}
.guide-menu-head:hover{background:rgba(255,255,255,.03)}
.guide-menu-section.open > .guide-menu-head{background:var(--gs-active)}
.guide-menu-head img{width:48px;height:48px;flex:0 0 48px;object-fit:contain}
.guide-menu-head .gs-name{font-size:17px;font-weight:600;line-height:20px;color:#fff;letter-spacing:.2px}
.guide-menu-head .gs-desc{font-size:12px;font-weight:400;line-height:18px;color:var(--gs-muted);text-transform:uppercase;letter-spacing:.4px}
.guide-menu-head .gs-arrow{
	position:absolute;right:20px;top:50%;width:8px;height:8px;margin-top:-6px;
	border-right:2px solid rgba(255,255,255,.45);border-bottom:2px solid rgba(255,255,255,.45);
	transform:rotate(45deg);transition:transform .2s;
}
.guide-menu-section.open .gs-arrow{transform:rotate(-135deg);margin-top:-2px}
.guide-menu-children{display:none;background:rgba(0,0,0,.18)}
.guide-menu-section.open .guide-menu-children{display:block}
.guide-menu-children a{
	display:block;position:relative;
	padding:14px 20px;
	font-size:15px;font-weight:500;line-height:20px;
	color:rgba(255,255,255,.75);text-decoration:none;
	transition:background .15s,color .15s;
}
.guide-menu-children a:hover{background:rgba(255,255,255,.04);color:#fff}
.guide-menu-children a.active{background:var(--gs-active);color:#fff}
.guide-menu-children a.active:before{
	content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:var(--gs-accent);
}

/* ---- content + tabs ----------------------------------------------------- */
.guide-body{flex:1 1 auto;min-width:0;max-width:1112px}
.guide-tabs{
	display:flex;flex-wrap:wrap;justify-content:center;gap:10px;
	list-style:none;margin:0 0 20px;padding:0;
}
.guide-tabs li{margin:0}
.guide-tab{
	display:inline-block;
	padding:7px 18px;
	border:1px solid rgba(255,255,255,.08);
	border-radius:50px;
	background:var(--gs-panel);
	color:rgba(240,240,255,.6);
	font-size:14px;font-weight:500;line-height:22px;
	text-decoration:none;position:relative;
	transition:color .15s,border-color .15s,background .15s;
}
.guide-tab:hover{color:#fff;border-color:rgba(255,255,255,.2)}
.guide-tab.active{
	color:#fff;
	background:linear-gradient(to right,#561f1f 0%,#a23e2f 100%);
	border-color:transparent;
}
.guide-content{
	background:var(--gs-panel);
	border-radius:3px;
	padding:20px;
}
.guide-empty{padding:60px 20px;text-align:center;color:var(--gs-muted);font-size:16px}

/* Their bodies set colours and sizes inline; the family and rendering come from the theme so the
   text is as crisp as the rest of the site. */
#guide-page-content{
	font-family:var(--theme-font, 'GothamSSm-Light', sans-serif);
	color:rgba(240,240,255,.85);
	-webkit-font-smoothing:antialiased;
	-moz-osx-font-smoothing:grayscale;
}
#guide-page-content img{max-width:100%}
/* The theme styles every <video> as a full-bleed cover video (v1.css: position:absolute; left:50%;
   transform; background image). That rips the guides' own clips - the per-class skill combos and the
   skin preview - out of the flow, collapsing their wrapper to 0 height so they look missing.
   Put them back in normal flow; the selector is deliberately specific enough to win. */
.guide-page #guide-page-content video{
	position:static;
	top:auto;left:auto;right:auto;bottom:auto;
	transform:none;
	display:block;
	width:100%;height:auto;max-width:100%;
	margin:0 auto;
	background-image:none;
	object-fit:contain;
}
/* A page that builds its own 16:9 box (padding-bottom + absolutely positioned video, as the skins
   page does) still wins on document order - only the theme's cover-video rule is neutralised. */

#guide-page-content table{color:inherit}

@media (max-width:991px){
	.guide-page{flex-direction:column;width:100%;margin-left:0}
	.guide-menu{flex:1 1 auto;max-width:none;width:100%}
}
@media (max-width:575px){
	.guide-menu-head .gs-name{font-size:15px}
	.guide-menu-children a{font-size:14px}
	.guide-tab{font-size:13px;padding:6px 14px}
}

/* Guide item tooltips: the theme renders item text at 12px tahoma, too small to read in a guide,
   so these are sized up. Scoped to .guide-tooltip, which only the guides' endpoint emits. */
/* #tooltip is painted at opacity .90, and compositing a whole translucent layer is what makes the
   text look soft. Guide tooltips go fully opaque (same colour, just solid) and ask for crisp
   rendering; the inventory/market tooltips keep the theme's look. */
#tooltip:has(.guide-tooltip){opacity:1!important;background-color:#1a1820!important;border-color:#000!important}
.guide-tooltip{
	padding:2px 4px;
	-webkit-font-smoothing:antialiased;
	-moz-osx-font-smoothing:grayscale;
	text-rendering:optimizeLegibility;
	text-shadow:none;
}
.guide-tooltip div{font-size:15px!important;line-height:1.5;font-family:var(--theme-font,'GothamSSm-Light',sans-serif)!important;text-shadow:none}
.guide-tooltip div:first-child{font-size:17px!important;line-height:1.6;padding-bottom:2px}
