/* CRANKiT Events — shared site chrome
 *
 * This is the ONLY plugin stylesheet that loads on every front-end view, and
 * it is deliberately narrow. Every rule here targets either an explicit
 * CRANKiT wrapper class (.ce-global-footer, .ce-brand-wordmark, .crankit-legal)
 * or a specific CRANKiT destination URL / theme element that must stay
 * branded across the whole site.
 *
 * It contains no site-wide text-colour resets, no typography overrides for
 * ordinary content, and no button resets. Those all live in public.css, which
 * loads only on CRANKiT-owned views and is scoped beneath the body class
 * "crankit-events".
 */

/* Screen-reader-only utility. Themes usually provide this, but the plugin
 * must not depend on that: it is what announces "opens in a new tab". */
.ce-global-footer .screen-reader-text,
.crankit-legal .screen-reader-text,
.ce-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* CRANKiT wordmark. Only ever applied to markup the plugin generates or to
 * text the plugin's own scripts brand inside a CRANKiT container. */
.ce-brand-wordmark { white-space: nowrap; }
.ce-brand-wordmark__crank {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}
.ce-brand-wordmark__it {
	color: #ff4444 !important;
	-webkit-text-fill-color: #ff4444 !important;
	text-transform: none !important;
}

/* ---------------------------------------------------------------
 * One responsive branded footer for regular pages and CRANKiT profiles.
 * CE_Page_Chrome appends this to every page, so it is styled site-wide.
 * ------------------------------------------------------------- */
.ce-global-footer,
.ce-global-footer * { box-sizing: border-box; }
.ce-global-footer {
	width: calc(100% - 32px);
	max-width: 1060px;
	margin: 2rem auto;
	padding: 2.5rem 1.5rem;
	font-family: 'Lora', Georgia, serif;
	line-height: 1.75;
	color: #fff;
	background: rgba(0,0,0,.82);
	border: 2px solid #ff4444;
	border-radius: 8px;
	box-shadow: 0 8px 30px rgba(0,0,0,.4);
	text-align: center;
}
.ce-global-footer h2 {
	font-family: 'Cambria Math', Cambria, Georgia, serif;
}
.ce-global-footer__label {
	margin: 0 0 .5rem !important;
	color: #ff4444 !important;
	font-size: .8rem !important;
	font-weight: 900;
	letter-spacing: .18em;
	text-transform: uppercase;
}
.ce-global-footer h2 {
	margin: 0 0 .75rem !important;
	color: #fff !important;
	font-size: clamp(1.5rem,3vw,2.25rem) !important;
	line-height: 1.2;
}
.ce-global-footer__intro {
	max-width: 680px;
	margin: 0 auto 1.5rem !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}
.ce-global-footer p,
.ce-global-footer__nav,
.ce-global-footer__signature p {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}
.ce-global-footer__social,
.ce-global-footer__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px;
}
.ce-global-footer__social { margin-bottom: 1.5rem; }
.ce-global-footer__social a {
	padding: 8px 14px;
	color: #fff !important;
	border: 1px solid #ff4444;
	border-radius: 4px;
	font-weight: 800;
	text-decoration: none !important;
}
.ce-global-footer__social a:hover,
.ce-global-footer__social a:focus-visible {
	color: #fff !important;
	background: #cc0000;
}
.ce-global-footer__social a:focus-visible,
.ce-global-footer__nav a:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
}
.ce-global-footer__nav { margin: 0 0 1.5rem; }
.ce-global-footer__nav a { color: #fff !important; text-decoration: none !important; }
.ce-global-footer__nav a:hover,
.ce-global-footer__nav a:focus-visible { color: #ff4444 !important; font-weight: 800; }
.ce-global-footer__signature {
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255,68,68,.55);
}
.ce-global-footer__signature p { margin: 0 0 .35rem !important; }
.ce-global-footer__tag { color: #ff4444; }

/* Long footer labels must wrap rather than overflow at narrow widths
 * and at 200% zoom. */
.ce-global-footer__label,
.ce-global-footer__nav a,
.ce-global-footer__social a {
	overflow-wrap: anywhere;
	word-break: normal;
}

@media (max-width: 600px) {
	.ce-global-footer { width: calc(100% - 24px); padding: 2rem 1rem; }
	.ce-global-footer__nav span { display: none; }
	.ce-global-footer__nav { gap: 8px 16px; }
}

/* ---------------------------------------------------------------
 * CRANKiT footer navigation and official social links.
 * Targeted by exact CRANKiT destination, so ordinary content links and
 * CTA buttons elsewhere on the site are never selected.
 * ------------------------------------------------------------- */
footer a[href$="/artists/"]:not([class*="btn"]):not([class*="button"]):hover,
footer a[href$="/artists/"]:not([class*="btn"]):not([class*="button"]):focus-visible,
footer a[href$="/concerts/"]:not([class*="btn"]):not([class*="button"]):hover,
footer a[href$="/concerts/"]:not([class*="btn"]):not([class*="button"]):focus-visible,
footer a[href$="/festivals/"]:not([class*="btn"]):not([class*="button"]):hover,
footer a[href$="/festivals/"]:not([class*="btn"]):not([class*="button"]):focus-visible,
footer a[href$="/venues/"]:not([class*="btn"]):not([class*="button"]):hover,
footer a[href$="/venues/"]:not([class*="btn"]):not([class*="button"]):focus-visible,
footer a[href$="/guides/"]:not([class*="btn"]):not([class*="button"]):hover,
footer a[href$="/guides/"]:not([class*="btn"]):not([class*="button"]):focus-visible,
footer a[href$="/guitar-giveaway/"]:not([class*="btn"]):not([class*="button"]):hover,
footer a[href$="/guitar-giveaway/"]:not([class*="btn"]):not([class*="button"]):focus-visible,
.site-footer a[href$="/artists/"]:not([class*="btn"]):not([class*="button"]):hover,
.site-footer a[href$="/concerts/"]:not([class*="btn"]):not([class*="button"]):hover,
.site-footer a[href$="/festivals/"]:not([class*="btn"]):not([class*="button"]):hover,
.site-footer a[href$="/venues/"]:not([class*="btn"]):not([class*="button"]):hover,
.site-footer a[href$="/guides/"]:not([class*="btn"]):not([class*="button"]):hover,
.site-footer a[href$="/guitar-giveaway/"]:not([class*="btn"]):not([class*="button"]):hover,
#footer a[href$="/artists/"]:not([class*="btn"]):not([class*="button"]):hover,
#footer a[href$="/concerts/"]:not([class*="btn"]):not([class*="button"]):hover,
#footer a[href$="/festivals/"]:not([class*="btn"]):not([class*="button"]):hover,
#footer a[href$="/venues/"]:not([class*="btn"]):not([class*="button"]):hover,
#footer a[href$="/guides/"]:not([class*="btn"]):not([class*="button"]):hover,
#footer a[href$="/guitar-giveaway/"]:not([class*="btn"]):not([class*="button"]):hover {
	color: #ff4444 !important;
	-webkit-text-fill-color: #ff4444 !important;
	font-weight: 900 !important;
}

/* CRANKiT Verified footer item: bold in the normal state, CRANKiT red on
 * hover/focus. The legacy /verified/ selector remains for cached markup. */
footer a[href$="/crankit-verified/"]:not([class*="btn"]):not([class*="button"]),
footer a[href$="/verified/"]:not([class*="btn"]):not([class*="button"]),
.site-footer a[href$="/crankit-verified/"]:not([class*="btn"]):not([class*="button"]),
.site-footer a[href$="/verified/"]:not([class*="btn"]):not([class*="button"]),
#footer a[href$="/crankit-verified/"]:not([class*="btn"]):not([class*="button"]),
#footer a[href$="/verified/"]:not([class*="btn"]):not([class*="button"]) {
	font-weight: 900 !important;
}

footer a[href$="/crankit-verified/"]:not([class*="btn"]):not([class*="button"]):hover,
footer a[href$="/crankit-verified/"]:not([class*="btn"]):not([class*="button"]):focus-visible,
footer a[href$="/verified/"]:not([class*="btn"]):not([class*="button"]):hover,
footer a[href$="/verified/"]:not([class*="btn"]):not([class*="button"]):focus-visible,
.site-footer a[href$="/crankit-verified/"]:not([class*="btn"]):not([class*="button"]):hover,
.site-footer a[href$="/verified/"]:not([class*="btn"]):not([class*="button"]):hover,
#footer a[href$="/crankit-verified/"]:not([class*="btn"]):not([class*="button"]):hover,
#footer a[href$="/verified/"]:not([class*="btn"]):not([class*="button"]):hover {
	color: #ff4444 !important;
	-webkit-text-fill-color: #ff4444 !important;
	font-weight: 900 !important;
}

/* Official CRANKiT ENTERTAINMENT social accounts, wherever they appear. */
a[href*="facebook.com/crankitentertainment" i]:hover,
a[href*="facebook.com/crankitentertainment" i]:focus-visible,
a[href*="instagram.com/crankitentertainment" i]:hover,
a[href*="instagram.com/crankitentertainment" i]:focus-visible,
a[href*="tiktok.com/@crankitentertainment" i]:hover,
a[href*="tiktok.com/@crankitentertainment" i]:focus-visible,
a[href*="youtube.com/@crankitentertainment" i]:hover,
a[href*="youtube.com/@crankitentertainment" i]:focus-visible,
a[href*="youtube.com/crankitentertainment" i]:hover,
a[href*="youtube.com/crankitentertainment" i]:focus-visible {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	text-decoration: none !important;
}

/* ---------------------------------------------------------------
 * Legal pages authored with the .crankit-legal wrapper class.
 * Scoped entirely beneath that explicit CRANKiT wrapper.
 * ------------------------------------------------------------- */
.crankit-legal {
	max-width: 820px;
	margin: 0 auto;
	padding: clamp(22px, 4vw, 42px);
	background: rgba(0, 0, 0, .78);
	border: 2px solid #ff4444;
	border-radius: 6px;
	color: #ffffff !important;
	line-height: 1.75;
	font-family: 'Lora', Georgia, serif;
}

.crankit-legal h1,
.crankit-legal h2,
.crankit-legal h3,
.crankit-legal strong {
	font-family: 'Cambria Math', Cambria, Georgia, serif;
}

.crankit-legal p,
.crankit-legal li,
.crankit-legal .crankit-meta,
.crankit-legal h1,
.crankit-legal h2,
.crankit-legal h3,
.crankit-legal strong {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	opacity: 1 !important;
}

.crankit-legal a {
	color: #ff4444 !important;
	-webkit-text-fill-color: #ff4444 !important;
	font-weight: 700;
}

.crankit-legal .crankit-contact {
	background: rgba(0, 0, 0, .72);
	border: 1px solid #ff4444 !important;
}

/* ---------------------------------------------------------------
 * Themify theme chrome: the shared site header and its MORE dropdown.
 * These target the theme's own navigation IDs only.
 * ------------------------------------------------------------- */
#headerwrap #main-nav .sub-menu,
#mobile-menu #main-nav .sub-menu,
.sidemenu #main-nav .sub-menu {
	background: rgba(0,0,0,.9) !important;
	box-shadow: 0 10px 24px rgba(0,0,0,.45) !important;
	border: 1px solid rgba(255,68,68,.55) !important;
}
#headerwrap #main-nav .sub-menu li,
#headerwrap #main-nav .sub-menu a,
#mobile-menu #main-nav .sub-menu li,
#mobile-menu #main-nav .sub-menu a,
.sidemenu #main-nav .sub-menu li,
.sidemenu #main-nav .sub-menu a {
	background: transparent !important;
}
#headerwrap #main-nav .sub-menu a,
#mobile-menu #main-nav .sub-menu a,
.sidemenu #main-nav .sub-menu a {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}
#headerwrap #main-nav .sub-menu a:hover,
#headerwrap #main-nav .sub-menu a:focus-visible,
#mobile-menu #main-nav .sub-menu a:hover,
#mobile-menu #main-nav .sub-menu a:focus-visible,
.sidemenu #main-nav .sub-menu a:hover,
.sidemenu #main-nav .sub-menu a:focus-visible {
	background: rgba(255,68,68,.18) !important;
	color: #fff !important;
}

/* Main navigation: replace the theme's blue interaction color with CRANKiT red. */
#headerwrap #main-nav > li > a:hover,
#headerwrap #main-nav > li > a:focus-visible,
#headerwrap #main-nav > li.current-menu-item > a,
#headerwrap #main-nav > li.current-menu-ancestor > a,
#mobile-menu #main-nav > li > a:hover,
#mobile-menu #main-nav > li > a:focus-visible,
#mobile-menu #main-nav > li.current-menu-item > a,
#mobile-menu #main-nav > li.current-menu-ancestor > a,
.sidemenu #main-nav > li > a:hover,
.sidemenu #main-nav > li > a:focus-visible,
.sidemenu #main-nav > li.current-menu-item > a,
.sidemenu #main-nav > li.current-menu-ancestor > a {
	color: #ff4444 !important;
	-webkit-text-fill-color: #ff4444 !important;
}

/* Keep the theme header consistent: Search is intentionally disabled sitewide. */
#headerwrap .search-button,
#headerwrap #searchform-wrap,
#mobile-menu .search-button,
#mobile-menu #searchform-wrap,
.sidemenu .search-button,
.sidemenu #searchform-wrap {
	display: none !important;
}

/* MORE is the final desktop item; keep its dropdown inside the viewport. */
#headerwrap #main-nav > li:last-child > .sub-menu {
	left: auto !important;
	right: 0 !important;
}
