/* Whatsnr. The tokens below are whatsnr.eu's design-tokens.css, copied as they
 * are: dark is the source design, light is paper-toned rather than inverted,
 * and both live in one block through light-dark(). With no data-theme the page
 * follows the device; the account's own choice sets data-theme. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  color-scheme: light dark;

  /* surfaces */
  --bg-base:       light-dark(#faf8f3, #05050d);
  --bg-glass:      light-dark(rgba(255, 254, 250, 0.80), rgba(6, 6, 14, 0.80));
  --bg-glass-deep: light-dark(rgba(255, 254, 250, 0.94), rgba(5, 5, 12, 0.94));
  --bg-raised:     light-dark(rgba(20, 18, 30, 0.04),    rgba(255, 255, 255, 0.04));
  --bg-raised-hi:  light-dark(rgba(20, 18, 30, 0.08),    rgba(255, 255, 255, 0.08));

  /* borders */
  --border-subtle: light-dark(rgba(20, 18, 30, 0.06), rgba(255, 255, 255, 0.05));
  --border-glass:  light-dark(rgba(20, 18, 30, 0.10), rgba(255, 255, 255, 0.08));
  --border-mid:    light-dark(rgba(20, 18, 30, 0.48), rgba(255, 255, 255, 0.13));
  --border-bright: light-dark(rgba(20, 18, 30, 0.57), rgba(255, 255, 255, 0.22));

  /* text */
  --text-primary:   light-dark(#16161e,                #eeeef4);
  --text-secondary: light-dark(rgba(22, 22, 30, 0.79), rgba(238, 238, 244, 0.50));
  --text-dim:       light-dark(rgba(22, 22, 30, 0.71), rgba(238, 238, 244, 0.26));
  --text-micro:     light-dark(rgba(22, 22, 30, 0.62), rgba(238, 238, 244, 0.14));

  /* accents */
  --accent-amber:        light-dark(#a2490a,                  #f59e0b);
  --accent-amber-soft:   light-dark(rgba(180, 83, 9, 0.10),   rgba(245, 158, 11, 0.08));
  --accent-amber-border: light-dark(rgba(180, 83, 9, 0.35),   rgba(245, 158, 11, 0.40));
  --accent-success:      light-dark(#046b4e,                  #6ee7b7);
  --accent-danger:       light-dark(#b91c1c,                  #ff8a8a);
  --accent-link:         light-dark(#1d4ed8,                  #8ab4ff);
  --accent-link-hover:   light-dark(#1e40af,                  #c7d8ff);
  /* the reader's own marks: going is green, approved violet */
  --accent-going:        light-dark(#046b4e,                  #6ee7b7);
  --accent-going-dot:    light-dark(#059669,                  #34d399);
  --accent-going-soft:   light-dark(rgba(5, 150, 105, 0.10),  rgba(52, 211, 153, 0.12));
  --accent-approved:     light-dark(#6d28d9,                  #c4b5fd);
  --accent-approved-dot: light-dark(#7c3aed,                  #a78bfa);
  --accent-approved-soft: light-dark(rgba(124, 58, 237, 0.10), rgba(167, 139, 250, 0.14));

  --vignette-strong: light-dark(rgba(250, 248, 243, 0.14), rgba(5, 5, 13, 0.14));

  --shadow-pop: light-dark(0 12px 32px rgba(20, 18, 30, 0.16),
                           0 12px 40px rgba(0, 0, 0, 0.55));

  --font: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --button-primary-bg: var(--text-primary);
  --button-primary-fg: var(--bg-base);

  --radius-sheet: 22px;
  --radius-card:  16px;
  --radius-chip:  999px;
  --radius-btn:   13px;

  /* WNR's own: the gutter, safe areas included, and the one measure. */
  --gutter: clamp(20px, 5vw, 56px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --measure: 34rem;
}

[data-theme="light"] { color-scheme: light; }
[data-theme="dark"]  { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg-base); -webkit-text-size-adjust: 100%; }

body.wn-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* Links read as the text they sit in, underlined; no blue. */
a { color: var(--text-primary); text-underline-offset: 3px; }
a:hover { color: var(--text-primary); text-decoration-thickness: 2px; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 3px;
}

.wn-icon { width: 20px; height: 20px; flex: none; }

/* The field --------------------------------------------------------------- */

.wn-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.wn-field__grid {
  position: absolute;
  inset: -1px;
  background-image:
    radial-gradient(circle at 50% 38%, transparent 0 9%, var(--border-subtle) 9% calc(9% + 1px), transparent calc(9% + 1px)),
    radial-gradient(circle at 50% 38%, transparent 0 22%, var(--border-subtle) 22% calc(22% + 1px), transparent calc(22% + 1px)),
    radial-gradient(circle at 50% 38%, transparent 0 37%, var(--border-glass) 37% calc(37% + 1px), transparent calc(37% + 1px)),
    radial-gradient(circle at 50% 38%, transparent 0 54%, var(--border-subtle) 54% calc(54% + 1px), transparent calc(54% + 1px)),
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 38%, #000 0 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 38%, #000 0 35%, transparent 75%);
}

.wn-field__sweep {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 150vmax;
  height: 150vmax;
  translate: -50% -50%;
  background: conic-gradient(from 0deg, transparent 0 78%, var(--accent-amber-soft) 92%, light-dark(rgba(180, 83, 9, 0.18), rgba(245, 158, 11, 0.20)) 100%);
  border-radius: 50%;
  mask-image: radial-gradient(circle, #000 0 30%, transparent 55%);
  -webkit-mask-image: radial-gradient(circle, #000 0 30%, transparent 55%);
  animation: wn-sweep 7s linear infinite;
}

.wn-blip {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 10px var(--accent-amber);
  opacity: 0;
  animation: wn-blip 7s ease-out infinite;
}
.wn-blip--18-30 { left: 18%; top: 30%; animation-delay: 5.1s; }
.wn-blip--74-22 { left: 74%; top: 22%; animation-delay: 0.9s; }
.wn-blip--64-68 { left: 64%; top: 68%; animation-delay: 2.6s; }
.wn-blip--28-76 { left: 28%; top: 76%; animation-delay: 3.9s; }
.wn-blip--86-52 { left: 86%; top: 52%; animation-delay: 1.8s; }

.wn-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 40%, var(--vignette-strong) 100%);
}

@keyframes wn-sweep { to { rotate: 360deg; } }
@keyframes wn-blip {
  0%, 100% { opacity: 0; scale: 0.6; }
  4% { opacity: 1; scale: 1.3; }
  30% { opacity: 0.35; scale: 1; }
  60% { opacity: 0; }
}

/* The bar ----------------------------------------------------------------- */

.wn-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(14px + var(--safe-top)) var(--gutter) 14px;
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.wn-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.06em;
  text-decoration: none;
}
.wn-wordmark:hover { color: var(--text-primary); }

.wn-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
  transform: translateY(-3px);
  animation: wn-pulse 2.4s ease-in-out infinite;
}

@keyframes wn-pulse {
  0%, 100% { box-shadow: 0 0 6px var(--accent-amber); opacity: 1; }
  50% { box-shadow: 0 0 14px var(--accent-amber); opacity: 0.7; }
}

.wn-signout { margin: 0; }

/* Type -------------------------------------------------------------------- */

main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 28px var(--gutter) calc(32px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
}

.wn-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-chip);
  border: 1px solid var(--accent-amber-border);
  background: var(--accent-amber-soft);
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wn-pill--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.wn-title {
  margin: 0;
  font-size: clamp(64px, 19vw, 132px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.wn-heading {
  margin: 0;
  font-size: clamp(36px, 10vw, 54px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.055em;
}

.wn-dot, .wn-accent { color: var(--accent-amber); }

.wn-lede {
  margin: 18px 0 0;
  max-width: 30rem;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.45;
}
.wn-lede strong { color: var(--text-primary); font-weight: 500; overflow-wrap: anywhere; }

/* Secondary rather than dim: whatsnr.eu keeps its dimmest steps for
 * decoration, and this is something people read. */
.wn-fine {
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
}
.wn-fine a { color: inherit; }

/* Buttons ----------------------------------------------------------------- */

.wn-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-glass);
  background: var(--bg-raised);
  color: var(--text-secondary);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.2s ease, opacity 0.15s ease;
}
.wn-button:hover { background: var(--bg-raised-hi); color: var(--text-primary); }
.wn-button:active { transform: scale(0.98); }
.wn-button[disabled] { cursor: progress; opacity: 0.75; }

.wn-button--primary {
  border-color: transparent;
  background: var(--button-primary-bg);
  color: var(--button-primary-fg);
}
.wn-button--primary:hover {
  background: var(--button-primary-bg);
  color: var(--button-primary-fg);
  box-shadow: 0 0 0 4px var(--accent-amber-soft), 0 0 28px light-dark(rgba(180, 83, 9, 0.18), rgba(245, 158, 11, 0.22));
}

.wn-button--large { min-height: 56px; padding: 14px 24px; font-size: 17px; border-radius: 16px; }
.wn-button--small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.wn-button--block { width: 100%; }
.wn-button--quiet { min-height: 36px; padding: 6px 12px; font-size: 14px; }

.wn-hero .wn-button--large { align-self: flex-start; margin-top: 36px; }
/* The front door's skip, under the way in: looking around without an account. */
.wn-hero .wn-button--quiet { align-self: flex-start; margin-top: 10px; }

/* Front door -------------------------------------------------------------- */

.wn-hero { justify-content: center; padding-top: 8vh; }
.wn-hero .wn-lede { font-size: clamp(18px, 4.6vw, 22px); }

/* Cards ------------------------------------------------------------------- */

.wn-card {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.wn-card + .wn-card { margin-top: 12px; }
/* The theme: three buttons joined in one pill, the one in use filled. */
.wn-theme {
  display: inline-flex;
  margin-top: 12px;
  padding: 3px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-chip);
}
.wn-theme__option {
  padding: 6px 14px;
  border: 0;
  border-radius: var(--radius-chip);
  background: none;
  color: var(--text-secondary);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.wn-theme__option:hover { color: var(--text-primary); }
.wn-theme__option[aria-pressed="true"] { background: var(--accent-amber-soft); color: var(--text-primary); font-weight: 600; }
.wn-theme__option:focus-visible { outline: 2px solid var(--accent-amber); outline-offset: 1px; }
.wn-card h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.wn-card p { margin: 4px 0 0; color: var(--text-secondary); font-size: 15px; }
.wn-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-amber-soft);
  border: 1px solid var(--accent-amber-border);
  color: var(--accent-amber);
}
.wn-card__links { font-size: 14px; }
.wn-card__links a { color: var(--text-primary); text-underline-offset: 3px; }
.wn-sep { margin: 0 8px; color: var(--text-dim); }

/* The app: top row, deck, and the page between ---------------------------- */

/* The deck sits at the same height on every page, list and map alike: high
 * enough on all of them to clear the map's attribution on its bottom edge. */
.wn-page--app { --top-h: 60px; --deck-h: 64px; --deck-bottom: calc(26px + var(--safe-bottom)); }

.wn-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: calc(var(--top-h) + var(--safe-top));
  padding: var(--safe-top) var(--gutter) 0;
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.wn-top__start { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }

/* The tags the list and the map are narrowed to, in the top row, each with a
 * cross to let it go. Many scroll sideways rather than push the row apart. */
.wn-picked {
  display: flex;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}
.wn-picked__tag {
  flex: none;
  display: flex;
  align-items: center;
  border: 1px solid var(--accent-amber-border);
  border-radius: var(--radius-chip);
  background: var(--accent-amber-soft);
}
.wn-picked__tag .wn-tag { border: none; background: none; color: var(--text-primary); font-size: 12px; padding: 3px 2px 3px 10px; }
.wn-mark { display: inline-flex; align-items: center; gap: 5px; padding: 3px 2px 3px 10px; font-size: 12px; font-weight: 600; color: var(--text-primary); }
.wn-mark .wn-icon { width: 13px; height: 13px; color: var(--accent-amber); }
.wn-picked__remove { display: grid; place-items: center; width: 26px; height: 26px; color: var(--text-secondary); }
.wn-picked__remove:hover { color: var(--accent-amber); }
.wn-picked__remove .wn-icon { width: 14px; height: 14px; }

/* The filter: a funnel on the left of the top row, after the wordmark, lit
 * amber when anything is filtered. Its panel is a popover, in the top layer,
 * so it is placed against the window, under the top row's left end. */
.wn-filter__button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.wn-filter__button .wn-icon { width: 18px; height: 18px; }
.wn-filter__button:hover { color: var(--text-primary); background: var(--bg-raised); }
.wn-filter__button--on { border-color: var(--accent-amber-border); background: var(--accent-amber-soft); color: var(--accent-amber); }
.wn-filter__button--on .wn-icon { fill: currentColor; }
.wn-filter__panel {
  position: fixed;
  inset: auto;
  top: calc(var(--top-h) + var(--safe-top) + 6px);
  left: var(--gutter);
  margin: 0;
  min-width: 220px;
  padding: 6px;
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  background: var(--bg-base);
  color: var(--text-primary);
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.28);
}
.wn-filter__panel:popover-open { display: grid; align-content: start; }
.wn-filter__panel { max-height: calc(100dvh - var(--top-h) - var(--safe-top) - 24px); overflow-y: auto; width: min(300px, calc(100vw - 2 * var(--gutter))); }
.wn-filter__tags { display: grid; gap: 6px; margin-top: 6px; padding: 10px 6px 4px; border-top: 1px solid var(--border-subtle); }
.wn-filter__heading { padding: 0 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.wn-filter__search {
  padding: 8px 10px;
  border: 1px solid var(--border-glass);
  border-radius: 9px;
  background: var(--bg-raised);
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
}
.wn-filter__search:focus-visible { outline: 2px solid var(--accent-amber); outline-offset: -1px; }
.wn-filter__tag-list { display: grid; margin: 0; padding: 0; list-style: none; }
.wn-filter__tag-list [hidden] { display: none; }
.wn-filter__tag-list .wn-filter__option { padding: 7px 8px; }
.wn-filter__mark { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; font-size: 14px; }
.wn-filter__option .wn-filter__mark .wn-icon { visibility: visible; width: 15px; height: 15px; color: var(--accent-amber); }
[data-mark-option="saved"] .wn-filter__mark .wn-icon { color: var(--accent-going); }
[data-mark-option="liked"] .wn-filter__mark .wn-icon { color: var(--accent-approved); }
[data-mark-option="hide-viewed"] .wn-filter__mark .wn-icon { color: var(--text-secondary); }
[data-mark-option="hide-viewed"] { margin-bottom: 4px; padding-bottom: 4px; border-bottom: 1px solid var(--border-subtle); }
.wn-filter__tag { margin-right: auto; font-family: var(--font-mono); font-size: 13px; }
.wn-filter__tag::before { content: "#"; color: var(--text-dim); }
.wn-filter__count { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.wn-filter__option[aria-current="true"] { color: var(--text-primary); font-weight: 600; }
.wn-filter__option[aria-current="true"] .wn-icon { visibility: visible; }
.wn-filter__none { margin: 0; padding: 4px 8px; font-size: 13px; color: var(--text-dim); }
.wn-filter__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--text-secondary);
  text-decoration: none;
}
.wn-filter__option:hover { background: var(--bg-raised); color: var(--text-primary); }
/* Clear all, at the head of the panel when any filter is on. */
.wn-filter__clear {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--accent-amber);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.wn-filter__clear:hover { color: var(--text-primary); }
.wn-filter__clear .wn-icon { width: 14px; height: 14px; }
.wn-filter__option .wn-icon { width: 16px; height: 16px; visibility: hidden; color: var(--accent-amber); }
.wn-filter__option[aria-current="page"] { color: var(--text-primary); font-weight: 600; }
.wn-filter__option[aria-current="page"] .wn-icon { visibility: visible; }

/* The timeframe: a pill in the top row that says the days in a word or
 * two, and opens a panel like the filter's. */
.wn-when { flex: none; }
.wn-when__button {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.wn-when__button:hover { background: var(--bg-raised); }
.wn-when__button .wn-icon { width: 16px; height: 16px; color: var(--accent-amber); }
.wn-when__dates { display: grid; gap: 8px; margin-top: 6px; padding: 10px 6px 4px; border-top: 1px solid var(--border-subtle); }
/* Amber marks the timeframe that's picked; ink (the primary button) means go. */
#wn-when .wn-filter__option[aria-current="page"] { background: var(--accent-amber-soft); }
/* Wide enough for two dates side by side, the year and the picker included. */
#wn-when.wn-filter__panel { width: min(380px, calc(100vw - 2 * var(--gutter))); }
.wn-when__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* Each date in a tile that carries its label. Fields take the page's own
 * scheme (not "light dark", which let a dark-mode device draw light text on
 * the light panel), and 16px text so iOS doesn't zoom on focus. */
.wn-when__fields label {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 10px 6px;
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  background: var(--bg-base);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: text;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wn-when__fields label:focus-within { border-color: var(--accent-amber); box-shadow: 0 0 0 3px var(--accent-amber-soft); }
.wn-when__fields input {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-family: var(--font);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  outline: none;
  color-scheme: inherit;
}
.wn-when__apply {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px;
  border: none;
  border-radius: 9px;
  background: var(--button-primary-bg);
  color: var(--button-primary-fg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.wn-when__hint { margin: 0; padding: 0 4px; font-size: 12px; color: var(--text-dim); }
.wn-when__apply .wn-icon { width: 16px; height: 16px; }
.wn-when__apply:focus-visible { outline: 2px solid var(--accent-amber); outline-offset: 2px; }
/* On a phone the panel is narrow: the dates stack so each shows in full. */
@media (max-width: 480px) { .wn-when__fields { grid-template-columns: 1fr; } }

/* The search for posts, in the top row (views/search-field): a field where
 * the row has room for one; else a round button, beside the profile, to the
 * search page and its own field. */
.wn-search {
  display: none;
  align-items: center;
  gap: 8px;
  flex: 0 1 260px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  background: var(--bg-raised);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, flex-basis 0.2s ease;
}
.wn-search:focus-within {
  flex-basis: 340px;
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 3px var(--accent-amber-soft);
}
.wn-search .wn-icon { flex: none; width: 16px; height: 16px; color: var(--text-dim); }
.wn-search input,
.wn-search-page__field input {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 16px; /* so iOS doesn't zoom on focus */
  outline: none;
}
.wn-search-open {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  background: var(--bg-raised);
  color: var(--text-secondary);
}
.wn-search-open:hover { color: var(--text-primary); }
.wn-search-open .wn-icon { width: 18px; height: 18px; }
@media (min-width: 860px) {
  .wn-search { display: flex; }
  .wn-search-open { display: none; }
}
/* On the search page, its own field says it all. */
.wn-page--search .wn-search, .wn-page--search .wn-search-open { display: none; }

/* The search page: its field, the switch for past events, and what it found,
 * the past set apart and quieter. */
.wn-search-page {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 20px;
}
.wn-search-page__field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 100%;
  padding: 2px 14px;
  border: 1px solid var(--border-mid);
  border-radius: 14px;
  background: var(--bg-raised);
}
.wn-search-page__field:focus-within { border-color: var(--accent-amber); box-shadow: 0 0 0 3px var(--accent-amber-soft); }
.wn-search-page__field .wn-icon { width: 18px; height: 18px; color: var(--text-dim); }
.wn-search-page__field input { padding: 12px 0; font-size: 17px; }
.wn-search-page__go { margin-left: auto; }
.wn-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
}
.wn-switch input { position: absolute; opacity: 0; pointer-events: none; }
.wn-switch__track {
  position: relative;
  flex: none;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--bg-raised-hi);
  border: 1px solid var(--border-mid);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.wn-switch__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: transform 0.15s ease, background 0.15s ease;
}
.wn-switch input:checked + .wn-switch__track { background: var(--accent-amber-soft); border-color: var(--accent-amber-border); }
.wn-switch input:checked + .wn-switch__track::after { transform: translateX(16px); background: var(--accent-amber); }
.wn-switch input:focus-visible + .wn-switch__track { outline: 2px solid var(--accent-amber); outline-offset: 2px; }
.wn-switch:has(input:checked) { color: var(--text-primary); }
.wn-search-page__past {
  margin: 28px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 15px;
}
.wn-day--past { opacity: 0.75; }
/* With script, the switch searches again as it moves: no button needed. */
.wn-search-page[data-live] .wn-search-page__go { display: none; }

.wn-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--accent-amber-border);
  background: var(--accent-amber-soft);
  color: var(--accent-amber);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
a.wn-avatar:hover { color: var(--accent-amber); box-shadow: 0 0 0 4px var(--accent-amber-soft); }
a.wn-avatar:active { transform: scale(0.95); }
a.wn-avatar[aria-current="page"] { border-color: var(--accent-amber); box-shadow: 0 0 0 3px var(--accent-amber-soft); }
.wn-avatar--large { width: 64px; height: 64px; font-size: 28px; }

.wn-deck {
  position: fixed;
  left: 50%;
  bottom: var(--deck-bottom);
  z-index: 20;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: var(--radius-chip);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass-deep);
  box-shadow: var(--shadow-pop);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
/* In the dark, near-black glass on a near-black page all but vanished: the
 * deck is lifted to a grey of its own, with a lit edge, a highlight along its
 * top and a darker shadow under it. Light mode is as it was. */
.wn-deck {
  border-color: light-dark(var(--border-glass), rgba(255, 255, 255, 0.16));
  background: light-dark(var(--bg-glass-deep), rgba(34, 34, 50, 0.92));
  /* light-dark() takes colours only, so it goes inside each shadow. */
  box-shadow: inset 0 1px 0 light-dark(transparent, rgba(255, 255, 255, 0.08)),
              0 12px 34px light-dark(transparent, rgba(0, 0, 0, 0.7));
}

.wn-deck__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 52px;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-chip);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.wn-deck__tab:hover { color: var(--text-primary); background: var(--bg-raised-hi); }
.wn-deck__tab:active { transform: scale(0.96); }
.wn-deck__tab[aria-current="page"] { color: var(--text-primary); background: var(--bg-raised-hi); }
.wn-deck__tab:hover, .wn-deck__tab[aria-current="page"] {
  background: light-dark(var(--bg-raised-hi), rgba(255, 255, 255, 0.13));
}
.wn-deck__tab[aria-current="page"] .wn-icon { color: light-dark(currentColor, var(--accent-amber)); }

/* Create is a plain round '+', apart from the two ways of looking; its word
 * is for screen readers. */
.wn-deck__tab--create {
  width: 48px;
  min-width: 48px;
  margin-left: 4px;
  padding: 0;
  border-radius: 50%;
  background: var(--button-primary-bg);
  color: var(--button-primary-fg);
}
.wn-deck__tab--create span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wn-deck__tab--create .wn-icon { width: 22px; height: 22px; stroke-width: 2.25; }
.wn-deck__tab--create:hover,
.wn-deck__tab--create[aria-current="page"] { background: var(--button-primary-bg); color: var(--button-primary-fg); filter: brightness(1.08); }
.wn-deck__tab--create[aria-current="page"] .wn-icon { color: currentColor; }

/* Narrow phones: the icons carry the deck, the words are for screen readers. */
@media (max-width: 360px) {
  .wn-deck__tab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .wn-deck__tab { padding: 0 14px; }
  .wn-deck__tab--create { padding: 0; }
}

main.wn-app {
  padding-top: calc(var(--top-h) + var(--safe-top) + 20px);
  padding-bottom: calc(var(--deck-h) + var(--safe-bottom) + 40px);
}

/* Upcoming ---------------------------------------------------------------- */

/* The list is held to a wider measure than the reading pages, room for a
 * cover and a line of text, no more: on a desktop its rows don't run the
 * width of the screen. */
.wn-page--list main.wn-list { max-width: calc(48rem + 2 * var(--gutter)); }
/* On a phone the rows run edge to edge, the box's sides and corners gone;
 * the words around them keep to the top row's gutter. */
@media (max-width: 600px) {
  .wn-page--list main.wn-list { padding-left: 0; padding-right: 0; }
  .wn-list > :not(.wn-day) { margin-left: var(--gutter); margin-right: var(--gutter); }
  .wn-list .wn-day__label { padding: 0 var(--gutter); }
  .wn-list .wn-posts { border-radius: 0; border-left: 0; border-right: 0; }
}

.wn-list__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.wn-list__head h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.05em;
}
.wn-list__count, .wn-day__label {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wn-list__area {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}
.wn-list__area .wn-icon { width: 15px; height: 15px; color: var(--accent-amber); }
.wn-list__area b { color: var(--text-primary); font-weight: 600; }
.wn-list__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; flex: none; }
.wn-list__area a { color: var(--text-primary); font-weight: 500; text-underline-offset: 3px; }

/* "My location": back to where this device is, whatever the area now is. */
.wn-locate { position: relative; margin: 0; }
.wn-locate__button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-primary);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.wn-list__area > span:not(.wn-list__actions) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) {
  .wn-locate--inline .wn-locate__button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .wn-locate--inline .wn-locate__button .wn-icon { width: 18px; height: 18px; }
}
.wn-locate__button:disabled { opacity: 0.6; cursor: progress; }
.wn-locate__button .wn-icon { width: 15px; height: 15px; color: var(--accent-amber); }
.wn-locate__status:empty { display: none; }
.wn-locate__status {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  max-width: min(18rem, 80vw);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass-deep);
  box-shadow: var(--shadow-pop);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
}
.wn-locate__status[data-tone="error"] { color: var(--accent-danger); }

/* On the map it is a control under the zoom buttons, in their dress. */
.wn-locate--map {
  position: fixed;
  z-index: 15;
  top: calc(var(--top-h) + var(--safe-top) + 92px);
  right: var(--gutter);
}
.wn-locate--map .wn-locate__button {
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  background: var(--bg-glass-deep);
  box-shadow: var(--shadow-pop);
}
.wn-locate--map .wn-locate__button .wn-icon { width: 18px; height: 18px; }
.wn-locate--map .wn-locate__button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wn-locate--map .wn-locate__status { right: 0; }

/* The invitation to share a location: warm, one clear way yes, one quiet way
 * past it. On the list it sits in the flow; on the map it floats. */
.wn-geo {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-card);
  border: 1px solid var(--accent-amber-border);
  background:
    radial-gradient(circle at 0% 0%, var(--accent-amber-soft), transparent 70%),
    var(--bg-glass-deep);
  box-shadow: var(--shadow-pop);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: wn-rise 0.5s ease both;
}
.wn-geo__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--accent-amber-border);
  background: var(--accent-amber-soft);
  color: var(--accent-amber);
  animation: wn-pulse 2.4s ease-in-out infinite;
}
.wn-geo h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.wn-geo p { margin: 4px 0 0; color: var(--text-secondary); font-size: 14px; line-height: 1.45; }
.wn-geo__status:empty { display: none; }
.wn-geo__status[data-tone="error"] { color: var(--accent-danger); }
.wn-geo__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.wn-geo__actions form { margin: 0; }
.wn-geo__actions .wn-icon { width: 16px; height: 16px; }

.wn-day { margin-top: 16px; }
.wn-day__label {
  margin: 0 0 4px;
  font-weight: 600;
  color: var(--accent-amber);
}

.wn-posts {
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.wn-post {
  --row: 120px;
  animation: wn-rise 0.4s ease both;
}
.wn-post + .wn-post { border-top: 1px solid var(--border-subtle); }
.wn-post:target { background: var(--accent-amber-soft); }

/* The whole row opens the post. */
.wn-post__link {
  display: flex;
  height: var(--row);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}
.wn-post__link:hover { background: var(--bg-raised); }
.wn-post__link:active { background: var(--bg-raised-hi); }
.wn-post__link:focus-visible { outline: 2px solid var(--accent-amber); outline-offset: -2px; }

/* The cover runs the row's full height, flush to its left edge, and is
 * square: every row is one height, the title and description one line each,
 * so the cover can be exactly that height wide. The list's rounded box clips
 * the first and last. */
.wn-post__media {
  flex: none;
  width: var(--row);
  height: var(--row);
  background: var(--bg-raised-hi);
}
.wn-post__cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}
/* A post the reader has opened (viewed.js) is greyed, faded and in black and
 * white, so what is new stands out, from the moment it is opened; under a
 * pointer it looks itself again. Not under the focus, which the sheet gives
 * back to the row when it closes, nor under a phone's sticky hover. One the
 * reader gave a thumbs up or is interested in is never greyed: reactions.js
 * redraws data-vote and data-starred, so a tap in place counts at once. */
.wn-post__media, .wn-post__body { transition: opacity 0.2s ease; }
.wn-post--viewed:not(:has([data-vote="1"], [data-starred="true"])) .wn-post__cover { filter: grayscale(1); }
.wn-post--viewed:not(:has([data-vote="1"], [data-starred="true"])) :is(.wn-post__media, .wn-post__body) {
  opacity: 0.6;
}
/* Hide viewed: the greyed posts go altogether (viewed.js also hides a day
 * left empty, and counts again). */
.wn-hide-viewed .wn-post--viewed:not(:has([data-vote="1"], [data-starred="true"])) { display: none; }
@media (hover: hover) {
  .wn-post--viewed:hover .wn-post__cover { filter: none; }
  .wn-post--viewed:hover :is(.wn-post__media, .wn-post__body) { opacity: 1; }
}

/* A post's own cover, peeked at under the pointer (peek.js): the whole
 * picture, uncropped and large, beside the thumbnail it grows out of, at
 * once and quickly. */
.wn-peek {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  border-radius: var(--radius-btn);
  overflow: hidden;
  background: var(--bg-raised-hi);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.12s ease, transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.wn-peek--on { opacity: 1; transform: none; }
.wn-peek img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* The panel's poster, full size (peek.js): as large as the window allows,
 * over a dimmed and blurred page, grown out of the poster; a tap, Escape or
 * a scroll puts it back. */
.wn-zoom {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(0 0 0 / 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.16s ease;
}
.wn-zoom--on { opacity: 1; }
.wn-zoom img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow-pop);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .wn-peek { transform: none; transition: opacity 0.1s ease; }
  .wn-zoom img { transition: none; }
}

.wn-post__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 14px;
}

.wn-post__time {
  margin: 0 0 1px;
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.wn-post__title {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
/* The reader's own marks, in the map's colours: a green "I'm going" tag on
 * the row's top right for a post they are going to, and a violet thumbs up
 * before the title, always, for one they approved. reactions.js redraws data-starred and
 * data-vote, so a tap in place shows at once. */
.wn-post__link { position: relative; }
.wn-post:has([data-starred="true"]) .wn-post__link::after {
  content: "✓ I'm going";
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb, var(--accent-going-dot) 35%, transparent);
  border-radius: var(--radius-chip);
  background: var(--accent-going-soft);
  color: var(--accent-going);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
}
/* The row's first line, the time or an untimed post's title, keeps clear of it. */
.wn-post:has([data-starred="true"]) .wn-post__body > :first-child { padding-right: 104px; }
.wn-post:has([data-vote="1"]) .wn-post__title::before {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 6px;
  vertical-align: -0.08em;
  background: var(--accent-approved);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10v12'/%3E%3Cpath d='M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10v12'/%3E%3Cpath d='M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wn-post__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 3px 0 0;
  min-width: 0;
  color: var(--text-secondary);
  font-size: 13px;
}
/* The category, one look in the list and on the post: an amber pill with
 * its glyph, in capitals. How hot a post is wears it in orange, or red. */
.wn-post__category, .wn-detail__category, .wn-heat {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px 2px 6px;
  border-radius: var(--radius-chip);
  background: var(--accent-amber-soft);
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wn-post .wn-post__category .wn-icon,
.wn-detail__category .wn-icon, .wn-post .wn-heat .wn-icon { width: 12px; height: 12px; color: currentColor; }
.wn-heat .wn-icon { fill: currentColor; }
.wn-heat { background: color-mix(in srgb, #f97316 14%, transparent); color: light-dark(#c2410c, #fdba74); }
.wn-heat--fire { background: color-mix(in srgb, #ef4444 14%, transparent); color: light-dark(#b91c1c, #fca5a5); }
.wn-post__location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.wn-post__location span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wn-post .wn-icon { width: 13px; height: 13px; color: var(--text-dim); }

.wn-post__desc {
  margin: 3px 0 0;
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tags: on the list, one line of them, cut where it runs out. */
.wn-post__tags, .wn-detail__tags {
  display: flex;
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.wn-post__tags { flex-wrap: nowrap; overflow: hidden; mask-image: linear-gradient(90deg, #000 85%, transparent); }
/* Each chip is the whole of its item, so the strip's clipping never cuts its
 * edge. */
.wn-post__tags > li, .wn-detail__tags > li { flex: none; display: flex; }
.wn-detail__tags { flex-wrap: wrap; margin-top: 20px; }
.wn-tag {
  flex: none;
  padding: 1px 8px;
  border-radius: var(--radius-chip);
  border: 1px solid var(--border-glass);
  background: var(--bg-raised);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
}
.wn-tag::before { content: "#"; color: var(--text-dim); }
/* A post's tag picks it as a filter (tags.js). */
[data-tag] { cursor: pointer; text-decoration: none; transition: border-color 0.15s ease, color 0.15s ease; }
[data-tag]:hover { border-color: var(--accent-amber-border); color: var(--text-primary); }
[data-tag][data-on] { border-color: var(--accent-amber-border); background: var(--accent-amber-soft); color: var(--text-primary); }


.wn-empty { margin: 24px 0 0; color: var(--text-secondary); }

/* Reactions ---------------------------------------------------------------- */

/* A vote and a star: in the list, a narrow rail down the row's right edge,
 * star on top, score between its arrows; on the post's page, a row under the
 * title. Quiet until pressed: up and the star take the amber, down a cool
 * blue, and a pressed arrow or star is filled. */
.wn-post { display: flex; }
.wn-post__link { flex: 1; min-width: 0; }

.wn-reactions form { display: contents; }
.wn-reactions--rail {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  margin-right: 4px;
}
/* The list no longer shows its rail: the row's mark says what the reader
 * did, and the sheet's deck does it. It stays in the page, hidden, for that
 * mark and for the greying, which read its data-starred and data-vote. */
.wn-post .wn-reactions--rail { display: none; }
.wn-reactions--bar { display: flex; align-items: center; gap: 8px; margin: 0; }

.wn-vote { display: flex; flex-direction: column; align-items: center; }
.wn-react {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 34px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text-dim);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease, background 0.15s ease;
}
.wn-react:hover { color: var(--text-primary); background: var(--bg-raised-hi); }
.wn-react:focus-visible { outline: 2px solid var(--accent-amber); outline-offset: 1px; }
.wn-react .wn-icon,
.wn-post .wn-react .wn-icon { width: 19px; height: 19px; color: inherit; transition: transform 0.2s ease; }
.wn-react:active .wn-icon { transform: scale(0.85); }
.wn-reactions--bar .wn-react { border-radius: var(--radius-chip); }
/* Approve: a pill with its thumb, saying what it does, violet once pressed. */
.wn-reactions--bar .wn-react--up {
  width: auto;
  height: 36px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
}
.wn-reactions--bar .wn-react--up:hover { color: var(--text-primary); background: var(--bg-raised-hi); }
.wn-reactions--bar .wn-react--up .wn-icon { width: 17px; height: 17px; }
.wn-reactions--bar .wn-react--up[aria-pressed="true"] {
  border-color: var(--accent-approved-dot);
  background: var(--accent-approved-soft);
}

.wn-react--up[aria-pressed="true"] { color: var(--accent-approved); }
.wn-react--star[aria-pressed="true"] { color: var(--accent-going); }
.wn-react[aria-pressed="true"] .wn-icon { fill: currentColor; }

.wn-vote__score {
  min-width: 2ch;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.wn-reactions--bar .wn-vote__score { padding: 0 2px; }
[data-vote="1"] .wn-vote__score { color: var(--accent-approved); }
[data-vote="-1"] .wn-vote__score { color: var(--accent-link); }

/* I'm going: the post's main action, in words alone. Under the pointer, and
 * once you're going, its ends turn to hexagon points, the map's mark for a
 * post you're going to; going, its colours swap, as the mark's do. Under the
 * pointer it says what a press does: "Not going" while going. */
.wn-reactions--bar .wn-react--star {
  flex: none;
  width: auto;
  height: 36px;
  white-space: nowrap;
  padding: 0 20px;
  border: none;
  border-radius: 0;
  background: var(--bg-raised-hi);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
  clip-path: inset(0 round 18px);
  transition: background 0.15s ease, color 0.15s ease;
}
.wn-reactions--bar .wn-react--star:is(:hover, :focus-visible, [aria-pressed="true"]) {
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
}
.wn-reactions--bar .wn-react--star[aria-pressed="true"] { background: var(--text-primary); color: var(--bg-base); }
.wn-going { display: grid; }
.wn-going > span { grid-area: 1 / 1; text-align: center; }
.wn-going__next { visibility: hidden; }
.wn-react--star:is(:hover, :focus-visible) .wn-going > [data-star-label] { visibility: hidden; }
.wn-react--star:is(:hover, :focus-visible) .wn-going__next { visibility: visible; }
.wn-react--star[aria-pressed="true"] .wn-icon { fill: none; }

@media (prefers-reduced-motion: reduce) {
  .wn-react, .wn-react .wn-icon { transition: none; }
  .wn-react:active .wn-icon { transform: none; }
}

/* A post in full ------------------------------------------------------------ */

.wn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.wn-back:hover { color: var(--text-primary); }
.wn-back .wn-icon { width: 16px; height: 16px; }
.wn-back--end { margin: 36px 0 0; }

/* The post: its cover, 16:9; the date line; the title, one size whatever
 * its length; under it the category, On fire and every tag, wrapping. Then
 * the action bar between two quiet rules; where and the website, what it is,
 * and for a series the other dates. */
.wn-detail {
  position: relative;
  display: grid;
  gap: 14px;
  animation: wn-rise 0.35s ease both;
}
/* The poster is never cropped: a tall or square one sits whole in the 16:9
 * frame, and its own picture, blurred and dimmed, fills the sides. */
.wn-detail__poster {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-raised-hi);
  cursor: zoom-in;
}
.wn-detail__poster::before {
  content: "";
  position: absolute;
  inset: -32px;
  z-index: -1;
  background: var(--cover) center / cover no-repeat;
  filter: blur(24px) brightness(0.7) saturate(1.2);
}
.wn-detail__poster:focus-visible { outline: 2px solid var(--accent-amber); outline-offset: 2px; }
.wn-detail__cover { display: block; width: 100%; height: 100%; object-fit: contain; }
.wn-detail__stamp {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.wn-detail__date { color: var(--accent-amber); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.wn-detail__clock { color: var(--text-primary); font-weight: 600; }
.wn-detail__relative { color: var(--text-secondary); font-family: var(--font); font-size: 12.5px; }
.wn-detail__relative::before { content: "· "; color: var(--text-dim); }
.wn-detail__title {
  margin: -6px 0 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.wn-detail__line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: -4px; }
.wn-detail__line .wn-detail__tags { display: contents; }


/* The action bar: I'm going first, then share and the vote, between two
 * quiet rules. */
.wn-detail__actions {
  position: relative;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.wn-detail__actions .wn-reactions--bar { gap: 6px; }
.wn-reactions__gap { flex: 1; }
.wn-reactions--bar .wn-react--up[aria-pressed="true"] { color: var(--accent-approved); }
.wn-share { position: relative; }
.wn-share__button.wn-react {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--text-secondary);
  font-size: 13.5px;
}
.wn-share__button.wn-react .wn-icon { width: 17px; height: 17px; }
.wn-share__menu {
  position: absolute;
  z-index: 6;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  gap: 2px;
  width: 220px;
  padding: 6px;
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  background: var(--bg-glass-deep);
  box-shadow: var(--shadow-pop);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.wn-share__menu[hidden] { display: none; }
.wn-share__menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--text-primary);
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}
.wn-share__menu button[hidden] { display: none; }
.wn-share__menu button:hover { background: var(--bg-raised-hi); }
.wn-share__menu .wn-icon { width: 16px; height: 16px; color: var(--text-secondary); }
.wn-share__note {
  position: absolute;
  z-index: 7;
  bottom: calc(100% + 8px);
  right: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--text-primary);
  color: var(--bg-base);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.wn-share__note[hidden] { display: none; }

/* Where, the website, and after the description how long and the dates:
 * quieter than the head, the description set for reading. */
.wn-detail__facts { display: grid; gap: 10px; margin: 0; }
.wn-detail__facts > div {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 10px;
  align-items: start;
}
.wn-detail__facts .wn-icon { width: 17px; height: 17px; margin-top: 1px; color: var(--text-dim); }
.wn-detail__facts dt {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
}
.wn-detail__facts dd { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  color: var(--text-secondary); font-size: 13.5px; }
.wn-detail__facts dd small { color: var(--text-dim); font-size: 12.5px; }
.wn-detail__facts dd b { color: var(--text-primary); font-weight: 600; }
.wn-detail__none { color: var(--text-dim); }
.wn-detail__map-link, .wn-detail__website {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-mid);
  text-underline-offset: 3px;
}
.wn-detail__website { display: inline-flex; align-items: center; gap: 6px; width: fit-content; }
.wn-detail__website:hover, .wn-detail__map-link:hover { text-decoration-color: currentColor; }
.wn-detail__facts .wn-detail__website .wn-icon { width: 15px; height: 15px; margin: 0; color: currentColor; }
.wn-detail__desc {
  margin: 0;
  max-width: 62ch;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.62;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
/* The other dates: one row, a quiet card, that opens the calendar over the
 * post. */
.wn-detail__dates-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  background: var(--bg-raised);
  color: var(--text-primary);
  list-style: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.wn-detail__dates-button::-webkit-details-marker { display: none; }
.wn-detail__dates-button:hover { border-color: var(--accent-amber-border); background: var(--bg-raised-hi); }
.wn-detail__dates-button > .wn-icon { flex: none; width: 18px; height: 18px; color: var(--accent-amber); }
.wn-detail__dates-button > .wn-icon:last-child { width: 16px; height: 16px; color: var(--text-dim); }
.wn-detail__dates-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.wn-detail__dates-text b { font-size: 14px; font-weight: 600; }
.wn-detail__dates-text small { color: var(--text-secondary); font-size: 12.5px; }
.wn-detail__dates-count { flex: none; color: var(--text-secondary); font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; }
.wn-detail__dates-panel { display: grid; gap: 14px; margin-top: 12px; }
.wn-detail__dates-head { display: none; align-items: center; justify-content: space-between; }
.wn-detail__dates-head span { display: grid; color: var(--text-primary); font-size: 15px; font-weight: 600; }
.wn-detail__dates-head small { color: var(--text-secondary); font-size: 12px; font-weight: 400; }
.wn-detail__dates-close {
  display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px;
  background: none; color: var(--text-secondary); cursor: pointer;
}
.wn-detail__dates-close:hover { background: var(--bg-raised-hi); color: var(--text-primary); }
.wn-detail__dates-close .wn-icon { width: 18px; height: 18px; margin: 0; color: currentColor; }
.wn-sheet .wn-detail__dates[open] > .wn-detail__dates-panel {
  position: fixed;
  inset: 0;
  z-index: 8;
  align-content: start;
  margin: 0;
  padding: 14px var(--gutter) 24px;
  overflow-y: auto;
  border-radius: inherit;
  background: var(--bg-base);
}
.wn-sheet .wn-detail__dates-head { display: flex; }

/* A series: the mark that it repeats, and its dates to choose from. */
.wn-repeat { color: var(--text-secondary); font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.wn-post__time .wn-repeat { margin-left: 6px; color: var(--accent-amber); }
.wn-dot__repeat { color: var(--dot-ink); }
.wn-visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
/* A series' day picker: a month, Monday first, where only a day with a date
   is a link; under it, the chosen day's times. */
.wn-days { display: grid; gap: 10px; max-width: 300px; }
.wn-days__head { display: flex; align-items: center; justify-content: space-between; }
.wn-days__month { font-size: 14px; font-weight: 600; }
.wn-days__step {
  display: inline-grid; place-items: center; width: 28px; height: 28px;
  border-radius: 999px; color: var(--text-primary);
}
.wn-days__step:hover { background: var(--accent-amber-soft); }
span.wn-days__step { color: var(--text-secondary); opacity: .35; }
.wn-days__step .wn-icon { width: 16px; height: 16px; margin: 0; color: inherit; }
.wn-days__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.wn-days__weekday { color: var(--text-secondary); font-size: 11px; padding-bottom: 2px; }
.wn-days__day {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 999px;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-primary);
  text-decoration: none; position: relative;
}
a.wn-days__day { font-weight: 600; border: 1px solid var(--border-mid); }
a.wn-days__day:hover { border-color: var(--accent-amber-border); }
a.wn-days__day[aria-current="date"] { border-color: var(--accent-amber); background: var(--accent-amber-soft); }
.wn-days__day--off { color: var(--text-secondary); opacity: .45; }
.wn-days__day--starred::after {
  content: ""; position: absolute; bottom: 3px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--accent-going-dot);
}
.wn-days__times { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.wn-days__label { color: var(--text-secondary); font-size: 13px; }
.wn-days__times ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.wn-occurrence {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
}
.wn-occurrence:hover { border-color: var(--accent-amber-border); }
.wn-occurrence[aria-current="true"] { border-color: var(--accent-amber); background: var(--accent-amber-soft); font-weight: 600; }
.wn-occurrence--starred::before { content: "✓ "; color: var(--accent-going); }

/* The sheet. On a phone it rises from the bottom, leaving the page visible
 * above it, the same height for every post; a swipe sideways steps. Its surface is solid. It holds what is
 * fixed inside it (the dates' calendar), so they cover the sheet, not the
 * screen. */
.wn-sheet {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  width: 100%;
  max-width: 40rem;
  /* One height for every post, so its date line stays put from one to the
   * next. */
  height: min(680px, calc(100dvh - var(--safe-top) - 96px));
  margin: 0 auto;
  padding: 0;
  display: none;
  flex-direction: column;
  overflow: visible;
  contain: layout;
  border: 1px solid var(--border-glass);
  border-bottom: 0;
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  background: var(--bg-base);
  color: var(--text-primary);
  /* light-dark() takes colours only, so it goes inside each shadow. */
  box-shadow: 0 24px 64px -12px light-dark(rgba(20, 18, 30, 0.30), rgba(0, 0, 0, 0.80)),
              0 4px 16px light-dark(rgba(20, 18, 30, 0.10), rgba(0, 0, 0, 0.45));
  animation: wn-sheet-up 0.28s ease both;
}
.wn-sheet[open] { display: flex; }
.wn-sheet::backdrop { background: rgba(0, 0, 0, 0.62); }
/* A post you're going to tints the sheet green a touch, still opaque. */
.wn-sheet--going, .wn-sheet:has(.wn-detail--interested) { background: color-mix(in srgb, var(--accent-going-dot) 5%, var(--bg-base)); }
.wn-sheet__bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px 0 var(--gutter);
}
.wn-sheet__bar::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 38px;
  height: 5px;
  margin-left: -19px;
  border-radius: 999px;
  background: var(--border-mid);
}
.wn-sheet__where { display: flex; align-items: center; gap: 5px; color: var(--text-secondary);
  font-family: var(--font-mono); font-size: 12px; }
.wn-sheet__where i { width: 6px; height: 6px; border-radius: 999px; background: var(--border-mid); transition: width 0.2s ease; }
.wn-sheet__where i.wn-sheet__dot--on { width: 16px; background: var(--accent-amber); }
.wn-sheet__close {
  display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: none; color: var(--text-secondary); cursor: pointer;
}
.wn-sheet__close:hover { background: var(--bg-raised-hi); color: var(--text-primary); }
.wn-sheet__close .wn-icon { width: 20px; height: 20px; }
.wn-sheet__content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 2px var(--gutter) 22px;
  scrollbar-width: none;
}
.wn-sheet__content::-webkit-scrollbar { display: none; }
.wn-sheet__content:focus { outline: none; }
.wn-sheet__loading { margin: 24px 0; color: var(--text-secondary); }
@media (max-width: 63.99rem) { .wn-sheet__arrow { display: none; } }
/* Over the map on a phone, a shorter card: the map keeps the top of the
 * screen, and the post's dot is kept in sight above it (map.js). */
.wn-sheet[data-mode="peek"] { height: min(540px, 64dvh); }
.wn-sheet .wn-detail { max-width: none; animation: none; }
.wn-sheet:has(.wn-detail__dates[open]) .wn-sheet__arrow { display: none; }

@media (max-width: 380px) { .wn-detail__title { font-size: 24px; } }

/* On a wide screen: a panel on the right, as tall as its post, with no
 * backdrop, the list moved over beside it (below); arrows either side of
 * the post's action bar; the post's own bar, not the sheet's foot. */
@media (min-width: 64rem) {
  .wn-page--app { --panel-w: 440px; --panel-gap: 24px; }
  .wn-sheet,
  .wn-sheet[data-mode="peek"] {
    inset: calc(var(--top-h) + var(--safe-top) + var(--filters-h, 0px) + 8px) var(--panel-gap) auto auto;
    width: var(--panel-w);
    max-width: none;
    height: auto;
    min-height: 0;
    max-height: calc(100dvh - var(--top-h) - var(--safe-top) - var(--filters-h, 0px) - 8px - var(--deck-h) - var(--deck-bottom) - 16px);
    margin: 0;
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    animation: wn-panel-in 0.32s cubic-bezier(.2, .8, .2, 1) both;
  }
  .wn-sheet::backdrop { background: none; }
  /* "3 of 13" on the post's own left edge. */
  .wn-sheet__bar { padding-left: 24px; }
  .wn-sheet__bar::before { display: none; }
  .wn-sheet__content { padding: 0 24px 22px; }
  /* Over the map, the panel keeps clear of the zoom and the way back to
   * you, which stand under the profile. */
  .wn-page--map .wn-sheet { right: calc(var(--gutter) + 38px + 16px); }
  .wn-page--map .wn-sheet { border-color: light-dark(var(--border-glass), rgba(255, 255, 255, 0.12)); }
  .wn-sheet__arrow {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    border: 1px solid var(--border-glass);
    border-radius: 999px;
    background: var(--bg-base);
    color: var(--text-primary);
    box-shadow: var(--shadow-pop);
    cursor: pointer;
  }
  .wn-sheet__arrow[hidden] { display: none; }
  .wn-sheet__arrow:hover:not(:disabled) { border-color: var(--accent-amber-border); }
  .wn-sheet__arrow:disabled { opacity: 0.35; cursor: default; }
  .wn-sheet__arrow .wn-icon { width: 20px; height: 20px; }
  .wn-sheet__arrow--prev { left: -21px; }
  .wn-sheet__arrow--next { right: -21px; }

  /* The list: centred until a post opens, then moved left, centred in what
   * the panel leaves. */
  .wn-page--list main.wn-list {
    --list-w: min(100%, calc(48rem + 2 * var(--gutter)));
    width: var(--list-w);
    max-width: none;
    margin-left: calc((100% - var(--list-w)) / 2);
    margin-right: 0;
    transition: margin-left 0.34s cubic-bezier(.2, .8, .2, 1), width 0.34s cubic-bezier(.2, .8, .2, 1);
  }
  .wn-page--list.wn-sheet-open main.wn-list {
    --room: calc(100% - var(--panel-w) - 2 * var(--panel-gap));
    --list-w: min(var(--room), calc(48rem + 2 * var(--gutter)));
    margin-left: calc((var(--room) - var(--list-w)) / 2);
  }
  .wn-post--current { background: var(--accent-amber-soft); box-shadow: inset 3px 0 0 var(--accent-amber); }
}
@keyframes wn-panel-in { from { translate: 40px 0; opacity: 0; } to { translate: 0 0; opacity: 1; } }

@keyframes wn-sheet-up { from { translate: 0 40px; opacity: 0; } to { translate: 0 0; opacity: 1; } }

/* Map --------------------------------------------------------------------- */

main.wn-map {
  position: fixed;
  inset: 0;
  z-index: 1;
  max-width: none;
  margin: 0;
  padding: 0;
}
#wn-map { position: absolute; inset: 0; background: var(--bg-base); }
.wn-page--map .leaflet-top { top: calc(var(--top-h) + var(--safe-top)); }
/* The zoom and the way back to you keep to the top row's gutter, so they
 * stand right under the profile, each as wide as it is. */
.wn-page--map .leaflet-right .leaflet-control-zoom { margin-right: var(--gutter); }
/* The attribution keeps to the map's bottom edge, under the deck's anchor,
 * so the credit is never hidden under the deck on a narrow screen. */
.wn-page--map .leaflet-bottom { bottom: var(--safe-bottom); }
.wn-page--map main.wn-map noscript p { position: absolute; top: 50%; width: 100%; text-align: center; }

.wn-page--map .wn-geo {
  position: fixed;
  z-index: 15;
  top: calc(var(--top-h) + var(--safe-top) + 12px);
  left: 12px;
  right: 64px;
  max-width: 26rem;
  margin: 0;
}

/* You: the link blue, the one colour no post wears, with a soft halo and a
 * slow ring. */
.wn-you { background: transparent; border: none; pointer-events: none; }
.wn-you::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-link) 14%, transparent);
}
.wn-you::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent-link);
  animation: wn-ember 2.4s ease-out infinite;
}
.wn-you__dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-link);
  border: 3px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.leaflet-container { font-family: var(--font); }
.leaflet-control-zoom.leaflet-bar { border: 1px solid var(--border-glass); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-pop); }
.leaflet-control-zoom a.leaflet-control-zoom-in,
.leaflet-control-zoom a.leaflet-control-zoom-out {
  width: 36px; height: 36px; line-height: 36px;
  background: var(--bg-glass-deep);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.leaflet-control-attribution.leaflet-control-attribution {
  background: var(--bg-glass);
  color: var(--text-secondary);
  font-size: 10px;
}
.leaflet-control-attribution a { color: var(--text-secondary); }

.wn-marker { background: transparent; border: none; }
.wn-pin-svg {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  transition: transform 0.12s ease, filter 0.12s ease;
  transform-origin: 50% 40px;
}
.wn-pin-svg line { stroke: var(--accent-amber); }
.wn-pin-svg circle { fill: light-dark(#ffffff, #0e0e1a); stroke: var(--accent-amber); }
.wn-pin-svg text { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.wn-marker:hover .wn-pin-svg {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px var(--accent-amber)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

/* A post: a mark with its title and time beside it. A circle, grey with a
 * pale rim, for a post you might go to; a hexagon in the same colours swapped,
 * pale with a grey rim and glyph, for one you're going to. A small badge on
 * the rim, bottom right, says how it stands out among those around
 * (`ranking`): a thumbs up for Hot, a flame for On fire. A post you're going
 * to shows its mark alone, without its label. */
.wn-dot {
  --dot: light-dark(#4a4a55, #c9c9d4);
  --rim: light-dark(#ffffff, #0e0e1a);
  --dot-ink: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
}
.wn-dot > div { position: absolute; inset: 0; }
.wn-dot__mark {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--dot);
  border: 2.5px solid var(--rim);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: scale 0.12s ease;
}
.wn-dot:hover .wn-dot__mark { scale: 1.15; }
/* The category's glyph, in the rim's colour, so it reads on any fill. */
.wn-dot__mark { display: grid; place-items: center; }
.wn-dot__mark > .wn-icon { position: relative; width: 14px; height: 14px; stroke-width: 2.25; color: var(--rim); }
/* Going: a hexagon, its rim the grey and its face the pale. The rim is the
 * mark itself, cut to a hexagon; the face is a smaller hexagon on it. A cut
 * shape drops its shadow, so the shadow goes on the whole. */
.wn-dot [data-starred="true"] { filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.4)); }
[data-starred="true"] .wn-dot__mark {
  inset: -2px -1px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
[data-starred="true"] .wn-dot__mark::before {
  content: "";
  position: absolute;
  inset: 2.6px 2.4px;
  background: var(--rim);
  clip-path: inherit;
}
[data-starred="true"] .wn-dot__mark > .wn-icon { color: var(--dot); }
/* Heat: a thumbs up (Hot) or a flame (On fire), centred on the rim at the
 * bottom right. */
.wn-dot__badge {
  position: absolute;
  left: 14.5px;
  top: 14.5px;
  display: none;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--rim);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
[data-heat="2"] > .wn-dot__badge { display: grid; background: #f59e0b; }
[data-heat="3"] > .wn-dot__badge { display: grid; background: #ef4444; }
.wn-dot__badge svg { width: 9px; height: 9px; fill: none; stroke: #ffffff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
/* Going, it has been seen: the mark says it all, until the pointer is on it
 * or its card is open. */
.wn-dot:not(:hover, .wn-dot--current) [data-starred="true"] > .wn-dot__label { display: none; }
@keyframes wn-ember { from { transform: scale(0.8); opacity: 0.8; } to { transform: scale(2.6); opacity: 0; } }

/* The label: right of the dot, or left when that is where the room is
 * (map.js decides), or hidden until there is room. It sits on a card of the
 * page's own colour, so it reads over any street. */
.wn-dot__label {
  position: absolute;
  top: 50%;
  left: calc(100% + 5px);
  translate: 0 -50%;
  display: grid;
  width: max-content;
  white-space: nowrap;
  line-height: 1.2;
  padding: 3px 7px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: color-mix(in srgb, var(--bg-base) 90%, transparent);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
  cursor: pointer;
}
/* The category first, with the heat's own icon after it. */
.wn-dot__cat { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--text-secondary); }
.wn-dot--left .wn-dot__cat { justify-content: flex-end; }
.wn-dot__heat { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.wn-dot__heat--hot { color: light-dark(#d97706, #fbbf24); }
.wn-dot__heat--fire { color: light-dark(#dc2626, #f87171); }
.wn-dot__label b {
  max-width: 12em;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.wn-dot__label time { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--dot-ink); }
.wn-dot--left .wn-dot__label { left: auto; right: calc(100% + 5px); text-align: right; }
.wn-dot--quiet .wn-dot__label { visibility: hidden; }
/* Under the pointer, a label shows whole, over its neighbours. Leaflet sets
 * each marker's z-index inline, hence the !important. */
.wn-dot:hover { z-index: 100000 !important; }
/* The post open in the card: its mark a little larger, its label outlined in amber. */
.wn-dot--current .wn-dot__mark { scale: 1.15; }
.wn-dot--current .wn-dot__label { visibility: visible; border-color: var(--accent-amber-border); }
.wn-dot--current .wn-dot__label b { max-width: none; }
.wn-dot:hover .wn-dot__label { visibility: visible; }
.wn-dot:hover .wn-dot__label b { max-width: none; overflow: visible; }
@media (max-width: 600px) {
  .wn-dot__label b { max-width: 9em; font-size: 12px; }
  .wn-dot__label time { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .wn-dot__mark { transition: none; }
  .wn-you::after { animation: none; opacity: 0; }
}

/* Create ------------------------------------------------------------------ */

.wn-new .wn-heading { font-size: clamp(32px, 9vw, 44px); }

/* The ways to create: a card each, the whole card the link. */
.wn-ways { display: flex; flex-direction: column; margin-top: 8px; }
.wn-way { align-items: center; color: inherit; text-decoration: none; }
.wn-way:hover { border-color: var(--accent-amber-border); }
.wn-way:focus-visible { outline: 2px solid var(--accent-amber); outline-offset: 2px; }
.wn-way[aria-disabled="true"] { opacity: 0.55; }
.wn-way__text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.wn-way__title { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.wn-way__title .wn-pill { padding: 1px 8px; font-size: 11px; }
.wn-way__hint { color: var(--text-secondary); font-size: 15px; }
.wn-way__go { flex: none; color: var(--text-dim); }
.wn-preview { margin-top: 8px; }

/* Read by Claude: said above the form it filled in. */
.wn-drafted {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-card);
  border: 1px solid var(--accent-amber-border);
  background: var(--accent-amber-soft);
  font-size: 15px;
}
.wn-drafted .wn-icon { flex: none; margin-top: 2px; color: var(--accent-amber); }
.wn-said { margin-top: 10px; color: var(--text-secondary); font-size: 14px; }
.wn-said summary { cursor: pointer; }
.wn-said p { margin: 6px 0 0; white-space: pre-wrap; }
.wn-photo-preview {
  max-height: 260px;
  margin-top: 12px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-glass);
  object-fit: contain;
  align-self: flex-start;
  max-width: 100%;
}
.wn-recorder { display: flex; flex-direction: column; align-items: flex-start; margin-top: 18px; }
.wn-form .wn-recorder .wn-button { margin-top: 0; gap: 8px; }
.wn-recorder [aria-pressed="true"] { border-color: var(--accent-danger); color: var(--accent-danger); }
.wn-form .wn-button[data-busy] { gap: 8px; }
.wn-form[aria-busy="true"] .wn-button[data-busy] { opacity: 0.7; cursor: progress; }

.wn-form { display: flex; flex-direction: column; margin-top: 20px; }
.wn-form label {
  margin: 14px 0 6px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}
.wn-form__optional { color: var(--text-dim); font-size: 12px; font-weight: 400; }
.wn-form input[type="file"] { padding: 9px 12px; font-size: 14px; color: var(--text-secondary); }
.wn-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 6px 12px;
  border: 1px solid var(--border-glass);
  border-radius: 9px;
  background: var(--bg-raised-hi);
  color: var(--text-primary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.wn-form input:not([type="hidden"]),
.wn-form textarea,
.wn-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-mid);
  background: var(--bg-raised);
  color: var(--text-primary);
  font: inherit;
  font-size: 16px;
}
.wn-form textarea { resize: vertical; min-height: 84px; }
.wn-form select option { background: var(--bg-base); color: var(--text-primary); }
.wn-form [aria-invalid="true"] { border-color: var(--accent-danger); }
.wn-form input:focus-visible,
.wn-form textarea:focus-visible,
.wn-form select:focus-visible { outline-offset: 1px; }
.wn-form__row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 10px; }
.wn-form__row label { display: block; }
.wn-form__error { margin: 6px 0 0; color: var(--accent-danger); font-size: 13px; }
.wn-form__hint { margin: 6px 0 0; color: var(--text-secondary); font-size: 13px; }
.wn-form__hint[data-tone="error"] { color: var(--accent-danger); }
.wn-form .wn-button { margin-top: 28px; }

/* Repeats: the kind, then only its own fields (repeat.js). */
.wn-repeat-fields {
  display: flex;
  flex-direction: column;
  margin: 18px 0 0;
  padding: 4px 14px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
}
.wn-repeat-fields legend { padding: 0 6px; color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.wn-repeat-fields__kind { display: flex; flex-direction: column; }
.wn-repeat-fields__kind[hidden] { display: none; }
.wn-form__label { margin: 14px 0 6px; color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.wn-repeat-fields__days { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.wn-repeat-fields__list { display: flex; flex-direction: column; gap: 8px; }
.wn-form .wn-repeat-fields__list .wn-button { margin-top: 0; align-self: flex-start; }
.wn-form label.wn-check {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  color: var(--text-primary);
}
.wn-form .wn-check input[type="checkbox"],
.wn-form .wn-check input[type="radio"] { width: auto; min-height: 0; padding: 0; accent-color: var(--accent-amber); }
.wn-form .wn-check select,
.wn-form .wn-check input[type="number"] { width: auto; min-width: 5.5em; }

.wn-pick {
  height: 220px;
  margin-top: 10px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-mid);
  overflow: hidden;
  cursor: crosshair;
}
.wn-pick .leaflet-top { top: 0; }

.wn-similar { margin-top: 12px; }

/* Profile ----------------------------------------------------------------- */

.wn-me__who { display: flex; align-items: center; gap: 18px; }
.wn-me .wn-heading { font-size: clamp(30px, 8vw, 44px); overflow-wrap: anywhere; }
.wn-me .wn-lede { margin-top: 8px; font-size: 16px; }
.wn-me .wn-signout { margin-top: 28px; }

/* Developers -------------------------------------------------------------- */

.wn-dev .wn-heading { font-size: clamp(32px, 9vw, 48px); }

.wn-section { margin-top: 36px; }
.wn-section h2, .wn-fresh h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.wn-section > p { margin: 14px 0 8px; color: var(--text-secondary); font-size: 15px; }

.wn-alert {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--accent-danger);
  color: var(--accent-danger);
  font-size: 15px;
}

.wn-fresh {
  margin-top: 28px;
  padding: 18px;
  border-radius: var(--radius-card);
  border: 1px solid var(--accent-amber-border);
  background: var(--accent-amber-soft);
  animation: wn-rise 0.5s ease both;
}
.wn-fresh h2 { color: var(--accent-amber); }
.wn-fresh p { margin: 0 0 12px; color: var(--text-secondary); font-size: 15px; }

.wn-snippet {
  margin: 0;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass-deep);
  overflow: hidden;
}
.wn-snippet figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 6px 6px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
}
.wn-snippet pre {
  margin: 0;
  padding: 12px 14px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-primary);
  white-space: pre;
}
.wn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.wn-copy:hover { background: var(--bg-raised-hi); color: var(--text-primary); }
.wn-copy .wn-icon { width: 14px; height: 14px; }

.wn-keys { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wn-key {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 8px 12px 16px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
}
.wn-key form { margin: 0; }
.wn-key__text { display: flex; flex-direction: column; min-width: 0; }
.wn-key__text strong { font-weight: 600; overflow-wrap: anywhere; }
.wn-key__meta { color: var(--text-secondary); font-size: 13px; }
.wn-key__meta code, .wn-dev .wn-fine code { font-family: var(--font-mono); font-size: 12px; }

.wn-newkey { margin-top: 16px; }
.wn-newkey label { display: block; margin-bottom: 6px; color: var(--text-secondary); font-size: 14px; }
.wn-newkey__row { display: flex; gap: 8px; }
.wn-newkey input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-mid);
  background: var(--bg-raised);
  color: var(--text-primary);
  font: inherit;
  font-size: 16px;
}
.wn-newkey input:focus-visible { outline-offset: 1px; }

.wn-rules {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
  font-size: 15px;
}
.wn-rules b { color: var(--text-primary); font-weight: 600; }

/* Install ----------------------------------------------------------------- */

.wn-install {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 14px 14px 14px 16px;
  border-radius: var(--radius-card);
  border: 1px dashed var(--border-mid);
  background: var(--bg-raised);
  animation: wn-rise 0.5s ease both;
}
.wn-install__icon { color: var(--accent-amber); display: grid; }
.wn-install__text { display: flex; flex-direction: column; flex: 1; font-size: 14px; color: var(--text-secondary); }
.wn-install__text strong { color: var(--text-primary); font-weight: 600; }
.wn-install__text b { color: var(--text-primary); font-weight: 600; }
.wn-inline-icon .wn-icon { width: 15px; height: 15px; vertical-align: -2px; }

.wn-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}
.wn-close:hover { background: var(--bg-raised-hi); }

/* The invitation ---------------------------------------------------------- */

.wn-invite { justify-content: center; text-align: left; padding-bottom: 0; }
.wn-invite .wn-lede { font-size: 17px; margin-top: 14px; }
.wn-invite .wn-fine { margin: 0 0 calc(20px + var(--safe-bottom)); }

.wn-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
}

.wn-orb__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent-amber-border);
  animation: wn-ring 3.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
.wn-orb__ring:nth-child(2) { animation-delay: 1.2s; }
.wn-orb__ring:nth-child(3) { animation-delay: 2.4s; }

.wn-orb__core {
  position: relative;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 30% 25%, light-dark(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.10)), transparent 60%),
    var(--accent-amber-soft);
  border: 1px solid var(--accent-amber-border);
  color: var(--accent-amber);
  box-shadow: 0 0 40px light-dark(rgba(180, 83, 9, 0.16), rgba(245, 158, 11, 0.22)), var(--shadow-pop);
  transition: background 0.4s ease, color 0.4s ease, scale 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.wn-orb__icon { position: absolute; width: 40px; height: 40px; transition: opacity 0.3s ease, scale 0.4s ease; }
.wn-orb__icon--done { opacity: 0; scale: 0.4; }

.wn-invite[data-phase="waiting"] .wn-orb__core { animation: wn-breathe 1.4s ease-in-out infinite; }
.wn-invite[data-phase="waiting"] .wn-orb__ring { animation-duration: 1.6s; }

.wn-invite[data-phase="done"] .wn-orb__core {
  background: light-dark(rgba(4, 107, 78, 0.10), rgba(110, 231, 183, 0.10));
  border-color: var(--accent-success);
  color: var(--accent-success);
  scale: 1.06;
}
.wn-invite[data-phase="done"] .wn-orb__ring { border-color: var(--accent-success); }
.wn-invite[data-phase="done"] .wn-orb__icon--ready { opacity: 0; scale: 0.4; }
.wn-invite[data-phase="done"] .wn-orb__icon--done { opacity: 1; scale: 1; }
.wn-invite[data-phase="done"] .wn-orb__icon--done path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: wn-draw 0.5s 0.15s ease forwards;
}

@keyframes wn-ring {
  0% { scale: 0.6; opacity: 0.9; }
  100% { scale: 1.5; opacity: 0; }
}
@keyframes wn-breathe { 50% { scale: 0.94; } }
@keyframes wn-draw { to { stroke-dashoffset: 0; } }
@keyframes wn-rise {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}

.wn-invite__ask, .wn-invite__done { animation: wn-rise 0.6s ease both; }
.wn-invite__done:focus { outline: none; }

.wn-benefits {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.wn-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.4;
  animation: wn-rise 0.6s ease both;
}
.wn-benefits li:nth-child(1) { animation-delay: 0.08s; }
.wn-benefits li:nth-child(2) { animation-delay: 0.16s; }
.wn-benefits li:nth-child(3) { animation-delay: 0.24s; }
.wn-benefits .wn-icon { color: var(--accent-amber); margin-top: 1px; }
.wn-benefits b { color: var(--text-primary); font-weight: 600; }

/* On a phone the ask stays in reach: the actions are pinned to the bottom of
 * the screen while the reasons scroll under them. */
.wn-invite__actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 20px calc(-1 * var(--gutter)) 0;
  padding: 24px var(--gutter) calc(4px + var(--safe-bottom));
  background: linear-gradient(to bottom, transparent, var(--bg-base) 26px);
}

.wn-status {
  min-height: 1.25em;
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
}
.wn-status:empty { min-height: 0; margin: 0; }
.wn-status[data-tone="error"] { color: var(--accent-danger); }

.wn-later {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.wn-later:hover { color: var(--text-primary); }

.wn-invite .wn-fine { text-align: center; }
.wn-invite__done { padding-bottom: calc(32px + var(--safe-bottom)); }
.wn-invite__done .wn-button { margin-top: 32px; }

/* Messages ---------------------------------------------------------------- */

.wn-message { justify-content: center; }
.wn-message .wn-button { align-self: flex-start; margin-top: 28px; }

/* Wider screens ----------------------------------------------------------- */

@media (min-width: 48rem) {
  main { padding-top: 64px; }
  .wn-invite { text-align: center; align-items: center; }
  .wn-invite .wn-eyebrow { justify-content: center; }
  .wn-invite .wn-lede { margin-left: auto; margin-right: auto; }
  .wn-benefits { text-align: left; }
  .wn-invite__actions { position: static; width: 100%; max-width: 24rem; margin: 28px auto 0;
                        padding: 0; background: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .wn-field__sweep, .wn-blip { display: none; }
  /* Not the map. A drag moves its panes by `transform` at every step, and the
   * rule above, which gives every element a transition on every property,
   * would draw each step a frame late, out of step with the basemap: the map
   * jitters. Its own animations are switched off instead (`leaflet-base.js`). */
  .leaflet-container, .leaflet-container * { transition: none !important; }
}

/* The new key is one long word: wrapped, so all of it can be seen and checked. */
.wn-fresh .wn-snippet pre { white-space: pre-wrap; word-break: break-all; }

/* Where the list and the map look ------------------------------------------ */

/* The corner says it as a sentence, "What's near you" or "What's in Paris",
 * and opens the list of places. Under the top row the filters float over the
 * page: the funnel, the same size as the tags, then each filter that is on. */
.wn-page--app { --filters-h: 44px; }

.wn-place { flex: 0 1 auto; min-width: 0; }
.wn-place__button {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--text-primary);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.05em;
  cursor: pointer;
}
.wn-place__button > .wn-icon { width: 16px; height: 16px; color: var(--text-dim); }
.wn-place__button > .wn-icon:first-child:not(:last-child) { width: 17px; height: 17px; color: var(--accent-amber); }
.wn-place__say { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wn-place__say em, .wn-places__text b em { font-style: normal; color: var(--accent-amber); }

/* The list of places: a popover, so a tap outside or Escape closes it. */
.wn-places {
  position: fixed;
  inset: auto;
  top: calc(var(--top-h) + var(--safe-top) + 6px);
  left: var(--gutter);
  margin: 0;
  width: min(360px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100dvh - var(--top-h) - var(--safe-top) - 24px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  background: var(--bg-base);
  color: var(--text-primary);
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.28);
}
.wn-places:popover-open { display: grid; align-content: start; }
@media (max-width: 480px) { .wn-places { left: 8px; width: calc(100vw - 16px); } }

.wn-places__search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  padding: 0 11px;
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  background: var(--bg-raised);
}
.wn-places__search:focus-within { border-color: var(--accent-amber); box-shadow: 0 0 0 3px var(--accent-amber-soft); }
.wn-places__search .wn-icon { width: 16px; height: 16px; color: var(--text-dim); }
/* 16px, so iOS doesn't zoom on focus. */
.wn-places__search input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 16px;
  outline: none;
}
.wn-places__found { margin-bottom: 4px; padding-bottom: 4px; border-bottom: 1px solid var(--border-subtle); }
.wn-places__note { margin: 0; padding: 8px 10px; font-size: 13px; color: var(--text-secondary); }
.wn-places__list { display: grid; margin: 0; padding: 0; list-style: none; }
.wn-places__heading {
  padding: 10px 10px 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.wn-places__item { display: flex; align-items: center; gap: 2px; }
.wn-places__item form { margin: 0; }
.wn-places__item > form:not(.wn-places__act, .wn-locate) { flex: 1; min-width: 0; }
.wn-places__item > .wn-locate { flex: none; }
.wn-places__option {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text-secondary);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.wn-places__option:hover { background: var(--bg-raised); color: var(--text-primary); }
.wn-places__option[aria-current="page"] { background: var(--accent-amber-soft); }
.wn-places__option > .wn-icon { width: 16px; height: 16px; color: var(--accent-amber); }
.wn-places__text { display: grid; min-width: 0; }
.wn-places__text b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.wn-places__text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
}
.wn-places__act button, .wn-locate--places .wn-locate__button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text-dim);
  cursor: pointer;
}
.wn-places__act button:hover, .wn-locate--places .wn-locate__button:hover { background: var(--bg-raised); color: var(--text-primary); }
.wn-places__act .wn-icon, .wn-locate--places .wn-locate__button .wn-icon { width: 15px; height: 15px; color: inherit; }
.wn-places__act .wn-places__pinned { color: var(--accent-amber); }
.wn-places__pinned .wn-icon { fill: currentColor; }
.wn-locate--places .wn-locate__button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wn-locate--places .wn-locate__status { right: 0; }

/* The timeframe, just right of where the list looks; on a phone, its
 * calendar alone. Lit when it is not this week near you. Its panel opens
 * from the left, under it, like the filter's. */
.wn-when__button--on { border-color: var(--accent-amber-border); background: var(--accent-amber-soft); }
.wn-when__ask { margin: 0; padding: 8px 12px 6px; font-size: 16px; font-weight: 700; letter-spacing: -0.03em; }
@media (max-width: 480px) {
  .wn-when__button { width: 38px; padding: 0; justify-content: center; }
  .wn-when__button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

.wn-filters {
  position: fixed;
  z-index: 19;
  top: calc(var(--top-h) + var(--safe-top));
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--filters-h);
  padding: 0 var(--gutter);
  pointer-events: none;
}
.wn-filters > * { pointer-events: auto; }
.wn-filters .wn-filter__button {
  width: 28px;
  height: 28px;
  background: var(--bg-glass-deep);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.wn-filters .wn-filter__button .wn-icon { width: 14px; height: 14px; }
.wn-filters .wn-filter__button--on { background: color-mix(in srgb, var(--bg-base) 82%, var(--accent-amber)); }
.wn-filters .wn-picked__tag { background: color-mix(in srgb, var(--bg-base) 88%, var(--accent-amber)); }
.wn-filters .wn-filter__panel { top: calc(var(--top-h) + var(--safe-top) + var(--filters-h)); }

.wn-page--list main.wn-app { padding-top: calc(var(--top-h) + var(--safe-top) + var(--filters-h) + 8px); }
.wn-page--map .leaflet-top { top: calc(var(--top-h) + var(--safe-top) + var(--filters-h)); }
.wn-locate--map { top: calc(var(--top-h) + var(--safe-top) + var(--filters-h) + 92px); }
.wn-page--map .wn-geo { top: calc(var(--top-h) + var(--safe-top) + var(--filters-h) + 12px); }

/* "In 14 days", beside days of one's own still ahead. */
.wn-list__head h1 { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.wn-list__soon {
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Feedback round, 2026-10-26 ------------------------------------------------ */

/* The front door: Sign in and Open side by side, then the blog, as a card
 * of its own rather than a line of fine print. */
.wn-hero__ways { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.wn-hero .wn-hero__ways .wn-button--large { align-self: auto; margin-top: 0; }
.wn-blog-invite {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--measure);
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  background: var(--bg-raised);
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.wn-blog-invite:hover { border-color: var(--accent-amber-border); background: var(--bg-raised-hi); }
.wn-blog-invite__text { display: grid; flex: 1; gap: 2px; }
.wn-blog-invite__text b { font-size: 18px; letter-spacing: -0.02em; }
.wn-blog-invite__text span { color: var(--text-secondary); font-size: 14px; }
.wn-blog-invite .wn-icon { color: var(--accent-amber); }

/* Create is secondary: an outlined '+', not the deck's one bright button. */
.wn-deck__tab--create,
.wn-deck__tab--create:hover,
.wn-deck__tab--create[aria-current="page"] {
  border: 1px solid var(--border-mid);
  background: transparent;
  color: var(--text-primary);
  filter: none;
}
.wn-deck__tab--create:hover { background: var(--bg-raised-hi); }

/* In the dark the deck wears the top row's colours: the same glass, the
 * same edge. */
[data-theme="dark"] .wn-deck {
  border-color: var(--border-glass);
  background: var(--bg-glass);
  box-shadow: var(--shadow-pop);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wn-deck {
    border-color: var(--border-glass);
    background: var(--bg-glass);
    box-shadow: var(--shadow-pop);
  }
}

/* Light or dark, in the top row: the button shown is the way to the other. */
.wn-theme-switch { display: flex; margin: 0; }
.wn-theme-switch button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
}
.wn-theme-switch button:hover { background: var(--bg-raised-hi); color: var(--text-primary); }
.wn-theme-switch .wn-icon { width: 18px; height: 18px; }
.wn-theme-switch__to-light { display: none !important; }
[data-theme="dark"] .wn-theme-switch__to-light { display: grid !important; }
[data-theme="dark"] .wn-theme-switch__to-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .wn-theme-switch__to-light { display: grid !important; }
  :root:not([data-theme]) .wn-theme-switch__to-dark { display: none !important; }
}

/* A post opened before: a quiet word on the row's top right. */
.wn-post { position: relative; }
.wn-post--viewed::after {
  content: "viewed";
  position: absolute;
  top: 8px;
  right: 10px;
  color: var(--text-micro);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* The way from a post to it on the map, on the post's top right; over the
 * map it is there already. */
.wn-detail__to-map {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  background: var(--bg-glass-deep);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.wn-detail__to-map:hover { border-color: var(--accent-amber-border); color: var(--accent-amber); }
.wn-detail__to-map .wn-icon { width: 18px; height: 18px; }
.wn-detail__poster ~ .wn-detail__to-map,
.wn-detail:has(.wn-detail__poster) .wn-detail__to-map { top: 8px; right: 8px; }
.wn-page--map .wn-detail__to-map { display: none; }
.wn-detail:not(:has(.wn-detail__poster)) .wn-detail__stamp { padding-right: 44px; }

/* The other version of a post's words: a plain link under them. */
.wn-detail__other {
  justify-self: start;
  margin-top: -6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-secondary);
  font: inherit;
  font-size: 13.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.wn-detail__other:hover { color: var(--text-primary); }

/* In the sheet the action bar sits on its foot, where it is on every post:
 * the words scroll above it, and a step to the next post leaves it put. On
 * a wide screen the panel is as tall as it can be, for the same reason. */
.wn-sheet { --sheet-bg: var(--bg-base); }
.wn-sheet--going, .wn-sheet:has(.wn-detail--interested) { --sheet-bg: color-mix(in srgb, var(--accent-going-dot) 5%, var(--bg-base)); }
.wn-sheet .wn-sheet__content { padding-bottom: 0; }
.wn-sheet .wn-detail { display: flex; flex-direction: column; min-height: 100%; }
.wn-sheet .wn-detail__actions {
  order: 99;
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: auto;
  padding-bottom: calc(10px + var(--safe-bottom));
  border-bottom: 0;
  background: var(--sheet-bg);
}
@media (min-width: 64rem) {
  .wn-sheet, .wn-sheet[data-mode="peek"] {
    height: calc(100dvh - var(--top-h) - var(--safe-top) - var(--filters-h, 0px) - 8px - var(--deck-h) - var(--deck-bottom) - 16px);
  }
}

/* A pin beside each mark and tag in the filter panel; pinned, it sits beside
 * the funnel as a toggle, lit while its filter is on. */
.wn-filter__tag-list li { display: flex; align-items: center; }
.wn-filter__tag-list li > .wn-filter__option { flex: 1; min-width: 0; }
.wn-filter__pin {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--text-micro);
}
.wn-filter__pin:hover { background: var(--bg-raised); color: var(--text-primary); }
.wn-filter__pin[aria-pressed="true"] { color: var(--accent-amber); }
.wn-filter__pin .wn-icon { width: 14px; height: 14px; }
.wn-filter__pin[aria-pressed="true"] .wn-icon { fill: currentColor; }
.wn-pinned { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; flex: none; }
.wn-pinned__toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-chip);
  background: var(--bg-glass-deep);
  color: var(--text-secondary);
  font-size: 12.5px;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.wn-pinned__toggle .wn-icon { width: 13px; height: 13px; }
.wn-pinned__toggle:hover { color: var(--text-primary); }
.wn-pinned__toggle[aria-pressed="true"] {
  border-color: var(--accent-amber-border);
  background: color-mix(in srgb, var(--bg-base) 88%, var(--accent-amber));
  color: var(--text-primary);
}
