/* The Kaizen Chapter – extra styles that theme.json can't express. */

/* ---------- Labels / kickers ---------- */
.kc-label,
.is-style-kc-label,
.kc-label a {
	font-family: var(--wp--preset--font-family--archivo-narrow);
	font-weight: 700;
	font-size: 13px;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--black);
}
.kc-label a:hover { text-decoration: underline; }
.kc-label.is-grey, .kc-label.is-grey a { color: var(--wp--preset--color--grey); }
h2.is-style-kc-label, h3.is-style-kc-label { font-size: 14px; letter-spacing: 0.14em; margin: 0; }
.kc-label .wp-block-post-terms__separator { display: none; }
.kc-label a + a::before { content: " · "; }

/* ---------- Evidence badge ---------- */
.kc-badge {
	display: inline-flex;
	align-items: center;
	gap: 0;
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 800;
	font-size: 11px;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border: 1.5px solid currentColor;
	padding: 5px 8px 4px;
	margin: 0;
}
.kc-badge:empty { display: none; }
.kc-badge .wp-block-post-terms__prefix { font-weight: 800; }
.kc-badge a { color: inherit; text-decoration: none; }
.kc-badge a:hover { text-decoration: underline; }
.kc-badge .wp-block-post-terms__separator { display: none; }
.kc-badge a + a { display: none; } /* one rating per story */
.kc-badge:has(a[href*="/evidence/hype"]) { background: #000; color: #fff; border-color: #000; }
.kc-dark .kc-badge:has(a[href*="/evidence/hype"]) { background: #fff; color: #000; border-color: #fff; }
.kc-badge.is-large { font-size: 13px; padding: 7px 10px 6px; border-width: 2px; }

/* Meta row: label + badge side by side */
.kc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.kc-meta > * { margin: 0 !important; }

/* ---------- Top bar ---------- */
.kc-topbar {
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.kc-topbar p { margin: 0; }
.kc-topbar a { color: #fff; font-weight: 700; }

/* ---------- Masthead ---------- */
.kc-masthead { gap: 24px; }
.kc-utility { font-family: var(--wp--preset--font-family--archivo); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.kc-utility .wp-block-search__button { background: none; color: #000; padding: 6px; border: 0; }
.kc-utility .wp-block-search__inside-wrapper { border: 0; }
.kc-utility .wp-block-search__input { border: 1px solid #000; font-size: 14px; }
.kc-utility .wp-block-navigation a { font-family: var(--wp--preset--font-family--archivo); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; }

.kc-logo {
	display: inline-flex;
	flex-direction: column;
	align-items: stretch;
	width: max-content;
	color: #000;
	text-decoration: none !important;
	line-height: 1;
}
.kc-logo__the {
	font-family: var(--wp--preset--font-family--source-serif);
	font-style: italic;
	font-weight: 400;
	font-size: 22px;
	line-height: 1;
	margin-left: 3px;
}
.kc-logo__kaizen {
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 900;
	font-size: 78px;
	letter-spacing: -0.05em;
	line-height: 0.82;
}
.kc-logo__chapter {
	font-family: var(--wp--preset--font-family--archivo-narrow);
	font-weight: 700;
	font-size: 17px;
	line-height: 1;
	margin-top: 7px;
	display: flex;
	justify-content: space-between;
	padding: 0 2px 0 4px;
}
.kc-logo.is-reversed { color: #fff; }

.kc-subscribe .wp-block-button__link { padding: 12px 20px; font-size: 13px; }

/* Section menu between a thin and a thick rule */
.kc-sections {
	border-top: 1px solid #000;
	border-bottom: 3px solid #000;
	padding-top: 14px;
	padding-bottom: 14px;
}
.kc-sections .wp-block-navigation { font-size: 15px; }
.kc-topics { font-family: var(--wp--preset--font-family--archivo-narrow); }
.kc-topics .wp-block-navigation { font-size: 13px; color: var(--wp--preset--color--grey); }
.kc-topics .wp-block-navigation a { color: var(--wp--preset--color--grey); }

/* ---------- Cards ---------- */
.kc-card .wp-block-post-featured-image { margin: 0; }
.kc-card .wp-block-post-featured-image img { width: 100%; object-fit: cover; }
.kc-card .wp-block-post-title { margin: 0; }
.kc-card .wp-block-post-excerpt { margin: 0; }
.kc-card .wp-block-post-excerpt__excerpt { margin: 0; }
.kc-card .wp-block-post-excerpt__more-text { display: none; }

/* Featured image fallback when a post has none: keep the grid tidy */
.kc-card .wp-block-post-featured-image:empty { display: none; }

/* Latest column: hairline between items */
.kc-latest .wp-block-post-template > li { border-top: 1px solid var(--wp--preset--color--rule); padding: 16px 0; margin: 0; }
.kc-latest .wp-block-post-template > li:first-child { border-top-color: #000; }

/* Lead story column divider */
.kc-lead-aside { border-left: 1px solid #000; padding-left: 32px; }

/* Black box (Hype Check) */
.kc-dark, .kc-dark a, .kc-dark .kc-label, .kc-dark .kc-label a { color: #fff; }

/* Newsletter box */
.kc-newsletter { border: 3px solid #000; }
.kc-newsletter form { display: flex; flex-wrap: wrap; gap: 0; width: 100%; }
.kc-newsletter input[type="email"] {
	flex: 1 1 240px;
	min-height: 56px;
	border: 2px solid #000;
	border-radius: 0;
	padding: 0 16px;
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 16px;
	background: #fff;
	color: #000;
	box-sizing: border-box;
}
.kc-newsletter button {
	min-height: 56px;
	background: #000;
	color: #fff;
	border: 0;
	border-radius: 0;
	padding: 0 28px;
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
}
.kc-newsletter button:hover { background: #1a1a1a; }
.kc-sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kc-newsletter__small { font-family: var(--wp--preset--font-family--archivo); font-size: 12px; color: var(--wp--preset--color--grey); margin: 8px 0 0; width: 100%; }

/* Black border box block style */
.is-style-kc-box { border: 2px solid #000; padding: 24px 28px; }

/* Outline button */
.wp-block-button.is-style-kc-outline .wp-block-button__link { background: transparent; color: #000; border: 2px solid #000; }
.wp-block-button.is-style-kc-outline .wp-block-button__link:hover { background: #000; color: #fff; }

/* ---------- Article ---------- */
.kc-article-content { font-size: var(--wp--preset--font-size--medium); }
.kc-article-content > p:first-of-type::first-letter {
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 900;
	float: left;
	font-size: 4.2em;
	line-height: 0.82;
	margin: 0.06em 0.08em 0 0;
}
.kc-article-content h2 { margin-top: 1.8em; }
.kc-article-content h3 { margin-top: 1.5em; }
.kc-article-content a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.kc-article-content figure.wp-block-image figcaption { text-align: left; }

/* Evidence box at the top of every article */
.kc-evidence-box { border-top: 3px solid #000; border-bottom: 1px solid #000; }
.kc-evidence-box p { margin: 0; }
.kc-scale { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--wp--preset--font-family--archivo); font-size: 13px; color: var(--wp--preset--color--grey); }
.kc-scale strong { color: #000; font-weight: 800; letter-spacing: 0.08em; }

/* "I tried it" test box */
.kc-testbox { border: 2px solid #000; }
.kc-testbox dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; font-family: var(--wp--preset--font-family--archivo); font-size: 15px; }
.kc-testbox dt { font-family: var(--wp--preset--font-family--archivo-narrow); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; padding-top: 2px; }
.kc-testbox dd { margin: 0; }

/* Ranked list item */
.kc-rank { border-top: 3px solid #000; }
.kc-rank__num { font-family: var(--wp--preset--font-family--archivo); font-weight: 900; font-size: 64px; line-height: 0.85; letter-spacing: -0.04em; }
.kc-rank__score { font-family: var(--wp--preset--font-family--archivo); font-weight: 900; font-size: 34px; line-height: 1; letter-spacing: -0.02em; }
.kc-rank__score small { font-size: 16px; font-weight: 700; color: var(--wp--preset--color--grey); letter-spacing: 0; }
.kc-proscons h4 { font-family: var(--wp--preset--font-family--archivo-narrow); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 8px; }
.kc-proscons ul { font-family: var(--wp--preset--font-family--archivo); font-size: 16px; margin: 0; padding-left: 1.1em; }

/* Sources */
.kc-sources ol { font-family: var(--wp--preset--font-family--archivo); font-size: 14px; line-height: 1.5; padding-left: 1.4em; }
.kc-sources li { margin-bottom: 6px; }

/* Small print */
.kc-smallprint, .kc-smallprint p { font-family: var(--wp--preset--font-family--archivo); font-size: 13px; line-height: 1.5; color: var(--wp--preset--color--grey); }

/* Tags under the article */
.kc-tags a {
	display: inline-block;
	border: 1px solid #000;
	padding: 4px 10px;
	margin: 0 6px 6px 0;
	font-family: var(--wp--preset--font-family--archivo-narrow);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
}
.kc-tags a:hover { background: #000; color: #fff; }
.kc-tags .wp-block-post-terms__separator { display: none; }

/* ---------- Archive header ---------- */
.kc-archive-head { border-bottom: 3px solid #000; }
.kc-archive-head .wp-block-query-title { margin: 0; font-size: var(--wp--preset--font-size--huge); }
.kc-archive-head .wp-block-term-description p { margin: 0; }

/* Archive list rows */
.kc-list .wp-block-post-template > li { border-top: 1px solid #000; padding: 28px 0; margin: 0; }

/* ---------- Footer ---------- */
.kc-footer, .kc-footer a { color: #fff; }
.kc-footer .wp-block-navigation a { font-family: var(--wp--preset--font-family--archivo-narrow); font-size: 13px; }
.kc-footer-logo { display: flex; align-items: baseline; gap: 8px; color: #fff; text-decoration: none !important; flex-wrap: wrap; }
.kc-footer-logo .the { font-family: var(--wp--preset--font-family--source-serif); font-style: italic; font-size: 24px; }
.kc-footer-logo .k { font-family: var(--wp--preset--font-family--archivo); font-weight: 900; font-size: 44px; letter-spacing: -0.045em; line-height: 1; }
.kc-footer-logo .c { font-family: var(--wp--preset--font-family--archivo-narrow); font-weight: 700; font-size: 44px; letter-spacing: 0.02em; line-height: 1; }

/* ---------- Search form ---------- */
.wp-block-search__input { border: 2px solid #000; border-radius: 0; min-height: 48px; padding: 0 14px; }
.wp-block-search__button { border-radius: 0; margin-left: 0; }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.kc-utility { display: none !important; }
	.kc-masthead { justify-content: space-between !important; }
	.kc-logo__the { font-size: 15px; }
	.kc-logo__kaizen { font-size: 48px; }
	.kc-logo__chapter { font-size: 11px; margin-top: 5px; }
	.kc-lead-aside { border-left: 0; padding-left: 0; border-top: 3px solid #000; padding-top: 16px; }
	.kc-sections .wp-block-navigation__container { gap: 10px 18px; justify-content: center; }
	.kc-topics { display: none; }
	.kc-footer-logo .k, .kc-footer-logo .c { font-size: 32px; }
	.kc-rank__num { font-size: 48px; }
	.kc-article-content > p:first-of-type::first-letter { font-size: 3.4em; }
}

/* ---------- Fixes after first render ---------- */
.kc-badge { align-self: flex-start; width: auto !important; }
.wp-block-post-terms__prefix { margin-right: 0.4em; }
.kc-dark .kc-badge:has(a[href*="/evidence/hype"]) a { color: #000; }
.kc-footer hr.wp-block-separator { width: 100%; max-width: none; opacity: 0.35; border-top-width: 1px; height: 0; }
.kc-newsletter input[type="email"] { flex: 1 1 160px; min-width: 0; }
.kc-testbox .kc-label { margin-bottom: 4px; }

/* Header: keep masthead inside the 1360px grid */
header.wp-block-group.alignwide,
.wp-block-template-part > header.wp-block-group {
	max-width: 1360px;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box;
}
.kc-subscribe .wp-block-button__link { white-space: nowrap; }
@media (max-width: 781px) {
	.kc-topics { display: none !important; }
	.kc-subscribe .wp-block-button__link { padding: 10px 14px; font-size: 12px; }
	.kc-topbar { font-size: 11px; }
}
@media (max-width: 1408px) {
	header.wp-block-group.alignwide,
	.wp-block-template-part > header.wp-block-group { padding-left: 24px; padding-right: 24px; }
}
.kc-footer hr.wp-block-separator { width: auto !important; max-width: 1360px !important; margin-left: auto !important; margin-right: auto !important; }
.kc-list .wp-block-post-template > li:first-child { border-top: 0; }
.kc-cookie-link { margin: 24px 0 0; font-family: var(--wp--preset--font-family--archivo-narrow); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.kc-cookie-link a { color: #fff; text-decoration: underline; }

/* ---------- Cookie banner (theme-built, no plugin) ---------- */
#kc-cookie {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
	max-width: 600px; margin: 0 auto;
	background: #fff; color: #000; border: 2px solid #000; border-radius: 0;
	padding: 16px 18px; box-shadow: 6px 6px 0 #000;
	font-family: var(--wp--preset--font-family--archivo); font-size: 15px; line-height: 1.5;
	display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
#kc-cookie[hidden] { display: none; }
#kc-cookie p { margin: 0; flex: 1 1 260px; }
#kc-cookie a { color: #000; text-decoration: underline; }
#kc-cookie .kc-cookie-btns { display: flex; gap: 8px; }
#kc-cookie button {
	font: inherit; font-weight: 800; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
	cursor: pointer; border-radius: 0; padding: 10px 18px; border: 2px solid #000; background: #fff; color: #000;
}
#kc-cookie button.kc-cookie-accept { background: #000; color: #fff; }
#kc-cookie button:hover { background: #1a1a1a; color: #fff; }
#kc-cookie button:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

/* Auto-boxes (v1.1.2): pasted "The 30-second version" and "Sources" sections */
.kc-takeaways { padding: 24px 28px; margin-top: 32px; margin-bottom: 32px; }
.kc-takeaways .kc-label { margin: 0 0 12px; }
.kc-takeaways ul, .kc-takeaways ol { font-family: var(--wp--preset--font-family--archivo); font-size: 17px; line-height: 1.5; margin: 0; padding-left: 1.2em; }
.kc-takeaways li { margin-bottom: 6px; }
.kc-takeaways li:last-child { margin-bottom: 0; }
.kc-sources { border-top: 3px solid #000; margin-top: 48px; padding-top: 20px; }
.kc-sources > h2.is-style-kc-label { margin-bottom: 12px; }
.kc-sources ul { font-family: var(--wp--preset--font-family--archivo); font-size: 14px; line-height: 1.5; padding-left: 1.4em; }
.kc-sources > p { font-family: var(--wp--preset--font-family--archivo); font-size: 14px; line-height: 1.5; margin: 0 0 6px; }
