/* VHR search: header button + overlay dialog. Loaded on all front-end pages when flag vhr_blog_search is on. Tiny on purpose. */
.vhr-search-btn, .vhr-header .vhr-search-btn { width: 40px !important; height: 40px !important; min-width: 40px !important; border-radius: 50% !important; border: 0 !important; background: transparent !important; color: #eef4fb !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 0 !important; cursor: pointer !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; flex: none; transition: background .2s ease; }
.vhr-search-btn:hover, .vhr-search-btn:focus-visible, .vhr-header .vhr-search-btn:hover, .vhr-header .vhr-search-btn:focus-visible { background: rgba(255,255,255,.12) !important; }
/* visible keyboard focus: a real outline (survives forced-colors / Windows high contrast, unlike a box-shadow) plus the ring */
.vhr-search-btn:focus-visible, .vhr-header .vhr-search-btn:focus-visible, [data-vhr-search-open]:focus-visible { outline: 2px solid #00a0df !important; outline-offset: 3px !important; box-shadow: 0 0 0 2px #0a0d12, 0 0 0 4px #5fd0ff !important; }
.vhr-search-btn svg { width: 20px !important; height: 20px !important; flex: none; }

/* Polish header (template 693): the last column is only 18px wide on phones, keep the 40px button inside the viewport */
@media (max-width: 767px) { #vhr-search-slot .vhr-search-btn { margin-left: -22px !important; } }

dialog.vhr-s { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 84px 16px 16px; border: 0; background: transparent; color: #0f1620; overflow: visible; font-family: "DM Sans", system-ui, -apple-system, sans-serif; }
dialog.vhr-s[open] { display: flex; justify-content: center; align-items: flex-start; }
dialog.vhr-s::backdrop { background: rgba(10,13,18,.58); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vhr-s *, .vhr-s *::before, .vhr-s *::after { box-sizing: border-box; }
.vhr-s__panel { position: relative; width: min(760px, 100%); max-height: min(calc(100% - 8px), var(--vhr-s-vh, 100vh)); display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(8,22,34,.5), 0 8px 20px -8px rgba(8,22,34,.25); overflow: hidden; color: #0f1620; }
.vhr-s__bar { display: flex; align-items: center; gap: 12px; margin: 0; padding: 16px 18px; border-bottom: 1px solid #e4eaf1; }
.vhr-s__bar:focus-within { box-shadow: inset 0 -2px 0 #00a0df; }
.vhr-s__bar > svg { width: 22px; height: 22px; color: #5d6978; flex: none; }
.vhr-s__input { flex: 1; min-width: 0; height: auto; margin: 0; padding: 6px 0 !important; border: 0 !important; outline: 0 !important; box-shadow: none !important; border-radius: 0 !important; background: transparent !important; font: 500 20px "Outfit", system-ui, sans-serif; letter-spacing: -.01em; color: #0f1620; -webkit-appearance: none; appearance: none; }
.vhr-s__input::placeholder { color: #6a7686; opacity: 1; }
.vhr-s__input::-webkit-search-cancel-button, .vhr-s__input::-webkit-search-decoration { display: none; -webkit-appearance: none; }
.vhr-s button.vhr-s__clear, .vhr-s button.vhr-s__esc { border: 1px solid #d6dfe9 !important; background: #fff !important; color: #4c5766 !important; border-radius: 8px !important; font: 600 12px "Outfit", system-ui, sans-serif !important; padding: 7px 10px !important; min-height: 32px; cursor: pointer; margin: 0; box-shadow: none !important; text-transform: none; letter-spacing: 0; }
.vhr-s__clear[hidden] { display: none !important; }
.vhr-s button.vhr-s__clear:hover, .vhr-s button.vhr-s__esc:hover { border-color: #00a0df !important; color: #006a99 !important; background: #fff !important; }
.vhr-s :focus-visible { outline: 3px solid #00a0df; outline-offset: 2px; }
.vhr-s__input:focus-visible { outline: 0; }
.vhr-s__body { overflow-y: auto; overscroll-behavior: contain; padding: 8px 10px 10px; flex: 1; min-height: 0; }
.vhr-s__list:empty { display: none; }
.vhr-s__extra[hidden], .vhr-s__note[hidden] { display: none; }
.vhr-s__group { padding: 8px 8px 4px; }
.vhr-s__glabel { font: 700 12px "Outfit", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #006a99; margin: 6px 4px 8px; display: flex; gap: 8px; align-items: center; }
.vhr-s__glabel span { background: #eaf7fd; color: #006a99; border-radius: 999px; padding: 1px 8px; letter-spacing: 0; }
.vhr-s__opt { display: flex; gap: 14px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none !important; color: inherit !important; border: 1px solid transparent; }
.vhr-s__opt img { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; flex: none; background: #f5f8fb; }
.vhr-s__otext { display: grid; gap: 2px; min-width: 0; }
.vhr-s__otitle { font: 600 15.5px/1.3 "Outfit", system-ui, sans-serif; color: #0f1620; overflow-wrap: anywhere; }
.vhr-s__ometa { font-size: 13px; color: #5d6978; }
.vhr-s__opt:hover, .vhr-s__opt.is-active { background: #eaf7fd; border-color: #b3e0f6; }
.vhr-s mark, .vhr-sp-main mark { background: #fff1b8; color: inherit; border-radius: 3px; padding: 0 1px; }
.vhr-s__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vhr-s__chip, .vhr-s button.vhr-s__chip { display: inline-block; border: 1px solid #d6dfe9 !important; background: #fff !important; color: #0f1620 !important; border-radius: 999px !important; padding: 8px 14px !important; font: 600 14px "Outfit", system-ui, sans-serif !important; cursor: pointer; text-decoration: none !important; box-shadow: none !important; text-transform: none; letter-spacing: 0; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.vhr-s__chip:hover, .vhr-s button.vhr-s__chip:hover { border-color: #00a0df !important; background: #eaf7fd !important; color: #006a99 !important; }
.vhr-s__note .vhr-s__chip { padding: 4px 12px !important; margin: 0 2px; }
.vhr-s__topics { display: flex; flex-wrap: wrap; gap: 8px; }
.vhr-s__topics a { padding: 8px 14px; border-radius: 8px; background: #f5f8fb; border: 1px solid #e4eaf1; font: 600 14px "Outfit", system-ui, sans-serif; color: #0f1620 !important; text-decoration: none !important; }
.vhr-s__topics a:hover { border-color: #00a0df; color: #006a99 !important; }
.vhr-s__note { padding: 14px 12px 4px; font-size: 16px; line-height: 1.5; color: #4c5766; }
.vhr-s__note strong { color: #0f1620; }
.vhr-s__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid #e4eaf1; background: #f5f8fb; font-size: 13px; color: #5d6978; }
.vhr-s__hints { display: flex; gap: 14px; flex-wrap: wrap; }
.vhr-s__hints kbd { font: 600 11px "Outfit", system-ui, sans-serif; border: 1px solid #d6dfe9; background: #fff; border-radius: 5px; padding: 1px 6px; color: #4c5766; }
.vhr-s__all { display: inline-flex; gap: 6px; align-items: center; margin-left: auto; font: 600 14px "Outfit", system-ui, sans-serif; color: #006a99 !important; text-decoration: none !important; }
.vhr-s__all[hidden] { display: none; }
.vhr-s__all:hover span { text-decoration: underline; }
.vhr-s__status { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  dialog.vhr-s[open] .vhr-s__panel { animation: vhr-s-in .16s ease-out; }
  @keyframes vhr-s-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 640px) {
  dialog.vhr-s { padding: 0; }
  .vhr-s__panel { width: 100%; max-height: var(--vhr-s-vh, 100%); height: var(--vhr-s-vh, 100%); border-radius: 0; }
  .vhr-s__hints { display: none; }
  .vhr-s__input { font-size: 18px; }
  .vhr-s__opt img { display: none; }
  .vhr-s__bar { padding: 12px 14px; }
}
