:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: color-mix(in srgb, #111111 12%, transparent);
  --accent: #1f3bff;
  --bar-h: 0px;
  --content: min(1120px, calc(100% - 2rem));
  font-family: Archivo, sans-serif;
  font-weight: 400;
  font-stretch: 100%;
  font-size: 16px;
  line-height: 1.5;
  font-synthesis: none;
  background: var(--bg);
  color: var(--ink);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0e0e0e;
    --ink: #f2f2f2;
    --muted: #949494;
    --line: color-mix(in srgb, #f2f2f2 12%, transparent);
    --accent: #6f83ff;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-width: 0; }
img { max-width: 100%; }
button, input, select { font: inherit; color: inherit; background: transparent; border: 0; border-radius: 0; }
button { cursor: pointer; }
a { color: inherit; }
a:hover, a:focus-visible { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--ink); color: var(--bg); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--bg);
  color: var(--ink);
  min-height: 44px;
  white-space: nowrap;
  padding: 0.4rem 0.6rem;
}
.skip:focus { top: 0.5rem; }

.mast, .sticky-inner, main, footer { width: var(--content); margin: 0 auto; min-width: 0; }
.mast { padding: 1.25rem 0 0.75rem; }
.mark {
  margin: 0;
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(32px, 9.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mark a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.mark a:hover, .mark a:focus-visible { color: var(--accent); }
.mark.mark-small {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
}
.place-title {
  margin: 0.15rem 0 0;
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(32px, 8vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.counts, .descriptor, .mono, .counts-line {
  margin: 0.2rem 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.descriptor { color: var(--muted); }
.counts-line { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.counts { margin: 0; white-space: nowrap; }

.sticky {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.sticky-inner { padding: 0.35rem 0 0.6rem; }
.compact-bar {
  display: none;
  width: var(--content);
  height: 100%;
  margin: 0 auto;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
body.is-compact .compact-bar { display: flex; }
body.is-compact:not(.filters-open) #filterbar {
  height: 56px;
  max-height: 56px;
  overflow: hidden;
}
body.is-compact:not(.filters-open) .sticky-inner { display: none; }
.mark-compact {
  flex: none;
  margin: 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 18px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mark-compact:hover, .mark-compact:focus-visible { color: var(--accent); }
.filter-summary {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#filters-toggle {
  flex: none;
  min-height: 44px;
  padding: 0;
  white-space: nowrap;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.filter-top, .filter-place { display: flex; align-items: center; gap: 0.75rem 1rem; }
.filter-top { justify-content: space-between; }
.times, .topics { display: flex; align-items: center; justify-content: flex-start; gap: 24px; min-width: 0; margin-left: -8px; }
.vista button, .month-nav button, .linkish, .loc-open, .loc-list button, #loc-clear, #more-close {
  min-height: 44px;
}
.vista button { min-width: 44px; }
.tab, .tick {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  box-sizing: border-box;
  position: relative;
  min-width: 44px;
  min-height: 44px;
  padding: 4px 8px;
  white-space: nowrap;
}
.tab {
  font-weight: 400;
  border-bottom: 2px solid transparent;
}
.tick { font-weight: 400; }
.tab[aria-pressed="true"],
.tick[aria-pressed="true"] {
  background: #111111;
  color: #ffffff;
  font-weight: 600;
  border-bottom-color: transparent;
}
.tab.is-empty:not([aria-pressed="true"]),
.tick.is-empty:not([aria-pressed="true"]) { color: #6b6b6b; }
.vista { display: inline-flex; align-items: center; gap: 0.35rem; flex: none; }
.vista, .vista button {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.vista button { font-weight: 400; color: var(--muted); padding: 10px 0; white-space: nowrap; }
.vista button[aria-pressed="true"] { color: var(--ink); font-weight: 500; }
.vista span { color: var(--muted); }
.filter-place { position: relative; margin-top: 0.1rem; }
.where { display: flex; align-items: baseline; gap: 0.35rem; margin: 0; min-width: 0; }
.sep { color: var(--muted); }
.loc-open {
  padding: 0;
  white-space: nowrap;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.loc-wrap { position: relative; }
.loc-panel {
  display: none;
  position: absolute;
  z-index: 6;
  top: calc(100% + 0.2rem);
  left: 0;
  width: min(22rem, 80vw);
  background: var(--bg);
  border: 1px solid var(--ink);
}
.loc-wrap.is-open .loc-panel { display: block; }
#loc-search {
  width: 100%;
  min-height: 44px;
  padding: 0 0.75rem;
  border-bottom: 1px solid var(--line);
}
#loc-clear { padding: 0 0.75rem; }
.loc-list { list-style: none; margin: 0; padding: 8px 0 0; max-height: 16rem; overflow: auto; }
.loc-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0 0.75rem;
  font-weight: 400;
}
.loc-kind, .loc-count {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.loc-kind { color: var(--muted); }
.loc-count { text-align: right; }
.loc-list button[aria-selected="true"] .loc-name { text-decoration: underline; text-underline-offset: 0.15em; }
.linkish { padding: 0; white-space: nowrap; text-decoration: underline; text-underline-offset: 0.18em; font-weight: 500; }
#more-filters {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration-thickness: 1px;
}
.more-wrap { position: relative; }
.sheet-panel { position: absolute; top: calc(100% + 0.35rem); left: 0; z-index: 7; width: min(22rem, 80vw); }
.sheet-card {
  display: grid;
  gap: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--ink);
  padding: 1rem;
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.sheet-head h2, .sheet-label {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 400;
  font-stretch: 100%;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}
#more-close {
  padding: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.sheet-field { display: grid; gap: 0.15rem; }
.sheet-options { display: flex; flex-wrap: wrap; gap: 0.15rem 0.85rem; }
.sheet-options button {
  min-height: 44px;
  padding: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  border-radius: 0;
}
.sheet-options button[aria-pressed="true"] {
  background: #111111;
  color: #ffffff;
  border-bottom-color: transparent;
  padding: 4px 8px;
}

.provinces {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  margin: 0.7rem 0 0;
  padding-bottom: 0.2rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.provinces a { text-decoration: underline; text-underline-offset: 0.15em; white-space: nowrap; }
.month-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 0.75rem; margin: 0.8rem 0; }
.month-nav[hidden] { display: none; }
.month-nav p {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.month-nav button {
  padding: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  white-space: nowrap;
}
.month-short { display: none; }
.month-nav button:disabled,
.month-nav button.is-disabled {
  color: #6b6b6b;
  text-decoration: none;
  cursor: default;
}
.status, .loading { color: var(--muted); }
.loading, .status {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#status { text-transform: none; }
.clear-filters {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.loading { margin: 0.8rem 0 1.5rem; }
#sentinel { height: 1px; }
body:has(footer[hidden]) #sentinel { margin-bottom: 120px; }

.day-group { margin: 0; scroll-margin-top: calc(var(--bar-h) + 8px); }
.row { scroll-margin-top: calc(var(--bar-h) + 56px); }
.page-block + .page-block { margin-top: 24px; }
.day-stamp {
  position: sticky;
  top: var(--bar-h);
  z-index: 4;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  min-height: 0;
  padding: 24px 0 12px;
  background: var(--bg);
  border-top: 1px solid #111111;
  font-weight: 400;
  scroll-margin-top: var(--bar-h);
}
.day-stamp .when {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b6b6b;
}
.day-stamp .num {
  font-family: Archivo, sans-serif;
  font-weight: 800;
  font-stretch: 125%;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.day-stamp.is-stuck {
  z-index: 5;
  align-items: center;
  padding: 8px 0;
  min-height: 52px;
  background: var(--bg);
  box-shadow: 0 -1px 0 var(--bg), 0 1px 0 var(--bg);
}
.day-stamp.is-stuck::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: -1px;
  bottom: -1px;
  background: var(--bg);
}
.day-stamp.is-stuck .num { font-size: 28px; }
.hoy {
  color: var(--accent);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.row {
  position: relative;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: background 120ms linear, color 120ms linear, border-color 120ms linear;
}
.row-hit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  color: inherit;
  text-decoration: none;
}
.row-hit:hover, .row-hit:focus-visible { color: inherit; }
.row time { grid-column: 1; grid-row: 1; white-space: nowrap; }
.row .city { grid-column: 2; grid-row: 1; }
.row .copy { grid-column: 1 / -1; grid-row: 2; }
.row .tags { grid-column: 1 / -1; grid-row: 3; }
.row time, .row .city, .row .tags {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.row .tags { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  font-stretch: 100%;
  line-height: 1.3;
  letter-spacing: 0;
}
.row .org { margin: 0.1rem 0 0; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.4; }
.cal-menu { position: absolute; right: 0; top: 0.35rem; z-index: 2; opacity: 0; }
.row:hover .cal-menu, .row:focus-within .cal-menu { opacity: 1; }
.cal-btn {
  min-height: 44px;
  padding: 0 0.2rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.cal-pop {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 3;
  min-width: 12rem;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--ink);
}
.cal-pop a {
  display: block;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  text-decoration: none;
}
.cal-pop a:hover, .cal-pop a:focus-visible { color: var(--accent); }
.static-pager { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1rem 0; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.static-pager a { text-decoration: underline; text-underline-offset: 0.15em; }

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: auto;
  grid-auto-rows: auto;
  align-items: stretch;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.month-grid .dow, .month-grid .cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-width: 0;
  padding: 0.35rem;
}
.month-grid .dow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.month-grid .cell {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: 4px;
  min-height: 120px;
  height: auto;
  aspect-ratio: auto;
  overflow: visible;
  color: inherit;
  text-decoration: none;
}
.month-grid .num,
.month-grid .cal-title,
.month-grid .more { flex: none; }
.month-grid .cell.past { color: #6b6b6b; }
.month-grid .num { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: 0.04em; }
.month-grid .cell.today .num { color: var(--accent); }
.month-grid .cell.out { color: var(--muted); }
.month-grid .cell a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
  color: inherit;
}
.month-grid .cal-title {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  line-height: 1.25;
  max-height: calc(1.25em * 2);
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}
.month-grid .more { display: block; color: var(--muted); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; }
.month-agenda { display: none; }

.detail { padding: 1.25rem 0 2rem; }
.back { margin: 0 0 0.8rem; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: 0.04em; }
.back a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; text-decoration: none; }
.detail h1 {
  max-width: none;
  margin: 0 0 1rem;
  font-size: clamp(28px, 8vw, 36px);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.05;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.detail-grid { display: block; }
.facts {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  margin: 0 0 1.25rem;
}
.facts div {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding: 0.55rem 0;
  align-items: baseline;
}
.facts dt {
  margin: 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.facts dd { margin: 0; }
.desc {
  max-width: 68ch;
  margin: 0 0 1.25rem;
  overflow: visible;
  white-space: normal;
  overflow-wrap: break-word;
}
.desc p { margin: 0 0 0.8rem; }
.desc p:last-child { margin-bottom: 0; }
.desc .subhead {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 24px 0 8px;
}
.desc-fold .desc-preview > :last-child,
.desc-fold .desc-rest > :last-child { margin-bottom: 0.8rem; }
.desc-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0;
  padding: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.desc ul { margin: 0 0 0.8rem; padding-left: 1.2rem; }
.desc a {
  color: var(--accent);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  width: 100%;
}
.actions > .button, .actions > .cal-menu { flex: 1 1 0; width: 0; min-width: 0; }
.map-link {
  flex: 1 0 100%;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
  height: 44px;
  margin-top: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.button, .button.outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 48px;
  min-height: 48px;
  padding: 0 1rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.button { background: var(--ink); color: var(--bg); }
.button.outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.detail .actions .cal-menu { position: relative; top: auto; right: auto; opacity: 1; display: flex; }
.detail .actions > .button,
.detail .actions .cal-btn {
  padding: 0 24px;
  white-space: nowrap;
  height: 48px;
}
.detail .cal-btn.button {
  width: 100%;
  height: 48px;
  padding: 0 24px;
  white-space: nowrap;
  font-family: Archivo, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.similar { margin-top: 2rem; }
.similar > h2 {
  margin: 0 0 0.6rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 1rem 0 2rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
}
footer p { margin: 0; }
footer a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; color: inherit; }

.row .when {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (min-width: 641px) {
  body.is-compact:not(.filters-open) #filterbar { height: 64px; max-height: 64px; }
  .day-group { display: block; }
  .rows { min-width: 0; }
  .day-stamp .num { font-size: 40px; }
  .similar .row { grid-template-columns: 168px minmax(0, 1fr) minmax(0, 160px) minmax(0, 200px); }
  .similar .row time { width: 168px; min-width: 168px; max-width: 168px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) minmax(0, 160px) minmax(0, 200px);
    column-gap: 0.75rem;
    align-items: start;
  }
  .row-hit { display: contents; }
  .row time,
  .row .copy,
  .row .city,
  .row .tags { grid-row: 1; }
  .row time { grid-column: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .row .copy { grid-column: 2; min-width: 0; }
  .row .city {
    grid-column: 3;
    justify-self: stretch;
    text-align: left;
    min-width: 0;
    overflow: hidden;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .row .tags { grid-column: 4; justify-self: stretch; text-align: left; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .row h3 { font-size: 24px; }
  .row:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
  .detail-grid {
    display: grid;
    grid-template-columns: calc(88px + 0.75rem) minmax(0, 68ch);
    column-gap: 1rem;
    align-items: start;
  }
  .detail-grid > h1,
  .detail-grid > .desc,
  .detail-grid > .actions { grid-column: 2; }
  .detail-grid > .facts { grid-column: 1 / -1; }
  .detail-grid .facts div { column-gap: 1rem; }
  .detail h1 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    font-stretch: 125%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
  .actions > .button,
  .actions > .cal-menu,
  .detail .actions .cal-btn { flex: none; width: 256px; min-width: 256px; max-width: 256px; }
  .detail .actions .cal-menu { position: relative; top: auto; right: auto; opacity: 1; pointer-events: auto; }
}

@media (min-width: 1024px) {
  :root { --content: min(1360px, calc(100% - 48px)); }
  .row {
    grid-template-columns: 88px minmax(0, 1fr) 160px 200px;
    column-gap: 16px;
  }
  .detail-grid {
    grid-template-columns: calc(88px + 16px) minmax(0, 68ch);
    column-gap: 16px;
  }
  .detail-grid .facts div { column-gap: 16px; }
}

@media (min-width: 1200px) {
  .row { grid-template-columns: 88px minmax(560px, 1fr) 160px 200px; }
}

@media (min-width: 1440px) {
  .row { grid-template-columns: 88px minmax(560px, 1fr) 200px 200px; }
}

@media (min-width: 1080px) {
  .mark { font-size: 96px; }
  .mark.mark-small { font-size: 20px; }
  .place-title { font-size: 72px; }
}

@media (hover: hover) and (min-width: 641px) {
  .row:hover, .row:focus-within {
    z-index: 2;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
    background: #111111;
    color: #ffffff;
    border-bottom-color: color-mix(in srgb, #ffffff 12%, transparent);
  }
  .row:hover .tags, .row:focus-within .tags { color: #ffffff; }
  .row:hover .org, .row:focus-within .org { color: color-mix(in srgb, #ffffff 72%, transparent); }
}

@media (max-width: 640px) {
  .mast { padding: 0.55rem 0 0.15rem; }
  .descriptor { margin-top: 0.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sep { display: none; }
  .counts-line { align-items: center; }
  .counts { margin: 0; }
  .horizon { display: none; }
  .sticky-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0; padding: 0.1rem 0 0.25rem; }
  .filter-top { display: contents; }
  .vista { order: 0; margin-left: auto; }
  .counts-line { margin-top: 0.05rem; gap: 0.4rem; }
  .counts, .counts-line .vista, .counts-line .vista button { font-size: 12px; letter-spacing: 0.02em; }
  .times, .topics { gap: 20px; }
  .times {
    order: 1;
    flex: 1 0 100%;
    justify-content: flex-start;
    width: calc(100% + 8px);
    max-width: calc(100% + 8px);
  }
  .times .tab { flex: 0 0 auto; width: auto; }
  .topics-scroll { order: 2; position: relative; flex: 1 0 100%; min-width: 0; }
  .topics-scroll::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 16px;
    background: linear-gradient(90deg, transparent, var(--bg));
    pointer-events: none;
  }
  .filter-place { order: 3; flex: 1 0 100%; margin-top: 0; }
  .times, .topics {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .topics { scroll-snap-type: x mandatory; padding-inline-end: 16px; width: calc(100% + 8px); }
  .day-stamp.is-stuck { min-height: 44px; }
  .day-stamp.is-stuck .num { font-size: 24px; }
  .day-stamp.is-stuck::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
    background: linear-gradient(to bottom, var(--bg), transparent);
    pointer-events: none;
  }
  .times::-webkit-scrollbar, .topics::-webkit-scrollbar { display: none; }
  .mark a, .mark-compact {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
  }
  .vista button { min-width: 44px; }
  .tab, .tick { flex: none; white-space: nowrap; scroll-snap-align: start; }
  .filter-place { justify-content: space-between; width: 100%; }
  .filter-place .where,
  .where { width: 100%; min-width: 0; justify-content: space-between; flex-wrap: nowrap; }
  #loc-open, #more-filters { white-space: nowrap; }
  .month-long { display: none; }
  .month-short { display: inline; }
  body.filters-open .sticky-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  body.filters-open .times,
  body.filters-open .topics-scroll,
  body.filters-open .filter-place,
  body.filters-open .vista { order: 0; }
  body.filters-open .times,
  body.filters-open .topics-scroll { grid-column: 1 / -1; }
  body.filters-open .filter-place { grid-column: 1 / -1; grid-row: 3; margin-top: 0; flex: none; }
  body.filters-open .times { grid-row: 1; }
  body.filters-open .topics-scroll { grid-row: 2; }
  body.filters-open .vista { margin-left: auto; }
  .where { flex-wrap: nowrap; }
  .loc-open { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .month-grid { display: none; }
  .month-agenda { display: block; }
  .detail-grid { display: block; }
  .facts { display: block; }
  .facts div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    border-top: 0;
    padding: 0;
    margin: 0 0 16px;
  }
  .facts dt { font-size: 11px; }
  .facts dd { font-size: 16px; }
  .desc { max-width: 68ch; }
  .actions { width: 100%; }
  .detail .actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .detail .actions > .button,
  .detail .actions > .cal-menu { flex: 0 0 auto; width: 100%; }
  .detail .actions .cal-btn { width: 100%; }
  .sheet-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--sheet-top, var(--bar-h));
    bottom: auto;
    width: 100%;
    z-index: 60;
  }
  .sheet-panel::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgb(17 17 17 / 40%);
  }
  .sheet-card {
    position: relative;
    width: 100%;
    border-width: 1px 0 0;
    border-top: 1px solid var(--ink);
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .row { transition: none; }
}
