/* The home page fills one viewport above the map and scrolls away to show the results page. */
.home { position: relative; z-index: 60; background: var(--bg); min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.home:focus { outline: none; }
.home-flag { display: flex; justify-content: center; padding: 12px 20px 0; font-size: 14px; line-height: 1.35; text-align: center; }
.home-flag b { font-weight: 700; color: var(--ink); }
/* The blog's nav pill sits above, so the bar is the tabs alone, centred. */
.home-bar { display: flex; justify-content: center; align-items: center; padding: 14px 40px 8px; }
.home-tabs { display: flex; gap: 22px; }
.ht { position: relative; display: flex; align-items: center; gap: 8px; height: 58px; padding: 0 4px; color: var(--ink2); font-size: 15.5px; font-weight: 600; border-bottom: 3px solid transparent; }
.ht img { width: 36px; height: 36px; object-fit: contain; }
.ht.is-on { color: var(--ink); border-bottom-color: var(--ink); }
/* The search field and the row share the space left in the screen, so one row never sits on an empty page. */
.home-main { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 6vh, 64px); padding: 14px 40px clamp(28px, 6vh, 64px); }
.home-search { align-self: center; width: min(720px, 100%); display: flex; align-items: center; height: 76px; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 3px 14px rgba(0,0,0,.1); background: var(--card); padding: 0 12px 0 0; }
.hs-q { flex: 1 1 0; min-width: 0; display: block; padding: 14px 32px; line-height: 1.25; border-radius: 999px; cursor: text; }
.hs-q input { display: block; width: 100%; border: 0; padding: 0; background: none; font: inherit; font-size: 17px; font-weight: 500; color: var(--ink); outline: none; }
.hs-q input::placeholder { color: var(--ink2); opacity: 1; }
.hs-q:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.hs-go { flex: none; display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 24px; border-radius: 999px; background: var(--rausch); color: #fff; font-size: 16.5px; font-weight: 600; }
.hs-go:hover { background: var(--rausch-d); }
.home-rows { width: 100%; max-width: 1400px; align-self: center; }
.home-rows h2 { font-size: 22px; font-weight: 650; letter-spacing: -.012em; margin: 0 0 14px; }
.home-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hc { display: block; text-decoration: none; color: var(--ink); font-size: 14.5px; line-height: 1.3; }
.hc-img { position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #F4EFE6; }
.hc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.hc:hover .hc-img img { transform: scale(1.04); }
.hc-t { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }
.hc-t b { font-weight: 650; }
/* the handover */
html.at-handover-old::view-transition-old(root) { animation: homeOut .42s ease both; }
html.at-handover-old::view-transition-new(root) { animation: homeIn .42s ease both; }
@keyframes homeOut { to { opacity: 0; transform: translateY(-28px); } }
@keyframes homeIn { from { opacity: 0; } }
.mapwrap.is-drop .pin:not(.dot-only) .pill { animation: pindrop .42s cubic-bezier(.2,1.1,.3,1.15) both; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes pindrop { from { opacity: 0; transform: translate(-50%, calc(-50% - 14px)); } to { opacity: 1; transform: translate(-50%, -50%); } }
@media (max-width: 979px) {
  .home-flag { flex-direction: column; align-items: center; gap: 1px; padding: 8px 16px; font-size: 12.5px; }
  .home-bar { display: block; padding: 6px 14px 0; }
  .home-tabs { justify-content: space-around; gap: 6px; border-bottom: 1px solid var(--line2); }
  .ht { flex-direction: column; gap: 2px; height: 72px; font-size: 12.5px; justify-content: center; padding: 0 6px; }
  .home-main { justify-content: flex-start; gap: 0; padding: 18px 0 20px; }
  .home-search { order: -1; width: calc(100% - 28px); height: 62px; padding-right: 8px; }
  .hs-q { padding: 8px 22px; }
  .hs-q input { font-size: 16px; font-weight: 600; }
  .hs-q input::placeholder { color: var(--ink); }
  .hs-go { width: 46px; height: 46px; padding: 0; justify-content: center; }
  .hs-go span { display: none; }
  .home-rows { margin: auto 0; padding-top: 12px; }
  .home-rows h2 { font-size: 19px; margin: 0 16px 10px; }
  .home-row { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 4px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-left: 16px; }
  .home-row::-webkit-scrollbar { display: none; }
  .hc { flex: 0 0 72%; min-width: 0; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .mapwrap.is-drop .pin .pill { animation: none; } .hc-img img { transition: none; } }
#hook h1:focus { outline: none; }
