/**
 * Document pages (help, shipping, returns, size guide, legal).
 * Scoped so the rest of the store keeps 14px body type.
 */

.hype-doc {
	--hype-doc-sticky: 88px;
	max-width: var(--hype-container);
	margin-inline: auto;
	padding: var(--hype-space-7) var(--hype-page-pad) var(--hype-space-8);
	color: var(--hype-ink);
}

body:not(:has(.hype-utility-bar)) .hype-doc {
	--hype-doc-sticky: 56px;
}

@media (min-width: 1280px) {
	.hype-doc {
		--hype-doc-sticky: 96px;
	}

	body:not(:has(.hype-utility-bar)) .hype-doc {
		--hype-doc-sticky: 64px;
	}
}

.hype-doc__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hype-space-6);
	align-items: start;
}

@media (min-width: 1024px) {
	.hype-doc__layout {
		grid-template-columns: 200px minmax(0, 640px);
		column-gap: var(--hype-space-7);
		justify-content: start;
	}
}

.hype-doc__title {
	margin: 0;
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.hype-doc__updated {
	margin: var(--hype-space-3) 0 0;
	color: var(--hype-mute);
	font-family: var(--hype-mono);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
}

.hype-doc__nav {
	position: sticky;
	top: var(--hype-doc-sticky);
	z-index: 2;
	display: flex;
	gap: var(--hype-space-4);
	margin-inline: calc(var(--hype-page-pad) * -1);
	padding: var(--hype-space-3) var(--hype-page-pad);
	overflow-x: auto;
	background: var(--hype-canvas);
	border-bottom: 1px solid var(--hype-line);
}

.hype-doc__nav ol {
	display: flex;
	gap: var(--hype-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.hype-doc__nav a {
	color: var(--hype-mute);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.hype-doc__nav a[aria-current="true"] {
	color: var(--hype-ink);
}

.hype-doc__nav a:hover,
.hype-doc__nav a:focus-visible {
	color: var(--hype-ink);
}

.hype-doc__nav a:focus-visible {
	outline: 2px solid var(--hype-focus);
	outline-offset: 2px;
}

@media (min-width: 1024px) {
	.hype-doc__nav {
		display: block;
		margin: 0;
		padding: var(--hype-space-2) 0 0;
		overflow: visible;
		background: transparent;
		border-bottom: 0;
	}

	.hype-doc__nav ol {
		display: grid;
		gap: var(--hype-space-3);
	}

	.hype-doc__nav a {
		white-space: normal;
	}
}

.hype-doc__content,
.editor-styles-wrapper.hype-doc {
	max-width: 640px;
	font-size: 16px;
	line-height: 1.6;
	letter-spacing: -0.01em;
}

.hype-doc__content > *:first-child,
.editor-styles-wrapper.hype-doc > *:first-child {
	margin-top: 0;
}

.hype-doc__content h2,
.editor-styles-wrapper.hype-doc h2 {
	margin: var(--hype-space-7) 0 var(--hype-space-4);
	padding-top: var(--hype-space-5);
	border-top: 1px solid var(--hype-line);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.02em;
	scroll-margin-top: calc(var(--hype-doc-sticky, 88px) + var(--hype-space-4));
}

.hype-doc__content h2:first-child,
.editor-styles-wrapper.hype-doc h2:first-child {
	margin-top: var(--hype-space-6);
}

.hype-doc__content h3,
.editor-styles-wrapper.hype-doc h3 {
	margin: var(--hype-space-5) 0 var(--hype-space-3);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
}

.hype-doc__content p,
.hype-doc__content li,
.editor-styles-wrapper.hype-doc p,
.editor-styles-wrapper.hype-doc li {
	font-size: 16px;
	line-height: 1.6;
}

.hype-doc__content a,
.editor-styles-wrapper.hype-doc a {
	color: var(--hype-ink);
}

.hype-doc--legal .hype-doc__content,
.editor-styles-wrapper.hype-doc--legal {
	counter-reset: hype-clause;
}

.hype-doc--legal .hype-doc__content h2,
.editor-styles-wrapper.hype-doc--legal h2 {
	display: flex;
	align-items: baseline;
	gap: var(--hype-space-3);
	counter-increment: hype-clause;
}

.hype-doc--legal .hype-doc__content h2::before,
.editor-styles-wrapper.hype-doc--legal h2::before {
	content: counter(hype-clause, decimal-leading-zero);
	flex: 0 0 auto;
	color: var(--hype-mute);
	font-family: var(--hype-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0;
}

.hype-doc-facts {
	display: grid;
	grid-template-columns: 1fr;
	margin: 0 0 var(--hype-space-6);
	padding: 0;
	border-block: 1px solid var(--hype-line);
}

.hype-doc-facts.is-layout-flex,
.hype-doc-facts.wp-block-columns {
	gap: 0;
	margin-bottom: var(--hype-space-6);
}

.hype-doc-facts > .wp-block-column {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--hype-space-4);
	flex-basis: auto;
	margin: 0;
	padding: var(--hype-space-4) 0;
	border-top: 1px solid var(--hype-line);
}

.hype-doc-facts > .wp-block-column:first-child {
	border-top: 0;
}

@media (min-width: 768px) {
	.hype-doc-facts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.hype-doc-facts > .wp-block-column {
		display: block;
		padding: var(--hype-space-5) var(--hype-space-4);
		border-top: 0;
		border-inline-start: 1px solid var(--hype-line);
	}

	.hype-doc-facts > .wp-block-column:first-child {
		padding-inline-start: 0;
		border-inline-start: 0;
	}
}

.hype-doc-facts__value {
	margin: 0;
	font-family: var(--hype-mono);
	font-size: 20px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.03em;
}

@media (min-width: 768px) {
	.hype-doc-facts__value {
		font-size: clamp(28px, 3vw, 40px);
	}
}

.hype-doc-facts__label {
	margin: 0;
	color: var(--hype-mute);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

@media (min-width: 768px) {
	.hype-doc-facts__label {
		margin-top: var(--hype-space-2);
	}
}

.hype-doc-index {
	margin: 0 0 var(--hype-space-6);
}

.hype-doc-index__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--hype-space-4);
	margin: 0;
	padding: var(--hype-space-4) 0;
	border-bottom: 1px solid var(--hype-line);
	font-size: 16px;
	line-height: 1.3;
}

.hype-doc-index__row a {
	color: var(--hype-ink);
	text-decoration: none;
}

.hype-doc-index__row a:hover,
.hype-doc-index__row a:focus-visible {
	text-decoration: underline;
}

.hype-doc-index__fact {
	flex: 0 0 auto;
	color: var(--hype-mute);
	font-family: var(--hype-mono);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
}

.hype-doc__content .wp-block-table,
.hype-doc__content table,
.editor-styles-wrapper.hype-doc .wp-block-table,
.editor-styles-wrapper.hype-doc table {
	width: 100%;
	margin: 0 0 var(--hype-space-6);
	background: var(--hype-surface);
	border-collapse: collapse;
}

.hype-doc__content .wp-block-table,
.editor-styles-wrapper.hype-doc .wp-block-table {
	overflow-x: auto;
}

.hype-doc__content table th,
.hype-doc__content table td,
.editor-styles-wrapper.hype-doc table th,
.editor-styles-wrapper.hype-doc table td {
	height: 44px;
	padding: 0 var(--hype-space-4);
	border: 0;
	border-bottom: 1px solid var(--hype-line);
	font-family: var(--hype-mono);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
	text-align: left;
	vertical-align: middle;
	white-space: nowrap;
}

.hype-doc__content table th,
.editor-styles-wrapper.hype-doc table th {
	font-family: var(--hype-font);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

@media (max-width: 767.98px) {
	.hype-doc__content table th:first-child,
	.hype-doc__content table td:first-child,
	.editor-styles-wrapper.hype-doc table th:first-child,
	.editor-styles-wrapper.hype-doc table td:first-child {
		position: sticky;
		left: 0;
		z-index: 1;
		background: var(--hype-surface);
	}
}

.hype-doc__content ul,
.hype-doc__content ol,
.editor-styles-wrapper.hype-doc ul,
.editor-styles-wrapper.hype-doc ol {
	margin: 0 0 var(--hype-space-5);
	padding-left: 1.1em;
}

.hype-doc .hype-doc-claim {
	margin: 0 0 var(--hype-space-6);
	border: 1px solid var(--hype-ink);
	background: var(--hype-surface);
	box-sizing: border-box;
	max-width: 100%;
}

.hype-doc .hype-doc-claim *,
.hype-doc .hype-doc-claim *::before,
.hype-doc .hype-doc-claim *::after {
	box-sizing: border-box;
}

.hype-doc .hype-doc-claim > .wp-block-group,
.hype-doc .hype-doc-claim__ask,
.hype-doc .hype-doc-claim__term,
.hype-doc .hype-doc-claim__copy,
.hype-doc .hype-doc-claim__meter {
	margin: 0;
}

.hype-doc .hype-doc-claim__ask {
	padding: var(--hype-space-5);
	background: var(--hype-ink);
	color: var(--hype-on-ink);
}

.hype-doc .hype-doc-claim__kicker {
	margin: 0 0 var(--hype-space-3);
	color: rgb(255 255 255 / 72%);
	font-family: var(--hype-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.hype-doc .hype-doc-claim h2 {
	margin: 0 0 var(--hype-space-3);
	padding: 0;
	border: 0;
	color: inherit;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.02em;
	overflow-wrap: break-word;
}

.hype-doc .hype-doc-claim__ask h2 {
	color: var(--hype-on-ink);
	font-size: clamp(22px, 4vw, 28px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.hype-doc .hype-doc-claim__ask > p:not(.hype-doc-claim__kicker) {
	margin: 0 0 var(--hype-space-5);
	max-width: 36em;
	color: var(--hype-on-ink);
}

.hype-doc .hype-doc-claim__ask .wp-block-buttons {
	margin: 0;
}

.hype-doc .hype-doc-claim__ask .wp-block-button__link {
	color: var(--hype-ink);
	background: var(--hype-on-ink);
	border-color: var(--hype-on-ink);
}

.hype-doc .hype-doc-claim__ask .wp-block-button__link:hover,
.hype-doc .hype-doc-claim__ask .wp-block-button__link:focus-visible {
	color: var(--hype-on-ink);
	background: transparent;
	border-color: var(--hype-on-ink);
	text-decoration: none;
}

.hype-doc .hype-doc-claim__term {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hype-space-4);
	padding: var(--hype-space-5);
	border-top: 1px solid var(--hype-ink);
	min-width: 0;
}

.hype-doc .hype-doc-claim__copy {
	min-width: 0;
}

.hype-doc .hype-doc-claim__figure {
	margin: 0;
	font-family: var(--hype-mono);
	font-size: clamp(56px, 12vw, 72px);
	font-weight: 600;
	line-height: 0.8;
	letter-spacing: -0.04em;
}

.hype-doc .hype-doc-claim__unit {
	margin: 0 0 var(--hype-space-3);
	color: var(--hype-mute);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.hype-doc .hype-doc-claim__copy > p:last-child {
	margin: 0;
}

@media (min-width: 640px) {
	.hype-doc .hype-doc-claim__term:not(.hype-doc-claim__term--law) {
		grid-template-columns: 4.75rem minmax(0, 1fr);
		column-gap: var(--hype-space-5);
		align-items: start;
	}

	.hype-doc .hype-doc-claim__term:not(.hype-doc-claim__term--law) .hype-doc-claim__figure {
		padding-top: 2px;
	}
}

.hype-doc .hype-doc-claim__term--law {
	background: var(--hype-canvas);
}

.hype-doc .hype-doc-claim__cite {
	margin: 0;
	color: var(--hype-ink);
	font-family: var(--hype-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
}

.hype-doc .hype-doc-claim__term--law .hype-doc-claim__figure {
	font-size: clamp(40px, 6vw, 48px);
	line-height: 1;
}

.hype-doc .hype-doc-claim__meter {
	display: flex;
	align-items: baseline;
	gap: var(--hype-space-3);
}

.hype-doc .hype-doc-claim__meter .hype-doc-claim__unit {
	margin: 0;
}

@media (min-width: 640px) {
	.hype-doc .hype-doc-claim__term--law {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: end;
	}

	.hype-doc .hype-doc-claim__term--law .hype-doc-claim__cite {
		grid-column: 1 / -1;
	}

	.hype-doc .hype-doc-claim__meter {
		justify-content: flex-end;
		padding-bottom: 2px;
	}
}

.hype-doc--legal .hype-doc-claim h2 {
	display: block;
}

.hype-doc--legal .hype-doc-claim h2::before {
	content: none;
}

.hype-doc .hype-doc-about__lead,
.hype-doc .hype-doc-about__lead > *,
.hype-doc .hype-doc-contact__channel,
.hype-doc .hype-doc-contact__copy,
.hype-doc .hype-doc-contact__action {
	margin: 0;
}

.hype-doc .hype-doc-about__kicker,
.hype-doc .hype-doc-contact__kicker {
	margin: 0 0 var(--hype-space-3);
	color: var(--hype-mute);
	font-family: var(--hype-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.hype-doc .hype-doc-about__lead h2,
.hype-doc .hype-doc-contact__copy h2 {
	margin: 0 0 var(--hype-space-3);
	padding: 0;
	border: 0;
	font-size: clamp(28px, 5vw, 40px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.hype-doc .hype-doc-about__line {
	margin: 0 0 var(--hype-space-4);
	font-size: clamp(22px, 4vw, 28px);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.hype-doc .hype-doc-about__lead > p:last-child {
	max-width: 38em;
	margin-bottom: var(--hype-space-6);
}

.hype-doc .hype-doc-about .wp-block-buttons {
	margin-top: var(--hype-space-5);
}

.hype-doc .hype-doc-contact__channel {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hype-space-5);
	margin-bottom: var(--hype-space-2);
	padding-bottom: var(--hype-space-5);
	border-bottom: 1px solid var(--hype-ink);
}

.hype-doc .hype-doc-contact__copy > p:last-child {
	max-width: 36em;
	margin-bottom: 0;
}

.hype-doc .hype-doc-contact__action {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--hype-space-4);
	min-width: 0;
}

.hype-doc .hype-doc-contact__number {
	margin: 0;
	font-family: var(--hype-mono);
	font-size: clamp(22px, 4vw, 32px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.04em;
}

.hype-doc .hype-doc-contact__action .wp-block-buttons {
	margin: 0;
}

.hype-doc .hype-doc-contact .hype-doc-index {
	margin-bottom: 0;
}

@media (min-width: 640px) {
	.hype-doc .hype-doc-contact__channel {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: end;
		column-gap: var(--hype-space-6);
	}

	.hype-doc .hype-doc-contact__action {
		align-items: flex-end;
	}
}

.hype-doc--legal .hype-doc-about h2,
.hype-doc--legal .hype-doc-contact h2 {
	display: block;
}

.hype-doc--legal .hype-doc-about h2::before,
.hype-doc--legal .hype-doc-contact h2::before {
	content: none;
}

.hype-doc .hype-doc-legal-head,
.hype-doc .hype-doc-legal-head__main {
	margin: 0;
}

.hype-doc .hype-doc-legal-head {
	display: grid;
	gap: var(--hype-space-4);
	margin-bottom: var(--hype-space-6);
}

.hype-doc .hype-doc-legal-kicker {
	margin: 0 0 var(--hype-space-2);
	color: var(--hype-mute);
	font-family: var(--hype-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.16em;
	line-height: 1.2;
	text-transform: uppercase;
}

.hype-doc .hype-doc-legal-head__title {
	margin: 0;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.hype-doc .hype-doc-legal-head__note {
	margin: 0;
	max-width: 18rem;
	color: var(--hype-mute);
	font-size: 13px;
	line-height: 1.5;
}

.hype-doc .hype-doc-register,
.hype-doc .hype-doc-parties,
.hype-doc .hype-doc-jar,
.hype-doc .hype-doc-rights {
	margin: 0 0 var(--hype-space-6);
	border: 1px solid var(--hype-ink);
}

.hype-doc .hype-doc-register__row,
.hype-doc .hype-doc-parties__row,
.hype-doc .hype-doc-jar__row,
.hype-doc .hype-doc-rights li {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hype-space-1);
	align-items: baseline;
	margin: 0;
	padding: var(--hype-space-3) var(--hype-space-4);
	border-bottom: 1px solid var(--hype-line);
}

.hype-doc .hype-doc-register__row:last-child,
.hype-doc .hype-doc-parties__row:last-child,
.hype-doc .hype-doc-jar__row:last-child,
.hype-doc .hype-doc-rights li:last-child {
	border-bottom: 0;
}

.hype-doc .hype-doc-register__key,
.hype-doc .hype-doc-parties__key,
.hype-doc .hype-doc-jar__role {
	color: var(--hype-mute);
	font-family: var(--hype-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase;
}

.hype-doc .hype-doc-register__use,
.hype-doc .hype-doc-parties__value,
.hype-doc .hype-doc-jar__name {
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.35;
}

.hype-doc .hype-doc-jar__row {
	grid-template-areas:
		"role"
		"name"
		"why";
}

.hype-doc .hype-doc-jar__role {
	grid-area: role;
}

.hype-doc .hype-doc-jar__name {
	grid-area: name;
	font-family: var(--hype-mono);
	font-size: 14px;
	letter-spacing: 0;
	overflow-wrap: anywhere;
}

.hype-doc .hype-doc-jar__why {
	grid-area: why;
	display: block;
	margin-top: var(--hype-space-1);
	color: var(--hype-mute);
	font-family: var(--hype-font);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.45;
}

.hype-doc .hype-doc-rights {
	padding: 0;
	list-style: none;
}

.hype-doc .hype-doc-rights span {
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.hype-doc--legal :is(.hype-doc-privacy, .hype-doc-terms, .hype-doc-cookies) h2 {
	align-items: baseline;
	margin: 0;
	padding: var(--hype-space-5) 0 var(--hype-space-3);
	border: 0;
	border-top: 1px solid var(--hype-ink);
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.hype-doc--legal :is(.hype-doc-privacy, .hype-doc-terms, .hype-doc-cookies) h2::before {
	width: 3rem;
	font-size: 12px;
}

.hype-doc .hype-doc-clause__tag {
	display: none;
	color: var(--hype-mute);
	font-family: var(--hype-font);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.2;
	text-transform: none;
}

.hype-doc--legal :is(.hype-doc-privacy, .hype-doc-terms, .hype-doc-cookies) h2 + p {
	margin-top: 0;
	margin-bottom: var(--hype-space-5);
	color: var(--hype-mute);
	font-size: 14px;
	line-height: 1.55;
}

.hype-doc .hype-doc-legal-foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--hype-space-3);
	margin: var(--hype-space-2) 0 0;
	padding-top: var(--hype-space-4);
	border-top: 1px solid var(--hype-ink);
	color: var(--hype-mute);
	font-size: 12px;
	line-height: 1.4;
}

.hype-doc .hype-doc-legal-foot span:last-child {
	color: var(--hype-ink);
	font-weight: 500;
}

@media (min-width: 640px) {
	.hype-doc .hype-doc-legal-head {
		grid-template-columns: minmax(0, 1fr) 14rem;
		align-items: end;
		column-gap: var(--hype-space-6);
	}

	.hype-doc .hype-doc-register__row,
	.hype-doc .hype-doc-parties__row,
	.hype-doc .hype-doc-rights li {
		grid-template-columns: 10rem minmax(0, 1fr);
		column-gap: var(--hype-space-4);
	}

	.hype-doc .hype-doc-jar__row {
		grid-template-columns: 10rem minmax(0, 1fr);
		grid-template-areas:
			"role name"
			"role why";
		column-gap: var(--hype-space-4);
	}

	.hype-doc .hype-doc-clause__tag {
		display: inline;
		margin-left: auto;
	}

	.hype-doc--legal :is(.hype-doc-privacy, .hype-doc-terms, .hype-doc-cookies) h2 + p {
		padding-left: calc(3rem + var(--hype-space-3));
	}
}
