/**
 * Halcyon — supplementary styles.
 *
 * Only effects the block editor cannot express in theme.json live here:
 * block-style variations, card hover states, and small editorial niceties.
 * Everything else (colour, type, spacing) is theme.json and stays editable.
 */

/* ---- Readability ---------------------------------------------------- */
body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.entry-content,
.wp-block-post-content {
	text-wrap: pretty;
}

/* ---- Card group / columns variation --------------------------------- */
.wp-block-group.is-style-card,
.wp-block-columns.is-style-card {
	background-color: var(--wp--preset--color--base-2);
	border: 1px solid var(--wp--preset--color--secondary);
	border-radius: 16px;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	box-shadow: var(--wp--preset--shadow--soft);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

a:hover > .wp-block-group.is-style-card,
.wp-block-group.is-style-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--wp--preset--shadow--card);
	border-color: var(--wp--preset--color--primary);
}

/* ---- Soft frame image variation ------------------------------------- */
.wp-block-image.is-style-frame img,
.wp-block-post-featured-image.is-style-frame img,
.wp-block-post-featured-image.is-style-frame {
	border-radius: 16px;
	box-shadow: var(--wp--preset--shadow--card);
}

/* ---- Project / post cards ------------------------------------------- */
.halcyon-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background-color: var(--wp--preset--color--base-2);
	border: 1px solid var(--wp--preset--color--secondary);
	border-radius: 16px;
	overflow: clip;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.halcyon-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--wp--preset--shadow--card);
	border-color: var(--wp--preset--color--primary);
}

.halcyon-card .wp-block-post-featured-image {
	border-radius: 0;
	margin: 0;
}

.halcyon-card .wp-block-post-featured-image img {
	border-radius: 0;
}

/* Card content. The category kicker (core/post-terms) is styled globally in
   theme.json; here we keep the linked title dark (not link-blue) and mute the
   excerpt, so cards read like the mockup rather than a list of blue links. */
.halcyon-card .wp-block-post-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.halcyon-card .wp-block-post-title a:where(:hover, :focus) {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.halcyon-card .wp-block-post-excerpt {
	color: var(--wp--preset--color--contrast-2);
}

/* ---- Blog post list rows -------------------------------------------- *
 * The editorial list on the blog index. Date + category come styled from
 * theme.json (core/post-date, core/post-terms); here we keep the linked
 * title dark instead of link-blue and mute the excerpt, matching the design. */
.halcyon-postrow .wp-block-post-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.halcyon-postrow .wp-block-post-title a:where(:hover, :focus) {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.halcyon-postrow .wp-block-post-excerpt {
	color: var(--wp--preset--color--contrast-2);
}

.halcyon-postrow .wp-block-post-excerpt__more-link {
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
}

/* ---- Checklist list variation --------------------------------------- */
.wp-block-list.is-style-checks {
	list-style: none;
	padding-left: 0;
}

.wp-block-list.is-style-checks li {
	position: relative;
	padding-left: 1.75rem;
	margin-bottom: 0.6rem;
}

.wp-block-list.is-style-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 0.7rem;
	height: 0.4rem;
	border-left: 2px solid var(--wp--preset--color--primary);
	border-bottom: 2px solid var(--wp--preset--color--primary);
	transform: rotate(-45deg);
}

/* ---- Dotted separator variation ------------------------------------- */
.wp-block-separator.is-style-dotted {
	border: none;
	border-top: 2px dotted var(--wp--preset--color--secondary);
	background: none;
	max-width: 6rem;
	opacity: 1;
}

/* ---- Navigation underline on hover ---------------------------------- */
.wp-block-navigation .wp-block-navigation-item__content {
	transition: color 0.2s ease;
}

.wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primary);
}

/* ---- Navigation: top-level items as whole-cell links ----------------- *
 * Each first-level item is a fully clickable pill: padding lives on the
 * <a> itself, so the entire cell is the link. On hover/keyboard focus the
 * cell fills with the Primary preset (medium blue in light mode, pastel
 * blue in dark mode) with light-surface text — matching the buttons.
 * The chevron stays a separate touch target inside the same pill.
 * Scoped to :not(.is-menu-open) so the mobile overlay keeps core styling.
 *
 * Top-level links arrive two ways: <!-- wp:home-link --> renders a direct
 * .wp-block-navigation-item child of the container, while <!-- wp:page-list -->
 * wraps its links in <ul class="wp-block-page-list">. We flatten that wrapper
 * with display:contents so every first-level link shares one flex row (even
 * spacing), and target both shapes with :is() so the pill + hover fill apply
 * to all of them — not just Home. */

/* Flatten the Page List wrapper → its links become first-level flex items. */
.wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-page-list {
	display: contents;
}

.wp-block-navigation__responsive-container:not(.is-menu-open) :is(.wp-block-navigation__container, .wp-block-navigation__container > .wp-block-page-list) > .wp-block-navigation-item {
	border-radius: 8px;
	transition: background-color 0.15s ease;
}

.wp-block-navigation__responsive-container:not(.is-menu-open) :is(.wp-block-navigation__container, .wp-block-navigation__container > .wp-block-page-list) > .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding: 0.5rem 0.85rem;
	border-radius: 8px;
	text-decoration: none;
	transition: color 0.15s ease;
}

.wp-block-navigation__responsive-container:not(.is-menu-open) :is(.wp-block-navigation__container, .wp-block-navigation__container > .wp-block-page-list) > .wp-block-navigation-item.has-child > .wp-block-navigation-item__content {
	padding-right: 0.25rem;
}

.wp-block-navigation__responsive-container:not(.is-menu-open) :is(.wp-block-navigation__container, .wp-block-navigation__container > .wp-block-page-list) > .wp-block-navigation-item.has-child > .wp-block-navigation__submenu-icon {
	align-self: stretch;
	margin-left: 0;
	padding: 0 0.6rem 0 0.25rem;
}

.wp-block-navigation__responsive-container:not(.is-menu-open) :is(.wp-block-navigation__container, .wp-block-navigation__container > .wp-block-page-list) > .wp-block-navigation-item:where(:hover, :focus-within) {
	background-color: var(--wp--preset--color--primary);
}

.wp-block-navigation__responsive-container:not(.is-menu-open) :is(.wp-block-navigation__container, .wp-block-navigation__container > .wp-block-page-list) > .wp-block-navigation-item:where(:hover, :focus-within) > .wp-block-navigation-item__content,
.wp-block-navigation__responsive-container:not(.is-menu-open) :is(.wp-block-navigation__container, .wp-block-navigation__container > .wp-block-page-list) > .wp-block-navigation-item:where(:hover, :focus-within) > .wp-block-navigation__submenu-icon {
	color: var(--wp--preset--color--base-2);
	text-decoration: none;
}

/* ============================================================ *
 * Navigation dropdowns — 1- and 2-level submenus.
 *
 * The core Navigation block already renders nested menu items (or
 * nested pages, via the Page List fallback) as submenus, opening on
 * hover/focus on desktop and via the chevron button on touch. These
 * rules give the popovers Halcyon's chrome. Everything uses colour
 * presets, so dropdowns follow light/dark mode automatically.
 * Scoped to :not(.is-menu-open) so the mobile overlay keeps core's
 * accordion layout.
 * ============================================================ */

.wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--base-2);
	border: 1px solid var(--wp--preset--color--secondary);
	border-radius: 12px;
	box-shadow: var(--wp--preset--shadow--card);
	padding: 0.4rem;
	min-width: 220px;
	margin-top: 0.55rem;
	max-width: min(320px, calc(100vw - 2rem));
	transform: translateY(6px);
	transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
	transition-delay: 0.35s;
}

.wp-block-navigation__responsive-container:not(.is-menu-open) .has-child:where(:hover, :focus-within) > .wp-block-navigation__submenu-container {
	transform: translateY(0);
	/* The 0.35s delay above applies only when closing — opening is instant. */
	transition-delay: 0s;
}

/* Hover bridges: keep the interstitial gap between an item and its panel
   inside the hover area, so crossing it never collapses the menu. The
   pseudo-element is part of the (hidden) panel, so it only intercepts the
   pointer while the menu is open. */
.wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -0.65rem;
	height: 0.65rem;
}

/* Nested flyouts: bridge the horizontal gap instead. */
.wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container::before {
	top: 0;
	bottom: 0;
	left: -0.55rem;
	right: auto;
	width: 0.55rem;
	height: auto;
}

.wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .has-child.halcyon-opens-left > .wp-block-navigation__submenu-container::before {
	left: auto;
	right: -0.55rem;
}

/* Second level: flies out to the side of the first dropdown. */
.wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
	margin-top: -0.4rem;
	margin-left: 0.45rem;
	transform: translateX(6px);
}

.wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .has-child:where(:hover, :focus-within) > .wp-block-navigation__submenu-container {
	transform: translateX(0);
}

/* Edge-aware direction: assets/js/navigation.js adds .halcyon-opens-left
   to a .has-child item whose submenu would overflow the right edge of the
   viewport. Top-level dropdowns right-align; nested flyouts flip sides. */
.wp-block-navigation__responsive-container:not(.is-menu-open) .has-child.halcyon-opens-left > .wp-block-navigation__submenu-container {
	left: auto;
	right: -1px;
}

.wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .has-child.halcyon-opens-left > .wp-block-navigation__submenu-container {
	left: auto;
	right: 100%;
	margin-left: 0;
	margin-right: 0.45rem;
	transform: translateX(-6px);
}

.wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .has-child.halcyon-opens-left:where(:hover, :focus-within) > .wp-block-navigation__submenu-container {
	transform: translateX(0);
}

/* Items inside a dropdown: full-width rows with a soft hover state. */
.wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 0.5rem 0.8rem;
	border-radius: 8px;
	color: var(--wp--preset--color--contrast);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content:where(:hover, :focus-visible) {
	background-color: var(--wp--preset--color--tertiary);
	color: var(--wp--preset--color--primary);
}

/* Chevron: muted, rotates while its submenu is open. Tap target for touch. */
.wp-block-navigation__submenu-icon {
	color: var(--wp--preset--color--contrast-2);
}

.wp-block-navigation__submenu-icon svg {
	transition: transform 0.12s ease;
}

.wp-block-navigation .has-child:where(:hover, :focus-within) > .wp-block-navigation__submenu-icon svg,
.wp-block-navigation .wp-block-navigation-submenu__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

/* Mobile overlay: theme-coloured panel, indented accordion submenus. */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	border-left: 1px solid var(--wp--preset--color--secondary);
	padding-left: 0.9rem;
	margin-top: 0.4rem;
}

/* ---- Hero avatar (round initials block) ----------------------------- *
 * The avatar's circle, colours and centring all live here, so the pattern's
 * Group block can carry just a className (no inline style / dimensions /
 * border attributes to round-trip) — which keeps it valid in the editor. */
.halcyon-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	flex: 0 0 auto;
	border-radius: 50%;
	background-color: var(--wp--preset--color--secondary);
}

.halcyon-avatar .halcyon-avatar__initials {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	line-height: 1;
	text-align: center;
	color: var(--wp--preset--color--contrast);
}

/* ---- Eyebrow / kicker label ----------------------------------------- */
.halcyon-eyebrow {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}

/* ---- Report / findings pattern -------------------------------------- *
 * Layout for the "Report — findings" pattern. The numbered section headers
 * and summary chips are built from core block attributes; only the uppercase
 * lozenge and the hairline divider between findings need styles here — both
 * read from the scheme presets, so they follow light/dark automatically. */
.halcyon-badge {
	display: inline-block;
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 0.68rem;
	line-height: 1.5;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
	padding: 5px 11px;
	border-radius: 7px;
	background-color: var(--wp--preset--color--tertiary);
	color: var(--wp--preset--color--primary);
}

.halcyon-badge.halcyon-badge--solid {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base-2);
}

.halcyon-findings > .halcyon-finding {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--secondary) 55%, transparent);
}

.halcyon-findings > .halcyon-finding:first-child {
	border-top: 0;
}

/* ---- Fixes / corrections pattern ------------------------------------ *
 * The numbered lozenge, the muted column labels, and the dark code-block
 * and quotation placeholders used by the "Fixes & corrections" pattern.
 * Colours read from the scheme presets (the code block stays intentionally
 * dark in both schemes, like a code editor). */
.wp-block-group.halcyon-lozenge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
	border-radius: 12px;
	background-color: var(--wp--preset--color--tertiary);
}

.halcyon-lozenge .halcyon-lozenge__num {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1.2rem;
	line-height: 1;
	color: var(--wp--preset--color--primary);
}

.halcyon-label {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast-2);
}

.wp-block-code.halcyon-code {
	background-color: #0f1722;
	color: #e8eef6;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	padding: 1rem 1.1rem;
	font-family: var(--wp--preset--font-family--monospace);
	font-size: 0.84rem;
	line-height: 1.7;
	overflow-x: auto;
	tab-size: 2;
	white-space: pre;
}

/* ---- Code block syntax highlighting --------------------------------- *
 * Companion plugin: "Syntax-highlighting Code Block" (Weston Ruter) adds
 * highlight.js token markup to the core Code block, rendered server-side. That
 * plugin ships a light highlight.js theme by default whose `.hljs` rule would
 * paint a pale box over our dark panel — so we repaint the tokens here, scoped
 * under .wp-block-code so they outrank the plugin's bare .hljs-* rules whatever
 * order the stylesheets load in.
 *
 * The panel itself (background, border, padding, radius, font) comes from
 * core/code in theme.json plus the dark-mode lozenge in color-scheme.css. Both
 * the #0f1722 (light page) and #16263d (dark page) surfaces are dark, so the
 * text stays #e8eef6 and a single token palette reads correctly in either
 * scheme — no per-scheme token overrides needed. */
.wp-block-code .hljs,
.wp-block-code code.hljs {
	background: transparent;
	color: #e8eef6;
	padding: 0;
}

/* Comments / quotes — muted slate, italic */
.wp-block-code .hljs-comment,
.wp-block-code .hljs-quote {
	color: #6f8196;
	font-style: italic;
}

/* Keywords, language constructs, markup tags, types — primary blue */
.wp-block-code .hljs-keyword,
.wp-block-code .hljs-selector-tag,
.wp-block-code .hljs-literal,
.wp-block-code .hljs-type,
.wp-block-code .hljs-name,
.wp-block-code .hljs-doctag,
.wp-block-code .hljs-tag {
	color: #8fb0e0;
}

/* Function / class titles and built-ins — lighter blue */
.wp-block-code .hljs-title,
.wp-block-code .hljs-title.function_,
.wp-block-code .hljs-title.class_,
.wp-block-code .hljs-built_in,
.wp-block-code .hljs-section {
	color: #b6cdf2;
}

/* Strings and regular expressions — soft green */
.wp-block-code .hljs-string,
.wp-block-code .hljs-regexp,
.wp-block-code .hljs-meta .hljs-string {
	color: #9ed0ae;
}

/* Numbers, variables, parameters — soft terracotta */
.wp-block-code .hljs-number,
.wp-block-code .hljs-variable,
.wp-block-code .hljs-template-variable,
.wp-block-code .hljs-params {
	color: #d6a98f;
}

/* Attributes / object keys / selectors — sand */
.wp-block-code .hljs-attr,
.wp-block-code .hljs-attribute,
.wp-block-code .hljs-selector-class,
.wp-block-code .hljs-selector-id,
.wp-block-code .hljs-selector-attr,
.wp-block-code .hljs-selector-pseudo {
	color: #d8c79a;
}

/* Symbols, links, meta / preprocessor — calm teal */
.wp-block-code .hljs-symbol,
.wp-block-code .hljs-bullet,
.wp-block-code .hljs-link,
.wp-block-code .hljs-meta,
.wp-block-code .hljs-meta .hljs-keyword {
	color: #7fc4c4;
}

/* Diff additions / deletions — the Fixes document's green / red */
.wp-block-code .hljs-addition {
	color: #93d6b2;
	background-color: rgba(147, 214, 178, 0.10);
}
.wp-block-code .hljs-deletion {
	color: #e7a6a0;
	background-color: rgba(231, 166, 160, 0.10);
}

.wp-block-code .hljs-emphasis { font-style: italic; }
.wp-block-code .hljs-strong { font-weight: 600; }

/* Highlighted lines (the plugin's "highlight these lines" option) — a quiet
   primary-tinted band instead of the default yellow. */
.wp-block-code mark.shcb-loc {
	background-color: rgba(143, 176, 224, 0.16);
	color: inherit;
}

/* ---- Code block "Light" style variation ----------------------------- *
 * Registered for core/code as a one-click style (block sidebar → Styles →
 * "Light"). Forces a light panel + a darker token palette so an individual
 * code block can stay light even when the rest of the page is in dark mode.
 * The html[data-halcyon-scheme] prefix lifts the panel rule above the
 * dark-mode lozenge override in color-scheme.css. */
html[data-halcyon-scheme] .wp-block-code.is-style-light,
.wp-block-code.is-style-light {
	background: #f6f8fb;
	color: #1b2a3f;
	border-color: rgba(22, 38, 61, 0.12);
}
.wp-block-code.is-style-light .hljs { color: #1b2a3f; }
.wp-block-code.is-style-light .hljs-comment,
.wp-block-code.is-style-light .hljs-quote {
	color: #6b7a8d;
	font-style: italic;
}
.wp-block-code.is-style-light .hljs-keyword,
.wp-block-code.is-style-light .hljs-selector-tag,
.wp-block-code.is-style-light .hljs-literal,
.wp-block-code.is-style-light .hljs-type,
.wp-block-code.is-style-light .hljs-name,
.wp-block-code.is-style-light .hljs-tag {
	color: #2a4d8f;
}
.wp-block-code.is-style-light .hljs-title,
.wp-block-code.is-style-light .hljs-built_in,
.wp-block-code.is-style-light .hljs-section {
	color: #3257a0;
}
.wp-block-code.is-style-light .hljs-string,
.wp-block-code.is-style-light .hljs-regexp {
	color: #2f7a52;
}
.wp-block-code.is-style-light .hljs-number,
.wp-block-code.is-style-light .hljs-variable,
.wp-block-code.is-style-light .hljs-params {
	color: #b5552a;
}
.wp-block-code.is-style-light .hljs-attr,
.wp-block-code.is-style-light .hljs-attribute,
.wp-block-code.is-style-light .hljs-selector-class {
	color: #8a6d1f;
}
.wp-block-code.is-style-light .hljs-symbol,
.wp-block-code.is-style-light .hljs-meta {
	color: #2a7d7d;
}
.wp-block-code.is-style-light .hljs-addition {
	color: #1f8a5b;
	background-color: rgba(31, 138, 91, 0.10);
}
.wp-block-code.is-style-light .hljs-deletion {
	color: #b3403a;
	background-color: rgba(179, 64, 58, 0.10);
}
.wp-block-code.is-style-light mark.shcb-loc {
	background-color: rgba(74, 111, 165, 0.14);
}

.wp-block-quote.halcyon-quote {
	margin: 0;
	border-left: 3px solid var(--wp--preset--color--primary);
	padding: 0.2rem 0 0.2rem 1rem;
	color: var(--wp--preset--color--contrast-2);
	font-style: italic;
}

/* ---- Sticky header niceties ----------------------------------------- */
.halcyon-sticky-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: saturate(140%) blur(8px);
}

/* ---- Contact form --------------------------------------------------- */
.halcyon-form {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

/* Border-box so a width:100% field counts its padding + border IN, instead
   of overflowing its column and overlapping the next one. */
.halcyon-form,
.halcyon-form *,
.halcyon-form *::before,
.halcyon-form *::after {
	box-sizing: border-box;
}

.halcyon-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.1rem;
}

@media (max-width: 600px) {
	.halcyon-form__row {
		grid-template-columns: 1fr;
	}
}

.halcyon-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin: 0;
}

.halcyon-form label {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 0.82rem;
	letter-spacing: 0.01em;
	color: var(--wp--preset--color--contrast);
}

.halcyon-form input[type="text"],
.halcyon-form input[type="email"],
.halcyon-form textarea {
	width: 100%;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--base-2);
	border: 1px solid var(--wp--preset--color--secondary);
	border-radius: 10px;
	padding: 0.7rem 0.9rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.halcyon-form textarea {
	resize: vertical;
	min-height: 8rem;
	line-height: 1.6;
}

.halcyon-form input::placeholder,
.halcyon-form textarea::placeholder {
	color: var(--wp--preset--color--contrast-2);
	opacity: 0.7;
}

.halcyon-form input:focus,
.halcyon-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent);
}

.halcyon-form__submit {
	align-self: flex-start;
	margin-top: 0.3rem;
	cursor: pointer;
}

/* Honeypot — visually and physically removed from the layout, kept for bots. */
.halcyon-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---- Form notices --------------------------------------------------- */
.halcyon-notice {
	font-size: 0.95rem;
	line-height: 1.5;
	padding: 0.9rem 1.1rem;
	border-radius: 10px;
	margin-bottom: 1.4rem;
	border: 1px solid transparent;
}

.halcyon-notice--success {
	background-color: var(--wp--preset--color--tertiary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--contrast);
}

.halcyon-notice--error {
	background-color: color-mix(in srgb, #c0392b 10%, var(--wp--preset--color--base-2));
	border-color: color-mix(in srgb, #c0392b 45%, transparent);
	color: var(--wp--preset--color--contrast);
}

/* ---- Plugin form fields (CF7 / WPForms / Gravity Forms) ------------- *
 * So third-party form plugins inherit Halcyon's field styling automatically. */
.wp-block-post-content :where(input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="search"], input[type="number"], input[type="password"], textarea, select),
.wpcf7-form :where(input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), textarea, select),
.wpforms-form :where(input:not([type="submit"]), textarea, select),
.gform_wrapper :where(input:not([type="submit"]), textarea, select) {
	width: 100%;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--base-2);
	border: 1px solid var(--wp--preset--color--secondary);
	border-radius: 10px;
	padding: 0.7rem 0.9rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-post-content :where(input, textarea, select):focus,
.wpcf7-form :where(input, textarea, select):focus,
.wpforms-form :where(input, textarea, select):focus,
.gform_wrapper :where(input, textarea, select):focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent);
}

/* ============================================================ *
 * Core-block coverage — styles for blocks theme.json can't reach.
 * ============================================================ */

/* ---- Button: outline variation -------------------------------------- */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--primary);
	border: 1.5px solid currentColor;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base-2);
	border-color: var(--wp--preset--color--primary);
}

/* ---- Search block --------------------------------------------------- *
 * Themed with colour presets so it follows light/dark automatically —
 * otherwise the input keeps the browser's white fill (a pale box with dark
 * grey text) that clashes badly in dark mode. Covers the icon, "button
 * inside" and "button outside / no button" layouts. */
.wp-block-search .wp-block-search__input {
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--base-2);
	border: 1px solid var(--wp--preset--color--secondary);
	border-radius: 10px;
	padding: 0.6rem 0.85rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-search .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--contrast-2);
	opacity: 0.7;
}

.wp-block-search .wp-block-search__input:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent);
}

/* "Button inside": the wrapper carries the border + fill; the input is bare. */
.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper {
	background-color: var(--wp--preset--color--base-2);
	border: 1px solid var(--wp--preset--color--secondary);
	border-radius: 10px;
	padding: 4px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-search.wp-block-search__button-inside .wp-block-search__input {
	border: none;
	border-radius: 7px;
	background: transparent;
	box-shadow: none;
}

.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper:focus-within {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent);
}

/* Submit button (text "Go" or the search icon). */
.wp-block-search .wp-block-search__button {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base-2);
	border: none;
	border-radius: 8px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	padding: 0.45rem 0.9rem;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.wp-block-search .wp-block-search__button:where(:hover, :focus-visible) {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base-2);
}

.wp-block-search .wp-block-search__button svg {
	fill: currentColor;
}

/* ---- Table ---------------------------------------------------------- */
.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}
.wp-block-table th,
.wp-block-table td {
	border: 1px solid var(--wp--preset--color--secondary);
	padding: 0.7rem 0.9rem;
	text-align: left;
}
.wp-block-table thead th {
	background-color: var(--wp--preset--color--tertiary);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: color-mix(in srgb, var(--wp--preset--color--tertiary) 55%, transparent);
}
.wp-block-table figcaption {
	color: var(--wp--preset--color--contrast-2);
}

/* ---- Details / accordion -------------------------------------------- */
.wp-block-details > summary {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	cursor: pointer;
	padding: 0.85rem 0;
	color: var(--wp--preset--color--contrast);
	list-style-position: inside;
}
.wp-block-details[open] > summary {
	border-bottom: 1px solid var(--wp--preset--color--secondary);
	margin-bottom: 0.7rem;
}

/* ---- File ----------------------------------------------------------- */
.wp-block-file__button {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base-2);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	border-radius: 9px;
}
.wp-block-file__button:hover {
	background-color: var(--wp--preset--color--contrast);
}

/* ---- Lists of links: latest posts/comments, RSS, categories, archives */
.wp-block-latest-posts:not(.is-grid),
.wp-block-categories-list,
.wp-block-archives-list,
.wp-block-latest-comments,
.wp-block-rss {
	list-style: none;
	padding-left: 0;
}
.wp-block-latest-posts > li,
.wp-block-categories-list > li,
.wp-block-archives-list > li,
.wp-block-rss__item {
	padding: 0.4rem 0;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--secondary) 60%, transparent);
}
.wp-block-latest-posts__post-date,
.wp-block-latest-comments__comment-date,
.wp-block-rss__item-publish-date {
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
	font-family: var(--wp--preset--font-family--heading);
}

/* ---- Tag cloud ------------------------------------------------------ */
.wp-block-tag-cloud a {
	display: inline-block;
	padding: 0.3rem 0.75rem;
	margin: 0 0.3rem 0.45rem 0;
	background-color: var(--wp--preset--color--tertiary);
	border-radius: 999px;
	font-size: 0.85rem !important;
	text-decoration: none;
}
.wp-block-tag-cloud a:hover {
	background-color: var(--wp--preset--color--secondary);
}

/* ---- Calendar ------------------------------------------------------- */
.wp-block-calendar table th {
	background-color: var(--wp--preset--color--tertiary);
}
.wp-block-calendar tbody td,
.wp-block-calendar th {
	border-color: var(--wp--preset--color--secondary);
}

/* ============================================================ *
 * Breadcrumbs.
 * ============================================================ */
.halcyon-breadcrumbs {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
}
.halcyon-breadcrumbs a {
	color: var(--wp--preset--color--contrast-2);
	text-decoration: none;
}
.halcyon-breadcrumbs a:hover {
	color: var(--wp--preset--color--primary);
}
.halcyon-breadcrumbs__sep {
	margin: 0 0.55rem;
	color: var(--wp--preset--color--secondary);
}
.halcyon-breadcrumbs [aria-current="page"] {
	color: var(--wp--preset--color--contrast);
}

/* ============================================================ *
 * New patterns & layouts.
 * ============================================================ */

/* ---- Sidebar widgets ------------------------------------------------ */
.halcyon-sidebar .wp-block-heading {
	margin-bottom: 0.6rem;
}

@media (max-width: 781px) {
	.halcyon-sidebar {
		position: static !important;
	}
}

/* ---- Project metadata strip ----------------------------------------- */
.halcyon-project-meta__item .wp-block-heading {
	margin-bottom: 0;
}

/* ---- Author box ----------------------------------------------------- */
.halcyon-author-box .wp-block-post-author__avatar img {
	border-radius: 50%;
}
.halcyon-author-box .wp-block-post-author__byline {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
}
.halcyon-author-box .wp-block-post-author__name {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
}

/* ---- Logo cloud ----------------------------------------------------- */
.halcyon-logos img {
	filter: grayscale(1);
	opacity: 0.55;
	transition: filter 0.25s ease, opacity 0.25s ease;
}
.halcyon-logos img:hover {
	filter: grayscale(0);
	opacity: 1;
}

/* ---- Pricing: featured tier ----------------------------------------- */
.wp-block-group.halcyon-pricing--featured {
	border-color: var(--wp--preset--color--primary);
	box-shadow: var(--wp--preset--shadow--card);
}

/* ---- Table of contents pattern -------------------------------------- */
.halcyon-toc .wp-block-table-of-contents ol,
.halcyon-toc .wp-block-table-of-contents ul {
	margin: 0;
	padding-left: 1.1rem;
}
.halcyon-toc a {
	text-decoration: none;
}
.halcyon-toc a:hover {
	text-decoration: underline;
}

/* ============================================================
 * Comments
 * Themes the core Comments blocks (wp:comments / comment-template /
 * post-comments-form) used in single, single-full-width and page
 * templates. Everything reads from the colour presets, so it follows
 * light / dark mode automatically. Selectors are scoped under the
 * comments blocks so nothing leaks into article columns or buttons.
 * ============================================================ */

/* Separate the whole discussion from the article with a divider. */
.wp-block-comments {
	border-top: 1px solid var(--wp--preset--color--secondary);
	padding-top: clamp(1.75rem, 4vw, 2.75rem);
	font-family: var(--wp--preset--font-family--body);
}

/* Smaller, calmer headings than the article H2 */
.wp-block-comments-title,
.comment-reply-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.3rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.2;
	margin: 0 0 1.5rem;
	color: var(--wp--preset--color--contrast);
}
.comment-reply-title small {
	font-size: 0.8rem;
	font-weight: 400;
	margin-left: 0.6rem;
}
.comment-reply-title small a { color: var(--wp--preset--color--primary); }

/* ---- Comment list: a lozenge per comment --------------------------- */
.wp-block-comment-template {
	list-style: none;
	margin: 0 0 clamp(2rem, 5vw, 3rem);
	padding: 0;
	display: grid;
	gap: 1rem;
}
.wp-block-comment-template li {
	background-color: var(--wp--preset--color--base-2);
	border: 1px solid var(--wp--preset--color--secondary);
	border-radius: 14px;
	padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1.1rem, 2.5vw, 1.5rem);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wp-block-comment-template li:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 55%, var(--wp--preset--color--secondary));
	box-shadow: var(--wp--preset--shadow--soft);
}

/* Nested replies — indent one level at a time, with a thread rail, and an
   inset surface so the depth reads clearly in both schemes. */
.wp-block-comment-template ol {
	list-style: none;
	margin: clamp(0.85rem, 2vw, 1.1rem) 0 0;
	padding-left: clamp(0.85rem, 2.5vw, 1.6rem);
	border-left: 2px solid var(--wp--preset--color--secondary);
	display: grid;
	gap: 0.85rem;
}
.wp-block-comment-template ol li {
	background-color: var(--wp--preset--color--base);
}

/* Author row + meta. The avatar/content columns stay side by side. */
.wp-block-comment-template .wp-block-columns {
	gap: 1rem;
	align-items: flex-start;
	flex-wrap: nowrap;
}
.wp-block-comment-author-name {
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}
.wp-block-comment-author-name a { color: inherit; text-decoration: none; }
.wp-block-comment-author-name a:hover { color: var(--wp--preset--color--primary); }
.wp-block-comment-date,
.wp-block-comment-date a {
	color: var(--wp--preset--color--contrast-2);
	text-decoration: none;
}
.wp-block-comment-date a:hover { color: var(--wp--preset--color--primary); }
.wp-block-comment-content {
	margin-block: 0.5rem;
	color: var(--wp--preset--color--contrast);
	line-height: 1.65;
}
.wp-block-comment-template .wp-block-avatar img {
	display: block;
	border-radius: 50%;
}

/* Reply / edit links as quiet pills that fill on hover/focus */
.wp-block-comment-reply-link a,
.wp-block-comment-edit-link a {
	display: inline-block;
	text-decoration: none;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	border-radius: 7px;
	padding: 0.15rem 0.5rem;
	margin-left: -0.5rem;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.wp-block-comment-reply-link a:where(:hover, :focus-visible),
.wp-block-comment-edit-link a:where(:hover, :focus-visible) {
	background-color: var(--wp--preset--color--tertiary);
}

/* Comments pagination */
.wp-block-comments-pagination {
	margin: 1.5rem 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

/* ---- Comment form ("comment box") ---------------------------------- *
 * Rounded card, theme-coloured fields with rollover (hover) and onclick
 * (focus) states, and a submit button that matches the theme button. */
.wp-block-post-comments-form .comment-respond,
.comment-respond {
	background-color: var(--wp--preset--color--base-2);
	border: 1px solid var(--wp--preset--color--secondary);
	border-radius: 16px;
	padding: clamp(1.25rem, 3vw, 2rem);
	box-shadow: var(--wp--preset--shadow--soft);
}
.comment-respond .comment-reply-title { margin-bottom: 0.4rem; }
.comment-notes,
.logged-in-as {
	color: var(--wp--preset--color--contrast-2);
	font-size: 0.9rem;
	margin: 0;
}
.comment-form {
	display: grid;
	gap: 1rem;
	margin-top: 1.1rem;
}
.comment-form > p { margin: 0; }
.comment-form label { font-size: 0.85rem; font-weight: 600; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--secondary);
	border-radius: 10px;
	padding: 0.7rem 0.9rem;
	margin-top: 0.35rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.comment-form textarea {
	resize: vertical;
	min-height: 8rem;
}
.comment-form input::placeholder,
.comment-form textarea::placeholder {
	color: var(--wp--preset--color--contrast-2);
	opacity: 0.7;
}
/* Rollover */
.comment-form input[type="text"]:hover,
.comment-form input[type="email"]:hover,
.comment-form input[type="url"]:hover,
.comment-form textarea:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 50%, var(--wp--preset--color--secondary));
}
/* Onclick / focus */
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	background-color: var(--wp--preset--color--base-2);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent);
}
.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}
.comment-form-cookies-consent input {
	margin-top: 0.2rem;
	accent-color: var(--wp--preset--color--primary);
}

/* Submit — matches the theme button, with hover + active feedback */
.comment-form .submit,
.wp-block-post-comments-form :where(input[type="submit"], .wp-element-button) {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.01em;
	color: var(--wp--preset--color--base-2);
	background-color: var(--wp--preset--color--primary);
	border: 0;
	border-radius: 9px;
	padding: 0.72rem 1.4rem;
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.08s ease, box-shadow 0.18s ease;
}
.comment-form .submit:hover,
.wp-block-post-comments-form :where(input[type="submit"], .wp-element-button):hover {
	background-color: var(--wp--preset--color--contrast);
	box-shadow: var(--wp--preset--shadow--soft);
}
.comment-form .submit:active,
.wp-block-post-comments-form :where(input[type="submit"], .wp-element-button):active {
	transform: translateY(1px);
}
.comment-form .submit:focus-visible,
.wp-block-post-comments-form :where(input[type="submit"], .wp-element-button):focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 30%, transparent);
}

/* ============================================================
 * More core blocks — listings, single-post navigation, media,
 * accordion, post tags and the post sidebar. All colour-preset
 * driven, so light / dark follow automatically.
 * ============================================================ */

/* ---- Query pagination (blog / archive / author / search listings) -- */
.wp-block-query-pagination { gap: 0.4rem; align-items: center; }
.wp-block-query-pagination-numbers { display: flex; align-items: center; gap: 0.35rem; }
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	text-decoration: none;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast);
	padding: 0.4rem 0.75rem;
	border-radius: 9px;
	border: 1px solid transparent;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.wp-block-query-pagination a:where(:hover, :focus-visible) {
	background-color: var(--wp--preset--color--tertiary);
	color: var(--wp--preset--color--primary);
}
.wp-block-query-pagination .page-numbers.current {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base-2);
}
.wp-block-query-pagination .page-numbers.dots {
	color: var(--wp--preset--color--contrast-2);
	padding-inline: 0.2rem;
}
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next { color: var(--wp--preset--color--primary); }

/* ---- Post navigation (previous / next post on single posts) -------- */
.wp-block-post-navigation-link {
	background-color: var(--wp--preset--color--base-2);
	border: 1px solid var(--wp--preset--color--secondary);
	border-radius: 12px;
	padding: 0.75rem 1rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wp-block-post-navigation-link:hover {
	border-color: var(--wp--preset--color--primary);
	box-shadow: var(--wp--preset--shadow--soft);
}
.wp-block-post-navigation-link a {
	text-decoration: none;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}
.wp-block-post-navigation-link a:hover { color: var(--wp--preset--color--primary); }

/* ---- Accordion (Details block) ------------------------------------- *
 * theme.json supplies the card (base-2, border, radius); here we add a
 * clickable summary with a chevron that rotates open + an open accent. */
.wp-block-details summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.55rem 0;
	transition: color 0.15s ease;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary:hover { color: var(--wp--preset--color--primary); }
.wp-block-details summary::after {
	content: "";
	flex: 0 0 auto;
	width: 0.55rem;
	height: 0.55rem;
	border-right: 2px solid var(--wp--preset--color--primary);
	border-bottom: 2px solid var(--wp--preset--color--primary);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}
.wp-block-details[open] summary::after { transform: rotate(-135deg); }
.wp-block-details[open] {
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 40%, var(--wp--preset--color--secondary));
}
.wp-block-details > :not(summary) {
	margin-top: 0.2rem;
	color: var(--wp--preset--color--contrast);
}

/* ---- Post tags as chips (post-terms term="post_tag", .halcyon-post-tags) */
.halcyon-post-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
}
.halcyon-post-tags .wp-block-post-terms__separator { display: none; }
.halcyon-post-tags a {
	display: inline-block;
	text-decoration: none;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 0.8rem;
	color: var(--wp--preset--color--primary);
	background-color: var(--wp--preset--color--tertiary);
	border: 1px solid var(--wp--preset--color--secondary);
	padding: 0.2rem 0.7rem;
	border-radius: 999px;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.halcyon-post-tags a:where(:hover, :focus-visible) {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base-2);
	border-color: var(--wp--preset--color--primary);
}

/* ---- Social links: gentle lift + primary tint on hover ------------- */
.wp-block-social-links .wp-block-social-link { transition: transform 0.15s ease; }
.wp-block-social-links .wp-block-social-link:hover { transform: translateY(-2px); }
.wp-block-social-links.is-style-logos-only .wp-block-social-link:hover a {
	color: var(--wp--preset--color--primary);
}

/* ---- Cover --------------------------------------------------------- */
.wp-block-cover,
.wp-block-cover-image {
	border-radius: 14px;
	overflow: hidden;
}

/* ---- Audio / Video ------------------------------------------------- */
.wp-block-video video {
	display: block;
	width: 100%;
	border-radius: 14px;
}
.wp-block-audio audio { width: 100%; }
.wp-block-audio,
.wp-block-video { accent-color: var(--wp--preset--color--primary); }

/* ---- Gallery ------------------------------------------------------- */
.wp-block-gallery .wp-block-image img { border-radius: 10px; }
.wp-block-gallery figcaption {
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
}

/* ---- Embed --------------------------------------------------------- */
.wp-block-embed__wrapper iframe { border-radius: 12px; }
.wp-block-embed figcaption {
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
}

/* ---- Verse --------------------------------------------------------- */
.wp-block-verse {
	font-family: var(--wp--preset--font-family--body);
	background-color: var(--wp--preset--color--tertiary);
	border-left: 3px solid var(--wp--preset--color--primary);
	border-radius: 0 10px 10px 0;
	padding: 1.1rem 1.25rem;
	color: var(--wp--preset--color--contrast);
}

/* ---- Post sidebar (single-with-sidebar template) ------------------- *
 * Section labels become a consistent uppercase eyebrow with a short
 * primary accent bar and a hairline that divides label from content. */
.halcyon-sidebar h6.wp-block-heading {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast-2);
	margin: 0 0 0.9rem;
	padding-bottom: 0.6rem;
	border-bottom: 1px solid var(--wp--preset--color--secondary);
}
.halcyon-sidebar h6.wp-block-heading::before {
	content: "";
	flex: 0 0 auto;
	width: 16px;
	height: 6px;
	border-radius: 999px;
	background-color: var(--wp--preset--color--primary);
}

/* The "Search" sidebar label is shown as a magnifying-glass icon instead of
   text (the word is kept in the DOM for screen readers). The glyph is a
   transparent SVG masked with the primary colour, so it follows light/dark. */
/* Search section: the magnifying-glass icon sits inline, immediately to the
   left of the search box (the "Search" text is kept for screen readers). */
.halcyon-sidebar .halcyon-search-row { align-items: center; }
.halcyon-sidebar .halcyon-search-row .wp-block-search { flex: 1 1 auto; margin: 0; }
.halcyon-sidebar h6.halcyon-icon-search {
	font-size: 0;
	margin: 0;
	padding: 0;
	border-bottom: 0;
}
.halcyon-sidebar h6.halcyon-icon-search::before {
	width: 18px;
	height: 18px;
	border-radius: 0;
	background-color: var(--wp--preset--color--primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cline x1='15.2' y1='15.2' x2='21' y2='21'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cline x1='15.2' y1='15.2' x2='21' y2='21'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Recent posts + Topics: the accent lozenge becomes a themed line icon
   (article lines / hashtag), keeping the label text beside it. */
.halcyon-sidebar h6.halcyon-icon-posts::before,
.halcyon-sidebar h6.halcyon-icon-topics::before {
	width: 16px;
	height: 16px;
	border-radius: 0;
}
.halcyon-sidebar h6.halcyon-icon-posts::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cline x1='4' y1='6' x2='20' y2='6'/%3E%3Cline x1='4' y1='12' x2='20' y2='12'/%3E%3Cline x1='4' y1='18' x2='13' y2='18'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cline x1='4' y1='6' x2='20' y2='6'/%3E%3Cline x1='4' y1='12' x2='20' y2='12'/%3E%3Cline x1='4' y1='18' x2='13' y2='18'/%3E%3C/svg%3E") center / contain no-repeat;
}
.halcyon-sidebar h6.halcyon-icon-topics::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cline x1='9' y1='4' x2='7' y2='20'/%3E%3Cline x1='17' y1='4' x2='15' y2='20'/%3E%3Cline x1='4' y1='9.5' x2='20' y2='9.5'/%3E%3Cline x1='4' y1='14.5' x2='20' y2='14.5'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cline x1='9' y1='4' x2='7' y2='20'/%3E%3Cline x1='17' y1='4' x2='15' y2='20'/%3E%3Cline x1='4' y1='9.5' x2='20' y2='9.5'/%3E%3Cline x1='4' y1='14.5' x2='20' y2='14.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
