body[class*="llamabolt-lab-"] {
	--wp--preset--color--ink: var(--llamabolt-lab-primary);
	--wp--preset--color--orange: var(--llamabolt-lab-accent);
	--wp--preset--color--paper: var(--llamabolt-lab-paper);
	--wp--custom--color--foreground: var(--llamabolt-lab-ink);
	--wp--custom--color--background: var(--llamabolt-lab-paper);
	--wp--custom--color--accent: var(--llamabolt-lab-accent);
	--wp--custom--color--text-on-feature: var(--llamabolt-lab-on-primary);
	--wp--custom--color--text-on-feature-muted: var(--llamabolt-lab-on-primary);
	--wp--style--global--wide-size: var(--llamabolt-lab-wide);
}

body[class*="llamabolt-lab-"]:not(.llamabolt-color-palette-active) {
	background-color: var(--llamabolt-lab-paper);
	background-image: none;
	background-size: auto;
	color: var(--llamabolt-lab-ink);
}

:where(body[class*="llamabolt-lab-"]) :where(a, button, input, select, summary, textarea):focus-visible {
	outline-color: var(--llamabolt-lab-accent);
}

:where(body[class*="llamabolt-lab-"]) .llamabolt-site-header {
	background: transparent;
	border-bottom-width: 0;
	color: inherit;
}

:where(body[class*="llamabolt-lab-"]) .llamabolt-header-branding,
:where(body[class*="llamabolt-lab-"]) .llamabolt-header-branding .wp-block-site-title {
	background: transparent;
	color: inherit;
	padding: 0;
}

:where(body[class*="llamabolt-lab-"]) .llamabolt-header-branding .wp-block-site-title {
	font-weight: 700;
	letter-spacing: -0.055em;
}

:where(body[class*="llamabolt-lab-"]) .llamabolt-primary-navigation {
	letter-spacing: normal;
}

:where(body[class*="llamabolt-lab-"]) :is(.llamabolt-story-card, .llamabolt-posts-card) {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: inherit;
	padding: 0;
}

:where(body[class*="llamabolt-lab-"]) :is(.llamabolt-story-card, .llamabolt-posts-card) :where(img, .wp-block-post-featured-image),
body[class*="llamabolt-lab-"] :is(.wp-block-image img, .wp-block-post-featured-image img) {
	border-radius: var(--llamabolt-lab-radius);
}

.llamabolt-header-branding .wp-block-site-logo,
.llamabolt-image-masthead__identity .wp-block-site-logo {
	width: min(var(--llamabolt-lab-logo-width), 100%);
	max-width: 100%;
	max-height: none;
}

.llamabolt-header-branding .wp-block-site-logo img,
.llamabolt-image-masthead__identity .wp-block-site-logo img {
	height: auto;
	max-height: none;
	max-width: 100%;
	width: 100%;
}

body.llamabolt-lab-identity-display-title .llamabolt-header-branding > .wp-block-site-logo,
body.llamabolt-lab-identity-display-title .llamabolt-image-masthead__identity > .wp-block-site-logo,
body.llamabolt-lab-identity-display-logo .llamabolt-header-branding > .wp-block-site-title,
body.llamabolt-lab-identity-display-logo .llamabolt-image-masthead__identity-text > .wp-block-site-title {
	display: none;
}

body.llamabolt-lab-identity-display-both .llamabolt-header-branding > .wp-block-site-title,
body.llamabolt-lab-identity-display-both .llamabolt-image-masthead__identity-text > .wp-block-site-title {
	display: block;
}

body.llamabolt-lab-foundation-dark {
	background-color: var(--llamabolt-lab-paper);
	color: var(--llamabolt-lab-ink);
}

body.llamabolt-lab-background-spotlight {
	background-image: radial-gradient(circle at 70% 8%, color-mix(in srgb, var(--llamabolt-lab-accent) 25%, transparent), transparent 22%);
}

body.llamabolt-lab-background-dots {
	background-image: radial-gradient(color-mix(in srgb, var(--llamabolt-lab-primary) 15%, transparent) 1px, transparent 1px);
	background-size: 14px 14px;
}

body.llamabolt-lab-background-grain {
	background-image: repeating-linear-gradient(0deg, transparent, transparent 3px, color-mix(in srgb, var(--llamabolt-lab-ink) 3%, transparent) 4px);
}

body.llamabolt-lab-header-style-bold .llamabolt-site-header,
body.llamabolt-lab-header-style-bold .llamabolt-header-main {
	background: var(--llamabolt-lab-primary);
	color: var(--llamabolt-lab-on-primary);
	border-bottom-width: 0;
}

body.llamabolt-lab-header-style-bold .llamabolt-header-main {
	padding-left: var(--wp--custom--gutter);
	padding-right: var(--wp--custom--gutter);
}

body.llamabolt-lab-header-style-bold .llamabolt-header-main :is(a, button),
body.llamabolt-lab-header-style-block .llamabolt-header-branding :is(a, .wp-block-site-title) {
	color: inherit;
}

body.llamabolt-lab-header-style-block .llamabolt-header-branding {
	background: var(--llamabolt-lab-accent);
	color: var(--llamabolt-lab-on-accent);
	padding: 0.3rem 1rem;
}

body.llamabolt-lab-header-style-minimal .llamabolt-site-header {
	border-bottom-width: 1px;
}

body.llamabolt-lab-header-style-minimal .llamabolt-primary-nav-row {
	display: none;
}

body.llamabolt-lab-header-style-elegant .llamabolt-header-branding .wp-block-site-title {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 400;
	letter-spacing: -0.03em;
}

body.llamabolt-lab-header-style-elegant .llamabolt-primary-navigation {
	letter-spacing: 0.15em;
}

body[class*="llamabolt-lab-"] .llamabolt-lead-story {
	color: var(--llamabolt-lab-on-primary);
}

body[class*="llamabolt-lab-"] .llamabolt-lead-story :is(.llamabolt-lead-title, .llamabolt-story-excerpt, .llamabolt-story-meta, .llamabolt-story-meta a) {
	color: inherit;
}

body[class*="llamabolt-lab-"] :is(.llamabolt-eyebrow, .llamabolt-section-kicker),
body[class*="llamabolt-lab-"] :is(.llamabolt-eyebrow, .llamabolt-section-kicker) a {
	color: var(--llamabolt-lab-surface-accent);
}

body[class*="llamabolt-lab-"] .llamabolt-lead-story .llamabolt-eyebrow,
body[class*="llamabolt-lab-"] .llamabolt-lead-story .llamabolt-eyebrow a {
	color: var(--llamabolt-lab-feature-accent);
}

:where(body.llamabolt-lab-card-style-framed) :is(.llamabolt-story-card, .llamabolt-posts-card) {
	border: 1px solid currentColor;
	padding: 0.65rem;
}

:where(body.llamabolt-lab-card-style-pop) :is(.llamabolt-story-card, .llamabolt-posts-card) {
	background: var(--llamabolt-lab-accent);
	box-shadow: 6px 6px 0 var(--llamabolt-lab-primary);
	color: var(--llamabolt-lab-on-accent);
	padding: 0.65rem;
}

:where(body.llamabolt-lab-card-style-pop) :is(.llamabolt-story-card, .llamabolt-posts-card) :is(a, h2, h3, p, .llamabolt-story-excerpt, .llamabolt-story-meta) {
	color: inherit;
}

:where(body.llamabolt-lab-card-style-raw) :is(.llamabolt-story-card, .llamabolt-posts-card) {
	border-top: 6px solid currentColor;
	padding-top: 0.6rem;
}

:where(body.llamabolt-lab-card-style-quiet) :is(.llamabolt-story-card, .llamabolt-posts-card) {
	border-bottom: 1px solid currentColor;
	padding-bottom: 1rem;
}

.editor-styles-wrapper {
	--wp--preset--color--ink: var(--llamabolt-lab-primary);
	--wp--preset--color--orange: var(--llamabolt-lab-accent);
	--wp--preset--color--paper: var(--llamabolt-lab-paper);
	--wp--custom--color--foreground: var(--llamabolt-lab-ink);
	--wp--custom--color--background: var(--llamabolt-lab-paper);
	--wp--custom--color--accent: var(--llamabolt-lab-accent);
	--wp--custom--color--text-on-feature: var(--llamabolt-lab-on-primary);
	--wp--custom--color--text-on-feature-muted: var(--llamabolt-lab-on-primary);
	--wp--style--global--wide-size: var(--llamabolt-lab-wide);
}

/*
 * Color Lab component defaults. The frontend rules are inert unless PHP adds
 * llamabolt-color-palette-active for a valid design snapshot. Editor rules use
 * variables that PHP emits only while that snapshot is active. Explicit native
 * block color classes and inline color declarations are intentionally excluded.
 */
body.llamabolt-color-palette-active .llamabolt-feature-section:not(.has-background):not([class*="has-"][class*="-background-color"]):not([style*="background"]),
.editor-styles-wrapper .llamabolt-feature-section:not(.has-background):not([class*="has-"][class*="-background-color"]):not([style*="background"]) {
	background-color: var(--llamabolt-color-surface);
}

body.llamabolt-color-palette-active :where(.llamabolt-story-card, .llamabolt-posts-card):not(.has-background):not([class*="has-"][class*="-background-color"]):not([style*="background"]),
.editor-styles-wrapper :where(.llamabolt-story-card, .llamabolt-posts-card):not(.has-background):not([class*="has-"][class*="-background-color"]):not([style*="background"]) {
	background-color: var(--llamabolt-color-card);
}

body.llamabolt-color-palette-active :where(h1:not(.llamabolt-lead-title), h2:not(.llamabolt-lead-title), h3:not(.llamabolt-lead-title), h4:not(.llamabolt-lead-title), h5:not(.llamabolt-lead-title), h6:not(.llamabolt-lead-title), .llamabolt-story-card .wp-block-post-title, .llamabolt-posts-card .wp-block-post-title):not(.has-text-color):not(:where(.has-text-color, [style*="color"]) *),
.editor-styles-wrapper :where(h1:not(.llamabolt-lead-title), h2:not(.llamabolt-lead-title), h3:not(.llamabolt-lead-title), h4:not(.llamabolt-lead-title), h5:not(.llamabolt-lead-title), h6:not(.llamabolt-lead-title), .llamabolt-story-card .wp-block-post-title, .llamabolt-posts-card .wp-block-post-title):not(.has-text-color):not(:where(.has-text-color, [style*="color"]) *) {
	color: var(--llamabolt-color-headline);
}

body.llamabolt-color-palette-active :where(.llamabolt-article-content, .llamabolt-article-content p, .llamabolt-story-excerpt, .llamabolt-story-excerpt p, .llamabolt-page-content p, .llamabolt-footer-note-copy):not(.has-text-color):not(:where(.has-text-color, [style*="color"]) *),
.editor-styles-wrapper :where(.llamabolt-article-content, .llamabolt-article-content p, .llamabolt-story-excerpt, .llamabolt-story-excerpt p, .llamabolt-page-content p, .llamabolt-footer-note-copy):not(.has-text-color):not(:where(.has-text-color, [style*="color"]) *) {
	color: var(--llamabolt-color-body);
}

body.llamabolt-color-palette-active :where(.llamabolt-story-meta, .llamabolt-story-meta time, .llamabolt-article-meta, .llamabolt-footer-meta, .wp-block-post-date, .wp-block-post-author-name, .llamabolt-page-featured-image figcaption):not(.has-text-color):not(:where(.has-text-color, [style*="color"]) *),
.editor-styles-wrapper :where(.llamabolt-story-meta, .llamabolt-story-meta time, .llamabolt-article-meta, .llamabolt-footer-meta, .wp-block-post-date, .wp-block-post-author-name, .llamabolt-page-featured-image figcaption):not(.has-text-color):not(:where(.has-text-color, [style*="color"]) *) {
	color: var(--llamabolt-color-muted);
}

body.llamabolt-color-palette-active :where(.llamabolt-front-page a, .llamabolt-single a, .llamabolt-page-content a, .llamabolt-archive a, .llamabolt-posts-index a, .llamabolt-search a, .llamabolt-pattern-section a, .llamabolt-article-navigation a):not(.wp-block-button__link):not(.has-text-color):not(:where(.has-link-color, .has-text-color, [style*="color"]) *),
.editor-styles-wrapper :where(.llamabolt-front-page a, .llamabolt-single a, .llamabolt-page-content a, .llamabolt-archive a, .llamabolt-posts-index a, .llamabolt-search a, .llamabolt-pattern-section a, .llamabolt-article-navigation a):not(.wp-block-button__link):not(.has-text-color):not(:where(.has-link-color, .has-text-color, [style*="color"]) *) {
	color: var(--llamabolt-color-link);
	text-decoration-color: currentColor;
}

body.llamabolt-color-palette-active :where(.llamabolt-front-page a, .llamabolt-single a, .llamabolt-page-content a, .llamabolt-archive a, .llamabolt-posts-index a, .llamabolt-search a, .llamabolt-pattern-section a, .llamabolt-article-navigation a):not(.wp-block-button__link):not(.has-text-color):not(:where(.has-link-color, .has-text-color, [style*="color"]) *):hover,
.editor-styles-wrapper :where(.llamabolt-front-page a, .llamabolt-single a, .llamabolt-page-content a, .llamabolt-archive a, .llamabolt-posts-index a, .llamabolt-search a, .llamabolt-pattern-section a, .llamabolt-article-navigation a):not(.wp-block-button__link):not(.has-text-color):not(:where(.has-link-color, .has-text-color, [style*="color"]) *):hover {
	color: var(--llamabolt-color-link-hover);
}

body.llamabolt-color-palette-active .llamabolt-site-header:not(.has-background):not([class*="has-"][class*="-background-color"]):not([style*="background"]),
body.llamabolt-color-palette-active .llamabolt-header-main:not(.has-background):not([class*="has-"][class*="-background-color"]):not([style*="background"]),
.editor-styles-wrapper .llamabolt-site-header:not(.has-background):not([class*="has-"][class*="-background-color"]):not([style*="background"]),
.editor-styles-wrapper .llamabolt-header-main:not(.has-background):not([class*="has-"][class*="-background-color"]):not([style*="background"]) {
	background-color: var(--llamabolt-color-header-bg);
}

body.llamabolt-color-palette-active :where(.llamabolt-site-header, .llamabolt-header-main):not(.has-text-color),
.editor-styles-wrapper :where(.llamabolt-site-header, .llamabolt-header-main):not(.has-text-color) {
	color: var(--llamabolt-color-header-text);
}

body.llamabolt-color-palette-active .llamabolt-primary-nav-row:not(.has-background):not([class*="has-"][class*="-background-color"]):not([style*="background"]),
body.llamabolt-color-palette-active .llamabolt-mobile-nav-row:not(.has-background):not([class*="has-"][class*="-background-color"]):not([style*="background"]),
body.llamabolt-color-palette-active .wp-block-navigation__responsive-container.is-menu-open:not(.has-background):not([class*="has-"][class*="-background-color"]):not([style*="background"]),
.editor-styles-wrapper .llamabolt-primary-nav-row:not(.has-background):not([class*="has-"][class*="-background-color"]):not([style*="background"]),
.editor-styles-wrapper .llamabolt-mobile-nav-row:not(.has-background):not([class*="has-"][class*="-background-color"]):not([style*="background"]),
.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-open:not(.has-background):not([class*="has-"][class*="-background-color"]):not([style*="background"]) {
	background-color: var(--llamabolt-color-nav-bg);
}

body.llamabolt-color-palette-active :where(.llamabolt-primary-navigation, .llamabolt-mobile-nav-row, .wp-block-navigation__responsive-container.is-menu-open) :where(a, button, .wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close):not(.has-text-color):not(:where(.has-text-color, [style*="color"]) *),
.editor-styles-wrapper :where(.llamabolt-primary-navigation, .llamabolt-mobile-nav-row, .wp-block-navigation__responsive-container.is-menu-open) :where(a, button, .wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close):not(.has-text-color):not(:where(.has-text-color, [style*="color"]) *) {
	color: var(--llamabolt-color-nav-text);
}

body.llamabolt-color-palette-active .llamabolt-primary-navigation :is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation-item__content:not(.has-text-color),
.editor-styles-wrapper .llamabolt-primary-navigation :is(.current-menu-item, .current-menu-ancestor) > .wp-block-navigation-item__content:not(.has-text-color) {
	text-decoration-color: var(--llamabolt-color-nav-active);
	text-decoration-thickness: 3px;
}

body.llamabolt-color-palette-active .llamabolt-lead-story:not(.has-background):not([class*="has-"][class*="-background-color"]):not([style*="background"]),
.editor-styles-wrapper .llamabolt-lead-story:not(.has-background):not([class*="has-"][class*="-background-color"]):not([style*="background"]) {
	background-color: var(--llamabolt-color-hero-bg);
}

body.llamabolt-color-palette-active .llamabolt-lead-story:not(.has-text-color):not([style*="color"]) :where(.llamabolt-lead-title, .llamabolt-story-excerpt, .llamabolt-story-meta, .llamabolt-story-meta a):not(.has-text-color),
.editor-styles-wrapper .llamabolt-lead-story:not(.has-text-color):not([style*="color"]) :where(.llamabolt-lead-title, .llamabolt-story-excerpt, .llamabolt-story-meta, .llamabolt-story-meta a):not(.has-text-color) {
	color: var(--llamabolt-color-hero-text);
}

body.llamabolt-color-palette-active .llamabolt-ticker > h2:not(.has-background):not([class*="has-"][class*="-background-color"]):not([style*="background"]):not(.has-text-color),
.editor-styles-wrapper .llamabolt-ticker > h2:not(.has-background):not([class*="has-"][class*="-background-color"]):not([style*="background"]):not(.has-text-color) {
	background-color: var(--llamabolt-color-ticker-bg);
	color: var(--llamabolt-color-ticker-text);
}

body.llamabolt-color-palette-active .llamabolt-section-heading:not(.has-text-color) > p:not(.has-text-color),
.editor-styles-wrapper .llamabolt-section-heading:not(.has-text-color) > p:not(.has-text-color) {
	color: var(--llamabolt-color-accent);
}

body.llamabolt-color-palette-active .llamabolt-numbered-list .llamabolt-story-card::before,
.editor-styles-wrapper .llamabolt-numbered-list .llamabolt-story-card::before {
	color: var(--llamabolt-color-brand);
}

body.llamabolt-color-palette-active :where(.llamabolt-site-footer):not(.has-background):not([class*="has-"][class*="-background-color"]):not([style*="background"]),
.editor-styles-wrapper :where(.llamabolt-site-footer):not(.has-background):not([class*="has-"][class*="-background-color"]):not([style*="background"]) {
	background-color: var(--llamabolt-color-footer-bg);
}

body.llamabolt-color-palette-active :where(.llamabolt-site-footer, .llamabolt-site-footer .wp-block-heading, .llamabolt-site-footer .llamabolt-footer-note-copy):not(.has-text-color):not(:where(.has-text-color, [style*="color"]) *),
.editor-styles-wrapper :where(.llamabolt-site-footer, .llamabolt-site-footer .wp-block-heading, .llamabolt-site-footer .llamabolt-footer-note-copy):not(.has-text-color):not(:where(.has-text-color, [style*="color"]) *) {
	color: var(--llamabolt-color-footer-text);
}

body.llamabolt-color-palette-active :where(.llamabolt-site-footer a, .llamabolt-site-footer .wp-block-navigation-item__content):not(.wp-block-button__link):not(.has-text-color):not(:where(.has-link-color, .has-text-color, [style*="color"]) *),
.editor-styles-wrapper :where(.llamabolt-site-footer a, .llamabolt-site-footer .wp-block-navigation-item__content):not(.wp-block-button__link):not(.has-text-color):not(:where(.has-link-color, .has-text-color, [style*="color"]) *) {
	color: var(--llamabolt-color-footer-link);
}

body.llamabolt-color-palette-active :where(.wp-block-button__link, .llamabolt-header-search .wp-block-search__button, .llamabolt-newsletter-provider button):not(.has-background):not([class*="has-"][class*="-background-color"]):not([style*="background"]):not(.has-text-color),
.editor-styles-wrapper :where(.wp-block-button__link, .llamabolt-header-search .wp-block-search__button, .llamabolt-newsletter-provider button):not(.has-background):not([class*="has-"][class*="-background-color"]):not([style*="background"]):not(.has-text-color) {
	background-color: var(--llamabolt-color-button-bg);
	color: var(--llamabolt-color-button-text);
}

body.llamabolt-color-palette-active :where(.llamabolt-site-header, .llamabolt-primary-nav-row, .llamabolt-ticker, .llamabolt-ticker > h2, .llamabolt-ticker-query .wp-block-post-template > li, .llamabolt-section-heading, .llamabolt-article-navigation):not([style*="border"]),
.editor-styles-wrapper :where(.llamabolt-site-header, .llamabolt-primary-nav-row, .llamabolt-ticker, .llamabolt-ticker > h2, .llamabolt-ticker-query .wp-block-post-template > li, .llamabolt-section-heading, .llamabolt-article-navigation):not([style*="border"]) {
	border-color: var(--llamabolt-color-border);
}

body.llamabolt-color-palette-active :where(a, button, input, select, summary, textarea):focus-visible,
.editor-styles-wrapper :where(a, button, input, select, summary, textarea):focus-visible {
	outline-color: var(--llamabolt-color-focus);
}
