/*
 * MELO Help Center
 * A warm, spacious knowledge-base skin inspired by modern support portals.
 */

:root {
	--help-ink: #171717;
	--help-muted: #737373;
	--help-line: #e9e9e9;
	--help-soft: #f7f7f7;
	--help-card: #ffffff;
	--help-yellow: #ffd05a;
	--help-orange: #ff7048;
	--help-pink: #ee3f82;
	--help-radius: 24px;
	--help-shadow: 0 2px 14px rgba(20, 20, 20, 0.08);
}

html {
	overflow-x: hidden;
}

body,
body.dark-version {
	background: #fff !important;
	color: var(--help-ink) !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
	font-size: 16px;
	line-height: 1.65;
}

body.music-tag-page,
body.music-tag-page #page,
body.music-tag-page .site-content {
	background: #fff !important;
}

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

#page,
.site-content {
	background: #fff !important;
}

.wrapper {
	width: min(100% - 36px, 1080px);
	max-width: 1080px;
	margin-inline: auto;
}

a {
	color: inherit;
}

/* Header and hero */
#masthead.site-header {
	position: relative !important;
	top: auto;
	z-index: 100;
	min-height: 286px;
	margin: 0;
	background:
		radial-gradient(circle at 13% 48%, rgba(255, 227, 116, 0.98) 0 7%, transparent 32%),
		radial-gradient(circle at 73% 112%, rgba(255, 197, 78, 0.86) 0 6%, transparent 34%),
		linear-gradient(118deg, var(--help-yellow) 0%, var(--help-orange) 53%, var(--help-pink) 100%) !important;
	border: 0 !important;
	box-shadow: none !important;
	overflow: hidden;
}

#masthead.site-header::before,
#masthead.site-header::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}

#masthead.site-header::before {
	background-image:
		radial-gradient(circle, rgba(70, 31, 10, 0.16) 0 0.7px, transparent 0.9px),
		radial-gradient(circle, rgba(255, 255, 255, 0.2) 0 0.7px, transparent 0.9px);
	background-position: 0 0, 4px 5px;
	background-size: 8px 8px, 11px 11px;
	mix-blend-mode: soft-light;
	opacity: 0.55;
}

#masthead.site-header::after {
	background: radial-gradient(ellipse at 50% 20%, rgba(255, 255, 255, 0.12), transparent 60%);
}

#masthead .help-nav-shell,
#masthead .help-hero {
	position: relative;
	z-index: 2;
}

#masthead.site-header .help-nav-shell {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	min-height: 76px;
	padding: 0 !important;
}

#masthead .site-branding {
	display: flex;
	align-items: center;
	gap: 18px;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.help-wordmark,
.help-wordmark:hover,
.help-wordmark:focus {
	color: #fff !important;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1;
	text-decoration: none;
}

.site-logo img,
.custom-logo {
	width: auto;
	max-width: 120px;
	height: 34px;
	object-fit: contain;
}

.help-center-name {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding-left: 18px;
	border-left: 1px solid rgba(255, 255, 255, 0.55);
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
}

#masthead #site-navigation {
	display: flex;
	align-items: center;
	gap: 24px;
	float: none !important;
	margin: 0 !important;
}

#masthead #site-navigation ul.nav-menu {
	display: flex;
	align-items: center;
	gap: 22px;
	margin: 0;
	padding: 0;
}

#masthead #site-navigation ul.nav-menu > li {
	margin: 0;
	padding: 0;
}

#masthead #site-navigation ul.nav-menu > li > a,
.help-create-link {
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-decoration: none;
	text-shadow: none !important;
}

.help-create-link {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 40px;
	padding: 0 18px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 999px;
	line-height: 1 !important;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.help-create-link:hover,
.help-create-link:focus {
	background: rgba(255, 255, 255, 0.16);
	border-color: #fff;
}

#masthead .menu-toggle {
	display: none;
}

#masthead.site-header .help-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 27px 0 56px !important;
	text-align: center;
}

.help-hero h1,
body .help-hero h1 {
	margin: 0 0 25px;
	color: #fff !important;
	font-size: clamp(30px, 3vw, 38px) !important;
	font-weight: 650 !important;
	letter-spacing: -0.035em;
	line-height: 1.2;
}

.help-hero .search-form {
	position: relative;
	display: flex;
	align-items: center;
	width: min(100%, 440px);
	height: 48px;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.15);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.help-search-icon {
	display: inline-flex;
	flex: 0 0 20px;
	margin-left: 16px;
	color: rgba(255, 255, 255, 0.8);
}

.help-search-icon svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.help-hero input[type="search"].search-field {
	width: 100% !important;
	height: 46px !important;
	margin: 0 !important;
	padding: 0 15px 0 8px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #fff !important;
	font-size: 15px;
}

.help-hero input[type="search"]::placeholder {
	color: rgba(255, 255, 255, 0.82);
	opacity: 1;
}

.help-hero input[type="search"]:focus {
	outline: 2px solid transparent !important;
}

.help-hero .search-form:focus-within {
	border-color: #fff;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.help-hero .search-submit {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	clip: rect(0, 0, 0, 0);
	overflow: hidden;
}

/* Home category cards */
.help-home {
	min-height: 420px;
	padding: 54px 0 68px;
}

.help-home-inner {
	max-width: 840px;
	padding-inline: 0 !important;
}

.help-category-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.help-category-card {
	display: flex;
	min-height: 210px;
	padding: 32px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 1px solid #eeeeee;
	border-radius: var(--help-radius);
	background: var(--help-card);
	box-shadow: var(--help-shadow);
	color: var(--help-ink) !important;
	text-align: center;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.help-category-card:hover,
.help-category-card:focus-visible {
	transform: translateY(-3px);
	border-color: #dedede;
	box-shadow: 0 10px 28px rgba(20, 20, 20, 0.11);
}

.help-category-icon {
	display: grid;
	width: 64px;
	height: 64px;
	margin-bottom: 20px;
	place-items: center;
	border-radius: 16px;
	background: #d7d7d7;
	color: #111;
}

.help-category-icon svg {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.help-category-title {
	display: block;
	font-size: 18px;
	font-weight: 650;
	line-height: 1.35;
}

.help-category-description {
	display: -webkit-box;
	max-width: 310px;
	margin-top: 8px;
	overflow: hidden;
	color: var(--help-muted);
	font-size: 14px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.help-category-meta {
	display: block;
	margin-top: 11px;
	color: #8a8a8a;
	font-size: 13px;
}

.help-empty-state,
.no-results {
	padding: 54px 24px;
	border: 1px solid var(--help-line);
	border-radius: var(--help-radius);
	background: var(--help-soft);
	text-align: center;
}

.help-empty-state h2,
.no-results h1 {
	color: var(--help-ink) !important;
}

/* Archive, search and article lists */
.help-content-shell,
body #inner-content-wrapper.help-content-shell {
	display: block;
	max-width: 840px;
	padding: 48px 0 72px !important;
}

.help-content-shell .site-main {
	width: 100%;
}

.help-page-heading {
	margin-bottom: 28px;
}

.help-breadcrumb,
.help-breadcrumb:visited {
	display: inline-flex;
	align-items: center;
	margin-bottom: 10px;
	color: #656565 !important;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.help-breadcrumb::after {
	content: "›";
	margin-left: 9px;
	color: #9b9b9b;
	font-size: 18px;
	line-height: 1;
}

.help-page-heading h1,
body .help-page-heading h1 {
	margin: 0;
	color: var(--help-ink) !important;
	font-size: clamp(29px, 4vw, 40px) !important;
	font-weight: 700 !important;
	letter-spacing: -0.035em;
	line-height: 1.2;
}

.help-page-description,
.help-page-description p {
	margin: 9px 0 0;
	color: var(--help-muted) !important;
	font-size: 16px;
}

.help-article-list {
	display: grid;
	gap: 14px;
}

.help-subcategory-grid {
	margin-bottom: 30px;
}

body .help-article-list article.help-article-card,
body.blog .help-article-list article.help-article-card,
body.archive .help-article-list article.help-article-card {
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--help-line) !important;
	border-radius: 18px !important;
	background: #fff !important;
	box-shadow: 0 1px 5px rgba(20, 20, 20, 0.04) !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	transform: none !important;
	overflow: hidden;
}

body .help-article-list article.help-article-card:hover {
	border-color: #d9d9d9 !important;
	box-shadow: 0 8px 22px rgba(20, 20, 20, 0.08) !important;
}

.help-article-link {
	display: flex;
	min-height: 122px;
	padding: 24px 26px;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	color: var(--help-ink) !important;
	text-decoration: none;
}

.help-article-copy {
	display: flex;
	min-width: 0;
	align-items: flex-start;
	gap: 18px;
}

.help-article-icon {
	display: grid;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	place-items: center;
	border-radius: 12px;
	background: #ededed;
	color: #282828;
}

.help-article-icon svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
}

.help-article-title,
.help-article-excerpt {
	display: block;
}

.help-article-title {
	margin-bottom: 5px;
	font-size: 17px;
	font-weight: 650;
	line-height: 1.45;
}

.help-article-excerpt {
	display: -webkit-box;
	overflow: hidden;
	color: var(--help-muted);
	font-size: 14px;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.help-article-arrow {
	flex: 0 0 auto;
	color: #929292;
	font-size: 23px;
	transition: transform 0.2s ease;
}

.help-article-link:hover .help-article-arrow {
	transform: translateX(3px);
}

.pagination,
.navigation.pagination {
	margin-top: 30px;
}

.pagination .page-numbers {
	display: inline-grid;
	min-width: 40px;
	height: 40px;
	margin: 2px;
	padding: 0 10px;
	place-items: center;
	border: 1px solid var(--help-line);
	border-radius: 999px;
	background: #fff;
	color: var(--help-ink);
}

.pagination .page-numbers.current {
	border-color: var(--help-ink);
	background: var(--help-ink);
	color: #fff;
}

/* Single article and standard pages */
body.single #inner-content-wrapper,
body.page:not(.home) #inner-content-wrapper {
	display: block;
	width: min(100% - 36px, 800px);
	max-width: 800px;
	padding: 48px 0 72px;
}

body.single #primary,
body.page:not(.home) #primary {
	width: 100%;
	float: none;
}

body.single .single-wrapper > article,
body.page:not(.home) #main > article {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	transform: none !important;
}

.help-article-header,
body.page:not(.home) .entry-header {
	margin-bottom: 28px;
}

body.single .help-article-header .entry-title,
body.page:not(.home) .entry-header .entry-title {
	margin: 0;
	background: none !important;
	color: var(--help-ink) !important;
	font-size: clamp(32px, 5vw, 48px) !important;
	font-weight: 720 !important;
	letter-spacing: -0.045em;
	line-height: 1.15;
	-webkit-text-fill-color: currentColor !important;
}

body.single .entry-content,
body.page:not(.home) .entry-content {
	max-width: none;
	margin: 0;
	color: #333 !important;
	font-family: inherit !important;
	font-size: 17px;
	letter-spacing: 0;
	line-height: 1.8;
}

body.single .entry-content p,
body.page:not(.home) .entry-content p {
	margin: 0 0 1.35em;
	color: #333 !important;
}

body.single .entry-content h2,
body.single .entry-content h3,
body.single .entry-content h4,
body.page:not(.home) .entry-content h2,
body.page:not(.home) .entry-content h3,
body.page:not(.home) .entry-content h4 {
	margin: 1.8em 0 0.7em;
	color: var(--help-ink) !important;
	font-family: inherit;
	line-height: 1.3;
}

body.single .entry-content a,
body.page:not(.home) .entry-content a {
	color: #c72963;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

body.single .entry-content img,
body.page:not(.home) .entry-content img,
body.single .featured-image img {
	max-width: 100%;
	height: auto;
	border-radius: 16px !important;
	box-shadow: none;
}

body.single .featured-image {
	max-width: none;
	margin: 0 0 30px;
}

body.single .entry-meta {
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid var(--help-line);
	color: var(--help-muted);
}

#comments {
	margin-top: 50px;
}

/* Footer */
#colophon.site-footer {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-top: 1px solid #ededed !important;
	background: #f7f7f7 !important;
	box-shadow: none !important;
	backdrop-filter: none !important;
}

#colophon .site-info {
	padding: 30px 0;
	background: transparent;
	color: #6f6f6f !important;
}

#colophon .site-info .wrapper {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 16px 30px;
	text-align: left;
}

.help-footer-brand {
	grid-column: 1;
	display: flex;
	align-items: center;
	gap: 13px;
	color: var(--help-ink);
}

.help-footer-brand strong {
	font-size: 18px;
	letter-spacing: 0.08em;
}

.help-footer-brand span {
	display: inline-flex;
	padding-left: 13px;
	border-left: 1px solid #cfcfcf;
	color: #6f6f6f !important;
	font-size: 13px;
}

.help-footer-links {
	grid-column: 2;
	display: flex;
	gap: 24px;
}

#colophon .help-footer-links a {
	color: #5d5d5d !important;
	font-size: 13px;
	text-decoration: none;
}

.help-footer-copyright {
	grid-column: 1 / -1;
	margin: 0;
	color: #909090;
	font-size: 12px;
}

.backtotop {
	border-radius: 999px;
	background: var(--help-ink) !important;
}

/* Focus visibility and reduced motion */
a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 3px solid rgba(23, 23, 23, 0.45);
	outline-offset: 3px;
}

@media (max-width: 991px) {
	#masthead #site-navigation .menu-toggle {
		display: inline-flex;
		width: 44px !important;
		height: 44px !important;
		padding: 0 !important;
		align-items: center;
		justify-content: center;
		border: 1px solid rgba(255, 255, 255, 0.5) !important;
		border-radius: 999px !important;
		background: rgba(255, 255, 255, 0.12) !important;
		box-shadow: none !important;
		color: #fff !important;
		transform: none !important;
	}

	#masthead .menu-toggle .menu-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	#masthead #site-navigation .menu-toggle svg {
		width: 22px;
		height: 22px;
		fill: #fff;
	}

	#masthead #site-navigation .menu-main-menu-container,
	#masthead #site-navigation > div:not(.menu-main-menu-container) {
		display: none;
	}

	#masthead #site-navigation.toggled .menu-main-menu-container,
	#masthead #site-navigation.toggled > div:not(.menu-main-menu-container) {
		display: block;
		position: absolute;
		top: 66px;
		right: 18px;
		left: 18px;
		padding: 10px;
		border: 1px solid rgba(255, 255, 255, 0.35);
		border-radius: 16px;
		background: rgba(48, 31, 28, 0.94);
		box-shadow: 0 18px 45px rgba(40, 20, 15, 0.24);
		backdrop-filter: blur(18px);
	}

	#masthead #site-navigation.toggled ul.nav-menu {
		display: block !important;
	}

	#masthead #site-navigation.toggled ul.nav-menu li a {
		display: block;
		padding: 12px;
	}
}

@media (max-width: 700px) {
	#masthead.site-header {
		min-height: 334px;
	}

	#masthead .help-nav-shell {
		min-height: 70px;
	}

	.help-wordmark {
		font-size: 24px;
	}

	.help-center-name {
		padding-left: 14px;
		font-size: 14px;
	}

	#masthead.site-header .help-hero {
		align-items: stretch;
		padding: 93px 0 54px !important;
		text-align: left;
	}

	.help-create-link {
		position: absolute;
		top: 78px;
		left: 18px;
		display: inline-flex !important;
		min-height: 36px;
		padding: 0 14px;
	}

	.help-hero h1,
	body .help-hero h1 {
		margin-bottom: 30px;
		font-size: 32px !important;
	}

	.help-hero .search-form {
		width: 100%;
		height: 48px;
	}

	.help-home {
		padding: 56px 0 62px;
	}

	.help-category-grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.help-category-card {
		min-height: 224px;
		padding: 30px 24px;
	}

	.help-content-shell,
	body #inner-content-wrapper.help-content-shell {
		padding: 38px 0 58px !important;
	}

	.help-page-heading {
		margin-bottom: 23px;
	}

	.help-page-heading h1,
	body .help-page-heading h1 {
		font-size: 30px !important;
	}

	.help-article-link {
		min-height: 118px;
		padding: 20px;
		gap: 12px;
	}

	.help-article-copy {
		gap: 13px;
	}

	.help-article-icon {
		width: 40px;
		height: 40px;
		flex-basis: 40px;
	}

	.help-article-excerpt {
		-webkit-line-clamp: 2;
	}

	body.single #inner-content-wrapper,
	body.page:not(.home) #inner-content-wrapper {
		padding: 38px 0 58px;
	}

	body.single .help-article-header .entry-title,
	body.page:not(.home) .entry-header .entry-title {
		font-size: 34px !important;
	}

	body.single .entry-content,
	body.page:not(.home) .entry-content {
		font-size: 16px;
		line-height: 1.75;
	}

	#colophon .site-info .wrapper {
		grid-template-columns: 1fr;
	}

	.help-footer-brand,
	.help-footer-links {
		grid-column: auto;
	}

	.help-footer-links {
		flex-wrap: wrap;
		gap: 10px 20px;
	}

	.help-footer-copyright {
		grid-column: auto;
	}
}

@media (max-width: 360px) {
	.wrapper,
	body.single #inner-content-wrapper,
	body.page:not(.home) #inner-content-wrapper {
		width: calc(100% - 28px);
	}

	.help-center-name {
		gap: 10px;
		padding-left: 10px;
	}

	.help-article-icon {
		display: none;
	}

	.help-article-link {
		padding: 18px;
	}
}

/* Tags use their own search hero, so keep the shared header compact here. */
body.music-tag-page #masthead.site-header {
	height: 76px !important;
	min-height: 76px;
	background: #fff !important;
	border-bottom: 1px solid var(--help-line) !important;
	overflow: visible;
}

body.music-tag-page #masthead.site-header::before,
body.music-tag-page #masthead.site-header::after,
body.music-tag-page #masthead.site-header .help-hero {
	display: none !important;
}

body.music-tag-page #masthead.site-header .help-nav-shell {
	height: 76px !important;
}

body.music-tag-page .help-wordmark,
body.music-tag-page .help-wordmark:hover,
body.music-tag-page .help-wordmark:focus,
body.music-tag-page .help-center-name,
body.music-tag-page #masthead #site-navigation ul.nav-menu > li > a {
	color: var(--help-ink) !important;
}

body.music-tag-page .help-center-name {
	border-left-color: #d4d4d4;
}

body.music-tag-page #masthead #site-navigation ul.nav-menu > li.current-menu-item > a {
	border-bottom-color: var(--help-ink) !important;
}

body.music-tag-page #masthead #site-navigation ul.nav-menu > li.menu-item-home.current-menu-item:not(:hover):not(:focus-within) > a {
	border-bottom-color: transparent !important;
}

body.music-tag-page .help-create-link {
	border-color: var(--help-ink);
	background: var(--help-ink);
	color: #fff !important;
}

body.music-tag-page .help-create-link:hover,
body.music-tag-page .help-create-link:focus {
	border-color: #343434;
	background: #343434;
}

@media (max-width: 991px) {
	body.music-tag-page #masthead #site-navigation .menu-toggle {
		border-color: #d4d4d4 !important;
		background: #fff !important;
		color: var(--help-ink) !important;
	}

	body.music-tag-page #masthead #site-navigation .menu-toggle svg {
		fill: var(--help-ink);
	}

	body.music-tag-page #masthead #site-navigation.toggled .menu-main-menu-container,
	body.music-tag-page #masthead #site-navigation.toggled > div:not(.menu-main-menu-container) {
		border-color: var(--help-line);
		background: #fff;
		box-shadow: 0 18px 45px rgba(20, 20, 20, 0.14);
		backdrop-filter: none;
	}
}

@media (max-width: 700px) {
	body.music-tag-page #masthead.site-header,
	body.music-tag-page #masthead .help-nav-shell {
		height: 70px !important;
		min-height: 70px;
	}

	body.music-tag-page #masthead #site-navigation {
		gap: 10px;
	}

	body.music-tag-page .help-center-name {
		display: none;
	}

	body.music-tag-page .help-create-link {
		position: static;
		min-height: 36px;
		padding: 0 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
