/* Where would you like to go? (F-241; v2's landing, F-250; a soft search box since F-257, D-660..; gitaway/pages/tripask.py, assets/js/v2ask.js): one calm line, one soft box with Search, the
   autocomplete under it as a frosted list (the one place glass is allowed, .v2-glass), a few example places and the optional interests. The sky and the pickers of the results are the shared
   v2 pieces (v2.css). Nothing here is bold: Newsreader for the line, Inter at regular weight for the rest, one soft shadow. */
.v2-hero:has(.ak-form) { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-bottom: 14vh; }
.ak-h { margin: 0; max-width: 40rem; font: 450 clamp(1.875rem, 3.2vw, 2.75rem)/1.15 var(--f-display); letter-spacing: var(--d-track); color: var(--ink); text-wrap: balance; }
.ak-sub { margin: 0; max-width: 33rem; font: 400 1.0625rem/1.5 var(--f-ui); color: var(--ink-2); text-wrap: balance; }
.ak-form { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1.25rem; width: min(40rem, 100%); margin-top: 0.75rem; }
.ak-box { position: relative; width: 100%; text-align: left; }

/* the box: one rounded field holding the magnifier, what you type and Search */
.ak-field { display: flex; align-items: center; gap: 0.75rem; min-height: 4rem; padding: 0.4375rem 0.4375rem 0.4375rem 1.25rem; border-radius: 62.4375rem; background: var(--card-solid); box-shadow: var(--sh2), 0 0 0 1px var(--line);
  color: var(--ink-2); transition: box-shadow var(--v2-quick) var(--v2-ease); }
.ak-field:focus-within { box-shadow: var(--sh3), 0 0 0 0.125rem var(--word); }
.ak-field > svg { flex: none; width: 1.375rem; height: 1.375rem; }
.ak-field input { flex: 1; min-width: 0; min-height: var(--target); border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 1.1875rem/1.2 var(--f-ui); }
.ak-field input:focus-visible { outline: 0; }      /* the field draws the ring (:focus-within) */
.ak-field input::placeholder { color: var(--ink-3); opacity: 1; }
.ak-field .v2-go { flex: none; height: 3.125rem; min-width: var(--target); padding: 0 1.25rem 0 1.375rem; gap: 0.5rem; font: 560 1.0625rem/1 var(--f-ui); box-shadow: none; }
.ak-field .v2-go svg { width: 1.25rem; height: 1.25rem; }

/* the suggestions: a frosted list under the box, one row to a suggestion, each a 48px target */
.ak-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 0.5rem); margin: 0; padding: 0.375rem; list-style: none; max-height: min(24rem, 50svh); overflow-y: auto; background: var(--card-t); text-align: left; }
.ak-list[hidden] { display: none; }
.ak-o { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; min-height: var(--target); padding: 0.75rem 1rem; border-radius: 1.125rem; cursor: pointer; font: 450 1.0625rem/1.3 var(--f-ui); color: var(--ink);
  align-items: center; -webkit-tap-highlight-color: transparent; }
.ak-o[aria-selected="true"], .ak-o:hover { background: color-mix(in srgb, var(--flight) 11%, transparent); }
.ak-o:active { background: color-mix(in srgb, var(--flight) 18%, transparent); }
.ak-hint { flex: none; color: var(--ink-3); font: 400 1rem/1.2 var(--f-ui); text-align: right; }
.ak-say { margin: 0.625rem 0 0 1.25rem; color: var(--ink-2); font: 450 1rem/1.4 var(--f-ui); }
.ak-say[hidden] { display: none; }

/* the examples and the interests: quiet chips */
.ak-ex-row, .ak-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.ak-ex, .ak-chip span { display: inline-flex; align-items: center; gap: 0.4375rem; min-height: var(--target); padding: 0 1rem; border-radius: 62.4375rem; background: var(--glass); box-shadow: 0 0 0 1px var(--glass-line);
  color: var(--ink); font: 450 1rem/1 var(--f-ui); text-decoration: none; cursor: pointer; transition: background-color var(--v2-quick), transform var(--v2-quick) var(--v2-ease); -webkit-tap-highlight-color: transparent; }
.ak-ex:hover, .ak-chip span:hover { background: var(--card-t); }
.ak-ex:active, .ak-chip span:active { transform: scale(.97); }
.ak-chip { position: relative; display: inline-flex; }
.ak-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ak-chip svg { width: 1.125rem; height: 1.125rem; }
.ak-chip input:checked + span { background: var(--word); color: var(--on); box-shadow: none; }
.ak-chip input:focus-visible + span { outline: 0.1875rem solid var(--ink); outline-offset: 0.1875rem; }
.ak-into { display: grid; justify-items: center; gap: 0.625rem; }
.ak-into-h { color: var(--ink-2); font: 450 1rem/1.2 var(--f-ui); }
@media (max-width: 719px) {
  .v2-hero:has(.ak-form) { gap: 1rem; padding-bottom: 12vh; }
  .ak-field { padding-left: 1rem; }
  .ak-field .v2-go { padding: 0 1rem; width: auto; }
  .ak-field .v2-go svg { display: none; }
  .v2-bg .sunball, :root[data-mode="dark"] .v2-bg .sunball { width: 5rem; height: 5rem; right: -1.5rem; top: 4.75rem; }
}

/* Search: the box moves up, the rest of the landing steps aside and the results' skeleton plays under it (the matrix then opens on the real squares) */
.v2.is-results .v2-hero:has(.ak-form) { padding: 0.875rem 0 1.125rem; justify-items: center; gap: 0; align-content: start; min-height: 0; }
.v2.is-results :is(.ak-h, .ak-sub, .ak-ex-row, .ak-into, .ak-import) { display: none; }
#v2-skel { display: none; }
.v2.is-results #v2-skel:not([hidden]) { display: grid; animation: v2-skel-in var(--v2-pick) var(--spring-soft) both; }
@keyframes v2-skel-in { from { opacity: 0; transform: translateY(-0.375rem) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .v2.is-results #v2-skel:not([hidden]) { animation: none; } }
