/*
 * KHC Clear: base. Element defaults, Genesis wrappers and the three emphasis
 * devices (SPEC §5: ONE per headline): highlighter, script word, colored period.
 * No motion anywhere (dead end), so no transitions or animations.
 */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body.khc,
.editor-styles-wrapper {
	margin: 0;
	font-family: var(--khc-font);
	font-size: var(--khc-fs-body);
	font-weight: 400;
	line-height: 1.65;
	color: var(--khc-black);
	background: var(--khc-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

.khc a {
	color: var(--khc-black);
	text-decoration: none;
}

.khc a:hover {
	color: var(--khc-charcoal);
}

.khc a:focus-visible,
.khc button:focus-visible,
.khc input:focus-visible {
	outline: 3px solid var(--khc-black);
	outline-offset: 3px;
}

/* Zero-specificity defaults (:where), so WordPress's block spacing and the size
   picker's classes always win over them inside page content. */
:where(.khc) :where(h1, h2, h3, h4) {
	margin: 0;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: var(--khc-track-display);
	color: inherit;
}

:where(.khc) :where(h1) {
	font-size: var(--khc-fs-h1);
	line-height: 1;
}

:where(.khc) :where(h2) {
	font-size: var(--khc-fs-h2);
}

:where(.khc) :where(h3) {
	font-size: var(--khc-fs-h3);
	line-height: 1.2;
	letter-spacing: -0.02em;
}

:where(.khc) :where(p) {
	margin: 0 0 1em;
}

/* Inside block layouts, spacing comes from the layout's gap, not from paragraph margins. */
:where(.is-layout-flow, .is-layout-constrained, .is-layout-flex, .is-layout-grid, .wp-block-column) > :where(p) {
	margin-bottom: 0;
}

.khc button {
	font: inherit;
	color: inherit;
}

/* ---------- Genesis wrappers: no widths or padding of their own; sections set them. ---------- */
.khc .site-container,
.khc .site-inner,
.khc .content-sidebar-wrap,
.khc .content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

/* ---------- Accessibility ---------- */
.screen-reader-text,
.screen-reader-shortcut,
.genesis-skip-link .skip-link-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.genesis-skip-link {
	margin: 0;
	padding: 0;
	list-style: none;
}

.screen-reader-shortcut:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 14px 24px;
	margin: 0;
	clip: auto;
	background: var(--khc-black);
	color: var(--khc-white) !important;
	border-radius: 999px;
	font-weight: 700;
	font-size: 16px;
}

/* ---------- Emphasis: the highlighter (flat, level, never angled) ---------- */
.khc-hl,
mark.khc-hl {
	color: inherit;
	background: linear-gradient(transparent 60%, var(--khc-yellow) 60%, var(--khc-yellow) 94%, transparent 94%);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.khc-hl--dark,
.is-dark .khc-hl {
	background: linear-gradient(transparent 84%, var(--khc-yellow) 84%, var(--khc-yellow) 97%, transparent 97%);
}

/* ---------- Emphasis: the script word. Black on light; turquoise (or yellow) on dark. ---------- */
.khc-script {
	position: relative;
	display: inline-block;
	margin: -0.3em 0.02em -0.2em 0.16em;
	font-family: var(--khc-script-font);
	font-size: 1.5em;
	font-weight: 400;
	font-style: normal;
	letter-spacing: 0;
	line-height: 1;
	color: var(--khc-black);
}

.is-dark .khc-script {
	color: var(--khc-turquoise);
}

.is-dark .khc-script--yellow {
	color: var(--khc-yellow);
}

/* ---------- Emphasis: the colored period. One per page; none on orange or coral grounds. ---------- */
.khc-period {
	margin-left: 0.04em;
	color: var(--khc-orange);
}

/* ---------- Lists: the brand » marker (SPEC; Oct. 1). Orange on light, yellow on dark. → is for links only. ---------- */
.khc-list,
.khc .entry-content ul:not([class]) {
	margin: 0 0 1.2em;
	padding: 0;
	list-style: none;
}

.khc-list > li,
.khc .entry-content ul:not([class]) > li {
	position: relative;
	padding-left: 1.15em;
	margin-bottom: 0.5em;
}

.khc-list > li::before,
.khc .entry-content ul:not([class]) > li::before {
	content: "\00BB";
	position: absolute;
	left: 0;
	font-weight: 700;
	color: var(--khc-orange);
}

.is-dark .khc-list > li::before {
	color: var(--khc-yellow);
}

/* ---------- Grounds ---------- */
.is-dark {
	background: var(--khc-black);
	color: var(--khc-white);
}

.is-dark a {
	color: var(--khc-white);
}

.is-gray {
	background: var(--khc-light);
}
