/* Duguva modern header, mega menu, drawer, search palette and search page. Owned by HEADER agent. Consumes tokens from modern.css. */

/* ---------- Sticky wrapper ---------- */
.wp-site-blocks > .wp-block-template-part:has(.hdr) {
	position: sticky;
	top: 0;
	z-index: 100;
}
body.admin-bar .wp-site-blocks > .wp-block-template-part:has(.hdr) { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 782px) {
	body.admin-bar .wp-site-blocks > .wp-block-template-part:has(.hdr) { top: 46px; }
}
@media (max-width: 600px) {
	/* The admin bar scrolls away on small phones */
	body.admin-bar .wp-site-blocks > .wp-block-template-part:has(.hdr) { top: 0; }
}
html.is-locked { overflow: hidden; }

.hdr { position: relative; --hdr-h: 80px; font-family: var(--font); }
.hdr.is-condensed { --hdr-h: 64px; }

.hdr__bar {
	position: relative;
	z-index: 2;
	height: var(--hdr-h);
	background: var(--wp--preset--gradient--header, linear-gradient(268.4deg, #335ca2 1%, #13223c 35.4%));
	transition: height var(--t-med) var(--ease-out);
}
.hdr__inner {
	max-width: calc(var(--max) + 2 * var(--gutter));
	height: 100%;
	margin: 0 auto;
	padding: 0 var(--gutter);
	display: flex;
	align-items: center;
	gap: 40px;
	box-sizing: border-box;
}
.hdr__logo { display: block; flex: none; line-height: 0; border-radius: var(--r-control); }
.hdr__logo img { display: block; width: 165px; height: auto; transition: width var(--t-med) var(--ease-out); }
.hdr.is-condensed .hdr__logo img { width: 142px; }
.hdr__nav { flex: 1; min-width: 0; }

.nav { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { display: flex; align-items: center; position: relative; margin: 0; }
.nav__link {
	position: relative;
	display: inline-flex; align-items: center;
	height: 40px; padding: 0 12px;
	color: var(--white); font-size: .9375rem; font-weight: 500; line-height: 1; text-decoration: none;
	border-radius: var(--r-control);
	transition: background-color var(--t-fast) ease-out;
}
.nav__link:hover { background: rgb(255 255 255 / .1); color: var(--white); }
.nav__link[aria-current="page"]::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 1px; background: var(--orange);
}
.nav__item:has(.nav__chev) .nav__link { padding-right: 4px; }
.nav__item:has(.nav__chev) .nav__link[aria-current="page"]::after { right: 4px; }
.nav__chev {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 40px; margin: 0 0 0 -2px; padding: 0;
	background: none; border: 0; border-radius: var(--r-control); color: rgb(255 255 255 / .75); cursor: pointer;
	transition: background-color var(--t-fast) ease-out, color var(--t-fast) ease-out;
}
.nav__chev:hover, .nav__chev[aria-expanded="true"] { color: var(--white); background: rgb(255 255 255 / .1); }
.nav__chev .icon { width: 16px; height: 16px; transition: transform var(--t-med) var(--ease-out); }
.nav__chev[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__item:has(.nav__chev[aria-expanded="true"]) .nav__link { background: rgb(255 255 255 / .1); }

.hdr__tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hdr__search-pill {
	display: inline-flex; align-items: center; gap: 10px;
	height: 40px; min-width: 232px; padding: 0 8px 0 12px; box-sizing: border-box;
	color: rgb(255 255 255 / .82); font-size: .9375rem; font-weight: 400; text-decoration: none;
	background: rgb(255 255 255 / .09); border: 1px solid rgb(255 255 255 / .2); border-radius: var(--r-control);
	transition: background-color var(--t-fast) ease-out, border-color var(--t-fast) ease-out, color var(--t-fast) ease-out;
}
.hdr__search-pill:hover { background: rgb(255 255 255 / .16); border-color: rgb(255 255 255 / .35); color: var(--white); }
.hdr__search-pill span { flex: 1; }
.hdr__search-pill .icon { width: 18px; height: 18px; }
.hdr__search-pill kbd {
	display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box;
	font: 500 .75rem/1 var(--font); color: rgb(255 255 255 / .85); border: 1px solid rgb(255 255 255 / .35); border-radius: 4px;
}
.hdr__icon {
	display: none; align-items: center; justify-content: center;
	width: 48px; height: 48px; padding: 0; background: none; border: 0; border-radius: var(--r-control);
	color: var(--white); cursor: pointer; text-decoration: none;
	transition: background-color var(--t-fast) ease-out;
}
.hdr__icon:hover { background: rgb(255 255 255 / .12); }
.hdr__icon .icon { width: 24px; height: 24px; }

/* Focus on the dark bar */
.hdr :where(a, button):focus-visible, .drawer :where(a, button):focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.mega :where(a, button):focus-visible, .palette :where(a, button, input):focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.palette__input:focus-visible { outline: 0; }

/* ---------- Mega menu ---------- */
.hdr__scrim {
	position: fixed; inset: 0; z-index: 1; background: rgb(14 23 38 / .32);
	opacity: 0; visibility: hidden; transition: opacity var(--t-med) ease-out, visibility 0s linear var(--t-med);
}
.hdr__scrim.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }

.mega {
	position: absolute; left: 0; right: 0; top: 100%; z-index: 3;
	background: var(--white); color: var(--ink);
	border-radius: 0 0 var(--r-tile) var(--r-tile);
	box-shadow: var(--shadow-float);
	opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px);
	transition: opacity 160ms var(--ease-out), transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
}
.mega.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.mega__inner {
	max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 32px var(--gutter) 28px; box-sizing: border-box;
}
.mega__inner--products { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; }
.mega__label { margin: 0 0 12px; font: 500 .8125rem/1.3 var(--font); letter-spacing: 0; color: var(--muted); }
.mega__materials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 24px; list-style: none; margin: 0; padding: 0; }
.mega__materials li, .mega__industries li, .mega__cards li { margin: 0; }
.mega-item {
	display: flex; align-items: center; gap: 14px; padding: 6px 8px; margin: 0 -8px; border-radius: var(--r-control);
	color: var(--ink); text-decoration: none; transition: background-color var(--t-fast) ease-out;
}
.mega-item:hover, .mega-item:focus-visible { background: var(--blue-tint); }
.mega-item .thumb { width: 56px; height: 56px; flex: none; object-fit: cover; border-radius: var(--r-control); background: var(--blue-tint); }
.thumb--empty { display: block; width: 56px; height: 56px; border-radius: var(--r-control); background: var(--blue-tint); flex: none; }
.mega-item__text { display: flex; flex-direction: column; min-width: 0; }
.mega-item__name { font-size: .9375rem; font-weight: 500; line-height: 1.3; color: var(--ink); }
.mega-item__meta { font-size: .8125rem; line-height: 1.4; color: var(--muted); font-variant-numeric: tabular-nums; }
.mega__industries { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mega-link {
	display: block; padding: 7px 8px; margin: 0 -8px; border-radius: var(--r-control);
	font-size: .9375rem; font-weight: 500; line-height: 1.35; color: var(--ink); text-decoration: none;
	transition: background-color var(--t-fast) ease-out;
}
.mega-link:hover, .mega-link:focus-visible { background: var(--blue-tint); }
.mega__feature { align-self: start; border: 1px solid var(--line); border-radius: var(--r-tile); overflow: hidden; background: var(--paper); }
.mega__feature img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.mega__feature-body { padding: 16px 18px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.mega__feature p { margin: 0; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; color: var(--navy); }
.mega__feature .btn { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.mega__foot { border-top: 1px solid var(--line); }
.mega__foot .link {
	display: block; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 14px var(--gutter); box-sizing: border-box;
	font-size: .9375rem; font-weight: 500; color: var(--navy); text-decoration: none;
}
.mega__foot .link:hover { text-decoration: underline; text-underline-offset: 3px; }
.mega__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 24px; list-style: none; margin: 0; padding: 0; }
.mega-card {
	display: flex; align-items: center; gap: 16px; padding: 10px; margin: 0 -10px; border-radius: var(--r-tile);
	color: var(--ink); text-decoration: none; transition: background-color var(--t-fast) ease-out;
}
.mega-card:hover, .mega-card:focus-visible { background: var(--blue-tint); }
.mega-card .thumb, .mega-card .thumb--empty { width: 96px; height: 72px; object-fit: cover; border-radius: var(--r-control); flex: none; background: var(--blue-tint); }
.mega-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega-card__name { font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--navy); letter-spacing: -.01em; }
.mega-card__lead { font-size: .8125rem; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Drawer (mobile) ---------- */
.drawer {
	position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column;
	background: var(--navy); color: var(--white);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.drawer__top { flex: none; height: 72px; padding: 0 12px 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgb(255 255 255 / .12); }
.drawer__logo { display: block; line-height: 0; border-radius: var(--r-control); }
.drawer__logo img { display: block; width: 142px; height: auto; }
.drawer__top .hdr__icon { display: inline-flex; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px var(--gutter) 24px; -webkit-overflow-scrolling: touch; }
.drawer__search {
	display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; margin-bottom: 8px;
	color: rgb(255 255 255 / .8); font-size: 1rem; text-decoration: none;
	background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .2); border-radius: var(--r-control);
}
.drawer__search .icon { width: 20px; height: 20px; flex: none; }
.drawer__list, .drawer__list ul { list-style: none; margin: 0; padding: 0; }
.drawer__list > li { border-bottom: 1px solid rgb(255 255 255 / .12); margin: 0; }
.drawer__row {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 0 2px; box-sizing: border-box;
	background: none; border: 0; border-radius: var(--r-control); color: var(--white); font: 600 1.25rem/1.2 var(--font); letter-spacing: -.01em; text-align: left; text-decoration: none; cursor: pointer;
}
.drawer__row[aria-current="page"] span { box-shadow: inset 0 -2px 0 var(--orange); }
.drawer__row .icon { width: 22px; height: 22px; transition: transform var(--t-med) var(--ease-out); }
.drawer__row[aria-expanded="true"] .icon { transform: rotate(180deg); }
.drawer__panel { padding: 0 0 12px; }
.drawer__panel[hidden] { display: none; }
.drawer__sub {
	display: flex; align-items: center; min-height: 48px; padding: 0 2px 0 14px; color: rgb(255 255 255 / .88);
	font-size: 1rem; font-weight: 400; text-decoration: none; border-radius: var(--r-control); border-left: 2px solid rgb(255 255 255 / .16);
}
.drawer__panel li:first-child .drawer__sub { font-weight: 600; color: var(--white); }
.drawer__sub:active { background: rgb(255 255 255 / .08); }
.drawer__foot { flex: none; padding: 12px var(--gutter) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid rgb(255 255 255 / .12); background: var(--navy); }
.drawer__foot .btn { width: 100%; }

/* ---------- Search palette ---------- */
.palette { position: fixed; inset: 0; z-index: 100001; visibility: hidden; opacity: 0; transition: opacity 160ms ease-out, visibility 0s linear 160ms; }
.palette.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.palette__backdrop { position: absolute; inset: 0; background: rgb(14 23 38 / .5); }
.palette__panel {
	position: relative; display: flex; flex-direction: column;
	width: min(640px, calc(100% - 32px)); max-height: min(620px, calc(100dvh - 15vh - 24px)); margin: 12vh auto 0;
	background: var(--white); color: var(--ink); border-radius: var(--r-tile); box-shadow: var(--shadow-float); overflow: hidden;
	transform: translateY(-8px) scale(.985); transition: transform var(--t-med) var(--ease-out);
}
.palette.is-open .palette__panel { transform: none; }
.palette__form { display: flex; align-items: center; gap: 12px; flex: none; padding: 0 12px 0 18px; height: 60px; border-bottom: 1px solid var(--line); margin: 0; }
.palette__form > .icon { width: 20px; height: 20px; flex: none; color: var(--muted); }
.palette__input {
	flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; outline: 0;
	font: 400 1.125rem/1 var(--font); color: var(--ink); -webkit-appearance: none; appearance: none;
}
.palette__input::placeholder { color: #66728a; }
.palette__input::-webkit-search-cancel-button { display: none; }
.palette__clear, .palette__esc { display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; border-radius: var(--r-control); color: var(--muted); }
.palette__clear { width: 36px; height: 36px; padding: 0; }
.palette__clear:hover { background: var(--blue-tint); color: var(--ink); }
.palette__clear .icon { width: 16px; height: 16px; }
.palette__esc { height: 28px; padding: 0 8px; font: 500 .75rem/1 var(--font); border: 1px solid var(--line); }
.palette__esc:hover { background: var(--blue-tint); color: var(--ink); }
.palette__esc-text { display: none; }
.palette__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 8px 12px; min-height: 0; }
.palette__hint { margin: 8px 10px 16px; font-size: .9375rem; line-height: 1.5; color: var(--muted); max-width: 52ch; }
.palette__group-title { margin: 12px 10px 6px; font: 500 .8125rem/1.3 var(--font); letter-spacing: 0; color: var(--muted); }
body.modern .palette__group-title { font-size: .8125rem; letter-spacing: 0; }
.palette__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 8px 4px; padding: 0; }
.chip-link {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; box-sizing: border-box;
	font-size: .875rem; font-weight: 500; color: var(--navy); text-decoration: none; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--white);
	transition: background-color var(--t-fast) ease-out, border-color var(--t-fast) ease-out;
}
.chip-link:hover, .chip-link.is-active { background: var(--blue-tint); border-color: var(--blue); }
.palette__recent { margin-bottom: 8px; }
.palette__recent[hidden], .palette__empty[hidden], .palette__results[hidden] { display: none; }
.recent-row { display: flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: var(--r-control); color: var(--ink); font-size: .9375rem; text-decoration: none; cursor: pointer; }
.recent-row:hover, .recent-row.is-active { background: var(--blue-tint); }
.recent-row .icon { width: 16px; height: 16px; margin-right: 12px; color: var(--muted); flex: none; }

.res {
	display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px;
	padding: 8px 10px; border-radius: var(--r-control); color: var(--ink); text-decoration: none; position: relative; cursor: pointer;
}
.res--text { grid-template-columns: minmax(0, 1fr) auto; min-height: 44px; }
.res .thumb { width: 48px; height: 48px; object-fit: cover; border-radius: var(--r-control); background: var(--blue-tint); }
.res .thumb--empty { width: 48px; height: 48px; }
.res:hover, .res.is-active { background: var(--blue-tint); }
.res.is-active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 1px; background: var(--navy); }
.res__title { display: block; font-size: .9375rem; font-weight: 500; line-height: 1.35; color: var(--ink); }
.res__sub { display: block; margin-top: 2px; font-size: .8125rem; line-height: 1.4; color: var(--muted); font-variant-numeric: tabular-nums; }
.res__chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.res__chip { display: inline-block; padding: 1px 7px; font-size: .75rem; line-height: 1.5; color: var(--navy); background: var(--blue-tint); border-radius: 4px; }
.res.is-active .res__chip, .res:hover .res__chip { background: var(--white); }
.res__go { color: var(--muted); opacity: 0; transition: opacity var(--t-fast); }
.res.is-active .res__go { opacity: 1; }
.res__go .icon { width: 16px; height: 16px; display: block; }
.palette mark { background: transparent; color: inherit; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--orange); text-underline-offset: 3px; }

.palette__state { padding: 28px 12px 24px; text-align: left; }
.palette__state strong { display: block; font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--ink); margin-bottom: 4px; }
.palette__state p { margin: 0 0 16px; font-size: .9375rem; line-height: 1.5; color: var(--muted); max-width: 52ch; }
.palette__state .btn { min-height: 44px; font-size: .9375rem; text-decoration: none; }
.palette__state .palette__chips { margin: 0; }
.palette__loading { height: 2px; background: linear-gradient(90deg, transparent, var(--orange), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: pal-load 900ms ease-in-out infinite; }
.palette__loading[hidden] { display: none; }
@keyframes pal-load { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.palette__all { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin: 8px 0 0; padding: 0 10px; border-top: 1px solid var(--line); border-radius: 0; font-size: .9375rem; font-weight: 500; color: var(--navy); text-decoration: none; }
.palette__all:hover, .palette__all.is-active { background: var(--blue-tint); }
.palette__foot { flex: none; display: flex; gap: 20px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); background: var(--paper); }
.palette kbd, .palette__foot kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; margin-right: 2px; font: 500 .6875rem/1 var(--font); color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 4px; }

/* ---------- Breakpoints ---------- */
@media (max-width: 1023.98px) {
	.hdr { --hdr-h: 64px; }
	.hdr__nav, .hdr__search-pill, .mega, .hdr__scrim { display: none; }
	.hdr__icon { display: inline-flex; }
	.hdr__inner { gap: 8px; padding-right: 8px; }
	.hdr__logo img, .hdr.is-condensed .hdr__logo img { width: 142px; }
	.hdr__tools { gap: 0; }
}
@media (min-width: 1024px) {
	.drawer { display: none; }
}
@media (max-width: 1180px) and (min-width: 1024px) {
	.hdr__search-pill { min-width: 0; }
	.hdr__search-pill span { display: none; }
	.hdr__search-pill { padding: 0 10px; gap: 8px; }
	.hdr__inner { gap: 24px; }
}
@media (max-width: 639.98px) {
	.palette__panel { width: 100%; max-height: none; height: var(--vvh, 100dvh); margin: 0; margin-top: var(--vvt, 0px); border-radius: 0; box-shadow: none; transform: translateY(8px); }
	.palette__form { height: 64px; padding: 0 8px 0 16px; }
	.palette__input { font-size: 1rem; }
	.palette__esc { border: 0; font-size: .9375rem; height: 44px; padding: 0 10px; color: var(--navy); font-weight: 600; }
	.palette__esc-key { display: none; }
	.palette__esc-text { display: inline; }
	.palette__foot { display: none; }
	.palette__body { padding: 8px 8px calc(16px + env(safe-area-inset-bottom)); }
	.res { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.palette__loading { animation: none; background: var(--orange); opacity: .6; }
	.mega, .drawer, .palette__panel { transform: none !important; }
}

/* ---------- Search results page (no-JS friendly) ---------- */
.search-page { padding: clamp(40px, 6vw, 72px) var(--gutter) var(--section); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; box-sizing: border-box; }
.search-page__head { max-width: 720px; margin-bottom: 40px; }
.search-page .wp-block-query-title { margin: 0 0 20px; font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.1; color: var(--navy); }
.search-page .wp-block-search { max-width: 560px; margin: 0; }
.search-page .wp-block-search__inside-wrapper { display: flex; gap: 8px; border: 0; padding: 0; }
.search-page .wp-block-search__input {
	flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--white); font: 400 1rem var(--font); color: var(--ink);
}
.search-page .wp-block-search__input:focus { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 0; }
.search-page .wp-block-search__button { min-height: 48px; padding: 0 22px; border: 0; border-radius: var(--r-control); background: var(--navy); color: var(--white); font: 600 1rem var(--font); cursor: pointer; margin: 0; }
.search-page .wp-block-search__button:hover { background: var(--navy-deep); }
.search-results { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.search-results > li { margin: 0; border-bottom: 1px solid var(--line); }
.search-result { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: center; padding: 20px 0; }
.search-result .wp-block-post-featured-image { margin: 0; }
.search-result .wp-block-post-featured-image a, .search-result .wp-block-post-featured-image { display: block; }
.search-result .wp-block-post-featured-image img { display: block; width: 100%; height: 100px; object-fit: cover; border-radius: var(--r-control); background: var(--blue-tint); }
.search-result__body { min-width: 0; }
.search-result .wp-block-post-title { margin: 0 0 6px; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.01em; }
.search-result .wp-block-post-title a { color: var(--navy); text-decoration: none; }
.search-result .wp-block-post-title a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.search-result .wp-block-post-terms { margin: 0 0 6px; font-size: .8125rem; color: var(--muted); }
.search-result .wp-block-post-terms a { color: var(--navy); text-decoration: none; background: var(--blue-tint); padding: 1px 8px; border-radius: 4px; display: inline-block; margin: 0 4px 4px 0; }
.search-result .wp-block-post-terms .wp-block-post-terms__separator { display: none; }
.search-result .wp-block-post-excerpt { margin: 0; max-width: 62ch; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.search-result .wp-block-post-excerpt__excerpt { margin: 0; }
.search-empty { max-width: 560px; padding: 8px 0; }
.search-empty h2 { margin: 0 0 8px; font-size: 1.375rem; color: var(--navy); }
.search-empty p { margin: 0 0 20px; color: var(--muted); }
.search-empty .palette__chips { margin: 0 0 24px; }
.search-page .wp-block-query-pagination { margin-top: 32px; gap: 8px; font-size: .9375rem; }
.search-page .wp-block-query-pagination a, .search-page .wp-block-query-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; box-sizing: border-box; border: 1px solid var(--line); border-radius: var(--r-control); color: var(--navy); text-decoration: none; background: var(--white); }
.search-page .wp-block-query-pagination .page-numbers.current { background: var(--navy); color: var(--white); border-color: var(--navy); }
@media (max-width: 639.98px) {
	.search-result { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
	.search-result .wp-block-post-featured-image img { height: 72px; }
}

.palette__titlebar { display: flex; align-items: center; justify-content: space-between; padding-right: 6px; }
.palette__linkbtn { min-height: 32px; padding: 0 8px; background: none; border: 0; border-radius: var(--r-control); font: 500 .8125rem var(--font); color: var(--blue); cursor: pointer; }
.palette__linkbtn:hover { background: var(--blue-tint); }

body.modern .mega h2.mega__label { margin: 0 0 12px; font-size: .8125rem; line-height: 1.3; font-weight: 500; letter-spacing: 0; color: var(--muted); }
body.modern .palette h2.palette__group-title { font-size: .8125rem; line-height: 1.3; font-weight: 500; letter-spacing: 0; }
.drawer__sub { border-radius: 0; }
body.modern .palette .palette__input, body.modern .palette .palette__input:focus, body.modern .palette .palette__input:focus-visible {
	outline: 0 !important; box-shadow: none !important; border: 0 !important; border-radius: 0; background: transparent; padding: 0; margin: 0; min-height: 0; height: 100%;
}

body.modern main.search-page { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) var(--section); box-sizing: border-box; width: 100%; }
body.modern .search-page .wp-block-search__button { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 1rem; }
body.modern .search-page .wp-block-query-title { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 600; letter-spacing: -.02em; }

/* Anchors, focus and form notices scroll to below the sticky bar (and the admin bar when logged in) */
html { scroll-padding-top: 96px; }
html:has(body.admin-bar) { scroll-padding-top: 128px; }
@media (max-width: 1023.98px) { html { scroll-padding-top: 80px; } html:has(body.admin-bar) { scroll-padding-top: 80px; } }
@media (min-width: 601px) and (max-width: 1023.98px) { html:has(body.admin-bar) { scroll-padding-top: 128px; } }
.duguva-notice { scroll-margin-top: 96px; }

/* Language switcher (EN | LT) */
.lang { display: inline-flex; align-items: center; gap: 2px; margin-right: 8px; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; }
.lang__item { padding: 6px 8px; border-radius: 6px; color: #fff; text-decoration: none; opacity: .7; }
.lang a.lang__item:hover, .lang a.lang__item:focus-visible { opacity: 1; background: rgba(255,255,255,.12); }
.lang__item.is-current { opacity: 1; background: rgba(255,255,255,.16); }
.lang--drawer { display: flex; margin: 0 0 12px; }
.lang--drawer .lang__item { color: var(--ink, #14213d); background: rgba(20,33,61,.06); opacity: 1; }
.lang--drawer .lang__item.is-current { background: var(--ink, #14213d); color: #fff; }
@media (max-width: 960px) { .hdr__tools > .lang { display: none; } }

/* EU support link (flag) */
.hdr__eu { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: 4px; border-radius: 8px; }
.hdr__eu:hover, .hdr__eu:focus-visible, .hdr__eu[aria-current] { background: rgba(255,255,255,.14); }
.eu-flag { display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.35); border-radius: 2px; }
.drawer__eu { display: flex; align-items: center; gap: 12px; padding: 12px 0; margin-bottom: 8px; font-weight: 600; color: var(--ink, #14213d); text-decoration: none; }

/* Flag + text in the header bar; the text hides on narrow screens so the bar never wraps. */
.hdr__eu { width: auto; gap: 8px; padding: 0 10px; color: #fff; text-decoration: none; font-size: .9375rem; font-weight: 500; white-space: nowrap; }
.hdr__eu-text { display: none; }
@media (min-width: 1100px) { .hdr__eu-text { display: inline; } }
