/* VOICEFOLK — search-v1.css (batch 28): the search button in the header, the search dialog and the search box on /voices/.
   Loaded on every page after live-v1.css. Every colour has a fallback, so it also works on the 404 page (no site.css). */

/* ---------- the header button ---------- */
.search-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; flex: none;
  height: 44px; min-width: 44px; padding: 0 .95rem 0 .8rem;
  color: var(--ink, #1B1A17); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1; white-space: nowrap;
  background: none; border: 2px solid transparent; border-image: url("../ui/frame-pill.svg") 30 / 20px stretch;
  -webkit-tap-highlight-color: transparent;
}
.search-btn:hover { border-image: url("../ui/frame-pill-card.svg") 30 fill / 20px stretch; }
.search-btn:focus-visible { outline: 3px solid var(--slate, #4F6D7A); outline-offset: 3px; border-radius: 999px; }
.search-btn .icon { width: 20px; height: 20px; flex: none; }
.search-btn__kbd {
  display: none; font: 600 .72rem/1 var(--body, system-ui, sans-serif); padding: .28em .5em .24em; border-radius: 6px;
  color: var(--ink-2, #4A463F); background: var(--paper-2, #EDE3D2); box-shadow: inset 0 0 0 1px var(--line, #D9CDB8);
}
/* icon only until there's room for the word */
@media (max-width: 1139.98px) {
  .search-btn { width: 44px; padding: 0; }
  .search-btn__text { display: none; }
}
@media (min-width: 1240px) { .search-btn__kbd { display: inline-block; } }
/* 900-1139px: the full nav is showing, so make a little room for the button */
@media (min-width: 900px) and (max-width: 1139.98px) { .site-nav a { padding-inline: .55rem; } }
/* small phones: logo, search, "Find a voice" and the menu on one line */
@media (max-width: 400px) {
  .site-header__inner { gap: .5rem; }
  .site-header__actions { gap: .3rem; }
  .site-header .logo__img { height: 28px; }
  .site-header__actions .btn--primary { padding-inline: .7em; }
  .search-btn { width: 42px; height: 42px; min-width: 42px; }
  .search-btn .icon { width: 19px; height: 19px; }
}

/* ---------- the dialog ---------- */
html.vsearch-open, html:has(.vsearch[open]) { overflow: hidden; }
.vsearch {
  margin: min(9vh, 5.5rem) auto auto; padding: 0; border: 0; width: min(46rem, calc(100% - 2rem)); max-width: none;
  max-height: calc(100dvh - min(9vh, 5.5rem) - 1.5rem); overflow: visible; background: transparent; color: var(--ink, #1B1A17);
  font-family: var(--body, "Atkinson Hyperlegible Next", Verdana, system-ui, sans-serif); font-size: 1rem; line-height: 1.45;
}
.vsearch::backdrop { background: rgb(27 26 23 / .58); }
.vsearch [hidden] { display: none !important; }
.vsearch-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.vsearch__panel {
  position: relative; display: flex; flex-direction: column; max-height: inherit; min-height: 0;
  background: var(--paper, #F5EFE4); border-radius: 26px;
  box-shadow: 0 0 0 2px var(--ink, #1B1A17), 6px 7px 0 var(--ink, #1B1A17);
}
.vsearch__head {
  display: flex; align-items: center; gap: .6rem; padding: .85rem .85rem .75rem 1rem;
  border-bottom: 1.5px dashed var(--line, #D9CDB8);
}
.vsearch__form { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.vsearch__glass { position: absolute; left: .95rem; width: 22px; height: 22px; color: var(--tomato-ink, #B33A25); pointer-events: none; }
.vsearch__input {
  width: 100%; min-height: 54px; padding: .55rem 3rem .55rem 2.9rem; font: 600 1.15rem/1.3 var(--body, system-ui, sans-serif);
  color: var(--ink, #1B1A17); background: var(--card, #FBF8F2); border: 2px solid transparent; border-radius: 0;
  border-image: url("../ui/frame-input.svg") 20 fill / 14px stretch; -webkit-appearance: none; appearance: none;
}
.vsearch__input::placeholder { color: #7E776C; font-weight: 400; }
.vsearch__input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.vsearch__input:focus-visible { outline: 3px solid var(--slate, #4F6D7A); outline-offset: 2px; }
.vsearch__clear, .vsearch__close {
  display: grid; place-items: center; flex: none; background: none; color: var(--ink, #1B1A17); cursor: pointer; padding: 0;
}
.vsearch__clear { position: absolute; right: .45rem; width: 40px; height: 40px; border: 0; border-radius: 999px; }
.vsearch__clear:hover { background: rgb(27 26 23 / .07); }
.vsearch__clear .vsearch__svg { width: 18px; height: 18px; }
.vsearch__close {
  width: 48px; height: 48px; border: 2px solid transparent; border-image: url("../ui/frame-pill-card.svg") 30 fill / 22px stretch;
}
.vsearch__close:hover { border-image: url("../ui/frame-pill-ink.svg") 30 fill / 22px stretch; color: var(--paper, #F5EFE4); }
.vsearch__close .vsearch__svg { width: 22px; height: 22px; }
.vsearch__close-text { display: none; }
.vsearch__clear:focus-visible, .vsearch__close:focus-visible { outline: 3px solid var(--slate, #4F6D7A); outline-offset: 2px; }
.vsearch__svg { display: block; width: 1.1em; height: 1.1em; }

.vsearch__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .4rem .7rem 1rem; scroll-padding: .5rem; }
.vsearch__label {
  margin: .75rem .45rem .35rem; font: 600 var(--fs-hand, 1.5rem)/1 var(--hand, "Voicefolk Hand", "Nanum Pen Script", cursive);
  color: var(--tomato-ink, #B33A25);
}
.vsearch__count { font: 600 .8rem/1 var(--body, system-ui, sans-serif); color: var(--ink-2, #4A463F); vertical-align: .2em; }
.vsearch__group + .vsearch__group { margin-top: .4rem; padding-top: .2rem; border-top: 1.5px dashed var(--line, #D9CDB8); }

/* one result */
.vsearch__opt {
  display: flex; align-items: flex-start; gap: .85rem; padding: .7rem .75rem; margin: .1rem 0; border-radius: 18px;
  color: var(--ink, #1B1A17); text-decoration: none; outline: none; scroll-margin: .5rem;
}
.vsearch__opt[aria-selected="true"] { background: var(--mustard-wash, #F6E4B9); box-shadow: inset 0 0 0 2px var(--ink, #1B1A17); }
@media (hover: hover) { .vsearch__opt:hover:not([aria-selected="true"]) { background: var(--paper-2, #EDE3D2); } }
.vsearch__photo {
  flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--paper-2, #EDE3D2);
  box-shadow: 0 0 0 2.5px var(--print, #FFFCF6), 0 4px 10px -4px rgb(27 26 23 / .45);
}
.vsearch__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vsearch__icon {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: .1rem .3rem 0 .2rem; border-radius: 50%;
  color: var(--ink, #1B1A17); background: var(--peach, #F4DCCD);
}
.vsearch__icon .vsearch__svg { width: 22px; height: 22px; }
.vsearch__main { display: grid; gap: .22rem; min-width: 0; flex: 1; }
.vsearch__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .55rem; }
.vsearch__name, .vsearch__ptitle {
  font: 700 1.15rem/1.15 var(--display, "Familjen Grotesk", Arial, sans-serif); letter-spacing: -.005em; color: var(--ink, #1B1A17);
}
.vsearch__ptitle { font-size: 1.05rem; }
.vsearch__type, .vsearch__kind {
  display: inline-block; font: 700 .66rem/1 var(--body, system-ui, sans-serif); letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap; padding: .4em .65em .36em; border-radius: 999px; color: var(--ink-2, #4A463F); box-shadow: inset 0 0 0 1.5px currentColor;
}
.vsearch__type--everyday { color: var(--tomato-ink, #B33A25); background: rgb(224 82 58 / .09); }
.vsearch__line { color: var(--ink-2, #4A463F); font-size: .92rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vsearch__meta { font-size: .82rem; color: var(--ink-2, #4A463F); overflow-wrap: anywhere; }
.vsearch__snip { color: var(--ink-2, #4A463F); font-size: .9rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vsearch__chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .15rem; }
.vsearch__chip {
  display: inline-block; max-width: 100%; font-size: .78rem; font-weight: 600; line-height: 1.25; padding: .28em .65em .26em;
  border-radius: 999px; background: var(--card, #FBF8F2); color: var(--ink, #1B1A17); box-shadow: inset 0 0 0 1.5px var(--line, #D9CDB8);
  overflow-wrap: anywhere;
}
.vsearch__opt[aria-selected="true"] .vsearch__chip { background: var(--print, #FFFCF6); }
.vsearch__chip-k { font-weight: 400; color: var(--ink-2, #4A463F); }
.vsearch mark { background: none; color: inherit; box-shadow: inset 0 -.38em 0 var(--mustard, #E7B23C); border-radius: 2px; }
.vsearch__opt--all { align-items: center; gap: .5rem; padding-block: .8rem; font-weight: 600; color: var(--tomato-ink, #B33A25); }
.vsearch__opt--all span { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.vsearch__opt--all .vsearch__svg { width: 20px; height: 20px; }

/* before typing, nothing found, loading */
.vsearch__msg { padding: .9rem .6rem .5rem; }
.vsearch__hint { color: var(--ink-2, #4A463F); max-width: 36rem; margin: 0 0 .6rem; }
.vsearch__hint a { color: var(--tomato-ink, #B33A25); font-weight: 600; }
.vsearch__none-title { font: 700 1.2rem/1.25 var(--display, Arial, sans-serif); margin: 0 0 .4rem; overflow-wrap: anywhere; }
.vsearch__pop .vsearch__label { margin-left: 0; }
.vsearch__pills { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: .2rem 0 1.1rem; }
.vsearch__pill {
  min-height: 44px; padding: .45em 1.05em; font: 600 .95rem/1 var(--body, system-ui, sans-serif); color: var(--ink, #1B1A17);
  background: none; cursor: pointer; border: 1px solid transparent; border-image: url("../ui/frame-pill.svg") 30 / 20px stretch;
}
.vsearch__pill:hover { color: var(--tomato-ink, #B33A25); }
.vsearch__pill:focus-visible { outline: 3px solid var(--slate, #4F6D7A); outline-offset: 2px; }
.vsearch__links { display: flex; flex-wrap: wrap; gap: .2rem 1.3rem; margin: 0; }
.vsearch__link {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--tomato-ink, #B33A25);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em;
}
.vsearch__link:hover { text-decoration-thickness: 2.5px; }
.vsearch__link:focus-visible, .vsearch__hint a:focus-visible { outline: 3px solid var(--slate, #4F6D7A); outline-offset: 2px; border-radius: 4px; }
.vsearch__hand { font: 600 var(--fs-hand, 1.5rem)/1 var(--hand, cursive); color: var(--tomato-ink, #B33A25); margin: .4rem 0; }
.vsearch__keys {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .3rem 1.1rem; margin: 0; padding: .55rem 1.1rem .7rem;
  border-top: 1.5px dashed var(--line, #D9CDB8); font-size: .8rem; color: var(--ink-2, #4A463F);
}
.vsearch__keys kbd {
  display: inline-block; min-width: 1.6em; margin-right: .25em; padding: .2em .4em; text-align: center; font: 600 .75rem/1.2 var(--body, system-ui, sans-serif);
  color: var(--ink, #1B1A17); background: var(--card, #FBF8F2); border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line, #D9CDB8), 0 1.5px 0 var(--line, #D9CDB8);
}
@media (hover: none), (pointer: coarse) { .vsearch__keys { display: none; } }

/* phones: full screen, big targets */
@media (max-width: 599.98px) {
  .vsearch { margin: 0; width: 100%; height: 100%; max-height: none; inset: 0; }
  .vsearch__panel { height: 100%; max-height: none; border-radius: 0; box-shadow: none; }
  .vsearch__head {
    padding: calc(env(safe-area-inset-top, 0px) + .6rem) max(.7rem, env(safe-area-inset-right, 0px)) .6rem max(.7rem, env(safe-area-inset-left, 0px));
  }
  .vsearch__input { min-height: 52px; font-size: 1.05rem; padding-left: 2.6rem; }
  .vsearch__glass { left: .8rem; width: 20px; height: 20px; }
  .vsearch__close { width: auto; height: 48px; padding: 0 .55rem; border: 0; border-image: none; color: var(--tomato-ink, #B33A25); }
  .vsearch__close:hover { color: var(--tomato-ink, #B33A25); border-image: none; text-decoration: underline; }
  .vsearch__close .vsearch__svg { display: none; }
  .vsearch__close-text { display: inline; font-weight: 600; font-size: 1rem; }
  .vsearch__body { padding: .2rem max(.45rem, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 1.5rem) max(.45rem, env(safe-area-inset-left, 0px)); }
  .vsearch__opt { gap: .7rem; padding: .7rem .6rem; }
  .vsearch__photo { width: 50px; height: 50px; }
  .vsearch__icon { width: 40px; height: 40px; margin-inline: .15rem .2rem; }
  .vsearch__name { font-size: 1.08rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .vsearch[open] .vsearch__panel { animation: vsearch-in .22s cubic-bezier(.2, .7, .2, 1) both; }
  .vsearch[open]::backdrop { animation: vsearch-fade .2s ease both; }
}
@keyframes vsearch-in { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes vsearch-fade { from { opacity: 0; } to { opacity: 1; } }
@media (forced-colors: active) {
  .vsearch__panel { border: 2px solid CanvasText; }
  .vsearch__opt[aria-selected="true"] { outline: 2px solid Highlight; }
}

/* ---------- /voices/: the search box in the filter bar ---------- */
.vfilters__search { flex: 1 1 100%; justify-content: center; }
.vfilters__qbox { position: relative; display: flex; align-items: center; width: min(100%, 34rem); }
.vfilters__qbox .icon { position: absolute; left: 1rem; width: 20px; height: 20px; color: var(--tomato-ink); pointer-events: none; }
.vfilters__q {
  width: 100%; min-height: 48px; padding: .5em 2.9em .5em 2.75em; font: 600 1rem/1.3 var(--body); color: var(--ink);
  background: var(--card); border: 2px solid transparent; border-radius: 0; border-image: url("../ui/frame-input.svg") 20 fill / 14px stretch;
  -webkit-appearance: none; appearance: none;
}
.vfilters__q::placeholder { color: #7E776C; font-weight: 400; }
.vfilters__q::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.vfilters__q:focus-visible { outline: 2px solid var(--tomato); outline-offset: 3px; }
.vfilters__qclear {
  position: absolute; right: .4rem; width: 40px; height: 40px; display: grid; place-items: center; padding: 0;
  background: none; border: 0; border-radius: 999px; color: var(--ink); cursor: pointer;
}
.vfilters__qclear:hover { background: rgb(27 26 23 / .07); }
.vfilters__qclear:focus-visible { outline: 2px solid var(--tomato); outline-offset: 2px; }
.vfilters__qclear svg { width: 18px; height: 18px; }
.vfilters__qclear[hidden] { display: none; }
.vcard__why { font-size: .82rem; line-height: 1.35; color: var(--ink-2); margin-top: -.15rem; }
@media (max-width: 559.98px) {
  .vfilters__search { flex-wrap: nowrap; }
  .vfilters__qbox { flex: 1 1 auto; min-width: 0; width: auto; }
}
