/* St. John Almanac: Today on St. John. The morning paper: type set large (the text 17 px, nothing under 12),
   two inks for everything drawn, the day's arc on every edition. The site's tokens only, so day and night both
   work; the page's own colours are the yellow of the note and the two inks, each with a day and a night value. */

.td {
  --td-ink: var(--reef);            /* the first ink: hills, marks, the tide's line */
  --td-ink-2: var(--accent);        /* the second ink: the sea */
  --td-note: #FBF3C9;               /* the yellow note */
  --td-note-edge: #E5D58A;
  --td-on-note: #3A3206;
  max-width: 76rem; margin-inline: auto;
  padding: 1.2rem var(--gutter-r, 16px) 2.6rem var(--gutter-l, 16px);
  font-size: 1.0625rem; line-height: 1.5; color: var(--ink);
  overflow-wrap: anywhere;          /* one long word or address wraps inside its own text and never widens the page */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .td { --td-note: #3B3511; --td-note-edge: #6E6222; --td-on-note: #F7EDC2; }
}
:root[data-theme="dark"] .td { --td-note: #3B3511; --td-note-edge: #6E6222; --td-on-note: #F7EDC2; }
.td a { color: var(--accent); text-underline-offset: 0.16em; }
.td a.button { color: var(--on-press); text-decoration: none; }
/* Every piece of text keeps its own direction of writing to itself, and every child of a row or a grid may shrink. */
.td :is(a, b, strong, span, em, small, dt, dd, time, h2, h3, h4, p, li, td, figcaption, summary) { unicode-bidi: isolate; }
.td :is(.td-rows li, .td-state li, .td-rank li, .td-news, .td-note, .td-pair, .td-rit, .td-figs, .td-moments, .td-invite) > * { min-width: 0; }
.td-alert { padding-top: 0.6rem; font-size: 0.94rem; }
.td a:focus-visible, .td button:focus-visible, .td summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* ----- the head: the title, the date line, one thin rule, then the print, evenly spaced. The logo is already in the bar ----- */
.td-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.3rem 1.4rem; border-bottom: 1px solid var(--ink); padding-bottom: 0.85rem; margin-bottom: 1rem; }
.td-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 3.6vw + 0.6rem, 2.7rem); line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
.td-date { margin: 0; color: var(--ink-soft); font-size: 1rem; overflow-wrap: anywhere; }
.td-date b { font-weight: 600; color: var(--ink); }
.td-quiet { color: var(--ink-soft); font-size: 1rem; margin: 0.9rem 0 0; max-width: 46rem; }

/* ----- who the paper is set for: one quiet line, down the page and never in the head ----- */
.td-kind { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.55rem; margin: 0; padding-block: 0.95rem; border-bottom: 1px solid var(--rule); font-size: 0.94rem; line-height: 1.5; color: var(--ink-soft); }
.td-kind-say { flex-basis: 100%; }
.td-kind button { font: inherit; color: var(--accent); background: none; border: 0; border-radius: 3px; padding: 0.35rem 0.1rem; min-height: 2.2rem; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.td-kind button:not(:last-child)::after { content: "\00b7"; display: inline-block; margin-left: 0.55rem; color: var(--ink-soft); font-weight: 400; text-decoration: none; }
.td-kind button:hover { color: var(--ink); }
.td-kind button[aria-pressed="true"] { color: var(--ink); font-weight: 700; text-decoration: none; }

/* ----- the page: one column on a phone, three on a desk, with a hairline between ----- */
.td-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; }
.td-col { min-width: 0; display: flex; flex-direction: column; }
@media (min-width: 60rem) {
  .td-grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0 2.1rem; padding-top: 0.15rem; }
  .td-col + .td-col { border-left: 1px solid var(--rule); padding-left: 2.1rem; }
  .td-col > .td-sec:first-child { padding-top: 0.2rem; }
  .td-col > .td-sec:last-child { border-bottom: 0; }
}

/* ----- the print at the head: a small woodcut of the reader's own part of the island, in a plain frame ----- */
.td-print { margin: 0; padding: 6px; border: 1px solid var(--rule); background: var(--land); display: flex; flex-direction: column; gap: 0.4rem; }
.td-print-frame { aspect-ratio: 3 / 2; max-width: 100%; background: var(--land-edge); border-radius: 2px; overflow: hidden; }
.td-print-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.td-print figcaption { font-family: var(--display); font-style: italic; font-size: 0.9rem; line-height: 1.4; color: var(--ink-soft); padding: 0 0.2rem 0.15rem; }
/* ----- the living island at the place, lower down: its moving picture in the same plain frame ----- */
.td-pic { margin: 0; padding: 6px; border: 1px solid var(--rule); background: var(--land); display: flex; flex-direction: column; gap: 0.4rem; }
.td-live { border-bottom: 0; }
.td-frame { aspect-ratio: 16 / 10; border-radius: 2px; }
.td-frame picture { display: block; height: 100%; }
.td-frame .lh-still { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.td-frame canvas { height: 100%; }
.td-pic figcaption { font-family: var(--display); font-style: italic; font-size: 0.9rem; line-height: 1.4; color: var(--ink-soft); padding: 0 0.2rem 0.15rem; }
.td-pic figcaption a { font-family: var(--text); font-style: normal; font-weight: 600; font-size: 0.86rem; white-space: nowrap; }
.td-pic-drawn { display: block; font-family: var(--text); font-style: normal; font-size: 0.8rem; line-height: 1.4; }
.td-pic-drawn:empty { display: none; }
.td-pic-do { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.7rem; padding-top: 0.2rem; }
.td-pic-do button { font: 600 0.86rem/1.2 var(--text); font-style: normal; color: var(--accent); background: var(--sheet); border: 1px solid var(--rule); border-radius: 999px; padding: 0.45rem 0.8rem; min-height: 2.3rem; cursor: pointer; overflow-wrap: anywhere; }
.td-pic-do button:hover { border-color: var(--ink); }

/* ----- the day's line and the four figures ----- */
.td-line { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 2.2vw + 1.1rem, 2.15rem); line-height: 1.12; letter-spacing: -0.005em; margin: 0; padding-top: 1rem; text-wrap: balance; overflow-wrap: anywhere; }
.td-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; margin: 0; padding-block: 0.95rem; border-bottom: 1px solid var(--rule); }
.td-fig { display: flex; flex-direction: column; min-width: 0; }
.td-fig dd { margin: 0; order: -1; font-family: var(--display); font-weight: 600; font-size: 1.7rem; line-height: 1.08; font-variant-numeric: lining-nums; white-space: nowrap; }
.td-fig dt { font-size: 0.88rem; line-height: 1.3; color: var(--ink-soft); }
.td-fig dt small { display: block; font-size: 0.76rem; letter-spacing: 0.02em; color: var(--gold); font-weight: 600; }
@media (max-width: 22rem) { .td-fig dd { font-size: 1.45rem; } }

/* ----- a part of the paper: a small gold heading, then its pieces ----- */
.td-sec { padding-block: 1rem 1.05rem; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.td-sec-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.1rem 0.8rem; margin: 0; font-family: var(--text); font-weight: 700; font-size: 0.8rem; line-height: 1.3; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.td-sec-h small { font-size: 0.76rem; font-weight: 500; letter-spacing: 0.02em; text-transform: none; color: var(--ink-soft); }
.td-say { font-family: var(--display); font-size: 1.16rem; line-height: 1.36; margin: 0; }
.td-by, .td-src, .td-notes { font-size: 0.8rem; line-height: 1.45; color: var(--ink-soft); margin: 0; }
.td-src a { color: var(--accent); }
.td-src span + span::before, .td-src a + a::before, .td-src span + a::before, .td-src a + span::before { content: ", "; color: var(--ink-soft); }

/* ----- the day's arc: the sun over the place's own hills, the sea and its tide under the horizon ----- */
.td-arc { position: relative; margin-top: 1.45rem; }
.td-arc svg { display: block; width: 100%; height: auto; overflow: visible; }
.td-arc .a-sun-dim { fill: none; stroke: var(--sun); stroke-width: 2.2; stroke-dasharray: 1.5 5.5; stroke-linecap: round; }
.td-arc .a-sun-lit { fill: none; stroke: var(--sun); stroke-width: 4; stroke-linecap: round; }
.td-arc .a-disc { fill: var(--sun); }
.td-arc .a-ray { stroke: var(--sun); stroke-width: 2.4; stroke-linecap: round; }
.td-arc .a-hill { fill: var(--td-ink); }
.td-arc .a-cut { fill: none; stroke: var(--sheet); stroke-width: 1.5; stroke-linecap: round; }
.td-arc .a-hor { stroke: var(--td-ink); stroke-width: 1.6; }
.td-arc .a-sea { fill: var(--water); }
.td-arc .a-tide { fill: none; stroke: var(--td-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.td-arc .a-dot { fill: var(--sheet); stroke: var(--td-ink); stroke-width: 2; }
.td-arc .a-now { fill: var(--sheet); stroke: var(--sun); stroke-width: 3; }
.td-arc-l { position: absolute; margin: 0; font-size: 0.8rem; line-height: 1.15; color: var(--ink-soft); white-space: nowrap; }
.td-arc-l b { font-weight: 700; font-size: 0.92rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.td-arc-l--end { transform: translateX(-100%); text-align: right; }
.td-arc-l--mid { transform: translateX(-50%); text-align: center; }
.td-tide { margin: 0; font-size: 0.92rem; line-height: 1.4; }
.td-tide b { font-weight: 600; }

/* ----- six hours of the day ----- */
.td-hours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; font-variant-numeric: tabular-nums; }
.td-hours li { display: flex; flex-direction: column; gap: 0.05rem; padding: 0.5rem 0.25rem 0.55rem; text-align: center; background: var(--water); border-radius: 8px; font-size: 0.82rem; line-height: 1.3; color: var(--ink-soft); min-width: 0; }
.td-hours b { font-family: var(--display); font-size: 1.35rem; line-height: 1.1; color: var(--ink); }
.td-hours span:first-child { font-weight: 600; color: var(--ink); }

/* ----- the moments: moon, tonight's sky, the sea ----- */
.td-moments { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 0.9rem; margin: 0; }
.td-moments div { display: flex; flex-direction: column; min-width: 0; }
.td-moments dt { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gold); }
.td-moments dd { margin: 0; font-size: 1rem; line-height: 1.35; }
.td-moments dd small { display: block; font-size: 0.82rem; color: var(--ink-soft); }
@media (max-width: 21.5rem) { .td-moments { grid-template-columns: 1fr; } }

/* ----- rows: what is on, the week, getting on and off ----- */
.td-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.td-rows li { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); gap: 0.6rem; align-items: start; }
.td-rows time, .td-rows .td-when { font-weight: 700; font-size: 0.94rem; line-height: 1.5; color: var(--accent); font-variant-numeric: tabular-nums; }
.td-rows b { display: block; font-weight: 600; font-size: 1.06rem; line-height: 1.3; }
.td-rows p { margin: 0; font-size: 0.96rem; line-height: 1.45; color: var(--ink-soft); }
.td-rows li.td-gone b, .td-rows li.td-gone .td-when { font-weight: 500; color: var(--ink-soft); }
.td-pick { display: inline-block; margin-right: 0.4rem; padding: 0.02rem 0.45rem; border: 1.5px solid var(--td-ink); border-radius: 3px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--td-ink); vertical-align: 0.08em; }
.td-tag { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.td-rows p.td-tag { font-size: 0.76rem; color: var(--gold); }

/* ----- the news ----- */
/* THE SMALL DRAWINGS (today/marks.js), in the two inks of the prints and the logo's gold. A cut is a stroke in the colour
   of whatever the mark stands on (--cut), so it reads as cut out of the block. */
.td-mark { display: block; width: 2rem; height: 2rem; flex: none; overflow: visible; }
.td-mark--s { width: 1.25rem; height: 1.25rem; }
.td-mark .k-ink { fill: var(--reef); }
.td-mark .k-sea { fill: var(--accent); }
.td-mark .k-sun { fill: var(--sun); }
.td-mark .k-dark { fill: var(--reef); }
.td-mark .k-hole { fill: var(--cut, var(--sheet)); }
.td-mark .k-cut { fill: none; stroke: var(--cut, var(--sheet)); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.td-mark .k-line { fill: none; stroke: var(--reef); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.td-mark .k-thick { stroke-width: 3.4; }
.td-mark .k-wave { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.td-mark .k-ray { stroke: var(--sun); stroke-width: 2; stroke-linecap: butt; }
.td-mark .k-rain { stroke: var(--accent); stroke-width: 2.3; stroke-linecap: round; }

/* where a mark stands */
.td-fig dd { display: flex; align-items: center; gap: 0.45rem; }
.td-mark--fig { width: 1.75rem; height: 1.75rem; }
.td-hours li { --cut: var(--water); }
.td-hours li .td-mark { width: 2.2rem; height: 2.2rem; margin: 0.15rem auto 0.1rem; }
.td-mark--side { float: left; width: 1.7rem; height: 1.7rem; margin: 0.1rem 0.55rem 0.15rem 0; }
.td-moments dd { display: flow-root; }
.td-rows .td-when { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.td-mark--when { width: 1.8rem; height: 1.8rem; }
.td-gone .td-mark { opacity: 0.5; }
.td-tag .td-mark { display: inline-block; vertical-align: -0.3em; margin-right: 0.4rem; }
.td-state li.td-has-mark { grid-template-columns: 1.55rem minmax(0, 1fr); }
.td-state li.td-has-mark::before { content: none; }
.td-mark--state { width: 1.55rem; height: 1.55rem; margin-top: 0.1rem; }
/* a state line's mark stands in place of its dot and keeps its state in sight: one to mind today is cut in the caution's colour (and says so to a reader who cannot see it); one that said nothing stands pale */
.td-state li.td-has-mark[data-state="watch"] .k-ink { fill: var(--signal); }
.td-state li.td-has-mark[data-state="watch"] .k-line { stroke: var(--signal); }
.td-state li.td-has-mark[data-state="none"] .td-mark { opacity: 0.55; }
.td-rank li { --cut: var(--land); }
.td-rank em { display: flex; flex-direction: column; align-items: flex-end; gap: 0.1rem; }
.td-wave { display: block; width: 2.75rem; height: 1.25rem; overflow: visible; }
.td-wave path { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* A small map of where things are: the island cut from its own heights in the dark ink, on the sea's tint. */
.td-map { margin: 0 0 0.75rem; display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.td-map-box { position: relative; background: var(--water); border-radius: 8px; overflow: hidden; }
.td-map canvas { display: block; width: 100%; height: auto; color: var(--reef); }
.td-map figcaption { font-size: 0.8rem; line-height: 1.4; color: var(--ink-soft); }
.td-map--small { max-width: 17rem; }
.td-pin { position: absolute; width: 0.78rem; height: 0.78rem; margin: -0.39rem 0 0 -0.39rem; border-radius: 50%; background: var(--sun); border: 2px solid var(--sheet); box-shadow: 0 0 0 1px var(--ink); }
.td-pin b { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 0.76rem; font-weight: 700; line-height: 1; color: var(--ink); background: var(--sheet); padding: 0.2rem 0.35rem; border-radius: 4px; font-variant-numeric: tabular-nums; }
.td-pin--left b { left: auto; right: 0.95rem; }
.td-pin--gone { background: var(--land-edge); }
.td-pin--gone b { font-weight: 500; color: var(--ink-soft); }
.td-pin--you { width: 1.05rem; height: 1.05rem; margin: -0.525rem 0 0 -0.525rem; background: none; border: 2.5px solid var(--sun); box-shadow: 0 0 0 1px var(--ink), inset 0 0 0 1px var(--ink); }
.td-map--small .td-pin { width: 0.66rem; height: 0.66rem; margin: -0.33rem 0 0 -0.33rem; background: var(--signal); }
.td-map--small .td-pin--you { width: 0.95rem; height: 0.95rem; margin: -0.475rem 0 0 -0.475rem; background: none; }

/* A picture that came with an item: its frame keeps its room; its credit stands under it, linked to where it came from. */
.td-photo { margin: 0; display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.td-photo-frame { max-width: 100%; background: var(--land); border-radius: 6px; overflow: hidden; }
.td-photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.td-photo-frame--whole img { object-fit: contain; object-position: 50% 50%; }
.td-photo figcaption, .td-credit { font-size: 0.78rem; line-height: 1.4; color: var(--ink-soft); margin: 0; overflow-wrap: anywhere; }
.td-credit a { color: var(--accent); }
.td-photo-line { font-family: var(--display); font-style: italic; font-size: 0.95rem; color: var(--ink); }
.td-rows li > .td-photo--lead { grid-column: 1 / -1; margin-bottom: 0.1rem; }
.td-news .td-photo { margin-block: 0 0.45rem; }
.td-news article > div > .td-photo { margin-block: 0.35rem 0.3rem; }
.td-news article > div { display: flow-root; min-width: 0; }
.td-news article > div > * + * { margin-top: 0.18rem; }
.td-news article > div > .td-tag { display: block; }
.td-thumb--news { width: clamp(6.6rem, 40%, 10.5rem); margin-top: 0.3rem; }
.td-photo--day { margin-top: 0.15rem; }
.td-thumb { float: right; width: clamp(5.4rem, 34%, 8.5rem); margin: 0.2rem 0 0.35rem 0.75rem; }
.td-rows li > div, .td-state li > div { display: flow-root; min-width: 0; }
.td-gone .td-photo-frame { opacity: 0.6; }
.td-note .td-photo figcaption, .td-note .td-credit, .td-note .td-credit a { color: var(--td-on-note); }
.td-note .td-photo-frame { border-radius: 2px; }
.td-news { display: flex; flex-direction: column; gap: 0.95rem; }
.td-news article { display: flex; flex-direction: column; gap: 0.18rem; min-width: 0; }
.td-news h4 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.24; }
.td-news p { margin: 0; }

/* ----- the state lines: a mark, the thing, what is known ----- */
.td-state { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.td-state li { display: grid; grid-template-columns: 0.8rem minmax(0, 1fr); gap: 0.55rem; align-items: start; }
.td-state li::before { content: ""; width: 0.68rem; height: 0.68rem; margin-top: 0.42rem; border-radius: 50%; background: var(--td-ink); }
.td-state li[data-state="watch"]::before { background: var(--signal); border-radius: 1px; transform: rotate(45deg); }
.td-state li[data-state="none"]::before { background: none; border: 2px solid var(--ink-soft); }
.td-state b { font-weight: 600; }
.td-state p { margin: 0; font-size: 0.96rem; line-height: 1.45; color: var(--ink-soft); }
.td-label { margin: 0.3rem 0 0; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }

/* ----- the beaches, calmest first, each with its hours of sun on the sand ----- */
.td-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; counter-reset: r; }
.td-rank li { counter-increment: r; display: grid; grid-template-columns: 1.7rem minmax(0, 1fr) auto; gap: 0.2rem 0.6rem; align-items: start; padding: 0.55rem 0.65rem 0.6rem; background: var(--land); border-radius: 10px; }
.td-rank li::before { content: counter(r); font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.1; color: var(--gold); }
.td-rank b { display: block; font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.td-rank p { margin: 0; font-size: 0.9rem; line-height: 1.4; color: var(--ink-soft); }
.td-rank em { font-style: normal; font-family: var(--display); font-weight: 600; font-size: 1.22rem; white-space: nowrap; }
.td-sunbar { display: block; height: 9px; margin: 0.4rem 0 0.2rem; border-radius: 5px; background: var(--land-edge); position: relative; overflow: hidden; }
.td-sunbar i { position: absolute; top: 0; bottom: 0; background: var(--sun); border-radius: 5px; }
.td-more { border-top: 0; }
.td-more table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.td-more td { padding: 0.3rem 0; border-bottom: 1px solid var(--rule); }
.td-more td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ----- the week ahead ----- */
.td-week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(2.9rem, 1fr)); gap: 0.25rem; }
.td-week li { display: flex; flex-direction: column; align-items: center; padding: 0.4rem 0.1rem 0.45rem; background: var(--land); border-radius: 8px; font-size: 0.8rem; line-height: 1.3; color: var(--ink-soft); }
.td-week b { font-family: var(--display); font-size: 1.2rem; line-height: 1.15; color: var(--ink); }

/* ----- small things ----- */
.td-rit { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0; }
.td-rit div { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.6rem 0.7rem 0.65rem; min-width: 0; background: var(--land); border-radius: 10px; }
.td-rit b { font-family: var(--display); font-weight: 600; font-size: 1.55rem; line-height: 1.08; }
.td-rit span { font-size: 0.86rem; line-height: 1.35; color: var(--ink-soft); }
.td-ask { margin: 0; font-family: var(--display); font-style: italic; font-size: 1.06rem; line-height: 1.4; }

/* ----- the yellow note: meanwhile, elsewhere ----- */
.td-note { background: var(--td-note); border: 1px solid var(--td-note-edge); color: var(--td-on-note); border-radius: 4px; padding: 0.9rem 1rem 1rem; margin: 0.35rem 0.15rem 0.5rem; transform: rotate(-0.5deg); display: flex; flex-direction: column; gap: 0.55rem; box-shadow: 0 1px 0 var(--td-note-edge), 0 6px 14px -10px rgba(var(--photo-shade), 0.55); --cut: var(--td-note); }
.td-note h3 { margin: 0; font-family: var(--text); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--td-on-note); }
.td-note p { margin: 0; font-size: 1.04rem; line-height: 1.45; }
.td-note .td-note-line { font-family: var(--display); font-size: 1.32rem; line-height: 1.3; text-wrap: pretty; }
.td-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem 0.9rem; padding-top: 0.1rem; }
.td-pair div { display: flex; flex-direction: column; min-width: 0; }
.td-pair b { display: flex; align-items: center; gap: 0.4rem; font-family: var(--display); font-weight: 600; font-size: 2.5rem; line-height: 1.02; font-variant-numeric: lining-nums; }
.td-pair span { font-size: 0.86rem; line-height: 1.35; overflow-wrap: anywhere; }
.td-note .td-gap { font-family: var(--display); font-style: italic; font-size: 1.12rem; }
/* the cold list: a ladder of the paper's towns, coldest first, each bar as long as its high; this place at the foot, in gold */
.td-cold-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.6rem; padding-top: 0.35rem; border-top: 1px solid var(--td-note-edge); font-size: 0.78rem !important; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.td-cold-h small { font-size: 0.78rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.td-cold { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.td-cold li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; min-height: 1.9rem; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.94rem; line-height: 1.25; isolation: isolate; }
.td-cold li::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 0; width: var(--len, 0%); min-width: 0.5rem; border-radius: 4px; background: color-mix(in srgb, var(--accent) 24%, transparent); }
.td-cold-name { display: flex; align-items: center; gap: 0.4rem; min-width: 0; overflow-wrap: anywhere; }
.td-cold-name .td-mark { flex: none; }
.td-cold b { font-family: var(--display); font-weight: 600; font-size: 1.08rem; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.td-cold-pick .td-cold-name { font-weight: 700; }
.td-cold-here { font-weight: 700; }
.td-cold-here::before { background: color-mix(in srgb, var(--sun) 62%, transparent) !important; }
.td-cold-more summary { cursor: pointer; font-size: 0.9rem; font-weight: 600; padding: 0.35rem 0; text-decoration: underline; text-underline-offset: 0.18em; }
.td-cold-more[open] summary { margin-bottom: 0.3rem; }
.td-note .td-src, .td-note .td-src a, .td-note .td-src span + a::before, .td-note .td-src a + a::before { color: var(--td-on-note); }
@media (prefers-reduced-motion: no-preference) { .td-note { transition: transform 0.2s ease; } .td-note:hover { transform: rotate(0deg); } }

/* ----- a quiet line, the invitation, and the foot ----- */
.td-quiet-line { margin: 0; font-size: 0.98rem; line-height: 1.45; color: var(--ink-soft); }
.td-invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; margin-top: 1rem; padding: 0.8rem 0.9rem; border: 1px solid var(--rule); background: var(--land); }
.td-invite p { margin: 0; flex: 1 1 14rem; font-size: 1rem; line-height: 1.4; }
.td-stale { margin: 0; padding: 0.5rem 0 0; font-size: 0.9rem; font-style: italic; color: var(--ink-soft); }
.td-sources { margin-top: 1.4rem; }
.td-sources .fold-in p { font-size: 0.9rem; line-height: 1.5; color: var(--ink-soft); max-width: 52rem; }
.td-foot { margin: 0.6rem 0 0; font-size: 0.82rem; line-height: 1.5; color: var(--ink-soft); max-width: 52rem; }
