/* JOIGang header + footer (shortcode-rendered, Elementor-independent).
   Brand: ink #27103A, pink #F674FF / #FFC2FD, purple #A946B4. */

/* the full-bleed bands (footer, homepage LIVE bar) measure 100vw, which
   includes the scrollbar — without this the page gains a few px of
   horizontal scroll */
html, body { overflow-x: hidden; }

/* short pages: the body fills the viewport and the footer pins to the
   bottom — this also stops the body gradient from tiling again below the
   footer (the "repeating background" report) */
html { min-height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; }
body > .elementor-location-footer { margin-top: auto; }

/* ---------- header ---------- */
.jg-hdr {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9000;
	display: flex;
	align-items: center;
	gap: 18px;
	height: 52px;
	padding: 0 18px;
	background: #27103A;
	border-bottom: 2px solid #F674FF;
}
/* the logo must be allowed to SHRINK: with flex 0 0 auto its natural width
   (the wide JOIGANG tile graphic) + Account + burger overflowed narrow
   phones and pushed the burger clean out of the viewport (iPhone report) */
.jg-hdr-logo { display: flex; align-items: center; flex: 0 1 auto; min-width: 0; text-decoration: none !important; }
.jg-hdr-logo img {
	height: 34px;
	width: auto;
	max-width: min(44vw, 320px);
	object-fit: contain;
	object-position: left center;
	display: block;
}
.jg-hdr-logotext { color: #fff; font-weight: 800; font-size: 18px; letter-spacing: .04em; }

.jg-hdr-nav { flex: 1 1 auto; min-width: 0; }
.jg-hdr-nav ul {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: nowrap;
	overflow-x: auto;
	scrollbar-width: none;
}
.jg-hdr-nav ul::-webkit-scrollbar { display: none; }
.jg-hdr-nav li { margin: 0; white-space: nowrap; }
.jg-hdr-nav a {
	display: block;
	padding: 6px 10px;
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	text-decoration: none !important;
	border-radius: 6px;
	transition: color .12s, background .12s;
}
.jg-hdr-nav a:hover { color: #FFC2FD !important; background: rgba(246, 116, 255, .12); }
.jg-hdr-nav .current-menu-item > a { color: #F674FF !important; }

.jg-hdr-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.jg-hdr-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: #FFC2FD !important;
	background: rgba(255, 255, 255, .08);
	transition: background .12s, color .12s;
}
.jg-hdr-icon:hover { background: #F674FF; color: #27103A !important; }
.jg-hdr-account {
	background: linear-gradient(135deg, #F674FF, #FFC2FD);
	color: #27103A !important;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .05em;
	padding: 7px 18px;
	border-radius: 999px;
	text-decoration: none !important;
	white-space: nowrap;
	transition: filter .12s;
}
.jg-hdr-account:hover { filter: brightness(1.07); }

/* The bars must NOT depend on flex layout: iOS Safari mis-lays-out flex
   inside <button> (children don't stretch), which made the empty spans
   zero-width — an invisible burger on iPhones. Explicit widths + margins
   render everywhere; no flex, no gap() needed. */
.jg-hdr-burger,
.jg-hdr-burger:hover,
.jg-hdr-burger:focus,
.jg-hdr-burger:active {
	display: none;
	flex: 0 0 auto;
	width: 40px;
	height: 38px;
	padding: 11px 0;
	/* !important: the theme paints <button> red on focus/active */
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
}
.jg-hdr-burger span {
	display: block;
	width: 22px;
	height: 2px;
	margin: 0 auto;
	border-radius: 2px;
	background: #fff;
	transition: transform .18s, opacity .18s;
}
.jg-hdr-burger span + span { margin-top: 5px; }
.jg-hdr-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.jg-hdr-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.jg-hdr-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.jg-hdr-spacer { height: 52px; }
/* WP admin bar sits above the fixed header */
body.admin-bar .jg-hdr { top: 32px; }
@media (max-width: 782px) { body.admin-bar .jg-hdr { top: 46px; } }
.jg-hdr-classic {
	color: #cdbce0 !important;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	text-decoration: none !important;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 999px;
	padding: 5px 10px;
	white-space: nowrap;
}
.jg-hdr-classic:hover { color: #fff !important; border-color: #F674FF; }

/* theme toggle: compact icon button, stays visible on mobile */
.jg-hdr-theme {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex: 0 0 auto;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: #FFC2FD;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	transition: background .12s;
	padding: 0;
}
.jg-hdr-theme:hover { background: #F674FF; }

/* desktop shows the header pill, so the menu entry would be a duplicate */
.jg-nav-charsheet { display: none; }
/* social links inside the burger menu (the bar icons hide on mobile) */
.jg-nav-social { display: none; }
.jg-nav-social a {
	display: inline-flex !important;
	align-items: center;
	gap: 7px;
	padding: 11px 12px !important;
}

/* the burger/compact layout runs up to 1315px: between 921–1315px the full
   nav row overlapped the account/sheet pills on tablets (user report) */
@media (max-width: 1315px) {
	.jg-hdr { height: 50px; gap: 10px; padding: 0 12px; }
	.jg-hdr-spacer { height: 50px; }
	.jg-hdr-classic { display: none; }
	.jg-hdr-logo img { height: 32px; }
	.jg-hdr-burger,
	.jg-hdr-burger:hover,
	.jg-hdr-burger:focus,
	.jg-hdr-burger:active { display: block; } /* block, not flex — immune to the Safari button-flex bug */
	.jg-hdr-icon { display: none; }
	/* the nav leaves the flex row here, so the button group must push itself
	   to the right edge (it used to hug the logo on the left) */
	.jg-hdr-right { margin-left: auto; }
	.jg-hdr-nav {
		position: fixed;
		top: 50px;
		left: 0;
		right: 0;
		background: #27103A;
		border-bottom: 2px solid #F674FF;
		max-height: 0;
		overflow: hidden;
		transition: max-height .22s ease;
	}
	.jg-hdr.is-open .jg-hdr-nav { max-height: 70vh; overflow-y: auto; }
	.jg-hdr-nav ul { flex-direction: column; align-items: stretch; padding: 8px 10px 12px; overflow: visible; }
	.jg-hdr-nav a { padding: 11px 12px; font-size: 14px; }
	.jg-hdr-account { padding: 6px 14px; font-size: 12px; }
	.jg-nav-social { display: flex; gap: 4px; }
	.jg-nav-social a { color: #FFC2FD !important; }
	.jg-nav-social svg { flex: 0 0 auto; }
}
/* below ~700px the Character Sheet pill no longer fits next to Account +
   burger (iPhone: burger was pushed clean off-screen) — menu entry covers it */
@media (max-width: 700px) {
	.jg-hdr .jgcs-header-btn, .jg-hdr .jgcs-header-slot { display: none; }
	.jg-hdr-right { gap: 6px; }
	.jg-nav-charsheet { display: block; }
	.jg-nav-charsheet a { color: #F674FF !important; }
}
/* very narrow phones: everything compacts, the burger ALWAYS stays on-screen */
@media (max-width: 480px) {
	.jg-hdr { gap: 8px; padding: 0 10px; }
	.jg-hdr-logo img { max-width: 38vw; }
	.jg-hdr-account { padding: 6px 11px; font-size: 11px; letter-spacing: .03em; }
	.jg-hdr-theme { width: 26px; height: 26px; font-size: 13px; }
}

/* ---------- footer ---------- */
/* full-bleed: escape any boxed Elementor column so the dark band always
   spans the whole viewport (margins-only breakout — no 100vw scrollbar bug) */
.jg-ftr {
	background: #27103A;
	border-top: 2px solid #F674FF;
	text-align: center;
	padding: 14px 16px;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
.jg-ftr-line { margin: 0 0 4px; font-size: 13px; line-height: 1.5; color: #d8c9e6; }
.jg-ftr-line strong { color: #fff; }
.jg-ftr-line a { color: #FFC2FD !important; text-decoration: none !important; }
.jg-ftr-line a:hover { color: #F674FF !important; text-decoration: underline !important; }
.jg-ftr-fine { font-size: 11px; opacity: .55; margin-bottom: 0; }

/* ---------- carousel ---------- */
.jg-car { position: relative; display: flex; align-items: center; gap: 6px; max-width: 900px; margin: 0 auto; }
.jg-car-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	gap: 14px;
	flex: 1;
	scrollbar-width: none;
}
.jg-car-track::-webkit-scrollbar { display: none; }
.jg-car-slide {
	flex: 0 0 100%;
	scroll-snap-align: center;
	margin: 0;
	text-align: center;
}
.jg-car-slide img {
	width: 100%;
	height: auto;
	max-height: 78vh;
	object-fit: contain;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(39, 16, 58, .25);
}
.jg-car-slide figcaption { margin-top: 8px; font-weight: 700; color: #27103A; }
.jg-car-btn {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 0;
	background: #F674FF;
	color: #27103A;
	font-size: 22px;
	font-weight: 800;
	cursor: pointer;
	line-height: 1;
	transition: filter .12s;
}
.jg-car-btn:hover { filter: brightness(1.1); }
@media (max-width: 640px) { .jg-car-btn { width: 32px; height: 32px; font-size: 18px; } }

/* ---------- shared page components (hero, copy cards) ---------- */
.jg-hero { text-align: center; max-width: 900px; margin: 0 auto; padding: 8px 0; }
.jg-hero h1 { margin: 0 0 6px; font-size: clamp(26px, 4.4vw, 40px); font-weight: 800; color: #27103A; line-height: 1.2; }
.jg-hero h1 span {
	background: linear-gradient(135deg, #A946B4, #F674FF);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.jg-hero p { margin: 0; color: #6b5580; font-size: 15px; }

.jg-copycard {
	background: #fff;
	border: 1px solid #f3d9f7;
	border-radius: 16px;
	padding: 22px 26px;
	max-width: 860px;
	margin: 0 auto;
	box-shadow: 0 6px 18px rgba(169, 70, 180, .08);
	color: #27103A;
	font-size: 14.5px;
	line-height: 1.6;
	overflow-wrap: anywhere;
}
.jg-copycard h2, .jg-copycard h3, .jg-copycard h4, .jg-copycard h5 { color: #27103A; }
.jg-copycard a { color: #A946B4 !important; font-weight: 700; }
.jg-copycard-title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: .02em;
	color: #A946B4 !important;
}
.jg-sec-h2 { text-align: center; font-size: 24px; font-weight: 800; color: #27103A; margin: 0; }
.jg-ooo-contact { text-align: center; color: #6b5580; margin: 10px 0 0; }
