/* Event, series and About pages: reading columns, labelled facts, ruled lists. */
.nyc-measure { max-width: 52rem; }
.nyc-measure-narrow { max-width: 46rem; }

.nyc-crumb + .nyc-title, .nyc-crumb + .nyc-event-head { margin-top: 28px; }
.nyc-detail .nyc-title { text-wrap: balance; }
.nyc-detail .lede { margin-bottom: 0; }
.nyc-detail > .nyc-measure > .actions:last-child, .nyc-measure-narrow > .actions:last-child { margin-top: 40px; }

.nyc-intro { padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.nyc-note { font-size: 0.75rem; line-height: 1.6; margin-top: 12px; }
.nyc-ahead { color: var(--accent); }

.nyc-section { margin-top: 56px; }
.nyc-main .nyc-section-title {
  margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
  font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.nyc-section-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.nyc-main .nyc-section-row .nyc-section-title { margin: 0; padding: 0; border: 0; }
.nyc-section-row a { font-size: 0.8125rem; }

/* one event: the reading column beside a card of facts */
.nyc-event-head .eyebrow { margin-bottom: 14px; }
.nyc-event-head .nyc-title { max-width: 48rem; font-size: clamp(1.5rem, 3vw, 1.875rem); line-height: 1.25; margin-bottom: 0; }
.nyc-event-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 64px; margin-top: 40px; }
.nyc-event-main { flex: 999 1 36rem; min-width: 0; }
.nyc-event-main > .nyc-section:first-child { margin-top: 0; }
.nyc-event-aside { flex: 1 1 20rem; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.nyc-event-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.nyc-event-card .nyc-facts { margin: 0; padding: 4px 20px; }
.nyc-fact { padding: 14px 0; border-bottom: 1px solid var(--border); }
.nyc-fact:last-child { border-bottom: 0; }
.nyc-fact dt { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.nyc-fact dd { margin: 6px 0 0; font-size: 0.9375rem; }
.nyc-fact-sub { display: block; margin-top: 4px; font-size: 0.75rem; color: var(--muted); }
.nyc-original { padding: 0 20px 20px; }
.nyc-original .btn { width: 100%; min-height: 48px; }
.nyc-provenance { padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.75rem; line-height: 1.7; color: var(--muted); }
.nyc-provenance .nyc-label { margin-bottom: 10px; }
.nyc-provenance-main { color: var(--label); }
.nyc-provenance p + p { margin-top: 2px; }
.nyc-provenance p:last-child { margin-top: 10px; }

.nyc-classes { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 32px; }
.nyc-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nyc-chips .nyc-badge { min-height: 26px; padding: 0 10px; font-size: 0.75rem; }

.nyc-prose { display: flex; flex-direction: column; gap: 14px; max-width: 42rem; font-size: 0.875rem; line-height: 1.75; }
.nyc-prose h3, .nyc-prose h4 { margin: 8px 0 0; font-weight: 600; line-height: 1.4; text-wrap: balance; }
.nyc-prose h3 { font-size: 1rem; }
.nyc-prose h4 { font-size: 0.875rem; }
.nyc-prose strong { font-weight: 600; }
.nyc-prose ul, .nyc-prose ol { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 24px; }
.nyc-prose li::marker { color: var(--muted); }
.nyc-prose hr { width: 100%; margin: 0; border: 0; border-top: 1px solid var(--border); }
.nyc-more { margin-top: 14px; }
.nyc-more > summary { list-style: none; }
.nyc-more > summary::-webkit-details-marker { display: none; }
.nyc-more[open] { display: flex; flex-direction: column-reverse; gap: 16px; }
.nyc-more-close, .nyc-more[open] .nyc-more-open { display: none; }
.nyc-more[open] .nyc-more-close { display: inline; }
.nyc-more > summary.btn { width: max-content; }

.nyc-series-name { font-size: 1.125rem; }
.nyc-series-part .nyc-timeline { margin-top: 20px; }
.nyc-series-part .nyc-rows { margin-top: 20px; }

/* listed dates, drawn as SVG on one track */
.nyc-timeline { display: block; overflow: visible; }
.nyc-tl-base { stroke: var(--border); stroke-width: 1; }
.nyc-tl-year { stroke: var(--border); stroke-width: 1; }
.nyc-tl-today { stroke: var(--dot); stroke-width: 1; }
.nyc-tl-past { fill: var(--muted); stroke: #121311; stroke-width: 2; }
.nyc-tl-ahead { fill: var(--accent); stroke: #121311; stroke-width: 2; }
.nyc-tl-self { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.nyc-timeline-axis { display: block; overflow: visible; margin-top: 10px; font-size: 0.6875rem; fill: var(--muted); font-variant-numeric: tabular-nums; }
.nyc-timeline-axis .nyc-tl-now { fill: var(--fg); }

.nyc-rows { list-style: none; margin: 0; padding: 0; }
.nyc-row { position: relative; display: grid; gap: 4px 24px; padding: 14px 0; border-top: 1px solid var(--border); }
.nyc-main .nyc-row-title { font-size: 0.9375rem; margin: 0; }
.nyc-row-link { color: var(--fg); font-weight: 600; text-decoration: none; }
.nyc-row-link::after { content: ''; position: absolute; inset: 0; }
.nyc-row:hover .nyc-row-link { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.nyc-row-date { font-size: 0.8125rem; white-space: nowrap; }
.nyc-row .nyc-note { margin-top: 4px; }

/* the series index: a table whose middle column is each series' track */
.nyc-series-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; }
.nyc-series-tools p { font-size: 0.8125rem; color: var(--muted); }
.nyc-series-box { margin-top: 20px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.nyc-series-table { width: 100%; min-width: 54rem; border-collapse: collapse; }
.nyc-series-table th, .nyc-series-table td { padding: 20px 24px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; font-weight: 400; }
.nyc-series-table tbody tr:last-child > * { border-bottom: 0; }
.nyc-series-table thead th { padding-top: 16px; padding-bottom: 14px; vertical-align: bottom; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.nyc-series-table .nyc-col-name { width: 22rem; }
.nyc-series-table .nyc-col-next { width: 10rem; text-align: right; }
.nyc-series-link { display: block; color: var(--fg); font-size: 0.9375rem; font-weight: 600; line-height: 1.4; text-decoration: none; }
.nyc-series-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.nyc-series-meta { display: block; margin-top: 4px; font-size: 0.75rem; color: var(--muted); }
.nyc-series-link + .nyc-series-meta { margin-top: 6px; }
.nyc-next-date { display: block; font-size: 0.875rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nyc-next-date.nyc-ahead { color: var(--accent); }
.nyc-next-note { display: block; margin-top: 4px; font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.nyc-series-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 20px; font-size: 0.75rem; color: var(--muted); }
.nyc-series-legend span { display: inline-flex; align-items: center; gap: 8px; }
.nyc-key { display: block; flex: none; border-radius: 50%; }
.nyc-key-past { width: 7px; height: 7px; background: var(--muted); }
.nyc-key-ahead { width: 10px; height: 10px; background: var(--accent); }
.nyc-key-today { width: 1px; height: 14px; border-radius: 0; background: var(--dot); }

.nyc-cadence { margin-top: 12px; }
.nyc-detail .nyc-range { margin-top: 6px; }
.nyc-range .nyc-ahead, .nyc-range .nyc-absent { white-space: nowrap; }
.nyc-footnote { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.8125rem; line-height: 1.7; }

/* About */
.nyc-about { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 80px; margin-top: 48px; }
.nyc-about-main { flex: 999 1 32rem; min-width: 0; max-width: 40rem; }
.nyc-about-main .nyc-section:first-child { margin-top: 0; }
.nyc-about-main .nyc-prose { font-size: 0.9375rem; }
.nyc-about-main .actions { margin-top: 48px; }
.nyc-about-aside { flex: 1 1 20rem; min-width: 0; }
.nyc-about-aside .nyc-section { margin-top: 0; }
.nyc-about-aside p { font-size: 0.875rem; line-height: 1.7; color: var(--label); }
.nyc-links { list-style: none; margin: 20px 0 0; padding: 0; }
.nyc-links li { border-top: 1px solid var(--border); }
.nyc-links li:last-child { border-bottom: 1px solid var(--border); }
.nyc-links a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; min-height: 52px; padding: 14px 0; color: var(--fg); text-decoration: none; }
.nyc-links a:hover { color: var(--accent); }
.nyc-links span { font-size: 0.75rem; color: var(--muted); }

@media (min-width: 640px) {
  .nyc-row-dated { grid-template-columns: 7rem minmax(0, 1fr); align-items: baseline; }
}
/* Once the card no longer fits beside the text, it moves up to sit under the title. */
@media (max-width: 1023px) {
  .nyc-event-aside { order: -1; }
}
