/* CHISEN Battery — site-wide shell polish (header / footer) */

header.wp-block-template-part {
	border-bottom: 1px solid #eef1f5;
	padding: clamp(12px, 1.5vw, 20px) 0;
}

header.wp-block-template-part > .wp-block-group,
header.wp-block-template-part .wp-block-group.is-layout-constrained {
	max-width: 1180px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* The site title was rendering at 100px; bring it back to brand size */
header.wp-block-template-part .wp-block-site-title,
header.wp-block-template-part .wp-block-site-title a {
	font-size: clamp(15px, 1.1vw, 18px) !important;
	line-height: 1.3 !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em;
	text-decoration: none;
}

@media (min-width: 782px) {
	header.wp-block-template-part nav.wp-block-navigation,
	header.wp-block-template-part nav.wp-block-navigation .wp-block-navigation__container,
	header.wp-block-template-part nav.wp-block-navigation .wp-block-navigation__container > .wp-block-navigation-item {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: wrap;
		align-items: center;
		justify-content: flex-end;
		gap: clamp(14px, 1.8vw, 28px);
		width: auto !important;
	}
}

header.wp-block-template-part .wp-block-navigation-item__content {
	font-size: 0.92rem;
	font-weight: 500;
	text-decoration: none;
}

header.wp-block-template-part .wp-block-navigation-item__content:hover {
	color: #0b1b2b;
}

footer.wp-block-template-part {
	border-top: 1px solid #eef1f5;
	margin-top: clamp(32px, 4vw, 56px);
	padding-top: clamp(24px, 3vw, 40px);
	font-size: 0.85rem;
}

footer.wp-block-template-part > .wp-block-group,
footer.wp-block-template-part .wp-block-group.is-layout-constrained {
	max-width: 1180px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* ---------- footer: readable size, English layout ---------- */
footer.wp-block-template-part .wp-block-site-title,
footer.wp-block-template-part .wp-block-site-title a {
	font-size: clamp(17px, 1.3vw, 20px) !important;
	font-weight: 700 !important;
	line-height: 1.3;
	letter-spacing: -0.01em;
	text-decoration: none;
}

footer.wp-block-template-part .wp-block-site-tagline {
	font-size: 0.88rem;
	color: #5b6b7c;
	max-width: 56ch;
	line-height: 1.6;
}

footer.wp-block-template-part .has-small-font-size,
footer.wp-block-template-part .wp-block-paragraph {
	color: #6b7a89;
}

@media (min-width: 782px) {
	footer.wp-block-template-part nav.wp-block-navigation .wp-block-navigation__container {
		flex-direction: row !important;
		flex-wrap: wrap;
		gap: 10px 28px;
	}

	footer.wp-block-template-part nav.wp-block-navigation {
		align-self: flex-start;
	}
}