/* Front-page picker: mood and section choices */
.picker { margin-top: 32px; border-top: 3px solid var(--sun); padding-top: 14px; }
.picker-group + .picker-group { margin-top: 14px; }
.picker-q {
  font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  margin: 0 0 8px; color: var(--muted);
}
.picker .filters { margin: 0; }
.picker .chip { text-transform: capitalize; }
.picker .chip:hover { border-color: var(--teal); color: var(--teal); }
.picker-count { font-family: var(--sans); font-size: 14px; color: var(--muted); margin: 14px 0 0; min-height: 1.4em; }
.picker-results { margin-top: 6px; }
.picker-results .empty { font-family: var(--sans); font-size: 14px; color: var(--muted); }

/* Dancing stick man in the masthead corner */
.masthead { position: relative; }
.dancer { position: fixed; top: 6px; left: 0; z-index: 50; animation: patrol 48s linear infinite; }
.dancer .flag { transform-box: view-box; transform-origin: 66px 12px; animation: flap 0.35s ease-in-out infinite alternate; }
@keyframes flap { from { transform: skewY(-10deg); } to { transform: skewY(10deg); } }
/* Sunshine trail: little suns left behind the bike, twinkling in turn */
.dancer .trail circle { animation: twinkle 0.9s ease-in-out infinite; }
.dancer .trail .t2 { animation-delay: 0.3s; }
.dancer .trail .t3 { animation-delay: 0.6s; }
@keyframes twinkle { 0%, 100% { opacity: 0.15; } 50% { opacity: 1; } }

/* The dog chases the rider: same route, a couple of seconds behind, mirrored when the rider turns */
/* Negative delay of 45.6s = 2.4s behind the rider in the same 48s loop */
.chaser { position: fixed; top: 26px; left: 0; z-index: 49; animation: patrol 48s linear infinite; animation-delay: -45.6s; }
.chaser .dogbody { display: block; width: 60px; height: 44px; overflow: visible; margin-left: -66px; animation: dogbob 0.3s ease-in-out infinite alternate; }
.chaser .dleg { transform-box: view-box; }
.chaser .dl1 { transform-origin: 14px 29px; animation: run 0.3s ease-in-out infinite alternate; }
.chaser .dl2 { transform-origin: 19px 29px; animation: run 0.3s ease-in-out infinite alternate-reverse; }
.chaser .dl3 { transform-origin: 35px 29px; animation: run 0.3s ease-in-out infinite alternate-reverse; }
.chaser .dl4 { transform-origin: 40px 29px; animation: run 0.3s ease-in-out infinite alternate; }
.chaser .tail { transform-box: view-box; transform-origin: 10px 22px; animation: wag 0.2s ease-in-out infinite alternate; }
@keyframes run { from { transform: rotate(-35deg); } to { transform: rotate(35deg); } }
@keyframes wag { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
@keyframes dogbob { from { transform: translateY(0); } to { transform: translateY(-2px); } }
@media (max-width: 719px) { .chaser { display: none; } }
@media (prefers-reduced-motion: reduce) { .chaser { display: none; } }
.masthead .dateline { padding-right: 70px; }
.dancer svg { width: 80px; height: 60px; overflow: visible; display: block; transform-origin: 18px 46px; animation: wheelie 48s linear infinite; }
.dancer .wheel { transform-box: view-box; animation: spin 0.5s linear infinite; }
.dancer .wheel-f { transform-origin: 18px 46px; }
.dancer .wheel-r { transform-origin: 62px 46px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bike-bob { from { transform: translateY(0); } to { transform: translateY(-2px); } }
.dancer .arm, .dancer .leg { transform-box: view-box; }
.dancer .arm-l { transform-origin: 20px 22px; animation: pump 0.5s ease-in-out infinite alternate; }
.dancer .arm-r { transform-origin: 20px 22px; animation: pump 0.5s ease-in-out infinite alternate-reverse; }
.dancer .leg-l { transform-origin: 20px 36px; animation: step 0.5s ease-in-out infinite alternate; }
.dancer .leg-r { transform-origin: 20px 36px; animation: step 0.5s ease-in-out infinite alternate-reverse; }
/* Walks across the top of the window, pauses at each end to dance, then walks back */
/* One loop, 24 seconds: ride right, turn, wheelie at the far end, ride back, wheelie, turn */
@keyframes patrol {
  0% { transform: translateX(0) scaleX(1); }
  40% { transform: translateX(calc(100vw - 110px)) scaleX(1); }
  44% { transform: translateX(calc(100vw - 110px)) scaleX(0.3); }
  46% { transform: translateX(calc(100vw - 110px)) scaleX(-0.3); }
  50% { transform: translateX(calc(100vw - 110px)) scaleX(-1); }
  90% { transform: translateX(0) scaleX(-1); }
  94% { transform: translateX(0) scaleX(-0.3); }
  96% { transform: translateX(0) scaleX(0.3); }
  100% { transform: translateX(0) scaleX(1); }
}
/* Dust kicked up from the back wheel while riding */
.dancer .dirt circle { animation: puff 0.5s linear infinite; }
.dancer .dirt .d2 { animation-delay: 0.17s; }
.dancer .dirt .d3 { animation-delay: 0.33s; }
@keyframes puff {
  0% { transform: translate(0, 0) scale(1); opacity: 0.9; }
  100% { transform: translate(-14px, -9px) scale(2); opacity: 0; }
}
/* The bike lifts onto its back wheel while stopped at each end */
@keyframes wheelie {
  0%, 38% { transform: rotate(0deg); }
  42%, 48% { transform: rotate(-22deg); }
  52%, 88% { transform: rotate(0deg); }
  92%, 98% { transform: rotate(-22deg); }
  100% { transform: rotate(0deg); }
}
@keyframes pump { from { transform: rotate(-70deg); } to { transform: rotate(70deg); } }
@keyframes step { from { transform: rotate(-30deg); } to { transform: rotate(30deg); } }
@media (max-width: 719px) { .dancer { display: none; } }
@media (prefers-reduced-motion: reduce) { .dancer, .dancer * { animation: none !important; } .dancer { left: auto; right: 12px; } }

/* Story photos (Unsplash, credited) */
.story-photo { margin: 18px 0 24px; }
.story-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.story-photo figcaption { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 6px; }
.story-photo figcaption a { color: var(--muted); }
.hero-photo { margin: 0; }
.hero-photo img { display: block; width: 100%; max-width: 320px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-left: auto; }
.hero-photo figcaption { font-family: var(--sans); font-size: 11px; color: #1B1B1F; opacity: 0.75; margin-top: 6px; text-align: right; }
.hero-photo figcaption a { color: inherit; }

/* Side banners: photo thumbnail or a tinted label, filling the column evenly */
.side-stack { display: flex; flex-direction: column; justify-content: space-between; align-self: stretch; gap: 0; }
.side-banner { flex: none; display: block; border-left: 0; background: none; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.side-banner:first-child { padding-top: 0; }
.side-banner:last-child { border-bottom: 0; }
.side-art { display: none; }
.side-banner .side-text h3 { margin-top: 4px; }
.side-art img { display: block; width: 132px; height: 96px; object-fit: cover; }
.side-tint {
  display: flex; align-items: center; justify-content: center; width: 132px; height: 96px; padding: 8px;
  background: var(--tint); color: #1B1B1F; font-family: var(--serif); font-size: 16px; line-height: 1.2; text-align: center;
}
.side-banner h3 { font-size: 19px; }

/* Bolder front page */
.edition-band {
  background: var(--ink); color: var(--paper); margin: 18px -16px 0; padding: 18px 16px 16px;
}
.edition-band .kicker { color: var(--sun); margin: 0 0 6px; }
.edition-sections { font-family: var(--sans); font-size: 14px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.edition-sections a { color: var(--paper); text-decoration: none; border-bottom: 1px solid rgba(250, 247, 240, 0.35); padding-bottom: 2px; }
.edition-sections a:hover { border-bottom-color: var(--sun); }
.track > .tile--feature { grid-column: span 2; }
.track > .tile--feature h3 { font-size: 26px; }
.track > .tile--feature .tile-body { padding-top: 14px; }
.hero--photo {
  background: linear-gradient(180deg, rgba(27,27,31,0.15) 0%, rgba(27,27,31,0.85) 100%), var(--img) center / cover no-repeat;
  color: var(--paper); min-height: 340px; align-items: end;
}
.hero--photo .kicker, .hero--photo .standfirst, .hero--photo .meta { color: var(--paper); opacity: 0.9; }
.hero--photo h2, .hero--photo h2 a { color: var(--paper); }
.hero--photo .btn { background: var(--sun); color: #1B1B1F; }
.hero--photo .btn--ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.pick-note {
  font-family: var(--serif); font-size: clamp(22px, 3.4vw, 28px); line-height: 1.35; font-style: italic;
  border-left: 4px solid var(--sun); padding: 4px 0 4px 20px; margin: 28px 0;
}
.pick-note strong { display: block; font-family: var(--sans); font-style: normal; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; color: var(--teal); }

/* Editor block and "why we picked this" */
.from-editor { margin-top: 28px; max-width: 680px; }
.from-editor .editor-note { font-size: 19px; line-height: 1.6; margin: 6px 0 4px; }
.from-editor .editor-byline { font-family: var(--sans); font-size: 14px; color: var(--muted); margin: 0; }
.pick-note {
  font-family: var(--serif); font-size: 18px; border-left: 3px solid var(--sun); padding: 2px 0 2px 14px; margin: 18px 0;
}
.pick-note strong { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }

/* Interactive states */
.picker .chip { transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease; }
.picker .chip:active { transform: scale(0.96); }
.picker [data-section]::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--tint); margin-right: 8px; vertical-align: middle;
}
.picker [data-section][aria-pressed="true"] { background: var(--tint); border-color: var(--tint); }
.picker [data-section][aria-pressed="true"]::before { background: #1B1B1F; }
.picker-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.picker-controls .picker-count { margin: 14px 0 0; }
.picker-buttons { display: flex; gap: 16px; margin-top: 14px; }
.link-btn {
  font: inherit; font-family: var(--sans); font-size: 14px; background: none; border: 0; padding: 4px 0;
  color: var(--teal); text-decoration: underline; cursor: pointer;
}
.link-btn:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.link-btn[hidden] { display: none; }
.picker-results .tile { opacity: 0; transform: translateY(8px); transition: opacity 0.35s ease, transform 0.35s ease; }
.picker-results.is-showing .tile { opacity: 1; transform: none; }
.picker-results.is-showing .tile:nth-child(2) { transition-delay: 0.05s; }
.picker-results.is-showing .tile:nth-child(3) { transition-delay: 0.1s; }
.picker-results.is-showing .tile:nth-child(4) { transition-delay: 0.15s; }
@media (prefers-reduced-motion: reduce) {
  .picker-results .tile, .picker .chip { transition: none; }
}
