/* Atlas — the "when" pages: the year, a day and a life in a place, and the
   centuries ribbon (static/js/explore/when/*.js).

   Colours come from the tokens (static/explore/tokens.css): a place's own
   (--place-*), a culture theme's (--theme-*) on every pin and band, an era's
   (--era-*) on the ribbon. The seasons, the stages of a life and the shade
   of the hours have no data file of their own to carry a hue, so they are
   here, the way tokens.css keeps the history layers' — set on an element
   that also carries .x-theme, so its derived colours are worked out again. */

/* ── the hues with no file of their own ── */
.s-winter { --theme-h: 208; }
.s-spring { --theme-h: 112; }
.s-summer { --theme-h: 44; }
.s-autumn { --theme-h: 18; }

.st-birth { --theme-h: 168; }
.st-childhood { --theme-h: 118; }
.st-coming-of-age { --theme-h: 50; }
.st-courtship { --theme-h: 8; }
.st-wedding { --theme-h: 332; }
.st-parenthood { --theme-h: 288; }
.st-old-age { --theme-h: 212; }
.st-death { --theme-h: 246; }
.st-remembrance { --theme-h: 30; }

/* the hours, from midday (0) to midnight (6) */
.sky-0 { --theme-h: 48; }
.sky-1 { --theme-h: 42; }
.sky-2 { --theme-h: 32; }
.sky-3 { --theme-h: 16; }
.sky-4 { --theme-h: 268; }
.sky-5 { --theme-h: 236; }
.sky-6 { --theme-h: 226; }

/* ── the page ── */
.wn-page { max-width: 1120px; margin: 0 auto; padding: 0 0 56px; display: flex; flex-direction: column; gap: 22px; }
.wn-trail ol, .wn-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.wn-trail li + li::before, .wn-crumbs li + li::before { content: "›"; margin: 0 9px; color: var(--x-ink-2); }
.wn-trail a { color: var(--x-navy); font-weight: 600; text-decoration: none; }
.wn-trail a:hover { text-decoration: underline; text-decoration-color: var(--place-mark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.wn-trail [aria-current] { color: var(--x-ink-2); }

/* the header: the place's colour on a torn sheet, its collage beside */
.wn-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 360px); gap: 24px; align-items: center;
  padding: 30px 32px 46px; border-radius: var(--x-radius) var(--x-radius) 0 0; overflow: hidden;
  background-color: var(--place-fill); background-image: var(--x-grain); color: var(--place-on);
  -webkit-mask: var(--x-tear-b) left bottom / 240px 12px repeat-x, linear-gradient(#000 0 0) left top / 100% calc(100% - 11px) no-repeat;
  mask: var(--x-tear-b) left bottom / 240px 12px repeat-x, linear-gradient(#000 0 0) left top / 100% calc(100% - 11px) no-repeat;
}
.wn-hero-text { order: 1; display: grid; gap: 8px; justify-items: start; min-width: 0; }
.wn-hero-art {
  order: 2; align-self: stretch; min-height: 150px; transform: rotate(1.4deg); box-shadow: var(--x-shadow-lift);
  -webkit-mask: var(--x-tear-t) left top / 240px 12px repeat-x, var(--x-tear-b) left bottom / 240px 12px repeat-x, linear-gradient(#000 0 0) left center / 100% calc(100% - 22px) no-repeat;
  mask: var(--x-tear-t) left top / 240px 12px repeat-x, var(--x-tear-b) left bottom / 240px 12px repeat-x, linear-gradient(#000 0 0) left center / 100% calc(100% - 22px) no-repeat;
}
.wn-kicker { margin: 0; }
.wn-h1 { margin: 0; font-family: var(--serif); font-size: clamp(32px, 5vw, 52px); font-weight: 600; line-height: 1.04; letter-spacing: -0.012em; outline: none; color: inherit; }
.wn-page > .wn-h1 { color: var(--x-navy); }
.wn-native { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.4vw, 24px); opacity: 0.95; }
.wn-lede { margin: 6px 0 0; max-width: 46ch; font-size: 16.5px; line-height: 1.55; }

/* ── the dial and what is under it ── */
.wn { display: flex; flex-direction: column; gap: 14px; }
.wn-crumbs { min-height: 30px; }
.wn-crumbs [aria-current] { font-weight: 700; color: var(--x-navy); }
.wn-crumb {
  display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 2px; border: 0; background: none;
  font: inherit; font-weight: 600; color: var(--place-ink); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--place-mark); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.wn-crumb:hover { color: var(--x-red); }
.wn-crumb:focus-visible { outline: 2.5px solid var(--x-red); outline-offset: 2px; border-radius: 3px; }

.wn-grid { display: grid; grid-template-columns: minmax(300px, 440px) minmax(0, 1fr); gap: 32px; align-items: start; }
.wn-dialbox { position: sticky; top: 14px; display: flex; flex-direction: column; gap: 10px; }
.wn-stage {
  position: relative; border-radius: 50%; outline: none; aspect-ratio: 1;
  filter: drop-shadow(0 10px 18px rgba(60, 40, 10, 0.18));
}
.wn-stage:focus-visible { outline: 3px solid var(--x-red); outline-offset: 4px; }
.wn-face { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; user-select: none; -webkit-user-select: none; }

.wn-disc { fill: color-mix(in oklab, var(--place-wash) 55%, var(--x-paper-2)); stroke: var(--x-line); stroke-width: 1; }
.wn-guide { fill: none; stroke: var(--x-navy); stroke-opacity: 0.12; stroke-width: 1; stroke-dasharray: 1 5; stroke-linecap: round; }

/* the parts round the edge: months, hours, stages */
.wn-partg { cursor: pointer; }
.wn-part { fill: color-mix(in oklab, var(--theme-soft) 38%, var(--x-paper-2)); stroke: var(--x-paper-2); stroke-width: 1.5; transition: fill 0.15s; }
/* a part with something in it: its colour, a little quieter than the paper tier */
.wn-partg.has .wn-part { fill: color-mix(in oklab, var(--theme-soft) 72%, var(--x-paper-2)); }
.wn-partg:hover .wn-part { fill: var(--theme-mark); }
.wn-partg:hover .wn-part-name { fill: var(--theme-on); }
.wn-partg.is-cursor .wn-part { stroke: var(--x-red); stroke-width: 3; }
.wn-part-name { fill: var(--x-ink-2); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; pointer-events: none; }
.wn-partg.has .wn-part-name { fill: var(--x-navy); font-weight: 800; }
.is-life .wn-part-name { font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; }
.is-day .wn-part-name { font-size: 11px; }
/* the night hours are dark: the hour on them in the light ink */
.wn-partg:is(.sky-4, .sky-5, .sky-6) .wn-part { fill: var(--theme-fill); }
.wn-partg:is(.sky-4, .sky-5, .sky-6) .wn-part-name { fill: var(--theme-on); }
.wn-partg:is(.sky-4, .sky-5, .sky-6).has .wn-part-name { fill: var(--theme-on); }
/* the day's hours keep their shade whether or not anything is on: the sky
   does not change for a timetable */
.wn-partg:is(.sky-0, .sky-1, .sky-2, .sky-3) .wn-part { fill: color-mix(in oklab, var(--theme-soft) 72%, var(--x-paper-2)); }

/* in the dark theme the sky turns round: the night hours are the dark ones
   there too, the day's the bright ones */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wn-partg:is(.sky-4, .sky-5, .sky-6) .wn-part,
  :root:not([data-theme="light"]) .wn-openg:is(.sky-4, .sky-5, .sky-6) .wn-open { fill: color-mix(in oklab, var(--theme-soft) 55%, var(--x-paper)); }
  :root:not([data-theme="light"]) .wn-partg:is(.sky-4, .sky-5, .sky-6) .wn-part-name,
  :root:not([data-theme="light"]) .wn-openg:is(.sky-4, .sky-5, .sky-6) :is(.wn-sub, .wn-sub.major) { fill: var(--x-navy); }
  :root:not([data-theme="light"]) .wn-openg:is(.sky-4, .sky-5, .sky-6) .wn-tick { stroke: var(--x-navy); }
  :root:not([data-theme="light"]) .wn-partg:is(.sky-0, .sky-1, .sky-2, .sky-3) .wn-part,
  :root:not([data-theme="light"]) .wn-openg:is(.sky-0, .sky-1, .sky-2, .sky-3) .wn-open { fill: var(--theme-fill); }
  :root:not([data-theme="light"]) .wn-partg:is(.sky-0, .sky-1, .sky-2, .sky-3) .wn-part-name,
  :root:not([data-theme="light"]) .wn-openg:is(.sky-0, .sky-1, .sky-2, .sky-3) :is(.wn-sub, .wn-sub.major) { fill: var(--theme-on); }
  :root:not([data-theme="light"]) .wn-openg:is(.sky-0, .sky-1, .sky-2, .sky-3) .wn-tick { stroke: var(--theme-on); }
}
:root[data-theme="dark"] .wn-partg:is(.sky-4, .sky-5, .sky-6) .wn-part,
:root[data-theme="dark"] .wn-openg:is(.sky-4, .sky-5, .sky-6) .wn-open { fill: color-mix(in oklab, var(--theme-soft) 55%, var(--x-paper)); }
:root[data-theme="dark"] .wn-partg:is(.sky-4, .sky-5, .sky-6) .wn-part-name,
:root[data-theme="dark"] .wn-openg:is(.sky-4, .sky-5, .sky-6) :is(.wn-sub, .wn-sub.major) { fill: var(--x-navy); }
:root[data-theme="dark"] .wn-openg:is(.sky-4, .sky-5, .sky-6) .wn-tick { stroke: var(--x-navy); }
:root[data-theme="dark"] .wn-partg:is(.sky-0, .sky-1, .sky-2, .sky-3) .wn-part,
:root[data-theme="dark"] .wn-openg:is(.sky-0, .sky-1, .sky-2, .sky-3) .wn-open { fill: var(--theme-fill); }
:root[data-theme="dark"] .wn-partg:is(.sky-0, .sky-1, .sky-2, .sky-3) .wn-part-name,
:root[data-theme="dark"] .wn-openg:is(.sky-0, .sky-1, .sky-2, .sky-3) :is(.wn-sub, .wn-sub.major) { fill: var(--theme-on); }
:root[data-theme="dark"] .wn-openg:is(.sky-0, .sky-1, .sky-2, .sky-3) .wn-tick { stroke: var(--theme-on); }

/* the seasons, a thin ring outside the months */
.wn-band { fill: var(--theme-fill); }
.wn-band-name { fill: var(--theme-on); font-size: 7.5px; font-weight: 800; letter-spacing: 0.22em; pointer-events: none; }

/* an open part: its colour round the ring, its days or minutes on it */
.wn-open { fill: color-mix(in oklab, var(--theme-soft) 72%, var(--x-paper-2)); stroke: var(--x-paper-2); stroke-width: 1; }
.wn-ring-name { fill: var(--x-navy); font-size: 10.5px; font-weight: 800; letter-spacing: 0.24em; }
.wn-tick { stroke: var(--x-navy); stroke-opacity: 0.35; stroke-width: 1; }
.wn-tick.major { stroke-opacity: 0.8; stroke-width: 1.6; }
.wn-sub { fill: var(--x-navy); font-size: 10px; font-weight: 600; }
.wn-sub.major { fill: var(--x-red); font-weight: 800; }
.wn-openg:is(.sky-4, .sky-5, .sky-6) .wn-open { fill: var(--theme-fill); }
.wn-openg:is(.sky-4, .sky-5, .sky-6) :is(.wn-sub, .wn-sub.major) { fill: var(--theme-on); }
.wn-openg:is(.sky-4, .sky-5, .sky-6) .wn-tick { stroke: var(--theme-on); }

/* the items: a band for how long, a pin where it starts, a name */
.wn-item { cursor: pointer; transition: opacity 0.2s; }
.wn-band-item { fill: none; stroke: var(--theme-mark); stroke-linecap: round; opacity: 0.9; }
/* a feast that moves: the whole window it can fall in, pale */
.wn-item.is-loose .wn-band-item { stroke: var(--theme-soft); stroke-linecap: butt; opacity: 0.55; }
.wn-pin { fill: var(--theme-soft); stroke: var(--theme-fill); stroke-width: 2.2; }
.wn-pin-icon { color: var(--x-navy); pointer-events: none; }
.wn-mark { fill: none; stroke: var(--x-red); stroke-width: 2; }
.wn-item-name { fill: var(--theme-ink); font-size: 11.5px; font-weight: 800; pointer-events: none; paint-order: stroke; stroke: var(--x-paper-2); stroke-width: 3px; stroke-linejoin: round; }
.wn-item:hover .wn-pin { stroke: var(--x-navy); }
.wn-item.is-on .wn-pin { stroke: var(--x-red); stroke-width: 3; }
.wn-item.is-dim { opacity: 0.32; }

/* today, and the middle of the face */
.wn-now-line { stroke: var(--x-red); stroke-width: 2; stroke-linecap: round; }
.wn-now-dot { fill: var(--x-red); stroke: var(--x-paper-2); stroke-width: 1.5; }
.wn-hub-disc { fill: var(--x-paper); stroke: var(--x-line); stroke-width: 1.2; }
.wn-hub-big { fill: var(--x-navy); font-family: var(--serif); font-size: 19px; font-weight: 700; }
.wn-hub-big.is-long { font-size: 14px; }
.wn-hub-small { fill: var(--x-ink-2); font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.wn-hub-up { fill: none; stroke: var(--x-red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.wn-hub.can-go { cursor: pointer; }
.wn-hub.can-go .wn-hub-up { opacity: 1; }
.wn-hub.can-go:hover .wn-hub-disc { fill: var(--x-paper-2); stroke: var(--x-red); }

/* previous / next part */
.wn-steps { display: flex; justify-content: space-between; gap: 10px; }
.wn-steps[hidden] { display: none; }
.wn-step {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--x-line); background: var(--x-paper-2); color: var(--x-navy);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.wn-step:hover { border-color: var(--place-mark); color: var(--place-ink); }
.wn-step:focus-visible { outline: 2.5px solid var(--x-red); outline-offset: 2px; }

/* under the dial */
.wn-below { min-width: 0; }
.wn-list { display: flex; flex-direction: column; gap: 10px; }
.wn-label {
  margin: 6px 0 0; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--x-red);
}
.wn-quiet { margin: 0; font-family: var(--serif); font-size: 19px; color: var(--x-navy); }
.wn-rows, .wn-months { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.wn-row, .wn-month {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px 10px 12px; text-align: left;
  border: 0; border-left: 5px solid var(--theme-mark); border-radius: 3px var(--x-radius) var(--x-radius) 3px;
  background: var(--x-paper-2) var(--x-grain); color: var(--x-navy); box-shadow: var(--x-shadow);
  font: inherit; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
}
.wn-month { border-left-color: var(--place-mark); }
.wn-row:hover, .wn-month:hover { transform: translateY(-1px) rotate(-0.3deg); box-shadow: var(--x-shadow-lift); }
.wn-row:focus-visible, .wn-month:focus-visible { outline: 2.5px solid var(--x-red); outline-offset: 2px; }
.wn-row.is-loose { border-left-style: dashed; }
.wn-row-pin {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--theme-soft); color: var(--x-navy); box-shadow: inset 0 0 0 2px var(--theme-fill);
}
.wn-row-time { flex: none; min-width: 92px; font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--theme-ink); }
.wn-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wn-row-text strong { font-size: 16px; font-weight: 700; line-height: 1.25; }
.wn-row-sub { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 13px; color: var(--x-ink-2); line-height: 1.35; }
.wn-row-go { flex: none; color: var(--x-ink-2); }
.wn-month-name { flex: none; min-width: 96px; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.wn-month-what { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.wn-dotname { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--theme-ink); }
.wn-dotname::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--theme-mark); flex: none; }
.wn-dotname.is-loose::before { background: transparent; box-shadow: inset 0 0 0 2.5px var(--theme-mark); }
.wn-next { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.wn-easter { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--x-ink-2); }
.wn-easter-ring { flex: none; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--x-red); }
.wn-custom { margin: 8px 4px 4px 18px; font-size: 14.5px; line-height: 1.55; color: var(--text); }
.wn-custom-h { font-weight: 800; color: var(--theme-ink); }

/* an item's card */
.wn-card {
  display: flex; flex-direction: column; gap: 14px; padding: 0 0 20px; border-radius: var(--x-radius); overflow: hidden;
  background: var(--x-paper-2) var(--x-grain); box-shadow: var(--x-shadow-lift); color: var(--text);
}
.wn-card > :not(.wn-card-head) { margin-left: 20px; margin-right: 20px; }
.wn-card-head {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px 24px;
  background: var(--theme-fill) var(--x-grain); color: var(--theme-on);
  -webkit-mask: var(--x-tear-b) left bottom / 240px 12px repeat-x, linear-gradient(#000 0 0) left top / 100% calc(100% - 11px) no-repeat;
  mask: var(--x-tear-b) left bottom / 240px 12px repeat-x, linear-gradient(#000 0 0) left top / 100% calc(100% - 11px) no-repeat;
}
.wn-card-pin { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--x-paper-2); color: var(--theme-ink); }
.wn-card-title { margin: 0; font-family: var(--serif); font-size: clamp(24px, 3vw, 30px); font-weight: 600; line-height: 1.1; }
.wn-card-sub { margin: 3px 0 0; font-size: 14px; font-weight: 600; opacity: 0.95; }
.wn-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 22px; margin-top: 0; margin-bottom: 0; }
.wn-facts dt { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--theme-ink); }
.wn-facts dd { margin: 2px 0 0; display: flex; flex-direction: column; gap: 3px; font-size: 15.5px; font-weight: 600; color: var(--x-navy); }
.wn-moving { font-size: 13.5px; font-weight: 500; color: var(--x-ink-2); }
.wn-card-what, .wn-see-text { margin-top: 0; margin-bottom: 0; font-size: 16px; line-height: 1.6; }
.wn-see { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 4px; background: var(--theme-wash); }
.wn-see[hidden] { display: none; }
.wn-see .wn-label { margin: 0; }
.wn-card-go { margin-top: 4px; margin-bottom: 0; }
.wn-inline {
  display: inline; padding: 0; border: 0; background: none; font: inherit; color: var(--x-navy); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--theme-mark); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.wn-inside ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wn-unit {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 8px 12px;
  border-radius: 4px; background: var(--theme-wash); color: var(--x-navy); font-weight: 600; text-decoration: none;
}
.wn-unit:hover { background: var(--theme-soft); }
.wn-unit:focus-visible { outline: 2.5px solid var(--x-red); outline-offset: 2px; }

/* the day-clock widget, offered under the day */
.wn-extra { display: flex; flex-direction: column; gap: 12px; }
.wn-widget-open {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 16px; border: 0; text-align: left;
  font: inherit; color: var(--x-navy); cursor: pointer;
}
.wn-widget-open > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.wn-widget-open:focus-visible { outline: 2.5px solid var(--x-red); outline-offset: 2px; }

/* nothing yet */
.wn-empty { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; line-height: 1.55; }
.wn-empty p { margin: 0; }

/* the way on: the other views, and back */
.wn-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 8px; }
.wn-foot .x-btn { margin-left: auto; }

/* ── the centuries ribbon ── */
.wr { display: flex; flex-direction: column; gap: 8px; }
.wr-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--x-red); }
.wr-sub { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--x-ink-2); }
.wr-strip { position: relative; height: 112px; margin: 0 14px; }
.wr-bands { position: absolute; left: 0; right: 0; top: 40px; height: 24px; }
.wr-era {
  position: absolute; top: 0; bottom: 0; display: flex; align-items: center; overflow: hidden; padding: 0 6px;
  border-right: 2px solid var(--x-paper-2); background-image: var(--x-grain);
}
.wr-era:first-child { border-radius: 3px 0 0 3px; }
.wr-era:last-child { border-radius: 0 3px 3px 0; border-right: 0; }
.wr-era-name { font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wr-pins { position: absolute; inset: 0; z-index: 1; }
.wr-pin {
  position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 34px; min-height: 36px; padding: 0 2px; border: 0; background: none; color: var(--x-navy); cursor: pointer; font: inherit;
}
.wr-pin.row-1 { top: 2px; flex-direction: column; }
.wr-pin.row-0 { top: 58px; flex-direction: column-reverse; }
.wr-dot {
  position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--x-navy); box-shadow: 0 0 0 2.5px var(--x-paper-2);
}
.wr-pin.row-1 .wr-dot { order: 2; }
.wr-pin.row-1 .wr-pin-y { order: 1; }
.wr-pin.row-1 .wr-dot::after, .wr-pin.row-0 .wr-dot::after {
  content: ""; position: absolute; left: 50%; width: 2px; margin-left: -1px; background: var(--x-navy); opacity: 0.5;
}
.wr-pin.row-1 .wr-dot::after { top: 14px; height: 10px; }
.wr-pin.row-0 .wr-dot::after { bottom: 14px; height: 6px; }
/* where it began: a ring; a moment of the place's history: red */
.wr-pin.is-begin .wr-dot { background: var(--x-paper-2); box-shadow: inset 0 0 0 3.5px var(--x-navy), 0 0 0 2.5px var(--x-paper-2); }
.wr-pin.has-event .wr-dot { background: var(--x-red); }
.wr-pin.is-begin.has-event .wr-dot { box-shadow: inset 0 0 0 3.5px var(--x-red), 0 0 0 2.5px var(--x-paper-2); background: var(--x-paper-2); }
.wr-pin[aria-pressed="true"] .wr-pin-y { color: var(--x-red); }
.wr-pin[aria-pressed="true"] .wr-dot { box-shadow: 0 0 0 2.5px var(--x-paper-2), 0 0 0 5px var(--x-red); }
.wr-pin.is-begin[aria-pressed="true"] .wr-dot { box-shadow: inset 0 0 0 3.5px var(--x-navy), 0 0 0 2.5px var(--x-paper-2), 0 0 0 5px var(--x-red); }
.wr-pin-y { font-size: 11.5px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wr-pin:focus-visible { outline: 2.5px solid var(--x-red); outline-offset: 1px; border-radius: 4px; }
.wr-axis { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; font-size: 10.5px; color: var(--x-ink-2); }
.wr-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.wr-axis .wr-today { transform: translateX(-100%); font-weight: 700; color: var(--x-red); }
.wr-card { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-left: 4px solid var(--era-mark); border-radius: 2px 4px 4px 2px; background: var(--era-wash); }
.wr-card p { margin: 0; }
.wr-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.wr-date { font-weight: 800; color: var(--era-ink); }
.wr-in { font-size: 12.5px; color: var(--x-ink-2); }
.wr-what { font-size: 15px; line-height: 1.5; color: var(--text); }
.wr-go a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

/* ── a phone ── */
@media (max-width: 760px) {
  .wn-hero { grid-template-columns: minmax(0, 1fr); padding: 22px 20px 40px; gap: 16px; }
  .wn-hero-art { order: 0; min-height: 0; height: 92px; transform: rotate(-1deg); }
  .wn-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .wn-dialbox { position: static; max-width: 420px; width: 100%; margin: 0 auto; }
  .wn-row-time { min-width: 0; font-size: 12.5px; }
  .wn-row { flex-wrap: wrap; }
  .wn-row .wn-row-time { flex-basis: calc(100% - 44px); order: -1; margin-left: 44px; margin-bottom: -6px; }
  .wn-month-name { min-width: 82px; font-size: 17px; }
  .wn-card > :not(.wn-card-head) { margin-left: 16px; margin-right: 16px; }
  .wn-foot .x-btn { margin-left: 0; }
  .wr-strip { margin: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .wn-row, .wn-month, .wn-item, .wn-part { transition: none; }
  .wn-row:hover, .wn-month:hover { transform: none; }
  .wn-hero-art { transform: none; }
}
