/* ══ The note — ONE announcement pill for every site ═══════════════════════════════════════════════
   (user, 2026-11-21: "Make sure all pill notifications carry to all of our websites. So church and students")
   Its words live once, in _partials/header.html; sync-header.py writes them into every church page (with the
   site header), the pages without it (visit.html, tour.html), the second site (v2/) and Overflow's site
   (overflow/, which gets its own copy of this file and note.js — it is served on its own). Its behaviour is
   assets/note.js; a page makes room for it under html.note-in, by --note-room (the window's top down to just
   under the pill) — the site header in header.css, every other page in its own styles.

   Icon Church's announcement pill (iconchurch.net, read off their live page at 1440 and 375 on 2026-11-20),
   after the user's asks that night: "Make notification pill be this size", "Make the notification pill text a
   dark blue", "Copy how this website does their notification pill", then "Copy how that website notificaiton
   pill behaves. I want to have same flow, etc". Theirs, and so ours:
     · LOOK — our pale blue #DDF1FB (pink #FFE0FA, Icon's, was tried — "make it the purpleish pink they had" —
       then the user, 2026-11-21: "change the notification pill back to blue"), 60px tall, 24px down from the top,
       only as wide as its words and centred (user, same day: "Make sure notification pill is the width of the
       content"; it was the window's width less 24px a side, Icon's) — never nearer the sides than 24px — 14px corners, one deep soft shadow (0 6px 36px -4px, 24% black); a 20px bold title in dark
       blue #06344F (12.4:1 on the tint) and, beside it, a 14px line in #1D6A93 (5.1:1), centred as a pair; a 25px
       round × 12px from the end, 10px across, the line's blue, that grows a little under the pointer. On a
       phone: 12px in, the title over the line, both to the left, the × top right.
     · FLOW — nothing at first: it waits just above the window, invisible; a beat after the page opens (or
       the first scroll, whichever comes first) drops it in (50px down while it fades up, on a quick spring,
       ~.35s); then it floats there, fixed, while the page moves under it, at every scroll; the pill itself
       isn't a link. Its × shrinks it to 90% (~.6s), then fades it out (~.5s) — for that page only (Icon's
       stays closed five days; ours was asked back every time it did: "add the office closed notification
       back", 2026-11-21).
   Still the one pale-blue thing on any page (Von Restorff), and the × keeps a 45px target round its small circle
   (Fitts). */
.sh-note { position: fixed; z-index: 65; top: calc(env(safe-area-inset-top, 0px) + 24px); left: 24px; right: 24px;
  width: fit-content; margin: 0 auto;   /* as wide as the words; left/right are only the limits, the auto margins centre it */
  display: flex; align-items: center; justify-content: center; min-height: 60px; padding: 6px 56px;
  border-radius: 14px; background: #DDF1FB; box-shadow: 0 6px 36px -4px rgba(0, 0, 0, .24); text-align: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased;
  visibility: hidden; opacity: 0; transform: translateY(-50px); pointer-events: none; }
.sh-note[hidden] { display: none; }
.sh-note *, .sh-note *::before, .sh-note *::after { box-sizing: border-box; }
/* in: down and up on a spring with a touch of overshoot */
.sh-note.is-in { visibility: visible; opacity: 1; transform: none; pointer-events: auto;
  transition: transform .45s cubic-bezier(.34, 1.45, .64, 1), opacity .3s ease-out; }
/* out: shrink, then fade, then gone */
.sh-note.is-out { visibility: hidden; opacity: 0; transform: scale(.9); pointer-events: none;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), opacity .5s ease-out .6s, visibility 0s linear 1.1s; }
.sh-note-words { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 12px;
  color: #06344F; line-height: 1.25; }
.sh-note-words b { font-size: 20px; font-weight: 700; letter-spacing: -.025em; }
.sh-note-words span { color: #1D6A93; font-size: 14px; font-weight: 400; letter-spacing: -.02em; }
.sh-note-x { position: absolute; right: 12px; top: 50%; display: grid; place-items: center; width: 25px; height: 25px;
  margin: -12.5px 0 0; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
  transition: transform .15s cubic-bezier(.175, .885, .32, 1.1), background .15s ease; }
.sh-note-x::before { content: ''; position: absolute; inset: -10px; }
.sh-note-x:hover { transform: scale(1.12); background: rgba(6, 52, 79, .08); }
.sh-note-x svg { width: 10px; height: 10px; fill: #1D6A93; }
.sh-note-x:focus-visible { outline: 2px solid #1D6A93; outline-offset: 2px; }

/* a phone, as Icon's at 375: 12px in, the title over the line, both to the left, the × at the top right */
@media (max-width: 600px) {
  .sh-note { top: calc(env(safe-area-inset-top, 0px) + 12px); left: 12px; right: 12px; display: block;
    padding: 16px 48px 16px 18px; text-align: left; }
  .sh-note-words { display: block; }
  .sh-note-words b, .sh-note-words span { display: block; }
  .sh-note-words span { margin-top: 4px; }
  .sh-note-x { top: 12px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-note, .sh-note-x { transition: none !important; }
}
