.kdc-header-tools {
	flex: 0 0 auto;
	flex-wrap: nowrap;
	justify-content: flex-start;
	max-width: calc(100vw - 32px);
	overflow: visible;
	position: relative;
	width: auto;
}

.kdc-header-search {
	flex: 0 0 auto;
	height: 42px;
	max-width: calc(100vw - 32px);
	position: relative;
	width: 42px;
	z-index: 35;
}

.kdc-header-search:hover,
.kdc-header-search:focus-within,
.kdc-header-search.is-open {
	width: 42px;
}

.kdc-header-search-box {
	align-items: center;
	background: rgba(var(--kdc-paper-rgb), 0.66);
	border: 1px solid rgba(92, 69, 51, 0.1);
	border-radius: 999px;
	box-sizing: border-box;
	display: flex;
	height: 42px;
	justify-content: flex-start;
	left: 0;
	overflow: hidden;
	position: absolute;
	top: 0;
	transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
	width: 42px;
}

.kdc-header-search:hover .kdc-header-search-box,
.kdc-header-search:focus-within .kdc-header-search-box,
.kdc-header-search.is-open .kdc-header-search-box {
	background: var(--kdc-paper);
	border-color: rgba(238, 95, 42, 0.32);
	box-shadow: 0 12px 30px rgba(80, 54, 32, 0.1);
	width: min(166px, calc(100vw - 32px));
}

.kdc-header-search-submit {
	background: transparent;
	border: 0;
	flex: 0 0 40px;
	height: 40px;
	width: 40px;
}

.kdc-header-search-submit:hover,
.kdc-header-search-submit:focus-visible {
	background: transparent;
	color: var(--kdc-copper-strong);
	transform: none;
}

.kdc-header-search-input {
	appearance: none;
	background: transparent;
	border: 0;
	box-sizing: border-box;
	color: var(--kdc-ink);
	flex: 1 1 auto;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 550;
	line-height: 1;
	max-width: 0;
	min-width: 0;
	opacity: 0;
	outline: 0;
	padding: 0;
	pointer-events: none;
	transition: max-width 220ms ease, opacity 160ms ease, padding 220ms ease;
}

.kdc-header-search:hover .kdc-header-search-input,
.kdc-header-search:focus-within .kdc-header-search-input,
.kdc-header-search.is-open .kdc-header-search-input {
	max-width: 108px;
	opacity: 1;
	padding-left: 2px;
	padding-right: 12px;
	pointer-events: auto;
}

.kdc-header-search-input::placeholder {
	color: rgba(32, 40, 43, 0.58);
}

.kdc-header-search-results {
	background: rgba(var(--kdc-paper-rgb), 0.98);
	border: 1px solid var(--kdc-menu-border);
	border-radius: 12px;
	box-shadow: 0 18px 44px rgba(80, 54, 32, 0.14);
	box-sizing: border-box;
	color: var(--kdc-ink);
	left: 0;
	max-height: min(480px, calc(100vh - 140px));
	overflow: auto;
	padding: 8px;
	position: absolute;
	right: auto;
	top: calc(100% + 10px);
	width: min(300px, calc(100vw - 32px));
}

.kdc-header-search-status {
	color: rgba(32, 40, 43, 0.62);
	font-size: 0.82rem;
	font-weight: 650;
	line-height: 1.25;
	margin: 0;
	padding: 8px 10px;
}

.kdc-header-search-list {
	display: grid;
	gap: 4px;
}

.kdc-header-search-item {
	border-radius: 8px;
	color: var(--kdc-ink);
	display: grid;
	gap: 3px;
	padding: 10px 11px;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease;
}

.kdc-header-search-item:hover,
.kdc-header-search-item:focus-visible {
	background: var(--kdc-soft);
	color: var(--kdc-copper-strong);
	outline: 0;
	text-decoration: none;
}

.kdc-header-search-item-type {
	color: var(--kdc-copper-strong);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.1;
	text-transform: uppercase;
}

.kdc-header-search-item-title {
	font-size: 0.94rem;
	font-weight: 750;
	line-height: 1.2;
}

.kdc-header-search-item-excerpt {
	color: rgba(32, 40, 43, 0.72);
	font-size: 0.82rem;
	line-height: 1.35;
}

html[data-kdc-theme="dark"] .kdc-header-search-box {
	background: rgba(15, 18, 20, 0.58);
	border-color: rgba(255, 244, 226, 0.14);
}

html[data-kdc-theme="dark"] .kdc-header-search:hover .kdc-header-search-box,
html[data-kdc-theme="dark"] .kdc-header-search:focus-within .kdc-header-search-box,
html[data-kdc-theme="dark"] .kdc-header-search.is-open .kdc-header-search-box {
	background: rgba(15, 18, 20, 0.86);
	border-color: rgba(214, 167, 126, 0.42);
	box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

html[data-kdc-theme="dark"] .kdc-header-search-input,
html[data-kdc-theme="dark"] .kdc-header-search-results,
html[data-kdc-theme="dark"] .kdc-header-search-item {
	color: var(--kdc-ink);
}

html[data-kdc-theme="dark"] .kdc-header-search-input::placeholder,
html[data-kdc-theme="dark"] .kdc-header-search-status,
html[data-kdc-theme="dark"] .kdc-header-search-item-excerpt {
	color: rgba(246, 239, 229, 0.68);
}

html[data-kdc-theme="dark"] .kdc-header-search-results {
	background: rgba(17, 20, 22, 0.97);
	border-color: rgba(255, 244, 226, 0.16);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

html[data-kdc-theme="dark"] .kdc-header-search-item:hover,
html[data-kdc-theme="dark"] .kdc-header-search-item:focus-visible {
	background: rgba(214, 167, 126, 0.14);
	color: #d6a77e;
}

html[data-kdc-accessibility="on"] .kdc-header-search {
	flex: 1 1 20rem;
	height: auto;
	max-width: 100%;
	width: min(24rem, 100%) !important;
}

html[data-kdc-accessibility="on"] .kdc-header-tools {
	flex: 1 1 100%;
	flex-wrap: wrap;
	max-width: 100%;
	width: 100%;
}

html[data-kdc-accessibility="on"] .kdc-header-search-box {
	background: var(--kdc-accessibility-button-bg) !important;
	border: 2px solid var(--kdc-accessibility-border) !important;
	border-radius: 0 !important;
	height: 2.75rem;
	position: static;
	width: 100%;
}

html[data-kdc-accessibility="on"] .kdc-header-search-input {
	color: var(--kdc-accessibility-fg) !important;
	font-size: 1rem !important;
	font-weight: 800 !important;
	max-width: none !important;
	opacity: 1 !important;
	padding-left: 0.5rem !important;
	pointer-events: auto !important;
}

html[data-kdc-accessibility="on"] .kdc-header-search-input::placeholder {
	color: var(--kdc-accessibility-fg) !important;
	opacity: 1;
}

html[data-kdc-accessibility="on"] .kdc-header-search-submit {
	border-radius: 0 !important;
	border-right: 2px solid var(--kdc-accessibility-border) !important;
	flex-basis: 2.75rem;
	height: 2.75rem;
	width: 2.75rem;
}

html[data-kdc-accessibility="on"] .kdc-header-search-results {
	background: var(--kdc-accessibility-bg) !important;
	border: 2px solid var(--kdc-accessibility-border) !important;
	border-radius: 0 !important;
	color: var(--kdc-accessibility-fg) !important;
	width: min(30rem, calc(100vw - 1rem));
}

html[data-kdc-accessibility="on"] .kdc-header-search-status,
html[data-kdc-accessibility="on"] .kdc-header-search-item,
html[data-kdc-accessibility="on"] .kdc-header-search-item-type,
html[data-kdc-accessibility="on"] .kdc-header-search-item-title,
html[data-kdc-accessibility="on"] .kdc-header-search-item-excerpt {
	color: var(--kdc-accessibility-fg) !important;
}

html[data-kdc-accessibility="on"] .kdc-header-search-item {
	border: 2px solid transparent;
	border-radius: 0 !important;
	text-decoration: underline !important;
}

html[data-kdc-accessibility="on"] .kdc-header-search-item:hover,
html[data-kdc-accessibility="on"] .kdc-header-search-item:focus-visible {
	background: var(--kdc-accessibility-inverse-bg) !important;
	color: var(--kdc-accessibility-inverse-fg) !important;
}
