/*
 * DHV Theme 13.78.142 — Search Editorial Surface
 * Search-only presentation owner. Query/ranking/intelligence/continuity remain
 * Core/feature owned; this file controls only full-page Search hierarchy,
 * form, edge states and responsive presentation inside the shared platform shell.
 */

.dhvx-search-page {
  min-width:0;
  background:var(--dhvx-surface);
}

.dhvx-search-page .dhvx-search-head {
  padding:28px 22px 21px;
  border-bottom:0;
  background:linear-gradient(180deg,color-mix(in srgb,var(--dhvx-brand) 3.5%,var(--dhvx-surface)) 0%,var(--dhvx-surface) 100%);
}
.dhvx-search-page .dhvx-listing-kicker {
  color:var(--dhvx-brand-strong);
  font-size:12.5px;
  line-height:1.35;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.dhvx-search-page .dhvx-listing-title-row {
  align-items:flex-end;
  margin-top:7px;
  gap:10px 18px;
}
.dhvx-search-page .dhvx-listing-title-row h1 {
  max-width:20ch;
  margin:0;
  color:var(--dhvx-text);
  font-family:var(--dhv-serif,Georgia,"Times New Roman",serif);
  font-size:clamp(30px,2.8vw,38px);
  line-height:1.1;
  letter-spacing:-.012em;
  font-weight:700;
  text-wrap:pretty;
  overflow-wrap:anywhere;
  word-break:normal;
}
.dhvx-search-page .dhvx-listing-count {
  flex:0 0 auto;
  padding:0 0 5px;
  color:var(--dhvx-text-muted);
  font-size:13px;
  line-height:1.35;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.dhvx-search-page .dhvx-search-intro {
  max-width:56ch;
  margin:11px 0 0;
  color:var(--dhvx-text-secondary);
  font-size:15.5px;
  line-height:1.58;
  text-wrap:pretty;
  overflow-wrap:break-word;
  word-break:normal;
}

/* Search is a primary reading/discovery control, not a black CTA. */
.dhvx-search-page-form {
  min-height:56px;
  display:grid;
  grid-template-columns:24px minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  margin:14px 20px 18px;
  padding:5px 6px 5px 13px;
  border:1px solid var(--dhvx-border);
  border-radius:14px;
  background:color-mix(in srgb,var(--dhvx-surface-soft) 56%,var(--dhvx-surface));
  box-shadow:0 1px 0 color-mix(in srgb,var(--dhvx-border) 44%,transparent);
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.dhvx-search-page-form:focus-within {
  border-color:color-mix(in srgb,var(--dhvx-brand) 52%,var(--dhvx-border));
  background:var(--dhvx-surface);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--dhvx-brand) 10%,transparent);
}
.dhvx-search-page-form__icon {
  display:grid;
  place-items:center;
  color:var(--dhvx-text-muted);
}
.dhvx-search-page-form input {
  min-width:0;
  min-height:44px;
  border:0;
  outline:0;
  background:transparent;
  color:var(--dhvx-text);
  font:inherit;
  font-size:16.75px;
  line-height:1.35;
}
.dhvx-search-page-form input::placeholder { color:var(--dhvx-text-muted); }
.dhvx-search-page-form input:focus-visible { outline:0; }
.dhvx-search-page-form button {
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  border:0;
  border-radius:10px;
  background:color-mix(in srgb,var(--dhvx-brand) 8%,var(--dhvx-surface));
  color:var(--dhvx-brand-strong);
  font:inherit;
  font-size:14.25px;
  line-height:1;
  font-weight:800;
  cursor:pointer;
  transition:background .16s ease,color .16s ease;
}
.dhvx-search-page-form button:hover,
.dhvx-search-page-form button:focus-visible {
  background:color-mix(in srgb,var(--dhvx-brand) 13%,var(--dhvx-surface));
  color:var(--dhvx-text);
}
.dhvx-search-page-form button:focus-visible {
  outline:2px solid color-mix(in srgb,var(--dhvx-brand) 42%,transparent);
  outline-offset:2px;
}

/* Search-only finite states reuse the shared listing structure but own their
 * quieter spacing here so generic Listing/Entity rules do not need Search
 * exceptions. */
.dhvx-search-page .dhvx-empty.is-search-start { min-height:184px; }
.dhvx-search-page .dhvx-empty {
  background:var(--dhvx-surface);
}
.dhvx-search-page .dhvx-empty__eyebrow { color:var(--dhvx-brand-strong); }
.dhvx-search-page .dhvx-empty strong {
  font-family:var(--dhv-serif,Georgia,"Times New Roman",serif);
  font-size:19px;
  line-height:1.32;
  font-weight:700;
}
.dhvx-search-page .dhvx-empty__action:focus-visible {
  outline:2px solid color-mix(in srgb,var(--dhvx-brand) 55%,transparent);
  outline-offset:3px;
}

html[data-theme="dark"] .dhvx-search-page { background:var(--dhvx-surface); }
html[data-theme="dark"] .dhvx-search-page .dhvx-search-head {
  background:linear-gradient(180deg,color-mix(in srgb,var(--dhvx-brand) 5%,var(--dhvx-surface)) 0%,var(--dhvx-surface) 100%);
}
html[data-theme="dark"] .dhvx-search-page .dhvx-search-intro { color:var(--dhvx-text-secondary); }
html[data-theme="dark"] .dhvx-search-page-form {
  border-color:var(--dhvx-border);
  background:color-mix(in srgb,var(--dhvx-surface-soft) 72%,var(--dhvx-surface));
}
html[data-theme="dark"] .dhvx-search-page-form:focus-within { background:var(--dhvx-surface); }
html[data-theme="dark"] .dhvx-search-page-form input { color:var(--dhvx-text); }
html[data-theme="dark"] .dhvx-search-page-form button {
  background:color-mix(in srgb,var(--dhvx-brand) 11%,var(--dhvx-surface));
  color:var(--dhvx-brand);
}
html[data-theme="dark"] .dhvx-search-page-form button:hover,
html[data-theme="dark"] .dhvx-search-page-form button:focus-visible { color:var(--dhvx-text); }

@media (max-width:767px) {
  .dhvx-search-page .dhvx-search-head { padding:22px 16px 16px; }
  .dhvx-search-page .dhvx-listing-title-row { display:block; margin-top:6px; }
  .dhvx-search-page .dhvx-listing-title-row h1 {
    max-width:none;
    font-size:clamp(28px,8.4vw,33px);
    line-height:1.12;
  }
  .dhvx-search-page .dhvx-listing-count {
    display:block;
    margin-top:7px;
    padding:0;
    white-space:normal;
  }
  .dhvx-search-page .dhvx-search-intro { margin-top:9px; font-size:15.25px; line-height:1.55; }
  .dhvx-search-page-form {
    min-height:54px;
    margin:11px 16px 15px;
    grid-template-columns:22px minmax(0,1fr) auto;
    padding:4px 5px 4px 11px;
    border-radius:13px;
  }
  .dhvx-search-page-form input {
    min-height:46px;
    font-size:17px;
    text-overflow:ellipsis;
  }
  .dhvx-search-page-form button { min-height:44px; padding-inline:12px; }
}

@media (max-width:359px) {
  .dhvx-search-page .dhvx-search-head { padding:20px 14px 15px; }
  .dhvx-search-page .dhvx-listing-title-row h1 { font-size:28px; }
  .dhvx-search-page .dhvx-search-intro { font-size:15px; }
  .dhvx-search-page-form { margin-inline:14px; grid-template-columns:20px minmax(0,1fr) auto; padding-left:10px; }
  .dhvx-search-page-form button { padding-inline:10px; }
}

@media (max-width:920px) and (max-height:500px) and (orientation:landscape) and (pointer:coarse) {
  .dhvx-search-page .dhvx-search-head { padding:18px 18px 14px; }
  .dhvx-search-page .dhvx-listing-title-row h1 { font-size:clamp(27px,5vw,32px); }
  .dhvx-search-page-form { margin-inline:18px; }
}

@media (forced-colors:active) {
  .dhvx-search-page-form { border:1px solid CanvasText; box-shadow:none; }
  .dhvx-search-page-form button { border:1px solid CanvasText; }
}

@media (prefers-reduced-motion:reduce) {
  .dhvx-search-page-form,
  .dhvx-search-page-form button { transition:none; }
}
