/* search_hero block — the homepage typing-search hero (.hero-enhanced) + peek CTA.
   Moved here from css/templates/home.css when page-home.php was retired; the block
   CSS auto-enqueues wherever a Search Hero block renders. No literal colour. */

.hero-enhanced { position: relative; overflow: hidden; }
.hero-enhanced { display: block; background: var(--surface-dark-alt); }
/* Play/pause pulled to the top-right so the peek CTA that overlaps the hero's
   bottom edge can never cover it; always visible + clickable. */
.hero-enhanced > .controls { top: 20px; bottom: auto; right: 24px; z-index: 4; }
/* Media stack order: image (bottom, poster/fallback) -> video -> gradient (top).
   The image div is absolutely positioned and later in the DOM than the video, so
   it sits at -1 to stay under the footage; the in-flow video needs no z-index.
   The gradient carries z-index: 0, and the wrapper's own z-index: 0 keeps the
   stack in its own stacking context, below the hero content. */
.hero-enhanced .hero-background { z-index: 0; }
.hero-enhanced .hero-background > video { filter: grayscale(1) contrast(1.15) brightness(.55); }
/* The image is a background-image div, not an <img>, so the shared media-stack
   sizing and greyscale in hero-page.css (scoped to > img / > video) never reach
   it: unsized it collapses to 0 height and nothing renders. Same geometry and
   treatment as the video path. */
.hero-enhanced .hero-background > .image-overlay { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; filter: grayscale(1) contrast(1.15) brightness(.55); }
.hero-enhanced .hero-background::after { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(120% 80% at 15% 10%, rgba(var(--tint-rgb), .28) 0%, rgba(var(--tint-rgb), .93) 78%); }
/* Hero height = content + block padding. The content otherwise renders ~128px
   high in this stacking context, so the top padding carries that offset to keep
   the block visually centred with generous breathing space. */
.hero-content-wrapper { position: relative; width: 100%; padding-top: 15rem; padding-bottom: 5rem; }
/* The content block is a centred, page-width column — equal left/right margins
   (so the search underline is balanced) and vertically centred in the hero. */
/* Narrower than the full content width (~80%) and centred, so the hero title +
   search box don't stretch edge-to-edge on wide viewports. */
.hero-content { width: 100%; max-width: 1040px; margin-inline: auto; padding-inline: var(--page-gutter); }
.hero-title { color: var(--white); font-size: 4rem; line-height: .96; margin-bottom: 42px; }
/* Subtitle / search intro, sitting between the title and the search box. The
   bottom margin clears the "Type here" tooltip (absolute, 46px above the form)
   so the two don't overlap. */
.hero-subtitle { color: var(--white); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; line-height: 1.25; max-width: 42ch; margin: -1rem 0 3.6rem; }
.hero-search-primary { position: relative; max-width: none; }
.hero-search-primary .search__input {
  width: 100%; background: transparent; border: 0;
  border-bottom: 4px solid var(--accent-on-dark); border-radius: 0;
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 4rem; line-height: 1.14; letter-spacing: var(--display-track-hero);
  color: var(--accent-on-dark); padding: 0 168px 8px 0; caret-color: var(--accent-on-dark);
}
/* Search button — a clear affordance that this is a search area. Slightly faded
   until the search box gets focus (or the button is hovered/focused). */
.hero-search-primary__submit {
  position: absolute; right: 0; bottom: 16px;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--btn-accent-bg); color: var(--btn-accent-text);
  font-weight: 700; font-size: var(--fs-min);
  padding: .85rem 1.7rem; border-radius: var(--radius-pill); border: 0; cursor: pointer;
  opacity: .5; transition: opacity var(--transition), transform var(--transition);
}
.hero-search-primary:focus-within .hero-search-primary__submit,
.hero-search-primary__submit:hover,
.hero-search-primary__submit:focus-visible { opacity: 1; }
.hero-search-primary__submit svg { flex: 0 0 auto; }
.hero-search-tooltip {
  position: absolute; top: -46px; left: 2px;
  background: var(--btn-accent-bg); color: var(--btn-accent-text);
  font-size: var(--fs-min); font-weight: 700;
  padding: .5rem 1rem; border-radius: 8px;
  animation: hero-nudge 2.4s ease-in-out infinite;
}
.hero-search-tooltip::after { content: ""; position: absolute; left: 22px; bottom: -7px; width: 14px; height: 14px; background: var(--btn-accent-bg); transform: rotate(45deg); }
.hero-search-ghost {
  position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: 4rem; line-height: 1.14; letter-spacing: var(--display-track-hero);
  color: var(--accent-on-dark);
  transition: opacity 380ms cubic-bezier(.4, 0, .2, 1);
}
.hero-search-ghost.is-fading { opacity: 0; }
.hero-search-ghost__caret { display: inline-block; width: 6px; height: 56px; background: var(--accent-on-dark); vertical-align: -8px; margin-left: 6px; animation: hero-caret 1s step-end infinite; }
.hero-qualifiers { margin-top: 34px; display: flex; flex-wrap: wrap; gap: .875rem 2rem; align-items: baseline; }
.hero-qualifier { display: flex; align-items: baseline; gap: .75rem; border-bottom: 3px solid rgba(var(--on-dark-rgb), .45); padding-bottom: 6px; }
.hero-qualifier__label { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.875rem; letter-spacing: var(--display-track); color: var(--white); }
.hero-qualifier__count { font-size: var(--fs-min); color: rgba(var(--on-dark-rgb), .7); font-variant-numeric: tabular-nums; }
.hero-qualifier[aria-pressed="true"] { border-bottom-color: var(--accent-on-dark); }
.hero-qualifier[aria-pressed="true"] .hero-qualifier__count { color: var(--accent-on-dark); }
.hero-results { margin-top: 28px; max-width: 900px; border-top: 1px solid rgba(var(--on-dark-rgb), .25); padding-top: 1.2rem; }
.hero-results[hidden] { display: none; }
.hero-results__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .8rem; }
.hero-results__head h2 { color: var(--white); font-size: 1.625rem; }
.hero-results li { display: flex; justify-content: space-between; gap: 1.25rem; }
.hero-results li + li { margin-top: .6rem; }
.hero-results a { font-family: var(--font-display); font-weight: 700; font-size: 1.3125rem; color: var(--white); text-decoration: none; }
.hero-results span { flex: 0 0 auto; font-size: var(--fs-min); color: rgba(var(--on-dark-rgb), .65); font-variant-numeric: tabular-nums; }
.hero-shortcuts { margin-top: 30px; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; font-size: var(--fs-min); }
.hero-shortcuts__lead { color: rgba(var(--on-dark-rgb), .8); font-size: 1.3rem; }
.hero-shortcuts__cta {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--white); font-weight: 600; text-decoration: none;
  padding: .55rem 1.2rem;
  border: 1.5px solid rgba(var(--on-dark-rgb), .4);
  border-radius: var(--radius-pill);
  transition: background var(--transition), border-color var(--transition);
}
.hero-shortcuts__cta:hover { background: rgba(var(--on-dark-rgb), .12); border-color: var(--white); }

@keyframes hero-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes hero-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

@media (max-width: 64em) {
  .hero-title, .hero-search-primary .search__input, .hero-search-ghost { font-size: 2.75rem; }
  .hero-search-ghost__caret { height: 40px; }
}

/* -------------------------------------------------------- hero peek CTA ----
   A panel that overlaps the hero's bottom edge. Was unstyled, so the actions
   overlapped the body text; a proper split flex layout fixes it. */
.hero-peek-wrap { position: relative; z-index: 2; }
.hero-peek-wrap--overlap { margin-top: -3.5rem; }
.hero-peek { position: relative; border-radius: var(--radius-lg); padding: 2rem 2.4rem; box-shadow: var(--shadow-lg); color: var(--white); overflow: hidden; }
.hero-peek--split { display: flex; align-items: center; justify-content: space-between; gap: 2rem 2.6rem; flex-wrap: wrap; }
.hero-peek--navy { background: var(--surface-dark); }
.hero-peek--magenta, .hero-peek--red { background: var(--surface-brand); }
.hero-peek--teal, .hero-peek--blue { background: var(--surface-blue); }
.hero-peek__body { min-width: 0; flex: 1 1 460px; }
.hero-peek__eyebrow { font-size: var(--fs-eyebrow); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-on-dark); margin: 0 0 .5rem; }
.hero-peek__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 2rem; line-height: 1.1; color: var(--white); margin: 0 0 .6rem; }
.hero-peek__text { font-size: var(--fs-min); line-height: 1.55; color: rgba(var(--on-dark-rgb), .88); margin: 0; max-width: 64ch; }
.hero-peek__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 1rem 1.4rem; flex-wrap: wrap; }
.hero-peek__cta { display: inline-flex; align-items: center; gap: .5rem; background: var(--btn-accent-bg); color: var(--btn-accent-text); font-weight: 700; font-size: var(--fs-min); padding: .9rem 1.7rem; border-radius: var(--radius-pill); text-decoration: none; white-space: nowrap; }
.hero-peek__cta:hover { background: var(--lime-dark); }
.hero-peek__link { color: var(--white); font-weight: 600; font-size: var(--fs-min); text-decoration: underline; white-space: nowrap; }
.hero-peek__link:hover { color: var(--accent-on-dark); }
@media (max-width: 48em) { .hero-peek--split { flex-direction: column; align-items: flex-start; } }
