/* hero-sky.css - the Home page sky (site 1.19.0). Loaded on Home only.
   Kit tokens only: hairlines, one accent, no glow, no gradient of our own, no shadow.
   The look (static/js/hero-stars/) draws on its own canvas and keeps the words clear by cutting them out, so the soft veil goes. */
.home-hero.hs-v2::before { display: none; }
.home-hero .hs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---- The sky carousel (1.20.0): the look's name over a pill of dots, the pin (keep this sky) and pause ----
   Edge arrows on the hero from 1200px; small arrows inside the pill from 720 to 1199px; phones use the dots and a swipe.
   The engine keeps stars off anything with data-hs-clear. */
.sky-car[hidden], .sky-edge[hidden], .sky-car-btn[hidden] { display: none; }
.home-hero { touch-action: pan-y pinch-zoom; }   /* sideways swipes on the sky change the look (home.js), not the page */
.sky-car { position: absolute; z-index: 4; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px;
  max-width: calc(100% - 32px); }
.ss .sky-car-name { margin: 0; font: 500 12px/1.2 var(--ss-font-mono); color: var(--ss-text-2); letter-spacing: .04em; white-space: nowrap; }
.sky-car-pill { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--ss-control-edge); border-radius: 999px;
  background: color-mix(in srgb, var(--ss-bg) 82%, transparent); }
.sky-car-btn { flex: none; width: 36px; height: 36px; display: inline-grid; place-items: center; padding: 0; background: transparent; color: var(--ss-text-2);
  border: 0; border-radius: 999px; cursor: pointer; transition: background-color var(--ss-dur-fast, .15s) var(--ss-ease-out, ease), color var(--ss-dur-fast, .15s) var(--ss-ease-out, ease); }
.sky-car-btn:hover { background: var(--ss-raised); color: var(--ss-text); }
.sky-car-btn[aria-pressed="true"]#sky-pin { color: var(--ss-accent); }
.sky-car-btn[aria-pressed="true"]#sky-pin svg { fill: currentColor; }
.home-motion .i-play, .home-motion[aria-pressed="true"] .i-pause { display: none; }
.home-motion[aria-pressed="true"] .i-play { display: block; }
.sky-car-sep { flex: none; width: 1px; height: 18px; margin: 0 4px; background: var(--ss-line-strong); }
.sky-car-dots { display: flex; align-items: center; padding: 0 4px; }
.sky-car-dot { flex: none; width: 24px; height: 36px; display: inline-grid; place-items: center; padding: 0; background: transparent; border: 0; border-radius: 999px; cursor: pointer; }
.sky-car-dot::before { content: ""; display: block; width: 7px; height: 7px; border-radius: 999px; background: var(--ss-text-3);
  transition: width var(--ss-dur-fast) var(--ss-ease-out), background-color var(--ss-dur-fast, .15s) var(--ss-ease-out, ease); }
.sky-car-dot:hover::before { background: var(--ss-text); }
.sky-car-dot[aria-current="true"] { width: 32px; }
.sky-car-dot[aria-current="true"]::before { width: 20px; background: var(--ss-accent); }
.sky-car-btn:focus-visible, .sky-car-dot:focus-visible, .sky-edge:focus-visible { outline: 2px solid var(--ss-accent); outline-offset: 2px; }

.sky-car-step { display: none; }
@media (min-width: 720px) and (max-width: 1199px) { .sky-car-step { display: inline-grid; } }
.sky-edge { display: none; }
@media (min-width: 1200px) {
  .sky-edge { position: absolute; z-index: 4; top: 50%; width: 48px; height: 48px; margin-top: -24px; display: grid; place-items: center; padding: 0;
    background: color-mix(in srgb, var(--ss-bg) 70%, transparent); color: var(--ss-text-2); border: 1px solid var(--ss-control-edge); border-radius: 999px; cursor: pointer;
    transition: background-color var(--ss-dur-fast, .15s) var(--ss-ease-out, ease), color var(--ss-dur-fast, .15s) var(--ss-ease-out, ease), border-color var(--ss-dur-fast, .15s) var(--ss-ease-out, ease); }
  .sky-edge:hover { background: var(--ss-raised); color: var(--ss-text); border-color: var(--ss-text-2); }
  .sky-edge-prev { left: 20px; }
  .sky-edge-next { right: 20px; }
}
/* Phones: 44px tap targets. */
@media (max-width: 719px) {
  .sky-car { bottom: 24px; }
  .sky-car-btn { width: 44px; height: 44px; }
  .sky-car-dot { width: 28px; height: 44px; }
  .sky-car-dot[aria-current="true"] { width: 34px; }
}
/* Top row: the look's name, and the kit's "Star log N/14" button once something is found (home.js moves it here, 1.21.0,
   so it no longer sits on the carousel on phones). The kit styles it inline, hence !important. */
.sky-car-head { display: flex; align-items: center; justify-content: center; gap: 4px 12px; min-height: 20px; }
.sky-car-head .sky-car-log { position: static !important; left: auto !important; bottom: auto !important; min-height: 40px !important;
  padding: 0 10px !important; border: 1px solid var(--ss-control-edge) !important; border-radius: 999px !important;
  background: color-mix(in srgb, var(--ss-bg) 82%, transparent) !important; white-space: nowrap; }
.sky-car-head .sky-car-log:focus-visible { outline: 2px solid var(--ss-accent); outline-offset: 2px; }

/* Changing looks (1.21.0): the old sky (a still copy) fades out and drifts towards you, the new one fades in. */
.home-hero .hs-ghost { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  /* 1.22.0: the old sky's warp streaks are drawn by home.js; the new sky grows out from the centre after it. */
  .home-hero .hs-canvas.hs-in { animation: hs-in .9s cubic-bezier(.16, 1, .3, 1) .25s both; }
  .ss .sky-car-name.is-new { animation: sky-name var(--ss-dur-slow) var(--ss-ease-out); }
  @keyframes hs-in { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
  @keyframes sky-name { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .home-hero .hs-ghost { display: none; } }

/* The carousel fades in after the words have risen. */
@media (prefers-reduced-motion: no-preference) {
  .sky-car:not([hidden]), .sky-edge:not([hidden]) { animation: sky-car-in .6s ease-out .7s backwards; }
  @keyframes sky-car-in { from { opacity: 0; } to { opacity: 1; } }
}

/* ---- Where the "You found a constellation" notice shows ----
   The kit builds the notice with inline styles, so these use !important. One row: label, name, count, close.
   home.js moves the notice into the header (data-hsn="header"). hs-toast-on is set on <html> while a notice is showing.
   Header (wide screens): it sits in the middle of the menu bar and hides the menu links while it shows. The Sky button stays.
   Strip (under 900px): a slim bar under the header. */
[data-hsn="header"], [data-hsn="strip"] { display: flex !important; align-items: center; gap: 4px 14px; flex-wrap: nowrap;
  box-sizing: border-box; width: max-content; max-width: none !important; padding: 6px 44px 6px 14px !important; line-height: 1.3 !important; }
[data-hsn="header"] > div, [data-hsn="strip"] > div { margin: 0 !important; white-space: nowrap; min-width: 0; }
[data-hsn="header"] > div:nth-child(3), [data-hsn="strip"] > div:nth-child(3) { display: none; }
[data-hsn="header"] > button:not([aria-label]), [data-hsn="strip"] > button:not([aria-label]) { margin: 0 !important; white-space: nowrap; }
[data-hsn="header"] > div:nth-child(2), [data-hsn="strip"] > div:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
[data-hsn="header"] > [aria-label="Close"], [data-hsn="strip"] > [aria-label="Close"] { top: 50% !important; transform: translateY(-50%); }

[data-hsn="header"] { position: absolute !important; z-index: 60; left: 50% !important; right: auto !important; top: 50% !important; bottom: auto !important;
  transform: translate(-50%, -50%) !important; max-width: calc(100% - 460px) !important; }
html.hs-toast-on[data-hs-notice="header"] .site-nav { visibility: hidden; }
@media (max-width: 899px) { [data-hsn="header"] { display: none !important; } }

[data-hsn="strip"] { position: absolute !important; z-index: 60; left: 0 !important; right: 0 !important; top: 100% !important; bottom: auto !important;
  transform: none !important; width: auto; justify-content: center; border-radius: 0 !important; border-width: 0 0 1px !important; padding: 8px 48px 8px 16px !important; }
@media (max-width: 719px) { [data-hsn="strip"] { flex-wrap: wrap; } [data-hsn="strip"] > div:nth-child(2) { white-space: normal; } }
