/* =====================================================================
   Bread Company — site theme
   Modern refresh of the original slate / charcoal / toasted-bread theme.
   Desktop keeps the original fixed "app shell" (content scrolls inside
   the page panel); phones switch to normal page scrolling.
   ===================================================================== */

:root {
	/* --- original theme colours (kept) --- */
	--slate: #617277;
	--slate-light: #819297;
	--charcoal: #343434;
	--ember: #6e0c07;

	/* --- new supporting palette --- */
	--bg: #1b1f21;
	/* the page background; the top bar, footer and pinned bars repaint it (fixed to the window) so they're
	   solid but look exactly like the page behind them */
	--page-bg: radial-gradient(1200px 520px at 50% -160px, rgba(97, 114, 119, .42), transparent 70%),
		radial-gradient(900px 480px at 100% 100%, rgba(110, 12, 7, .16), transparent 70%),
		var(--bg);
	--bar-bg: linear-gradient(rgba(24, 28, 30, .86), rgba(24, 28, 30, .86)), var(--page-bg);
	--surface: #242b2e;
	--surface-2: #2d3639;
	--surface-3: #36424a;
	--input-bg: #161b1d;
	--line: rgba(255, 255, 255, .08);
	--line-strong: rgba(255, 255, 255, .15);
	--text: #e8ecec;
	--text-strong: #ffffff;
	--muted: #9fb0b4;
	--crust: #e3a458;
	--crust-deep: #b86f2c;
	--crust-ink: #2a1606;
	--ember-bright: #a3231a;
	--good: #5ccf72;
	--bad: #ef6a5e;
	--link: #f0b86e;
	--radius: 14px;
	--radius-sm: 9px;
	--shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .25);
	--shadow-pop: 0 24px 60px rgba(0, 0, 0, .55), 0 4px 14px rgba(0, 0, 0, .35);
	--topbar-height: 64px;
	--shell-max: 1500px;

	/* --- legacy variable names used throughout page styles --- */
	--menu-font: "Rubik", "Segoe UI", system-ui, -apple-system, sans-serif;
	--title-font: "Morpheus", "Friz Quadrata", Georgia, serif;
	--site-background-color: #1b1f21;
	--panel-color: #2d3639;
	--subpanel-color: #36424a;
	--content-width: calc(100% - 10px);
	--content-subwidth: calc(100% - 30px);
	--inner-content-width: calc(100% - 110px);
	--drop-shadow: 0 2px 6px rgba(0, 0, 0, .45);
	--drop-shadow-dark: 0 6px 14px rgba(0, 0, 0, .45);
	--box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
	--default-font-size: 15px;
}

#resultpager { display: none; }   /* phones only (crafting pages) */

/* ---------------------------------------------------------------------
   Base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	text-align: center;
	font-family: var(--menu-font);
	font-size: var(--default-font-size);
	line-height: 1.45;
	color: var(--text);
	background: var(--page-bg);
	background-attachment: fixed;
	min-height: 100vh;
}

a { color: var(--link); }
a:hover, a:focus { color: var(--crust); }

h1, h2, h3, h4 { color: var(--text-strong); }

p { margin: 0 0 .8em; }

hr { border: 0; border-top: 1px solid var(--line-strong); }

.bc-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Scrollbars — slim, with a toasted-crust thumb */
* { scrollbar-width: thin; scrollbar-color: var(--crust-deep) rgba(255, 255, 255, .04); }
*::-webkit-scrollbar { width: 12px; height: 12px; background: rgba(255, 255, 255, .03); }
*::-webkit-scrollbar-track { background: rgba(255, 255, 255, .03); border-radius: 10px; }
*::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, var(--crust), var(--crust-deep));
	border: 3px solid transparent; background-clip: padding-box; border-radius: 10px;
}
*::-webkit-scrollbar-corner { background: transparent; }

::selection { background: rgba(227, 164, 88, .35); color: #fff; }

/* ---------------------------------------------------------------------
   Form controls
   --------------------------------------------------------------------- */
input, select, textarea {
	background-color: var(--input-bg);
	border: 1px solid var(--line-strong);
	color: var(--text);
	font-size: 100%;
	padding: 7px 11px;
	font-weight: normal;
	font-family: var(--menu-font);
	border-radius: 9px;
	width: 220px;
	max-width: 100%;
	line-height: 1.35;
	transition: border-color .15s, box-shadow .15s;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
}

input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--crust);
	box-shadow: 0 0 0 3px rgba(227, 164, 88, .22);
}

input::placeholder, textarea::placeholder { color: #6f7f83; }

input:disabled, select:disabled, textarea:disabled { opacity: .55; }

select {
	-webkit-appearance: none; -moz-appearance: none; appearance: none;
	padding-right: 30px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 3.5 5 7l3.5-3.5' fill='none' stroke='%239fb0b4' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 10px;
}

select[multiple], select[size] { background-image: none; padding-right: 11px; }

option { background: var(--surface-2); color: var(--text); border: solid 1px transparent; }
option:focus { background-color: var(--surface-2); color: var(--text); }
option:checked { background: var(--slate); color: #fff; }
option:hover { border: dashed 1px var(--crust); }

textarea { width: 100%; resize: vertical; }

select.timeselect { width: calc(220px / 3.05); padding-right: 22px; background-position: right 6px center; }
select.timeselect2 { width: calc(220px / 3.05); padding-right: 22px; background-position: right 6px center; }

input[type="checkbox"], input[type="radio"] {
	width: auto;
	accent-color: var(--crust);
	box-shadow: none;
}

input.passcheck { padding-right: 34px; }

/* the two places that colour the search text from script */
#searchbox[style*="gray"], #searchbox[style*="grey"] { color: var(--muted) !important; }
#searchbox[style*="00009D"], #searchbox[style*="00009d"], #searchbox[style*="rgb(0, 0, 157)"] { color: var(--text) !important; }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
#buttondiv, .buttondiv, .buttondiv2, .buttondiv3, #buttondivbottom, .buttondivbottom, .buttondivfit {
	text-align: center;
	margin: auto;
	margin-bottom: 6px;
	margin-top: 6px;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px;
	min-height: 44px;
}

#buttondivbottom, .buttondivbottom {
	position: absolute;
	bottom: 0px;
	left: 0;
	right: 0;
	padding: 8px 0 6px;
	width: auto;
	margin: 0;
}

#buttondivbottom { margin-bottom: 44px; }

.buttonwrapper { display: inline; border: 1px solid var(--line-strong); }

button {
	font-family: var(--menu-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	border: 1px solid var(--line-strong);
	background: var(--surface-3);
	color: var(--text);
	margin: 0;
	padding: 9px 16px;
	border-radius: 10px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
	cursor: pointer;
	transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
	min-height: 38px;
}

button:disabled { opacity: .45; cursor: default; }

button:hover:not(:disabled) {
	background: var(--ember);
	border-color: var(--ember-bright);
	color: #fff;
	cursor: pointer;
}

button:active:not(:disabled) {
	transform: translateY(1px);
	box-shadow: inset 0 2px 5px rgba(0, 0, 0, .45);
}

button:active:hover:not(:disabled) { background: #4f0905; }

button:focus-visible { outline: 2px solid var(--crust); outline-offset: 2px; }

/* primary actions get the toasted-crust treatment */
#loginbutton, #createeventbutton, #applybutton, #appsubmitbutton, #userconfigsavebutton, #newticketbutton,
#ranksavebutton, #saverecruitingconfigbutton, #pwresetbutton, #verifybutton, #pwrecoverysubmit,
.bc-page-register #registerbutton, #modalyes, #eventsubmitbutton, #eventsavebutton, #savebutton, #submitbutton,
#contestsavebutton, #ticketsubmitbutton, #sendbutton, #postsubmitbutton {
	background: linear-gradient(180deg, #ecb26c, var(--crust-deep));
	color: var(--crust-ink);
	border-color: #f2c187;
	box-shadow: 0 4px 14px rgba(227, 164, 88, .22);
}

#loginbutton:hover:not(:disabled), #createeventbutton:hover:not(:disabled), #applybutton:hover:not(:disabled),
#appsubmitbutton:hover:not(:disabled), #userconfigsavebutton:hover:not(:disabled), #newticketbutton:hover:not(:disabled),
#ranksavebutton:hover:not(:disabled), #saverecruitingconfigbutton:hover:not(:disabled), #pwresetbutton:hover:not(:disabled),
#verifybutton:hover:not(:disabled), #pwrecoverysubmit:hover:not(:disabled), .bc-page-register #registerbutton:hover:not(:disabled),
#modalyes:hover:not(:disabled), #eventsubmitbutton:hover:not(:disabled), #eventsavebutton:hover:not(:disabled),
#savebutton:hover:not(:disabled), #submitbutton:hover:not(:disabled), #contestsavebutton:hover:not(:disabled),
#ticketsubmitbutton:hover:not(:disabled), #sendbutton:hover:not(:disabled), #postsubmitbutton:hover:not(:disabled) {
	background: linear-gradient(180deg, #f4c486, #c97c35);
	color: var(--crust-ink);
	border-color: #f7d3a6;
}

#buttondiv { width: 100%; }

#buttondiv button, #buttondivbottom button, .buttondivbottom button {
	margin-left: 0;
	margin-right: 0;
	min-width: 150px;
	width: auto;
}

.buttondiv button {
	margin-left: 0;
	margin-right: 0;
	min-width: 100px;
	width: auto;
}

.buttondiv-close button { margin-left: 0 !important; margin-right: 0 !important; min-width: 150px !important; width: auto !important; }

.buttondiv2 button { margin-left: 0 !important; margin-right: 0 !important; min-width: 110px !important; width: auto !important; }

.buttondivfit button {
	margin-left: 0 !important;
	margin-right: 0 !important;
	min-width: 100px !important;
	width: fit-content;
	padding: 9px 16px;
}

.buttondiv3 button { margin-left: 0; margin-right: 0; min-width: 90px; width: auto; }

.buttondiv button.button-big, .buttondiv2 button.button-big { min-width: 150px; }

.buttonfit { width: fit-content; }

.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------------------
   Top bar (#titlebar) + navigation (#menucontainer)
   --------------------------------------------------------------------- */
#titlebar {
	position: relative;
	z-index: 1000;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	box-shadow: none;
	background: var(--bar-bg);
	background-attachment: fixed;
	text-align: left;
}

.bc-topbar-inner {
	max-width: var(--shell-max);
	margin: 0 auto;
	min-height: var(--topbar-height);
	padding: 0 24px;
	display: flex;
	align-items: stretch;
	gap: 22px;
}

#guildname, .bc-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	width: auto;
	flex-shrink: 0;
}

#guildname img, #breadcologo {
	width: auto;
	height: 26px;
	display: block;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6));
}

/* logo goes to Home when logged in (click handled in breadco.js) */
#breadcologo.bc-homelogo {
	cursor: pointer;
	transition: filter .15s, transform .15s;
}
#breadcologo.bc-homelogo:hover { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)) brightness(1.12); }
#breadcologo.bc-homelogo:active { transform: translateY(1px); }

#guildsubtitle, .bc-realm {
	margin: 0;
	width: auto;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
	border: 1px solid var(--line-strong);
	padding: 3px 9px;
	border-radius: 999px;
	white-space: nowrap;
}

.bc-topbar-right {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-left: auto;
	flex-shrink: 0;
}

#wowlogo, #wowforeverlogo { height: 40px; width: auto; cursor: pointer; display: block; }

/* new users waiting for approval (only the member in $approvalAlertUser): icon with an amber count */
.bc-approvalflag { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
	border: 1px solid rgba(227, 164, 88, .55); border-radius: 50%; background: var(--surface-3); color: var(--crust) !important; text-decoration: none !important; }
.bc-approvalflag[hidden] { display: none; }
.bc-approvalflag:hover { background: var(--surface); border-color: var(--crust); }
.bc-approvalflag svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bc-approvalcount { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
	background: var(--crust); color: var(--crust-ink); font-size: 11px; font-weight: bold; line-height: 18px; text-align: center;
	box-shadow: 0 0 0 2px #181c1e; }

#userinfodiv { width: auto; position: relative; }

#useridlink {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 4px 12px 4px 4px;
	border-radius: 999px;
	background: var(--surface-2);
	border: 1px solid var(--line-strong);
	color: var(--text);
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color .15s, background .15s;
}

#useridlink:hover, #userinfodiv.dropdown-selected #useridlink { border-color: rgba(227, 164, 88, .55); background: var(--surface-3); color: #fff; }

.bc-avatar {
	width: 28px; height: 28px; border-radius: 50%;
	display: inline-grid; place-items: center;
	background: linear-gradient(135deg, var(--crust), var(--crust-deep));
	color: var(--crust-ink); font-weight: 700; font-size: 13px;
}

.bc-chev { width: 10px; height: 10px; flex-shrink: 0; opacity: .75; }
.bc-chev path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

#userinfodiv .dropdown-content { right: 0; left: auto; top: calc(100% + 10px); }

.bc-loginlink {
	display: inline-block; padding: 8px 16px; border-radius: 10px; font-weight: 600;
	background: linear-gradient(180deg, #ecb26c, var(--crust-deep)); color: var(--crust-ink) !important;
	text-decoration: none !important; border: 1px solid #f2c187;
}
.bc-loginlink:hover { background: linear-gradient(180deg, #f4c486, #c97c35); }

.bc-burger, .bc-iconbtn {
	display: none;
	width: 40px; height: 40px; min-height: 0; padding: 0;
	border-radius: 10px;
	background: var(--surface-2);
	border: 1px solid var(--line-strong);
	box-shadow: none;
	place-items: center;
}
.bc-burger svg, .bc-iconbtn svg { width: 20px; height: 20px; display: block; margin: auto; }
.bc-iconbtn svg { width: 16px; height: 16px; }
.bc-burger path, .bc-iconbtn path { fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; }
.bc-burger:hover:not(:disabled), .bc-iconbtn:hover:not(:disabled) { background: var(--surface-3); border-color: var(--line-strong); }

#bc-navscrim { display: none; }

#menucontainer {
	width: auto;
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	display: flex;
	align-items: center;
}

.bc-drawerhead { display: none; }

.bc-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 2px;
}

.menuitem {
	position: relative;
	font-size: 15px;
	font-weight: 500;
	color: #cfd8da;
	font-family: var(--menu-font);
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	width: auto !important;
}

.menuitem > span, .menuitem > .dropdown > span {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 9px 13px;
	border-radius: 10px;
	white-space: nowrap;
	transition: background .15s, color .15s;
}

.menuitem > .dropdown { display: block; }

.menuitem:hover:not(.menuitem-disabled) > span,
.menuitem:hover:not(.menuitem-disabled) > .dropdown > span,
.menuitem.dropdown-selected > .dropdown > span {
	background: rgba(255, 255, 255, .07);
	color: #fff;
}

.menuitem:not(.menuitem-disabled) span { cursor: pointer; }

.menuitem-disabled, .menuitem-disabled > span { cursor: default; color: #5b686c; }

.menuitem-selected { font-weight: 500; }

.menuitem.bc-active > span, .menuitem.bc-active > .dropdown > span {
	color: #fff;
	background: rgba(97, 114, 119, .38);
	position: relative;
}

.menuitem.bc-active > span::after, .menuitem.bc-active > .dropdown > span::after {
	content: "";
	position: absolute;
	left: 13px; right: 13px; bottom: 3px;
	height: 2px; border-radius: 2px;
	background: var(--crust);
}

.menuitem.dropdown-selected .bc-chev { transform: rotate(180deg); }

/* ---------------------------------------------------------------------
   Dropdowns (main menu, user menu, and any page that reuses them)
   --------------------------------------------------------------------- */
.dropdown { position: relative; display: inline-block; }

.dropdown-content {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	background-color: var(--surface-2);
	min-width: 220px;
	padding: 6px;
	filter: none;
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	box-shadow: var(--shadow-pop);
	z-index: 99999;
	text-align: left;
}

.dropdown-content a {
	color: var(--text);
	padding: 10px 14px;
	text-decoration: none;
	display: block;
	font-family: var(--menu-font);
	font-weight: 400;
	border-radius: 8px;
	white-space: nowrap;
}

.dropdown-content a:hover { font-weight: 400; }

.dropdown-link {
	cursor: pointer;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.dropdown-link:hover, .dropdown-link:focus {
	background: var(--slate);
	color: #fff;
	border-radius: 8px;
}

.dropdown-link.bc-current { color: #fff; box-shadow: inset 3px 0 0 var(--crust); background: rgba(97, 114, 119, .3); }

.show { display: block; }

.hassubmenu.dropdown-selected .dropdown-content { display: block; }

/* ---------------------------------------------------------------------
   Page shell (#infodiv) and footer
   --------------------------------------------------------------------- */
#infodiv {
	position: relative;
	width: calc(100% - 32px) !important;
	max-width: var(--shell-max);
	margin: 16px auto 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	text-align: center;
	padding: 6px 24px 10px;
	height: fit-content;
	font-family: var(--menu-font);
	overflow-y: hidden;
	filter: none;
}

.invisiblebox {
	width: var(--content-subwidth);
	top: calc(50% - 81px);
	margin: auto;
	margin-top: 5px;
	border-radius: 4px;
	text-align: center;
	padding: 10px;
	height: fit-content;
	font-family: var(--menu-font);
	overflow-y: hidden;
	position: absolute;
}

.invisiblebox img { -webkit-text-stroke-width: 1px; -webkit-text-stroke-color: black; stroke: black; }

.noscroll { overflow-x: hidden; overflow-y: hidden; }

/* Full-width bar along the bottom of the window, matching the top bar; its contents line up
   with the page (at most --shell-max wide, centred). */
#footerinfo {
	position: fixed;
	z-index: 50;
	bottom: 0px;
	left: 0px;
	width: 100%;
	box-sizing: border-box;
	padding: 10px max(40px, calc((100% - var(--shell-max)) / 2 + 24px)) 12px;
	margin-top: 5px;
	border-top: 1px solid var(--line);
	background: var(--bar-bg);
	background-attachment: fixed;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 28px;
	font-size: 13px;
}

#footerinfo span {
	margin: 0;
	color: var(--muted);
	border-bottom: 0;
	cursor: pointer;
	transition: color .15s;
}

#footerinfo span:hover { color: var(--crust); }

/* ---------------------------------------------------------------------
   Titles & typography helpers
   --------------------------------------------------------------------- */
#logobox { border-radius: 0px; }

#comingsoon {
	position: relative;
	width: 500px;
	max-width: 100%;
	height: 500px;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	margin: 0 auto;
	box-shadow: var(--shadow);
	background: var(--surface);
	text-align: center;
}

#comingsoon #guildname { margin-top: 30px; justify-content: center; }

#comingsooncontent { position: relative; }

#comingsooncontent h1 { filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, .5)); }

.pagetitle, .bigcontent, .bigcontent2 {
	font-weight: 600;
	color: var(--text-strong);
	font-family: var(--title-font);
	filter: none;
	text-shadow: 0 3px 12px rgba(0, 0, 0, .55);
	text-align: left;
	width: 100%;
	margin: auto;
	overflow: ellipsis;
	user-select: none;
	position: relative;
}

.pagetitle {
	font-size: 34px;
	font-weight: normal;
	line-height: 1.15;
	padding: 6px 0 14px;
	font-family: "Morpheus", "Friz Quadrata", Georgia, serif;
	letter-spacing: .01em;
}

.bigcontent { font-family: var(--menu-font); font-size: 18px; font-weight: 600; text-shadow: none; }
.bigcontent2 { font-family: var(--menu-font); font-size: 18px; font-weight: 600; text-shadow: none; text-align: center; }

.noshadow { filter: none !important; text-shadow: none !important; }

/* refresh button (spins via the existing .rotated class) */
#refresh {
	position: relative;
	float: right;
	margin: 2px 0 0 10px;
	height: 38px;
	width: 38px;
	border-radius: 10px;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.5 8a5.5 5.5 0 1 1-1.6-3.9M13.5 2v3h-3' fill='none' stroke='%23e8ecec' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat,
		var(--surface-2);
	border: 1px solid var(--line-strong);
	cursor: pointer;
	transition: background-color .15s, border-color .15s;
}

#refresh:hover { background-color: var(--surface-3); border-color: rgba(227, 164, 88, .5); }

#refreshpad {
	position: relative;
	float: left;
	margin-left: 10px;
	height: 38px;
	width: 38px;
	content: "&nbsp;";
}

#refresh.rotated {
	-webkit-transform: rotate(360deg);
	transform: rotate(360deg);
	-webkit-transition-duration: 1s;
	transition-duration: 1s;
}

.construction {
	background-image: url("/img/construction-tape-50.png");
	background-repeat: no-repeat;
	background-position: 50% 0;
	background-size: cover;
}

.notselectable { -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; user-select: none; }

.float-center { position: relative; left: 50%; }

.float-left { position: relative; float: left; }

.centered { text-align: center !important; margin: auto !important; }

.subtitle { font-weight: 600; font-size: 22px; color: var(--text-strong); }

.subtitle2 { font-weight: 600; font-size: 18px; color: var(--text-strong); }

.biginfo { font-weight: bold; font-size: 44px; }

.dropshadow { filter: drop-shadow(var(--drop-shadow)); }

.dropshadow-dark { filter: drop-shadow(var(--drop-shadow-dark)); }

.scrollable { overflow: auto; }

.dropshadow-red { filter: drop-shadow(0 4px 10px rgba(255, 0, 0, .6)); }

/* ---------------------------------------------------------------------
   Login / register / verify boxes
   --------------------------------------------------------------------- */
#indexcontent, #registercontent {
	height: 100%;
	background-image: none;
}

#loginbox, #registerbox {
	margin: auto;
	width: fit-content;
	max-width: 100%;
}

#registerbox, .bc-page-verify #loginbox {
	background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent 120px), var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 20px 26px 16px;
	margin-top: 10px;
}

#registerbox table, .bc-page-verify #loginbox table { border-collapse: separate; border-spacing: 0 4px; }

#loginbox table tr td:first-child, #registerbox table tr td:first-child, #pwchangebox table tr td:first-child, #eventsubmissioncontainer table tr td:first-child {
	font-weight: 600;
	text-align: right;
	padding-right: 10px;
	font-family: var(--menu-font);
	color: var(--muted);
	font-size: 14px;
}

#intro { margin-bottom: 6px; }
#intro .pagetitle, #intro .bigcontent2 { text-align: center; }

#passwordhelp {
	color: var(--crust-ink);
	cursor: pointer;
	border: 0;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--crust);
	font-size: 12px;
	font-weight: 700;
}

#passwordhelp:hover { border-bottom: 0; background: #f4c486; }

#passwordpopupcontent ul li { text-align: left; }

.validationline td div {
	font-family: var(--menu-font);
	font-size: 11px;
	line-height: 18px;
	max-height: 18px;
	min-height: 18px;
	text-align: center;
	border: solid 1px transparent;
	border-radius: 6px;
	font-weight: 600;
}

.validation-Bad { background-color: rgba(239, 106, 94, .9); color: #fff; border: solid 1px #ef6a5e !important; }
.validation-Good { background-color: #e8c547; color: #222; border: solid 1px #e8c547 !important; }
.validation-Great { background-color: #2f9e4a; color: #fff; border: solid 1px #4fc46b !important; }

/* ---------------------------------------------------------------------
   Data tables
   --------------------------------------------------------------------- */
#rosterheaderdiv, #useradminheaderdiv, #appadminheaderdiv, #ticketlistheaderdiv, .tableheaderdiv {
	position: relative;
	margin: auto;
	width: 100%;
	text-align: center;
}

#rostercontentdiv, #useradmincontentdiv, #appadmincontentdiv, #ticketlistcontentdiv, .tablecontentdiv {
	width: 100%;
	position: relative;
	margin: auto;
	background-color: var(--surface);
	text-align: center;
}

.scrollabletable {
	width: 100%;
	border-collapse: separate !important;
	border-spacing: 0;
	background: var(--surface);
}

.scrollabletable tr th {
	border: 0 !important;
	border-bottom: 1px solid rgba(0, 0, 0, .3) !important;
	padding: 11px 12px;
	text-align: center;
	color: #eef4f5;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.selectableheader th:not(:first-child), .selectableheader2 th { cursor: pointer; }

.scrollabletable tr:first-child {
	border: 0 !important;
	position: sticky !important;
	position: -webkit-sticky !important;
	top: 0 !important;
	z-index: 3;
	background-color: var(--slate);
}

.scrollabletable tr:first-child th { background-color: var(--slate); }

.scrollabletable td {
	text-align: center;
	border: 0 !important;
	border-bottom: 1px solid var(--line) !important;
	padding: 10px 12px !important;
}

.scrollabletable tr:not(:first-child):hover td { background-color: rgba(97, 114, 119, .2); }

.tableborder {
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

#rosterheaderdiv table tr th, #appadminheaderdiv table tr th, #ticketlistheaderdiv table tr th { cursor: pointer; }

#rosterheaderdiv table tr th:hover, #appadminheaderdiv table tr th:hover, #ticketlistheaderdiv table tr th:hover { color: #fff; background: #6c7f84; }

#rostercontentdiv table, #rosterheaderdiv table, #useradmincontentdiv table, #useradminheaderdiv table, #appadmincontentdiv table, #appadminheaderdiv table,
#ticketlistcontentdiv table, #ticketlistheaderdiv table, .tableheaderdiv table, .tablecontentdiv table {
	border-collapse: collapse;
	width: 100%;
}

#rosterheaderdiv table tr th, #useradminheaderdiv table tr th, #appadminheaderdiv table tr th, #ticketlistheaderdiv table tr th, .tableheaderdiv table tr th {
	border: 0;
	border-right: 1px solid rgba(0, 0, 0, .12);
	padding: 10px 8px;
	text-align: center;
	background: var(--slate);
	color: #eef4f5;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
}

#rosterheaderdiv, #useradminheaderdiv, #appadminheaderdiv, #ticketlistheaderdiv, .tableheaderdiv { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }

#rostercontentdiv table tr td, #useradmincontentdiv table tr td, #appadmincontentdiv table tr td, #ticketlistcontentdiv table tr td, .tablecontentdiv table tr td {
	border: 0;
	border-bottom: 1px solid var(--line);
	padding: 9px 8px;
	text-align: center;
}

#rostercontentdiv { border-top: 0; padding: 0px; border-radius: 0 0 var(--radius) var(--radius); }

#useradmincontentdiv, #appadmincontentdiv, #ticketlistcontentdiv { border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }   /* same as the roster tables: rounded bottom corners */

/* Season Best Mythic+: one table with its headings as the first row, rounded like the Raid Roster */
#mplustablediv { border-radius: var(--radius); }
#mplustablediv > table.tableborder { border: 0; border-radius: 0; box-shadow: none; }

#rostercontentdiv.tableborder, #rostercontentdiv:has(> .scrollabletable) { border-radius: var(--radius); }

#rostercontentdiv, #useradmincontentdiv, .tablecontentdiv, #mplustablediv, #ticketlistcontentdiv, #appadmincontentdiv {
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
}

.sort-asc, .sort-desc { background: none !important; }
.sort-asc::after, .sort-desc::after { display: inline-block; margin-left: 5px; color: var(--crust); font-size: 10px; }
.sort-asc::after { content: "\25B2"; }
.sort-desc::after { content: "\25BC"; }

/* WoW class colours ------------------------------------------------- */
.cc-DeathKnight { --cls: #C41E3A; background-color: #C41E3A; color: #FFFFFF; }
.cc-DemonHunter { --cls: #A330C9; background-color: #A330C9; color: #FFFFFF; }
.cc-Druid { --cls: #FF7C0A; background-color: #FF7C0A; color: #1a1a1a; }
.cc-Evoker { --cls: #33937F; background-color: #33937F; color: #FFFFFF; }
.cc-Hunter { --cls: #AAD372; background-color: #AAD372; color: #1a1a1a; }
.cc-Mage { --cls: #3FC7EB; background-color: #3FC7EB; color: #1a1a1a; }
.cc-Monk { --cls: #00FF98; background-color: #00FF98; color: #1a1a1a; }
.cc-Paladin { --cls: #F48CBA; background-color: #F48CBA; color: #1a1a1a; }
.cc-Priest { --cls: #FFFFFF; background-color: #FFFFFF; color: #000000; }
.cc-Rogue { --cls: #FFF468; background-color: #FFF468; color: #1a1a1a; }
.cc-Shaman { --cls: #2b8ef0; background-color: #0070DD; color: #FFFFFF; }
.cc-Warlock { --cls: #8788EE; background-color: #8788EE; color: #1a1a1a; }
.cc-Warrior { --cls: #C69B6D; background-color: #C69B6D; color: #1a1a1a; }

/* table rows coloured by class: tint + class-coloured name instead of a solid block */
tr[class*="cc-"] { background: transparent !important; color: var(--text) !important; }
tr[class*="cc-"] > td { background-color: transparent; color: var(--text); }
tr[class*="cc-"] > td:first-child { box-shadow: inset 4px 0 0 var(--cls); }
tr[class*="cc-"] > td.toonname { color: var(--cls); font-weight: 600; }
tr[class*="cc-"]:hover > td { background-color: rgba(97, 114, 119, .22) !important; }

.cn-DeathKnight { color: #C41E3A; }
.cn-DemonHunter { color: #A330C9; }
.cn-Druid { color: #FF7C0A; }
.cn-Evoker { color: #33937F; }
.cn-Hunter { color: #AAD372; }
.cn-Mage { color: #3FC7EB; }
.cn-Monk { color: #00FF98; }
.cn-Paladin { color: #F48CBA; }
.cn-Priest { color: #FFFFFF; }
.cn-Rogue { color: #FFF468; }
.cn-Shaman { color: #2b8ef0; }
.cn-Warlock { color: #8788EE; }
.cn-Warrior { color: #C69B6D; }

/* ---------------------------------------------------------------------
   Popups / modals
   --------------------------------------------------------------------- */
#greyoutboundingbox, #greyoutboundingbox2, #superselectboundingbox {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0px;
	left: 0px;
	z-index: 5000;
}

#greyout, #greyout2 {
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: #080a0b;
	opacity: 0.72;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

#greyout2 { opacity: 0.75; }

.infopopup {
	position: relative;
	top: 50%;
	transform: translate(0, -50%);
	width: fit-content;
	max-width: calc(100vw - 24px);
	max-height: calc(100vh - 24px);
	max-height: calc(100dvh - 24px);
	overflow: auto;
	border: 1px solid var(--line-strong);
	margin: auto;
	box-shadow: var(--shadow-pop);
	background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 140px), var(--surface);
	border-radius: 16px;
	padding: 18px 22px;
	color: var(--text);
}

.infopopup .pagetitle { font-size: 26px; text-align: center; padding: 2px 0 12px; }

#infopopup table tr { height: 28px; }

#infopopup table td {
	font-size: 14px;
	text-align: left;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
}

.infopopupcontent { padding-left: 5px; padding-right: 5px; }

#registersuccesspopup { width: 350px; max-width: 100%; padding: 0px 5px 0px 5px; }

.pwtoggle {
	width: 19px;
	height: 14px;
	display: absolute;
	top: 50%;
	margin-top: -7px;
	right: 11px;
	left: auto;
	cursor: pointer;
	filter: invert(1) brightness(1.4);
	opacity: .6;
}

.pwtoggle:hover { opacity: 1; }

.pwhide { background-image: url("/img/password-hide.png"); }

.pwshow { background-image: url("/img/password-show.png"); }

.pwfieldbox { position: relative; display: inline-block; max-width: 100%; }

.pwfieldbox input { padding-right: 36px; }

.pwfieldbox div { position: absolute; }

#errordiv {
	padding: 0px 10px 2px 10px;
	border: solid 1px transparent;
	min-height: 22px;
}

.errormessage {
	border: 1px solid rgba(239, 106, 94, .6);
	background-color: rgba(239, 106, 94, .14);
	width: fit-content;
	margin: auto;
	color: #ffb4ab;
	height: auto;
	border-radius: 8px;
	padding: 4px 12px !important;
	font-weight: 600;
}

#resendvalidation {
	color: var(--link);
	border-bottom: solid 1px var(--link);
	cursor: pointer;
}

/* ---------------------------------------------------------------------
   Misc. shared widgets
   --------------------------------------------------------------------- */
.standardtable { background: var(--surface); }
.standardtable tr:nth-child(even) { background: rgba(255, 255, 255, .025); }
.standardtable2 tr:nth-child(even) { background: var(--panel-color); }

#usereditcontainer { width: fit-content; max-width: 100%; margin: auto; }

.fauxtableheader {
	border: 0;
	padding: 10px 8px;
	text-align: center;
	background: var(--slate);
	color: #eef4f5;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.fauxtablecell {
	border: 0;
	border-bottom: 1px solid var(--line);
	padding: 8px 6px;
	text-align: center;
}

#rankadminheaderdiv, #rankadmincontentdiv { width: 340px; max-width: 100%; margin: auto; }

#rankadmincontentdiv { background: var(--surface); border-radius: 0 0 var(--radius-sm) var(--radius-sm); border: 1px solid var(--line); }

#rankadmincontentdiv div:nth-child(even) { background: rgba(255, 255, 255, .035); }

.mvdn, .mvup, .mvud { display: inline; float: right; background: none; box-shadow: none; min-height: 0; padding: 2px 6px; border: 0; }

.showdisable { background: transparent; opacity: 0.3; }

.showenable { background: transparent; }

input.smallinput { height: 26px; padding: 2px 8px; }

#modalpopup { padding: 18px 22px; }

.centerfillbox { width: fit-content; max-width: 100%; margin: auto; font-family: var(--menu-font); }

.pad-5 { padding: 5px; }

.pad-10 { padding: 10px; }

.padlr-5 { padding-left: 5px; padding-right: 5px; }

.textlink, .inlinelink {
	font-weight: 600;
	color: var(--link);
	text-decoration: underline;
	text-decoration-color: rgba(240, 184, 110, .45);
	text-underline-offset: 3px;
	cursor: pointer;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.textlink:hover, .inlinelink:hover { color: var(--crust); text-decoration-color: currentColor; }

.domheader {
	width: calc((var(--content-subwidth) / 7) - 5px);
	border: 0;
	display: inline-block;
	margin: 0px;
	background: var(--slate);
	color: white;
}

.eventtime { font-size: 11px; font-weight: normal; }

.floatleft { position: relative; float: left; clear: left; }

.floatright { position: relative; float: right; clear: right; }

.textleft { text-align: left; }

.textright { text-align: right; }

#eventpopup { padding: 18px 22px; height: fit-content; }

#eventpopuptable {
	border-collapse: separate;
	border-spacing: 0;
	font-size: 14px;
	background-color: var(--surface-2);
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	overflow: hidden;
	margin: 0 auto;
}

#eventpopuptable tr td { border-bottom: 1px solid var(--line); padding: 7px 10px; }
#eventpopuptable tr:last-child td { border-bottom: 0; }

#eventpopuptable tr td:first-child {
	width: 40px;
	white-space: nowrap;
	border-right: 1px solid var(--line);
	vertical-align: top;
	font-weight: 600;
	color: var(--muted);
}

#eventpopuptable tr td:last-child {
	max-width: 450px;
	width: 450px;
	vertical-align: top;
	font-weight: 600;
	color: var(--text-strong);
	text-align: left;
}

#blizzardregisterbutton {
	width: fit-content;
	padding-left: 40px;
	background-image: url("/img/battlenet-icon.png");
	background-repeat: no-repeat;
	background-size: 22px;
	background-position: 11px center;
	background-color: #1e4a8a;
	border-color: #3d6fb8;
	color: #fff;
}

#blizzardregisterbutton:hover:not(:disabled) { background-color: #2a5ea8; border-color: #6a98dc; }

#mytoons {
	height: 120px;
	overflow: auto;
	width: fit-content;
	max-width: 100%;
	margin: auto;
	padding: 6px 10px;
	background-color: var(--input-bg);
	border: 1px solid var(--line-strong);
	border-radius: 10px;
}

#deleteaccountbutton, #eventdeletebutton { background-color: #8f1d14; border-color: #b8342a; color: #fff; }
#deleteaccountbutton:hover:not(:disabled), #eventdeletebutton:hover:not(:disabled) { background-color: #b3261a; }

#eventsubmissiontable { width: 100%; }

#signuplist { width: 487px; max-width: 100%; margin: auto; margin-bottom: 35px; }

#signuplist table {
	margin-top: 5px;
	position: relative;
	table-layout: fixed;
	text-align: center;
	width: 100%;
	border-collapse: separate;
	border-spacing: 4px 0;
}

.signupheader {
	font-size: 15px;
	line-height: 16px;
	border: 0;
	border-bottom: 2px solid var(--crust);
	width: 100%;
	padding: 8px 0px;
	background: var(--surface-2);
	border-radius: 8px 8px 0 0;
	font-weight: 600;
}

.signupheader img { width: 16px; vertical-align: -2px; }

.rolelist {
	width: 100%;
	height: 200px;
	border: 1px solid var(--line);
	border-top: 0;
	border-radius: 0 0 8px 8px;
	background: var(--input-bg);
	overflow-y: auto;
	overflow-x: hidden;
	padding: 5px 0px 5px 0px;
	font-size: 12px;
}

.signupcount { font-size: 14px; }

.subscript { font-size: 10px; }

.inlineloader { height: 16px; }

#signupselect { background-color: var(--input-bg); color: var(--text); }

#signuproleselect { width: 100%; padding: 0px; margin: 0px; }

#signuproleselect li {
	display: inline-block;
	white-space: nowrap;
	width: calc((100% - 20px)/3);
	text-align: center;
	padding-top: 10px;
}

#signuproleselect li img { width: 16px; }

.eventable { table-layout: fixed; }

.leftjustify { text-align: left; }

.rightjustify { text-align: right; }

.centerjustify { text-align: center; }

.toclist { font-size: 18px; font-variant: small-caps; }

#privacycontainer {
	text-align: left;
	padding: 0 28px;
	overflow-x: auto;
	line-height: 1.65;
	color: #d5dcdd;
}

/* ---- AckItsADate date picker: site colours, and keep the site-wide button style off its buttons ----
   ("body .aiad" so these win over the picker's own defaults, whichever stylesheet loads last) */
body .aiad {
	--aiad-bg: var(--surface-2);
	--aiad-fg: var(--text);
	--aiad-muted: var(--muted);
	--aiad-border: var(--line-strong);
	--aiad-hover: var(--surface-3);
	--aiad-head-fg: var(--text-strong);
	--aiad-accent: var(--crust);
	--aiad-accent-fg: #1b1f21;
	--aiad-today: var(--crust);
	--aiad-shadow: 0 14px 40px rgba(0, 0, 0, .55);
	--aiad-radius: 12px;
}
body .aiad button,
body .aiad button:hover:not(:disabled),
body .aiad button:active:not(:disabled),
body .aiad button:active:hover:not(:disabled) {
	min-height: 0;
	margin: 0;
	box-shadow: none;
	transform: none;
	transition: background .12s;
}
body .aiad button:not(.aiad-btn) { border: 0; }
body .aiad button:not(:hover) { background: transparent; }
body .aiad button:hover:not(:disabled) { background: var(--aiad-hover); }
body .aiad .aiad-today-cell { box-shadow: inset 0 0 0 1px var(--aiad-today); }

/* contents links land below the fixed top bar */
#privacycontainer [id^="pp-"] { scroll-margin-top: calc(var(--topbar-height, 64px) + 16px); }

.privsubtitle {
	font-size: 22px;
	font-variant: small-caps;
	font-weight: 600;
	color: var(--crust);
	margin-top: 26px;
	margin-bottom: 6px;
}

.italics { font-style: italic; color: var(--muted); }

.checkboxnotclickable { accent-color: grey; pointer-events: none; }

.checkboxnotclickable:checked { accent-color: #3fae55 !important; }

.smallertext { font-size: 75%; }

/* inline colour spans built by scripts (darkblue was readable on the old light panels) */
[style*="color:darkblue"], [style*="color: darkblue"] { color: var(--link) !important; }

/* Summernote / Bootstrap editor surfaces used by forums, contests, admin e-mail */
.note-editor.note-frame, .note-editor { border: 1px solid var(--line-strong) !important; border-radius: 10px; overflow: hidden; }
.note-toolbar { background: var(--surface-3) !important; border-bottom: 1px solid var(--line) !important; }
.note-btn { background: var(--surface-2) !important; color: var(--text) !important; border-color: var(--line-strong) !important; }
.note-btn:hover { background: var(--slate) !important; }
.note-dropdown-menu, .dropdown-menu { background: var(--surface-2) !important; color: var(--text); border: 1px solid var(--line-strong) !important; }
.note-dropdown-menu a, .dropdown-menu > li > a { color: var(--text) !important; }
.note-statusbar { background: var(--surface-3) !important; }
.modal-content { background: var(--surface) !important; color: var(--text); border: 1px solid var(--line-strong) !important; border-radius: 14px !important; }
.modal-header, .modal-footer { border-color: var(--line) !important; }
.close { color: var(--text) !important; text-shadow: none !important; opacity: .7; }
.form-control { background: var(--input-bg) !important; color: var(--text) !important; border-color: var(--line-strong) !important; }

.note-editable { background-color: var(--input-bg) !important; color: var(--text) !important; text-align: left; }
.note-placeholder { color: #6f7f83 !important; }
.note-editor, .panel-heading { background-color: var(--surface-2) !important; }
.note-input { background-color: var(--input-bg); color: var(--text); }
.modal-footer .text-center { visibility: hidden; }

/* crafting results zebra rows are coloured from script */
#resulttable tr[style*="background-color"] { background-color: transparent !important; }
#resulttable tr:nth-child(even) td { background-color: rgba(255, 255, 255, .025); }

/* Zebra datepicker on dark surfaces */
.Zebra_DatePicker { background: var(--surface-2) !important; border: 1px solid var(--line-strong) !important; border-radius: 10px !important; box-shadow: var(--shadow-pop) !important; }

@-webkit-keyframes wiggle {
  0% {-webkit-transform: rotate(10deg);}
  25% {-webkit-transform: rotate(-10deg);}
  50% {-webkit-transform: rotate(20deg);}
  75% {-webkit-transform: rotate(-5deg);}
  100% {-webkit-transform: rotate(0deg);}
}

@-ms-keyframes wiggle {
  0% {-ms-transform: rotate(1deg);}
  25% {-ms-transform: rotate(-1deg);}
  50% {-ms-transform: rotate(1.5deg);}
  75% {-ms-transform: rotate(-5deg);}
  100% {-ms-transform: rotate(0deg);}
}

@keyframes wiggle {
  0% {transform: rotate(10deg);}
  25% {transform: rotate(-10deg);}
  50% {transform: rotate(20deg);}
  75% {transform: rotate(-5deg);}
  100% {transform: rotate(0deg);}
}

/* -- CSS Loader --*/

.drawing{
    width: 100vw;
    height: 100vh;
    position: relative;
    display: block;
/*    background-color: #3a3a3a; */
}




/* -- Loading thingy --*/
.loading-dot {
    border-radius:100%;
    height:10px;
    width:10px;
    background-color: #ffffff;
    position:absolute;
    left:0;
    right:0;
    margin:auto;
    top:0;
    bottom:0;
    box-shadow: 0px 40px 0px 0px #ffffff,0px -40px 0px 0px #ffffff,40px 0px 0px 0px #ffffff,-40px 0px 0px 0px #ffffff,
    40px 40px 0px 0px #ffffff,-40px -40px 0px 0px #ffffff,40px -40px 0px 0px #ffffff,-40px 40px 0px 0px #ffffff;
    -webkit-animation: load 3s infinite linear;
    -moz-animation: load 3s infinite linear;
    -o-animation: load 3s infinite linear;
    animation:load 3s infinite linear;
}


@-webkit-keyframes load {
  0%   {
    -webkit-transform: translate(0px,0px),rotate(0deg); 
    box-shadow: 0px 40px 0px 0px #ffffff,0px -40px 0px 0px #ffffff,40px 0px 0px 0px #ffffff,-40px 0px 0px 0px #ffffff,
    40px 40px 0px 0px #ffffff,-40px -40px 0px 0px #ffffff,40px -40px 0px 0px #ffffff,-40px 40px 0px 0px #ffffff;
  }

  25%{
    box-shadow: 0px 40px 0px 0px #ffffff,0px -40px 0px 0px #ffffff,40px 0px 0px 0px #ffffff,-40px 0px 0px 0px #ffffff,
    -40px -40px 0px 0px #ffffff,40px 40px 0px 0px #ffffff,-40px 40px 0px 0px #ffffff,40px -40px 0px 0px #ffffff;
  }

  50%{
    box-shadow: 0px -40px 0px 0px #ffffff,0px 40px 0px 0px #ffffff,-40px 0px 0px 0px #ffffff,40px 0px 0px 0px #ffffff,
    -40px -40px 0px 0px #ffffff,40px 40px 0px 0px #ffffff,-40px 40px 0px 0px #ffffff,40px -40px 0px 0px #ffffff;
  }

  70%{
    box-shadow: 0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,
    0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff;
  }

  75%{
    box-shadow: 0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,
    0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff;
    height:10px;
    width:10px;
  }

  80%{
    -webkit-transform: translate(0px,0px) rotate(360deg); 
    box-shadow: 0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,
    0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff;
    background-color: #ffffff;
    height:40px;
    width:40px;
  }

  85%{
    -webkit-transform: translate(0px,0px) rotate(360deg);
    box-shadow: 0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,
    0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff;
    background-color: #ffffff; 
    height:40px;
    width:40px;
  }

  90%{
    -webkit-transform: translate(0px,0px) rotate(360deg); 
    box-shadow: 0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,
    0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff;
    background-color: #ffffff; 
    height:10px;
    width:10px;
  }

  95{
    box-shadow: 0px 40px 0px 0px #ffffff,0px -40px 0px 0px #ffffff,40px 0px 0px 0px #ffffff,-40px 0px 0px 0px #ffffff,
    40px 40px 0px 0px #ffffff,-40px -40px 0px 0px #ffffff,40px -40px 0px 0px #ffffff,-40px 40px 0px 0px #ffffff;
  }

  100%{
    -webkit-transform: rotate(360deg);
    box-shadow: 0px 40px 0px 0px #ffffff,0px -40px 0px 0px #ffffff,40px 0px 0px 0px #ffffff,-40px 0px 0px 0px #ffffff,
    40px 40px 0px 0px #ffffff,-40px -40px 0px 0px #ffffff,40px -40px 0px 0px #ffffff,-40px 40px 0px 0px #ffffff;
  }

}

@-moz-keyframes load {
  0%   {
    -moz-transform: translate(0px,0px),rotate(0deg); 
    box-shadow: 0px 40px 0px 0px #ffffff,0px -40px 0px 0px #ffffff,40px 0px 0px 0px #ffffff,-40px 0px 0px 0px #ffffff,
    40px 40px 0px 0px #ffffff,-40px -40px 0px 0px #ffffff,40px -40px 0px 0px #ffffff,-40px 40px 0px 0px #ffffff;
  }

  25%{
    box-shadow: 0px 40px 0px 0px #ffffff,0px -40px 0px 0px #ffffff,40px 0px 0px 0px #ffffff,-40px 0px 0px 0px #ffffff,
    -40px -40px 0px 0px #ffffff,40px 40px 0px 0px #ffffff,-40px 40px 0px 0px #ffffff,40px -40px 0px 0px #ffffff;
  }

  50%{
    box-shadow: 0px -40px 0px 0px #ffffff,0px 40px 0px 0px #ffffff,-40px 0px 0px 0px #ffffff,40px 0px 0px 0px #ffffff,
    -40px -40px 0px 0px #ffffff,40px 40px 0px 0px #ffffff,-40px 40px 0px 0px #ffffff,40px -40px 0px 0px #ffffff;
  }

  70%{
    box-shadow: 0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,
    0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff;
  }

  75%{
    box-shadow: 0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,
    0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff;
    height:10px;
    width:10px;
  }

  80%{
    -moz-transform: translate(0px,0px) rotate(360deg); 
    box-shadow: 0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,
    0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff;
    background-color: #ffffff;
    height:40px;
    width:40px;
  }

  85%{
    -moz-transform: translate(0px,0px) rotate(360deg);
    box-shadow: 0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,
    0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff;
    background-color: #ffffff; 
    height:40px;
    width:40px;
  }

  90%{
    -moz-transform: translate(0px,0px) rotate(360deg); 
    box-shadow: 0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,
    0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff;
    background-color: #ffffff; 
    height:10px;
    width:10px;
  }

  95{
    box-shadow: 0px 40px 0px 0px #ffffff,0px -40px 0px 0px #ffffff,40px 0px 0px 0px #ffffff,-40px 0px 0px 0px #ffffff,
    40px 40px 0px 0px #ffffff,-40px -40px 0px 0px #ffffff,40px -40px 0px 0px #ffffff,-40px 40px 0px 0px #ffffff;
  }

  100%{
    -moz-transform: rotate(360deg);
    box-shadow: 0px 40px 0px 0px #ffffff,0px -40px 0px 0px #ffffff,40px 0px 0px 0px #ffffff,-40px 0px 0px 0px #ffffff,
    40px 40px 0px 0px #ffffff,-40px -40px 0px 0px #ffffff,40px -40px 0px 0px #ffffff,-40px 40px 0px 0px #ffffff;
  }

}

@keyframes load {
  0%   {
    transform: translate(0px,0px),rotate(0deg); 
    box-shadow: 0px 40px 0px 0px #ffffff,0px -40px 0px 0px #ffffff,40px 0px 0px 0px #ffffff,-40px 0px 0px 0px #ffffff,
    40px 40px 0px 0px #ffffff,-40px -40px 0px 0px #ffffff,40px -40px 0px 0px #ffffff,-40px 40px 0px 0px #ffffff;
  }

  25%{
    box-shadow: 0px 40px 0px 0px #ffffff,0px -40px 0px 0px #ffffff,40px 0px 0px 0px #ffffff,-40px 0px 0px 0px #ffffff,
    -40px -40px 0px 0px #ffffff,40px 40px 0px 0px #ffffff,-40px 40px 0px 0px #ffffff,40px -40px 0px 0px #ffffff;
  }

  50%{
    box-shadow: 0px -40px 0px 0px #ffffff,0px 40px 0px 0px #ffffff,-40px 0px 0px 0px #ffffff,40px 0px 0px 0px #ffffff,
    -40px -40px 0px 0px #ffffff,40px 40px 0px 0px #ffffff,-40px 40px 0px 0px #ffffff,40px -40px 0px 0px #ffffff;
  }

  70%{
    box-shadow: 0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,
    0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff;
  }

  75%{
    box-shadow: 0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,
    0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff;
    height:10px;
    width:10px;
  }

  80%{
    transform: translate(0px,0px) rotate(360deg); 
    box-shadow: 0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,
    0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff;
    background-color: #ffffff;
    height:40px;
    width:40px;
  }

  85%{
    transform: translate(0px,0px) rotate(360deg);
    box-shadow: 0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,
    0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff;
    background-color: #ffffff; 
    height:40px;
    width:40px;
  }

  90%{
    transform: translate(0px,0px) rotate(360deg); 
    box-shadow: 0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,
    0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff;
    background-color: #ffffff; 
    height:10px;
    width:10px;
  }

  95{
    box-shadow: 0px 40px 0px 0px #ffffff,0px -40px 0px 0px #ffffff,40px 0px 0px 0px #ffffff,-40px 0px 0px 0px #ffffff,
    40px 40px 0px 0px #ffffff,-40px -40px 0px 0px #ffffff,40px -40px 0px 0px #ffffff,-40px 40px 0px 0px #ffffff;
  }

  100%{
    transform: rotate(360deg);
    box-shadow: 0px 40px 0px 0px #ffffff,0px -40px 0px 0px #ffffff,40px 0px 0px 0px #ffffff,-40px 0px 0px 0px #ffffff,
    40px 40px 0px 0px #ffffff,-40px -40px 0px 0px #ffffff,40px -40px 0px 0px #ffffff,-40px 40px 0px 0px #ffffff;
  }

}
@-o-keyframes load {
  0%   {
    -o-transforms: translate(0px,0px),rotate(0deg); 
    box-shadow: 0px 40px 0px 0px #ffffff,0px -40px 0px 0px #ffffff,40px 0px 0px 0px #ffffff,-40px 0px 0px 0px #ffffff,
    40px 40px 0px 0px #ffffff,-40px -40px 0px 0px #ffffff,40px -40px 0px 0px #ffffff,-40px 40px 0px 0px #ffffff;
  }

  25%{
    box-shadow: 0px 40px 0px 0px #ffffff,0px -40px 0px 0px #ffffff,40px 0px 0px 0px #ffffff,-40px 0px 0px 0px #ffffff,
    -40px -40px 0px 0px #ffffff,40px 40px 0px 0px #ffffff,-40px 40px 0px 0px #ffffff,40px -40px 0px 0px #ffffff;
  }

  50%{
    box-shadow: 0px -40px 0px 0px #ffffff,0px 40px 0px 0px #ffffff,-40px 0px 0px 0px #ffffff,40px 0px 0px 0px #ffffff,
    -40px -40px 0px 0px #ffffff,40px 40px 0px 0px #ffffff,-40px 40px 0px 0px #ffffff,40px -40px 0px 0px #ffffff;
  }

  70%{
    box-shadow: 0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,
    0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff;
  }

  75%{
    box-shadow: 0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,
    0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff;
    height:10px;
    width:10px;
  }

  80%{
    -o-transforms: translate(0px,0px) rotate(360deg); 
    box-shadow: 0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,
    0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff;
    background-color: #ffffff;
    height:40px;
    width:40px;
  }

  85%{
    -o-transforms: translate(0px,0px) rotate(360deg);
    box-shadow: 0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,
    0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff;
    background-color: #ffffff; 
    height:40px;
    width:40px;
  }

  90%{
    -o-transforms: translate(0px,0px) rotate(360deg); 
    box-shadow: 0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,
    0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff,0px 0px 0px 0px #ffffff;
    background-color: #ffffff; 
    height:10px;
    width:10px;
  }

  95{
    box-shadow: 0px 40px 0px 0px #ffffff,0px -40px 0px 0px #ffffff,40px 0px 0px 0px #ffffff,-40px 0px 0px 0px #ffffff,
    40px 40px 0px 0px #ffffff,-40px -40px 0px 0px #ffffff,40px -40px 0px 0px #ffffff,-40px 40px 0px 0px #ffffff;
  }

  100%{
    -o-transforms: rotate(360deg);
    box-shadow: 0px 40px 0px 0px #ffffff,0px -40px 0px 0px #ffffff,40px 0px 0px 0px #ffffff,-40px 0px 0px 0px #ffffff,
    40px 40px 0px 0px #ffffff,-40px -40px 0px 0px #ffffff,40px -40px 0px 0px #ffffff,-40px 40px 0px 0px #ffffff;
  }

}


/* =====================================================================
   Shared page components
   ===================================================================== */

/* title row with search + refresh (rosters, mythic+) */
.pagetitlebox {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin-bottom: 12px;
	text-align: left;
}

.pagetitlebox .pagetitle { width: auto; flex: 1 1 auto; margin: 0; padding: 0; display: block; }

.pagetitlebox #refresh { order: 3; float: none; margin: 0; }

.pagetitlebox #timestamp { order: 4; flex-basis: 100%; margin: -4px 0 0; }

#rostercount, #searchcount {
	font-family: var(--menu-font);
	font-size: 14px;
	font-weight: 600;
	color: var(--crust);
	text-shadow: none;
	letter-spacing: 0;
	vertical-align: middle;
	margin-left: 6px;
}

#rostercount img { vertical-align: -4px; }

/* phones: the count goes on its own line under the page title, and a search's "N shown" at the
   right end of the count's last line */
/* Crafting item details as a panel: phones, and on Forever Crafting every touch screen (tablets, phones
   turned sideways). Tap a name to open it, tap outside to close it; it scrolls if it is long. */
#crafterlistpopup.bc-sheet { position: fixed; top: calc(var(--topbar-height) + 8px) !important; left: 8px !important; right: 8px; width: auto;
	max-width: none; max-height: calc(100vh - var(--topbar-height) - 16px); overflow-y: auto; z-index: 1000;
	box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55), var(--shadow-pop); }   /* dims the page behind; tap outside to close */
#crafterlistpopup.bc-sheet > table, #crafterlistpopup.bc-sheet > table > tbody, #crafterlistpopup.bc-sheet > table > tbody > tr,
#crafterlistpopup.bc-sheet > table > tbody > tr > td { display: block; width: 100%; }
#crafterlistpopup.bc-sheet .tooltipdiv { width: auto; margin: 0 0 10px; min-height: 0; }
#crafterlistpopup.bc-sheet #crafterlist { width: auto; }
/* Forever names are longer (up to 25 characters): one column of them if two don't fit */
.bc-page-forevercrafting #crafterlistpopup.bc-sheet #crafterlist { min-width: 0; grid-template-columns: repeat(auto-fill, minmax(25ch, 1fr)); }
.bc-page-forevercrafting #crafterlistpopup.bc-sheet .craftercell { white-space: normal; }
#crafterlistpopup.bc-sheet .previewimg, #crafterlistpopup.bc-sheet .previewimg img { width: 100%; }

@media (max-width: 760px) {
	#rostercount { display: block; position: relative; margin-left: 0; line-height: 24px; }
	#rostercount:has(#searchcount) { padding-right: 84px; }   /* room for "N shown" */
	#rostercount .rc-desk { display: none; }
	#rostercount .rc-line { display: block; }
	#searchcount { position: absolute; right: 0; bottom: 0; margin-left: 0; line-height: 24px; white-space: nowrap; }
	#searchcount .sc-sep { display: none; }
}

#timestamp { margin-top: 8px; font-size: 13px; color: var(--muted); }

#pagetitlesearchbox {
	order: 2;
	position: relative;
	float: none;
	display: flex;
	align-items: center;
	font-size: 100%;
}

#pagetitlesearchbox #searchbox { width: 270px; padding-right: 64px; }

#searchicon {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: auto;
	cursor: pointer;
	padding: 0;
	margin: 0;
	filter: invert(1) brightness(.85);
	opacity: .75;
}

#clearicon {
	position: absolute;
	right: 36px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: auto;
	cursor: pointer;
	filter: invert(1);
	opacity: .6;
}

#searchicon:hover, #clearicon:hover { opacity: 1; }

/* small context menus that open from table rows */
#popupmenu, #mpluspopup {
	position: absolute;
	z-index: 200;
	min-width: 180px;
	width: fit-content;
	background: var(--surface-2);
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	box-shadow: var(--shadow-pop);
	overflow: hidden;
	text-align: left;
	padding-bottom: 4px;
}

.popupheader, .mptitle {
	background: var(--slate);
	color: #fff;
	font-weight: 600;
	padding: 8px 12px;
	border: 0;
	margin-bottom: 4px;
}

.mptitle { font-size: 13px; }

.popupoption, .dungeonentry {
	padding: 7px 12px;
	cursor: pointer;
	margin: 0 4px;
	border-radius: 7px;
}

.popupoption:hover, .dungeonentry:hover { background: var(--surface-3); color: #fff; }

/* bread-crust section banners (FAQ, contests, forums) */
.sectiontitle, .bc-page-forums .forumcategory {
	font-family: var(--title-font) !important;
	font-weight: normal !important;
	font-size: 24px !important;
	color: #fff !important;
	text-align: left;
	padding: 8px 16px !important;
	border: 1px solid rgba(227, 164, 88, .45) !important;
	border-radius: 12px !important;
	background:
		linear-gradient(90deg, rgba(27, 31, 33, .88), rgba(27, 31, 33, .55) 55%, rgba(27, 31, 33, .2)),
		url("/img/texture-bread1.png") left center / 700px repeat-x !important;
	text-shadow: 0 2px 8px rgba(0, 0, 0, .8) !important;
	-webkit-text-stroke-width: 0 !important;
	filter: none !important;
	box-shadow: var(--shadow);
	margin-bottom: 10px !important;
}

/* ---- phone: guild & raid roster rows become cards; headers become sort chips ---- */
@media (max-width: 760px) {
	.bc-page-guildroster #rostercontentdiv, .bc-page-raidroster #rostercontentdiv {
		background: transparent; border: 0; box-shadow: none; overflow: visible; border-radius: 0;
	}
	.bc-page-guildroster #rostercontent, .bc-page-raidroster #rostercontent,
	.bc-page-guildroster #rostercontent > tbody, .bc-page-raidroster #rostercontent > tbody { display: block; background: transparent; }

	.bc-page-guildroster #rostercontent tr.scrollabletableheader, .bc-page-raidroster #rostercontent tr.scrollabletableheader {
		display: flex; gap: 8px; overflow-x: auto; position: static !important; background: transparent;
		margin: 0 -14px 12px; padding: 0 14px 4px; scrollbar-width: none;
	}
	.bc-page-guildroster #rostercontent tr.scrollabletableheader th, .bc-page-raidroster #rostercontent tr.scrollabletableheader th {
		display: block; flex-shrink: 0; width: auto !important;
		border-radius: 999px !important; padding: 8px 13px;
		background: var(--surface-2) !important; border: 1px solid var(--line-strong) !important;
		text-transform: none; letter-spacing: 0; font-size: 13px; color: #cfd8da;
	}
	.bc-page-guildroster #rostercontent tr.scrollabletableheader th:has(.sort-asc, .sort-desc),
	.bc-page-raidroster #rostercontent tr.scrollabletableheader th:has(.sort-asc, .sort-desc) {
		background: rgba(227, 164, 88, .15) !important; border-color: rgba(227, 164, 88, .5) !important; color: var(--crust);
	}
	.bc-page-guildroster #rostercontent th#header-0,
	.bc-page-raidroster #rostercontent tr.scrollabletableheader th:not(:has(.sortHandle)) { display: none; }

	.bc-page-guildroster #rostercontent tr:not(.scrollabletableheader), .bc-page-raidroster #rostercontent tr:not(.scrollabletableheader) {
		display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px;
		padding: 12px 14px; margin-bottom: 10px;
		background: var(--surface) !important;
		border: 1px solid var(--line); border-left: 4px solid var(--cls, var(--slate));
		border-radius: 14px; box-shadow: var(--shadow);
	}
	.bc-page-guildroster #rostercontent tr:not(.scrollabletableheader)::before, .bc-page-guildroster #rostercontent tr:not(.scrollabletableheader)::after,
	.bc-page-raidroster #rostercontent tr:not(.scrollabletableheader)::before, .bc-page-raidroster #rostercontent tr:not(.scrollabletableheader)::after {
		content: ""; flex-basis: 100%; height: 0;
	}
	.bc-page-guildroster #rostercontent tr:not(.scrollabletableheader)::before, .bc-page-raidroster #rostercontent tr:not(.scrollabletableheader)::before { order: 3; }
	.bc-page-guildroster #rostercontent tr:not(.scrollabletableheader)::after, .bc-page-raidroster #rostercontent tr:not(.scrollabletableheader)::after { order: 9; }

	.bc-page-guildroster #rostercontent td, .bc-page-raidroster #rostercontent td {
		display: block; padding: 0 !important; border: 0 !important; width: auto !important;
		background: transparent !important; box-shadow: none !important;
		text-align: left; font-size: 13px; color: var(--muted); white-space: nowrap;
	}
	.bc-page-guildroster #rostercontent td.toonname, .bc-page-raidroster #rostercontent td.toonname {
		order: 1; flex: 1 1 auto; font-size: 16px; color: var(--cls, #fff); white-space: normal;
	}
	.bc-page-guildroster #rostercontent tr#emptytable td, .bc-page-raidroster #rostercontent tr#emptytable td { flex: 1; text-align: center; }

	/* guild roster cells: # | name | realm | [owner] | level | race | class | ilvl | m+ | rank */
	.bc-page-guildroster #rostercontent td:first-child { display: none; }
	.bc-page-guildroster #rostercontent td:last-child {
		order: 2; font-size: 12px; font-weight: 600; color: #dfe7e9;
		padding: 3px 10px !important; border-radius: 999px;
		background: rgba(97, 114, 119, .32) !important; border: 1px solid rgba(129, 146, 151, .5) !important;
	}
	.bc-page-guildroster #rostercontent td:nth-last-child(5) { order: 4; }
	.bc-page-guildroster #rostercontent td:nth-last-child(4) { order: 5; }
	.bc-page-guildroster #rostercontent td.toonrealm { order: 6; }
	.bc-page-guildroster #rostercontent td:nth-last-child(6) { order: 7; }
	.bc-page-guildroster #rostercontent td.toonrealm + td:not(:nth-last-child(6)) { order: 8; }
	.bc-page-guildroster #rostercontent td:nth-last-child(4)::before,
	.bc-page-guildroster #rostercontent td.toonrealm::before { content: "\00b7\00a0"; }
	.bc-page-guildroster #rostercontent td:nth-last-child(6)::before { content: "\00b7\00a0Lvl\00a0"; }
	.bc-page-guildroster #rostercontent td.toonrealm + td:not(:nth-last-child(6))::before { content: "\00b7\00a0Owner:\00a0"; }
	.bc-page-guildroster #rostercontent td:nth-last-child(3) { order: 10; color: var(--text); font-weight: 600; }
	.bc-page-guildroster #rostercontent td:nth-last-child(3)::before { content: "iLvl\00a0"; color: var(--muted); font-weight: 500; }
	.bc-page-guildroster #rostercontent td:nth-last-child(2) { order: 11; margin-left: auto; font-size: 15px; font-weight: 700; color: var(--cls, #fff); }
	.bc-page-guildroster #rostercontent td:nth-last-child(2)::before { content: "M+\00a0"; font-size: 12px; font-weight: 500; color: var(--muted); }

	/* raid roster cells: role | name | realm | race | class | runs | ilvl | m+ */
	.bc-page-raidroster #rostercontent td:nth-child(1) {
		order: 2; font-size: 12px; color: #dfe7e9;
		padding: 3px 10px !important; border-radius: 999px;
		background: rgba(97, 114, 119, .32) !important; border: 1px solid rgba(129, 146, 151, .5) !important;
	}
	.bc-page-raidroster #rostercontent td:nth-child(1) img { height: 15px !important; vertical-align: -3px; margin-right: 4px; }
	.bc-page-raidroster #rostercontent td:nth-child(4) { order: 4; }
	.bc-page-raidroster #rostercontent td:nth-child(5) { order: 5; }
	.bc-page-raidroster #rostercontent td:nth-child(3) { order: 6; }
	.bc-page-raidroster #rostercontent td:nth-child(5)::before, .bc-page-raidroster #rostercontent td:nth-child(3)::before { content: "\00b7\00a0"; }
	.bc-page-raidroster #rostercontent td:nth-child(6) { order: 10; }
	.bc-page-raidroster #rostercontent td:nth-child(6)::before { content: "M+ runs\00a0"; }
	.bc-page-raidroster #rostercontent td:nth-child(7) { order: 11; color: var(--text); font-weight: 600; }
	.bc-page-raidroster #rostercontent td:nth-child(7)::before { content: "\00b7\00a0iLvl\00a0"; color: var(--muted); font-weight: 500; }
	.bc-page-raidroster #rostercontent td:nth-child(8) { order: 12; margin-left: auto; font-size: 15px; font-weight: 700; color: var(--cls, #fff); }
	.bc-page-raidroster #rostercontent td:nth-child(8)::before { content: "M+\00a0"; font-size: 12px; font-weight: 500; color: var(--muted); }

	/* title rows */
	.pagetitlebox .pagetitle { flex-basis: 100%; }
	#pagetitlesearchbox { flex: 1; }
	#pagetitlesearchbox #searchbox { width: 100%; }
}


/* =====================================================================
   Responsive
   ===================================================================== */

@media (max-width: 1240px) {
	#guildsubtitle, .bc-realm { display: none; }
	.bc-topbar-inner { gap: 14px; padding: 0 18px; }
	.menuitem > span, .menuitem > .dropdown > span { padding: 9px 10px; }
}
/* Below about 1460px the full-size menu and both game badges don't fit: tighten the spacing
   (and anything that still doesn't fit goes into the ☰ More menu - bcFitMenu in breadco.js) */
@media (min-width: 761px) and (max-width: 1459px) {
	.bc-topbar-inner { gap: 10px; padding: 0 14px; }
	.menuitem { font-size: 14px; }
	.menuitem > span, .menuitem > .dropdown > span { padding: 9px 8px; gap: 4px; }
	.bc-topbar-right { gap: 10px; }
	#wowlogo, #wowforeverlogo { height: 34px; }
}

/* ---- Phone: navigation becomes a slide-in drawer ---- */
@media (max-width: 760px) {
	#titlebar { -webkit-backdrop-filter: none; backdrop-filter: none; background: #181c1e; }
	.bc-burger { display: grid; }
	.bc-topbar-inner { align-items: center; }

	#bc-navscrim {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(4, 6, 7, .6);
		opacity: 0;
		pointer-events: none;
		transition: opacity .2s;
		z-index: 1;
	}
	body.bc-nav-open #bc-navscrim { opacity: 1; pointer-events: auto; }

	#menucontainer {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(86vw, 340px);
		flex: none;
		z-index: 2;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		background: var(--surface);
		border-left: 1px solid var(--line-strong);
		box-shadow: -20px 0 40px rgba(0, 0, 0, .5);
		padding: 12px 12px 28px;
		overflow-y: auto;
		transform: translateX(105%);
		visibility: hidden;
		transition: transform .25s ease, visibility 0s linear .25s;
	}
	body.bc-nav-open #menucontainer { transform: none; visibility: visible; transition: transform .25s ease; }

	.bc-drawerhead {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 4px 4px 12px 8px;
		margin-bottom: 8px;
		border-bottom: 1px solid var(--line);
	}
	.bc-drawertitle { font-family: var(--title-font); font-size: 24px; color: #fff; }
	.bc-iconbtn { display: grid; }

	.bc-nav { flex-direction: column; align-items: stretch; gap: 2px; }
	.menuitem { font-size: 16px; text-align: left; }
	.menuitem > span, .menuitem > .dropdown > span { padding: 13px 12px; justify-content: space-between; }
	.menuitem > .dropdown { display: block; width: 100%; }
	.menuitem.bc-active > span::after, .menuitem.bc-active > .dropdown > span::after { display: none; }
	.menuitem.bc-active > span, .menuitem.bc-active > .dropdown > span { box-shadow: inset 3px 0 0 var(--crust); }

	#menucontainer .dropdown-content {
		position: static;
		min-width: 0;
		margin: 2px 0 8px 14px;
		padding: 2px 0 2px 10px;
		border: 0;
		border-left: 1px solid var(--line-strong);
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}
	#menucontainer .dropdown-content a { padding: 11px 12px; font-size: 15px; color: #c8d2d4; white-space: normal; }
	#menucontainer .dropdown-content a:hover, #menucontainer .dropdown-content a.bc-current { color: #fff; }
}

/* ---- Phone ---- */
@media (max-width: 760px) {
	:root { --topbar-height: 58px; }

	body { overflow: visible; background-attachment: scroll; }

	#titlebar { position: sticky; top: 0; }
	.bc-topbar-inner { padding: 0 12px; gap: 10px; }
	#breadcologo, #guildname img { height: 20px; }
	#wowlogo, #wowforeverlogo { height: 26px; }
	.bc-topbar-right { gap: 6px; }
	.bc-username, #useridlink .bc-chev { display: none; }
	#useridlink { padding: 3px; }
	.bc-approvalflag { width: 34px; height: 34px; }
	.bc-loginlink { padding: 7px 12px; font-size: 14px; }
}
/* Narrow phones: smaller logo and badges so Log In and the menu button still fit */
@media (max-width: 420px) {
	.bc-topbar-inner { padding: 0 8px; gap: 6px; }
	#breadcologo, #guildname img { height: 17px; }
	#wowlogo, #wowforeverlogo { height: 22px; }
	.bc-topbar-right { gap: 5px; }
	.bc-approvalflag { width: 30px; height: 30px; }
	.bc-approvalflag svg { width: 17px; height: 17px; }
	.bc-loginlink { padding: 6px 9px; font-size: 13px; }
}
@media (max-width: 345px) {
	#wowlogo, #wowforeverlogo { display: none; }   /* very small screens: badges give way to the buttons */
}
/* ---- Phone (continued) ---- */
@media (max-width: 760px) {

	/* normal page flow instead of the desktop fixed-height shell */
	#infodiv, .resizable {
		height: auto !important;
		min-height: calc(100vh - var(--topbar-height));
		width: 100% !important;
		max-width: none;
		margin: 0;
		padding: 14px 14px 0;
		overflow: visible;
		display: flex;
		flex-direction: column;
	}
	.scalablecontent, .resizablecontent { height: auto !important; max-height: none !important; }
	.scalablecontent.scrollable, .scrollable.scalablecontent { overflow-x: auto; overflow-y: hidden; }

	#footerinfo {
		position: static;
		width: auto;
		margin: auto -14px 0;               /* reach the screen edges past the page padding */
		padding: 22px 14px calc(18px + env(safe-area-inset-bottom));
		gap: 8px 22px;
	}

	#buttondivbottom, .buttondivbottom {
		position: sticky;
		bottom: 0;
		z-index: 40;
		margin: 14px -14px 0;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
		background: #181c1e;
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
		border-top: 1px solid var(--line);
		order: 50;
	}
	#footerinfo { order: 60; }
	#buttondivbottom button, .buttondivbottom button { min-width: 0; flex: 1 1 auto; }

	.pagetitle { font-size: 28px; padding: 4px 0 12px; }
	.infopopup .pagetitle { font-size: 22px; }

	input, select, textarea { font-size: 16px; }
	button { min-height: 42px; }

	#buttondiv button, .buttondiv button, .buttondiv2 button, .buttondivfit button { min-width: 0 !important; flex: 1 1 auto; }

	/* popups */
	.infopopup { width: calc(100vw - 20px); max-width: calc(100vw - 20px); padding: 16px 14px; border-radius: 14px; }
	.infopopup table { max-width: 100%; }
	.infopopup input:not([type="checkbox"]):not([type="radio"]), .infopopup select { max-width: 100%; }
	.infopopup textarea { width: 100% !important; }
	#eventpopuptable tr td:last-child { width: auto; max-width: none; }

	/* login-type forms: stack labels above fields */
	#registerbox, .bc-page-verify #loginbox { padding: 16px 14px; width: 100%; }
	#registerbox table, .bc-page-verify #loginbox table, #pwchangetable, #configtable { width: 100%; }
	#registerbox table tr, .bc-page-verify #loginbox table tr { display: flex; flex-direction: column; }
	#registerbox table tr td, .bc-page-verify #loginbox table tr td { display: block; width: 100%; text-align: left !important; padding: 0 !important; }
	#registerbox table tr td:first-child, .bc-page-verify #loginbox table tr td:first-child { padding-top: 6px !important; }
	#registerbox input, #registerbox .pwfieldbox, .bc-page-verify #loginbox input, .bc-page-verify #loginbox .pwfieldbox { width: 100%; }
	#registerbox .validationline td:first-child { display: none; }

	/* tables scroll sideways inside their card */
	#rostercontentdiv, #useradmincontentdiv, .tablecontentdiv, #mplustablediv, #ticketlistcontentdiv, #appadmincontentdiv { -webkit-overflow-scrolling: touch; }
	.scrollabletable tr th, .scrollabletable td { white-space: nowrap; }

	/* split header/content tables scroll together as one block */
	#rosterheaderdiv, #useradminheaderdiv, .tableheaderdiv { overflow-x: auto; }
}

/* ---- Phone: page-specific fit-to-width fixes ---- */
@media (max-width: 760px) {
	/* never let one over-wide element zoom the whole page out */
	html, body { overflow-x: clip; }
	body { overflow-wrap: anywhere; }

	/* pages that centre blocks with margin:auto must not be pushed down in the column layout */
	#infodiv > :not(#footerinfo):not(#buttondivbottom):not(.buttondivbottom) { margin-top: 0 !important; margin-bottom: 0; }
	#infodiv > .fixedsize:not(.pagetitle):not(.pagetitlebox), #infodiv > .scalablecontent { margin-bottom: 10px; }

	/* split header/body tables (admin lists, support, professions) shrink to fit instead of overflowing */
	#rosterheaderdiv, #useradminheaderdiv, .tableheaderdiv, #appadminheaderdiv, #ticketlistheaderdiv { overflow: hidden; }
	#rosterheaderdiv table, #rostercontentdiv table.eventable, #rostercontentdiv > #rostercontent:not(.scrollabletable),
	#useradminheaderdiv table, #useradmincontentdiv table, .tableheaderdiv table, .tablecontentdiv table,
	#appadminheaderdiv table, #appadmincontentdiv table, #ticketlistheader, #ticketlistcontent {
		width: 100% !important;
		table-layout: fixed;
	}
	#rosterheaderdiv th, #useradminheaderdiv th, .tableheaderdiv th, #appadminheaderdiv th, #ticketlistheader th,
	#rostercontentdiv table:not(.scrollabletable) td, #useradmincontentdiv td, .tablecontentdiv td, #appadmincontentdiv td, #ticketlistcontent td {
		white-space: normal !important;
		overflow-wrap: break-word;
		font-size: 12px;
		text-transform: none;
		padding-left: 4px !important;
		padding-right: 4px !important;
		letter-spacing: 0;
	}
	#ticketlistheader th[width], #ticketlistcontent td[width] { width: auto; }
	#ticketlistheader th:first-child, #ticketlistcontent td:first-child { width: 30px; }
	#useradmincontentdiv td[style*="width"], #rostercontentdiv td[style*="width"], #appadmincontentdiv td[style*="width"] { width: auto !important; }
	#useradmincontentdiv td:first-child, #useradminheaderdiv th:first-child,
	.bc-page-guildrosteradmin #rostercontentdiv td:first-child, .bc-page-guildrosteradmin #rosterheaderdiv th:first-child,
	.bc-page-communityrosteradmin #rostercontentdiv td:first-child, .bc-page-communityrosteradmin #rosterheaderdiv th:first-child,
	#appadmincontentdiv td:first-child, #appadminheaderdiv th:first-child { width: 28px !important; }

	/* wide raid-admin table keeps horizontal scrolling inside its card */
	.bc-page-raidrosteradmin #rostercontentdiv { overflow-x: auto; }

	/* application form */
	.appsection { width: 100% !important; }
	.appdata input, .appdata textarea, .appdata select { width: 100% !important; }

	/* recruiting config */
	.bc-page-recruitingadmin .section { width: 100% !important; }
	.bc-page-recruitingadmin .section tr th:first-child, .bc-page-recruitingadmin .section tr td:first-child { width: auto !important; }
	.bc-page-recruitingadmin .section th, .bc-page-recruitingadmin .section td { width: 52px; }

	/* crafting search: filters stack above results */
	#searchnav { float: none !important; width: 100% !important; height: auto !important; margin: 0 0 12px !important; }
	#results { height: auto !important; overflow: visible !important; }
	#resultlist { height: auto !important; overflow-x: auto !important; overflow-y: visible !important; }
	#resulttable tr td:nth-child(n+3), #resulttable tr th:nth-child(n+3) { width: auto !important; }
	#crafterlistpopup { max-width: calc(100vw - 16px); left: 8px !important; }

	/* crafting pages (Crafting, Forever Crafting): each result is a compact card instead of a table
	   row -- icon on the left, the name, then one line of details (profession, class, sub-class, slot,
	   tier). The header row becomes a row of sort buttons. 15 cards a page (the pager under them);
	   tapping a name opens its details as a panel (.bc-sheet). */
	#resultlist { padding: 0 !important; overflow: visible !important; }
	#resulttable, #resulttable tbody { display: block; border: 0 !important; background: none !important; }
	#resulttable tr.scrollabletableheader { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 8px 10px; background: none !important; }
	#resulttable tr.scrollabletableheader th { position: static !important; display: block; width: auto !important; height: auto !important; padding: 0 !important; background: none !important; border: 0 !important; }
	#resulttable tr.scrollabletableheader th:first-child { display: none; }
	#resulttable tr.scrollabletableheader .sortHandle { padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: 12px; }
	#resulttable tr[data-i] { display: block; position: relative; min-height: 62px; margin: 0 8px 8px; padding: 9px 12px 9px 64px; text-align: left;
		border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
	#resulttable tr[data-i] td { width: auto !important; height: auto !important; padding: 0 !important; border: 0 !important; background: none !important; text-align: left !important; }
	#resulttable tr[data-i] td:nth-child(1) { position: absolute; left: 12px; top: 10px; }
	#resulttable tr[data-i] td:nth-child(1) .itemicon { margin: 0; width: 40px; height: 40px; }
	#resulttable tr[data-i] td:nth-child(2) { display: block; margin-bottom: 3px; font-size: 16px; line-height: 1.3; }
	#resulttable tr[data-i] td:nth-child(n+3) { display: inline; font-size: 13px; color: var(--muted); white-space: nowrap; }
	#resulttable tr[data-i] td:nth-child(n+3):not(:last-child)::after { content: "\00a0\00b7\00a0\200b"; }   /* " · ", may wrap after it */
	#resultpager.bc-on { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 8px 10px; }
	#resultpager button { min-width: 92px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-3); color: var(--text); }
	#resultpager button:disabled { opacity: .35; }
	#resultpager span { font-size: 14px; color: var(--muted); }

	/* guild stats cards & raid progress blocks */
	.bc-page-guildstats .card, .bc-page-guildstats .card-wide { width: 100% !important; margin: 0 0 12px !important; height: 360px !important; }
	.raidblock, .xpacheader { width: 100% !important; margin: 0 0 12px !important; }

	/* support ticket popup */
	#supportentrytable { width: 100% !important; }

	/* calendar title row */
	.bc-page-calendar #calmonth { flex: 0 1 auto; }
}

/* ---- "What's new" ticker (login page; bcRenderTicker() in includes/functions.php) ---- */
#bcticker {
	display: flex;
	align-items: stretch;
	width: min(100%, 1100px);
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	margin: 4px auto 0;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	background: var(--input-bg);
	overflow: hidden;
	box-shadow: var(--drop-shadow);
}
#bcticker .bc-tickerlabel {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	padding: 0 14px;
	background: linear-gradient(var(--crust), var(--crust-deep));
	color: var(--crust-ink);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
}
#bcticker .bc-tickerwindow {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}
#bcticker .bc-tickertrack {
	display: flex;
	width: max-content;
	animation: bc-ticker var(--ticker-seconds, 40s) linear infinite;
}
#bcticker:hover .bc-tickertrack, #bcticker:focus-within .bc-tickertrack { animation-play-state: paused; }
#bcticker .bc-tickerset { display: flex; flex: 0 0 auto; }
#bcticker .bc-tick {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 26px 10px 0;
	white-space: nowrap;
	color: var(--text);
	font-size: 14px;
}
#bcticker .bc-tick::before { content: "\25C6"; color: var(--crust-deep); font-size: 9px; margin-right: 16px; }
#bcticker .bc-ticktag {
	padding: 2px 8px;
	border-radius: 999px;
	border: 1px solid rgba(227,164,88,.45);
	color: var(--crust);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}
@keyframes bc-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 760px) {
	#bcticker { align-self: stretch; margin: 0 10px; width: auto; max-width: calc(100% - 20px); }
	#bcticker .bc-tickerlabel { padding: 0 10px; font-size: 11px; }
	#bcticker .bc-tick { font-size: 13px; }
}
/* In the footer (visitors who aren't logged in): ticker on the left, links on the right */
#footerinfo.bc-withticker {
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding-top: 8px;
	padding-bottom: 9px;
}
#footerinfo.bc-withticker #bcticker { flex: 1 1 auto; width: auto; max-width: none; margin: 0; box-shadow: none; }
#footerinfo.bc-withticker #bcticker .bc-tick { padding-top: 6px; padding-bottom: 6px; font-size: 13px; }
#footerinfo.bc-withticker .bc-footerlinks { flex: 0 0 auto; display: flex; gap: 6px 22px; white-space: nowrap; }
@media (max-width: 760px) {
	#footerinfo.bc-withticker { flex-wrap: wrap; justify-content: center; padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); }
	#footerinfo.bc-withticker #bcticker { flex-basis: 100%; align-self: auto; margin: 0; max-width: 100%; }
	#footerinfo.bc-withticker .bc-footerlinks { justify-content: center; }
}
/* No motion wanted: show the announcements as a still list instead of a crawl */
@media (prefers-reduced-motion: reduce) {
	#bcticker { align-items: stretch; }
	#bcticker .bc-tickerwindow { -webkit-mask-image: none; mask-image: none; }
	#bcticker .bc-tickertrack { animation: none; width: auto; }
	#bcticker .bc-tickerset { flex-direction: column; flex: 1 1 auto; padding: 4px 0; }
	#bcticker .bc-tickerset[aria-hidden] { display: none; }
	#bcticker .bc-tick { white-space: normal; padding: 6px 14px; }
	#bcticker .bc-tick::before { display: none; }
}

/* ---- "More" menu: top-menu items that don't fit (bcFitMenu in breadco.js) ---- */
.bc-nav > li.bc-ovf { display: none !important; }
.bc-more .dropdown-content { left: auto; right: 0; min-width: 190px; overflow: visible; }
.bc-more .bc-moregroup { position: relative; }
.bc-more .bc-moregrouplabel { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.bc-more .bc-moregrouplabel .bc-chev { transform: rotate(90deg); transition: transform .15s; }   /* points to where its links open */
.bc-more .bc-moregroup.bc-active > .bc-moregrouplabel { color: #fff; box-shadow: inset 3px 0 0 var(--crust); }
/* a group's links open to the left of the More menu, like a drop-down from the top bar */
.bc-more .bc-moreflyout {
	display: none;
	position: absolute;
	top: -7px;
	right: calc(100% + 6px);
	min-width: 200px;
	padding: 6px;

	background-color: var(--surface-2, #262c2e);
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	box-shadow: var(--shadow-pop, 0 16px 40px rgba(0,0,0,.5));
}
.bc-more .bc-moreflyout::after { content: ""; position: absolute; top: 0; bottom: 0; right: -8px; width: 8px; }   /* bridge so the pointer can cross the gap */
.bc-more .bc-moregroup.bc-open > .bc-moreflyout { display: block; }
.bc-more .bc-moregroup.bc-open > .bc-moregrouplabel { background: rgba(97, 114, 119, .3); color: #fff; }
@media (hover: hover) {
	.bc-more .bc-moregroup:hover > .bc-moreflyout { display: block; }
	.bc-more .bc-moregroup:hover > .bc-moregrouplabel { background: rgba(97, 114, 119, .3); color: #fff; }
}
.bc-more .bc-moredisabled { color: var(--muted); opacity: .55; cursor: default; }
.bc-more .bc-moredisabled:hover { background: transparent; }
@media (max-width: 760px) { .bc-more { display: none !important; } }

/* =====================================================================
   Desktop: the whole page scrolls (scroll bar at the window's edge).
   The top bar stays at the top, the footer bar at the bottom, and table
   headings stick just under the top bar. Phones already work this way.
   The calendar and the Crafting Search pages (retail and Forever) keep their fit-the-window layout (the
   calendar's day rows and the crafting filter/results panels are sized to
   the window), so they're left out.
   ===================================================================== */
@media (min-width: 761px) {
	#titlebar { position: sticky; top: 0; }

	body:not(.bc-page-calendar):not(.bc-page-craftingsearch):not(.bc-page-forevercrafting) #infodiv,
	body:not(.bc-page-calendar):not(.bc-page-craftingsearch):not(.bc-page-forevercrafting) .resizable {
		height: auto !important;
		overflow: visible;
		padding-bottom: calc(var(--bc-footer-h, 42px) + 16px);   /* room for the fixed footer bar, plus a little space */
	}
	/* content areas grow with their content instead of scrolling inside;
	   "clip" keeps rounded corners without becoming a scroll area, so sticky headings still work */
	body:not(.bc-page-calendar):not(.bc-page-craftingsearch):not(.bc-page-forevercrafting) .scalablecontent {
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
		overflow: clip !important;
	}

	/* bottom button rows (Add, View, Delete...) follow the content and stay reachable
	   just above the footer bar when the page is long */
	body:not(.bc-page-calendar):not(.bc-page-craftingsearch):not(.bc-page-forevercrafting) #buttondivbottom,
	body:not(.bc-page-calendar):not(.bc-page-craftingsearch):not(.bc-page-forevercrafting) .buttondivbottom {
		position: sticky;
		bottom: var(--bc-footer-h, 43px);       /* sits right on the footer bar */
		z-index: 20;
		margin: 10px -24px 0;                   /* full width of the page column (covers the table's shadow too) */
		padding: 8px 24px;
		background: transparent;                /* see-through until the list scrolls under it (bcStuckBars) */
		border-radius: 0;
	}
	body:not(.bc-page-calendar):not(.bc-page-craftingsearch):not(.bc-page-forevercrafting) #buttondivbottom.bc-stuck,
	body:not(.bc-page-calendar):not(.bc-page-craftingsearch):not(.bc-page-forevercrafting) .buttondivbottom.bc-stuck {
		background: var(--page-bg);             /* solid, but the same as the page behind it */
		background-attachment: fixed;
	}

	/* headings stay visible under the top bar while the page scrolls */
	body:not(.bc-page-calendar):not(.bc-page-craftingsearch):not(.bc-page-forevercrafting) .scrollabletable tr:first-child { top: var(--topbar-height) !important; }
	body:not(.bc-page-calendar):not(.bc-page-craftingsearch):not(.bc-page-forevercrafting) #rosterheaderdiv,
	body:not(.bc-page-calendar):not(.bc-page-craftingsearch):not(.bc-page-forevercrafting) #useradminheaderdiv,
	body:not(.bc-page-calendar):not(.bc-page-craftingsearch):not(.bc-page-forevercrafting) #appadminheaderdiv,
	body:not(.bc-page-calendar):not(.bc-page-craftingsearch):not(.bc-page-forevercrafting) #ticketlistheaderdiv,
	body:not(.bc-page-calendar):not(.bc-page-craftingsearch):not(.bc-page-forevercrafting) #rankadminheaderdiv,
	body:not(.bc-page-calendar):not(.bc-page-craftingsearch):not(.bc-page-forevercrafting) .tableheaderdiv {
		position: sticky;
		top: var(--topbar-height);
		z-index: 6;
	}
}

/* ---- Guild Roster and Forever Guild Roster: the title line (with search), the table headings
   and the "Last Updated" line stay on screen while the list scrolls. bcStickyBars() in
   breadco.js measures the title bar (--bc-titlebox-h) and the footer bar (--bc-footer-h). ---- */
body.bc-page-guildroster, body.bc-page-foreverroster { --bc-side-pad: 24px; }   /* #infodiv's side padding */
body.bc-page-guildroster .pagetitlebox,
body.bc-page-foreverroster .pagetitlebox,
body.bc-page-guildroster #timestamp,
body.bc-page-foreverroster #timestamp {
	position: sticky;
	z-index: 8;
	box-sizing: border-box;
	width: calc(100% + 2 * var(--bc-side-pad));
	margin-left: calc(-1 * var(--bc-side-pad));
	margin-right: calc(-1 * var(--bc-side-pad));
	padding-left: var(--bc-side-pad);
	padding-right: var(--bc-side-pad);
	transition: background-color .15s;
}
/* the dark backing only shows while the bar is pinned with rows scrolling under it (bcStickyBars) */
body.bc-page-guildroster .bc-stuck,
body.bc-page-foreverroster .bc-stuck {
	background: var(--page-bg);
	background-attachment: fixed;   /* the same as the page behind it, so pinning doesn't change its colour */
}
/* the pinned title also covers the small gap between it and the top bar */
body.bc-page-guildroster .pagetitlebox.bc-stuck::before,
body.bc-page-foreverroster .pagetitlebox.bc-stuck::before {
	content: ""; position: absolute; left: 0; right: 0; bottom: 100%;
	height: var(--bc-title-gap, 0px);
	background: var(--page-bg);
	background-attachment: fixed;
}
body.bc-page-guildroster .pagetitlebox,
body.bc-page-foreverroster .pagetitlebox {
	top: calc(var(--topbar-height) + var(--bc-title-gap, 0px));   /* pins exactly where it starts: it never moves */
	margin-bottom: 0;
	padding-top: 10px;
	padding-bottom: 12px;
}
body.bc-page-guildroster #rostercontent tr:first-child,
body.bc-page-foreverroster #forevercontent tr:first-child {
	position: sticky;
	top: calc(var(--topbar-height) + var(--bc-title-gap, 0px) + var(--bc-titlebox-h, 0px)) !important;
}
body.bc-page-guildroster #timestamp,
body.bc-page-foreverroster #timestamp {
	bottom: var(--bc-footer-h, 0px);
	margin-top: 8px;
	padding-top: 8px;
	padding-bottom: 8px;
}
@media (max-width: 760px) {
	body.bc-page-guildroster, body.bc-page-foreverroster { --bc-side-pad: 14px; }
}

/* ---- phone: Forever Guild Roster rows become cards too (like the Guild Roster); its column
   headings become a row of sort buttons. Card: name + rank, then Lvl · race · class · owner ---- */
@media (max-width: 760px) {
	.bc-page-foreverroster #forevercontentdiv { background: transparent; border: 0; box-shadow: none; overflow: visible; border-radius: 0; }
	.bc-page-foreverroster #forevercontent, .bc-page-foreverroster #forevercontent > tbody { display: block; background: transparent; }
	body.bc-page-foreverroster #forevercontent tr.scrollabletableheader {
		display: flex; gap: 8px; overflow-x: auto; position: static !important; background: transparent;
		margin: 0 -14px 12px; padding: 0 14px 4px; scrollbar-width: none;
	}
	.bc-page-foreverroster #forevercontent tr.scrollabletableheader th {
		display: block; flex-shrink: 0; width: auto !important;
		border-radius: 999px !important; padding: 8px 13px;
		background: var(--surface-2) !important; border: 1px solid var(--line-strong) !important;
		text-transform: none; letter-spacing: 0; font-size: 13px; color: #cfd8da;
	}
	.bc-page-foreverroster #forevercontent tr.scrollabletableheader th:has(.sort-asc, .sort-desc) {
		background: rgba(227, 164, 88, .15) !important; border-color: rgba(227, 164, 88, .5) !important; color: var(--crust);
	}
	.bc-page-foreverroster #forevercontent tr.scrollabletableheader th:not([data-sort]) { display: none; }

	.bc-page-foreverroster #forevercontent tr:not(.scrollabletableheader) {
		display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px;
		padding: 12px 14px; margin-bottom: 10px;
		background: var(--surface) !important;
		border: 1px solid var(--line); border-left: 4px solid var(--cls, var(--slate));
		border-radius: 14px; box-shadow: var(--shadow);
	}
	.bc-page-foreverroster #forevercontent tr.toonrow::before { content: ""; flex-basis: 100%; height: 0; order: 3; }
	.bc-page-foreverroster #forevercontent td {
		display: block; padding: 0 !important; border: 0 !important; width: auto !important;
		background: transparent !important; box-shadow: none !important;
		text-align: left; font-size: 13px; color: var(--muted); white-space: nowrap;
	}
	.bc-page-foreverroster #forevercontent td.bc-empty { flex: 1; text-align: center; }
	.bc-page-foreverroster #forevercontent td.fr-num { display: none; }
	.bc-page-foreverroster #forevercontent td.toonname { order: 1; flex: 1 1 auto; font-size: 16px; color: var(--cls, #fff); white-space: normal; }
	.bc-page-foreverroster #forevercontent td.fr-rank {
		order: 2; font-size: 12px; font-weight: 600; color: #dfe7e9;
		padding: 3px 10px !important; border-radius: 999px;
		background: rgba(97, 114, 119, .32) !important; border: 1px solid rgba(129, 146, 151, .5) !important;
	}
	.bc-page-foreverroster #forevercontent td:empty { display: none; }   /* no level / owner / rank yet */
	.bc-page-foreverroster #forevercontent td.fr-level { order: 4; }
	.bc-page-foreverroster #forevercontent td.fr-level:not(:empty)::before { content: "Lvl\00a0"; }
	.bc-page-foreverroster #forevercontent td.fr-race { order: 5; }
	.bc-page-foreverroster #forevercontent td.fr-class { order: 6; }
	.bc-page-foreverroster #forevercontent td.fr-owner { order: 7; }
	.bc-page-foreverroster #forevercontent td.fr-race:not(:empty)::before,
	.bc-page-foreverroster #forevercontent td.fr-class:not(:empty)::before { content: "\00b7\00a0"; }
	.bc-page-foreverroster #forevercontent td.fr-owner:not(:empty)::before { content: "\00b7\00a0Owner:\00a0"; }
	.bc-page-foreverroster #forevercontent td.fr-level:empty + td.fr-race::before { content: none; }
}

/* ---- Page tops: the first line of every page starts level with the top of the home page's
   welcome box (less empty space above titles). The calendar already lines up, so it's left as is. ---- */
body:not(.bc-page-calendar) #infodiv > .pagetitle:first-child,
body:not(.bc-page-calendar) #infodiv > .scalablecontent:first-child > .pagetitle:first-child { padding-top: 0; margin-top: -4px; }
body.bc-page-guildroster .pagetitlebox,
body.bc-page-foreverroster .pagetitlebox { padding-top: 4px; }
@media (min-width: 761px) {
	/* the rosters end right on the footer bar, so the pinned "Last Updated" line never moves */
	body.bc-page-guildroster #infodiv,
	body.bc-page-foreverroster #infodiv { padding-bottom: var(--bc-footer-h, 42px) !important; }
}
@media (max-width: 760px) {
	body:not(.bc-page-calendar) #infodiv > .pagetitle:first-child,
	body:not(.bc-page-calendar) #infodiv > .scalablecontent:first-child > .pagetitle:first-child { padding-top: 0; margin-top: -6px; }
}

/* ---- Roster column headings (desktop/tablet): the table's top edge (its line and rounded corners) is
   drawn on the heading row itself, so the row looks the same and doesn't shift a pixel when it pins.
   While pinned, a strip of page background under the title fills in behind the rounded corners. ---- */
@media (min-width: 761px) {
	body.bc-page-guildroster { --bc-head-line: rgba(255, 255, 255, .08); }
	body.bc-page-foreverroster { --bc-head-line: rgba(255, 255, 255, .15); }
	body.bc-page-guildroster #rostercontentdiv,
	body.bc-page-foreverroster #forevercontentdiv { border-top: 0; }
	body.bc-page-guildroster #rostercontent tr:first-child,
	body.bc-page-foreverroster #forevercontent tr:first-child { z-index: 9; }
	body.bc-page-guildroster #rostercontent tr:first-child > th,
	body.bc-page-foreverroster #forevercontent tr:first-child > th { box-shadow: inset 0 1px 0 var(--bc-head-line); }
	body.bc-page-guildroster #rostercontent tr:first-child > th:first-child,
	body.bc-page-foreverroster #forevercontent tr:first-child > th:first-child { border-top-left-radius: 14px; }
	body.bc-page-guildroster #rostercontent tr:first-child > th:last-child,
	body.bc-page-foreverroster #forevercontent tr:first-child > th:last-child { border-top-right-radius: 14px; }
	body.bc-page-guildroster .pagetitlebox.bc-stuck::after,
	body.bc-page-foreverroster .pagetitlebox.bc-stuck::after {
		content: ""; position: absolute; top: 100%;
		left: var(--bc-side-pad); right: var(--bc-side-pad); height: 16px;
		background: var(--page-bg);
		background-attachment: fixed;
	}
}

/* ---- Guild Roster Admin and Forever Toons Admin: the same pinned title line (with search) and
   column headings as the public rosters; their bottom button row is already pinned above the footer. ---- */
body.bc-page-guildrosteradmin, body.bc-page-foreverrosteradmin { --bc-side-pad: 24px; }
body.bc-page-guildrosteradmin .pagetitlebox,
body.bc-page-foreverrosteradmin .pagetitlebox {
	position: sticky;
	z-index: 8;
	box-sizing: border-box;
	width: calc(100% + 2 * var(--bc-side-pad));
	margin: 0 calc(-1 * var(--bc-side-pad));
	padding: 4px var(--bc-side-pad) 12px;
	top: calc(var(--topbar-height) + var(--bc-title-gap, 0px));
}
body.bc-page-guildrosteradmin .pagetitlebox.bc-stuck,
body.bc-page-foreverrosteradmin .pagetitlebox.bc-stuck {
	background: var(--page-bg);
	background-attachment: fixed;
}
body.bc-page-guildrosteradmin .pagetitlebox.bc-stuck::before,
body.bc-page-foreverrosteradmin .pagetitlebox.bc-stuck::before {
	content: ""; position: absolute; left: 0; right: 0; bottom: 100%;
	height: var(--bc-title-gap, 0px);
	background: var(--page-bg);
	background-attachment: fixed;
}
@media (min-width: 761px) {
	body.bc-page-guildrosteradmin #rosterheaderdiv,
	body.bc-page-foreverrosteradmin #rosterheaderdiv {
		top: calc(var(--topbar-height) + var(--bc-title-gap, 0px) + var(--bc-titlebox-h, 0px)) !important;
		z-index: 9 !important;
	}
	body.bc-page-guildrosteradmin .pagetitlebox.bc-stuck::after,
body.bc-page-foreverrosteradmin .pagetitlebox.bc-stuck::after {
		content: ""; position: absolute; top: 100%;
		left: var(--bc-side-pad); right: var(--bc-side-pad); height: 16px;
		background: var(--page-bg);
		background-attachment: fixed;
	}
}
@media (max-width: 760px) {
	body.bc-page-guildrosteradmin, body.bc-page-foreverrosteradmin { --bc-side-pad: 14px; }
}

/* ---- User Admin: the same pinned title line (with search) and column headings as the roster admin pages ---- */
body.bc-page-useradmin { --bc-side-pad: 24px; }
body.bc-page-useradmin .pagetitlebox {
	position: sticky;
	z-index: 8;
	box-sizing: border-box;
	width: calc(100% + 2 * var(--bc-side-pad));
	margin: 0 calc(-1 * var(--bc-side-pad));
	padding: 4px var(--bc-side-pad) 12px;
	top: calc(var(--topbar-height) + var(--bc-title-gap, 0px));
}
body.bc-page-useradmin .pagetitlebox.bc-stuck { background: var(--page-bg); background-attachment: fixed; }
body.bc-page-useradmin .pagetitlebox.bc-stuck::before {
	content: ""; position: absolute; left: 0; right: 0; bottom: 100%;
	height: var(--bc-title-gap, 0px);
	background: var(--page-bg);
	background-attachment: fixed;
}
@media (min-width: 761px) {
	body.bc-page-useradmin #useradminheaderdiv {
		top: calc(var(--topbar-height) + var(--bc-title-gap, 0px) + var(--bc-titlebox-h, 0px)) !important;
		z-index: 9 !important;
	}
	body.bc-page-useradmin .pagetitlebox.bc-stuck::after {
		content: ""; position: absolute; top: 100%;
		left: var(--bc-side-pad); right: var(--bc-side-pad); height: 16px;
		background: var(--page-bg);
		background-attachment: fixed;
	}
}
@media (max-width: 760px) {
	body.bc-page-useradmin { --bc-side-pad: 14px; }
}

@media (min-width: 761px) {
	/* pages with a pinned bottom button row end right on the footer bar, so the row doesn't move
	   when the page is scrolled all the way down */
	body:not(.bc-page-calendar):not(.bc-page-craftingsearch):not(.bc-page-forevercrafting) #infodiv:has(> #buttondivbottom, > .buttondivbottom) {
		padding-bottom: var(--bc-footer-h, 43px) !important;
	}
}

/* ---- Raid Roster and Raid Roster Admin: the same pinned title line (with search) and column headings
   as the Guild Roster (their headings are the table's first row, as there). ---- */
body.bc-page-raidroster, body.bc-page-raidrosteradmin { --bc-side-pad: 24px; --bc-head-line: rgba(255, 255, 255, .08); }
body.bc-page-raidroster .pagetitlebox,
body.bc-page-raidrosteradmin .pagetitlebox {
	position: sticky;
	z-index: 8;
	box-sizing: border-box;
	width: calc(100% + 2 * var(--bc-side-pad));
	margin: 0 calc(-1 * var(--bc-side-pad));
	padding: 4px var(--bc-side-pad) 12px;
	top: calc(var(--topbar-height) + var(--bc-title-gap, 0px));
}
body.bc-page-raidroster .pagetitlebox.bc-stuck,
body.bc-page-raidrosteradmin .pagetitlebox.bc-stuck { background: var(--page-bg); background-attachment: fixed; }
body.bc-page-raidroster .pagetitlebox.bc-stuck::before,
body.bc-page-raidrosteradmin .pagetitlebox.bc-stuck::before {
	content: ""; position: absolute; left: 0; right: 0; bottom: 100%;
	height: var(--bc-title-gap, 0px);
	background: var(--page-bg);
	background-attachment: fixed;
}
@media (min-width: 761px) {
	body.bc-page-raidroster #rostercontentdiv,
body.bc-page-raidrosteradmin #rostercontentdiv { border-top: 0; }
	body.bc-page-raidroster #rostercontent tr:first-child,
body.bc-page-raidrosteradmin #rostercontent tr:first-child {
		position: sticky;
		top: calc(var(--topbar-height) + var(--bc-title-gap, 0px) + var(--bc-titlebox-h, 0px)) !important;
		z-index: 9;
	}
	body.bc-page-raidroster #rostercontent tr:first-child > th,
body.bc-page-raidrosteradmin #rostercontent tr:first-child > th { box-shadow: inset 0 1px 0 var(--bc-head-line); }
	body.bc-page-raidroster #rostercontent tr:first-child > th:first-child,
body.bc-page-raidrosteradmin #rostercontent tr:first-child > th:first-child { border-top-left-radius: 14px; }
	body.bc-page-raidroster #rostercontent tr:first-child > th:last-child,
body.bc-page-raidrosteradmin #rostercontent tr:first-child > th:last-child { border-top-right-radius: 14px; }
	body.bc-page-raidroster .pagetitlebox.bc-stuck::after,
body.bc-page-raidrosteradmin .pagetitlebox.bc-stuck::after {
		content: ""; position: absolute; top: 100%;
		left: var(--bc-side-pad); right: var(--bc-side-pad); height: 16px;
		background: var(--page-bg);
		background-attachment: fixed;
	}
}
@media (max-width: 760px) {
	body.bc-page-raidroster, body.bc-page-raidrosteradmin { --bc-side-pad: 14px; }
}

@media (min-width: 761px) {
	/* Mythic+ (weekly): the box around the table must not cut off the table's shadow (it showed as a
	   darker square around the rounded bottom corners) */
	body.bc-page-mythicplus #tab2content { overflow: visible !important; }
}
