/* rows.css — the list rows (shows, artists, people), the search box and the
   next-window line. Loads after show.css, which owns the palette. */

.day + .day { margin-top: 1.6rem; }
.day-head {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  /* Quiet by colour, never by `opacity`: it is sticky, and an element at .6
     opacity lets the row scrolling under it show through (desk re-walk,
     2026-10-23). */
  color: color-mix(in srgb, var(--ink) 60%, transparent);
  font-weight: 400; margin: 0 0 .6rem; padding-bottom: .4rem;
  border-bottom: 1.5px solid color-mix(in srgb, var(--ink) 60%, transparent);
}

.rows { list-style: none; margin: 0; padding: 0; }
.row { border-bottom: 1px solid var(--hairline); }
.row:last-child { border-bottom: 0; }

.row-link {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .75rem 0; color: var(--ink); text-decoration: none; min-height: 44px;
}
.row-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.row-flyer {
  width: 54px; height: 72px; object-fit: cover; flex-shrink: 0;
  border: 1.5px solid var(--ink); background: #fff;
}
.row-flyer-blank { background: repeating-linear-gradient(45deg, transparent 0 5px, rgba(0, 0, 0, .08) 5px 10px); }
/* An artist row's picture is square, a person's is a circle (avatar-default.md). */
.row-flyer.row-avatar { height: 54px; }
.row-flyer.row-avatar.is-person { border-radius: 50%; }
.row-body { display: flex; flex-direction: column; gap: .18rem; min-width: 0; }
.row-title {
  font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .01em;
  font-size: 1.02rem; line-height: 1.2;
}
/* The bill under a host's title: body sans, one line, the rest cut. Reads as
   who is on, a step under the name and a step over the facts. */
.row-bill { font-size: .8rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { font-family: var(--mono); font-size: .72rem; opacity: .7; }
/* Terms are the quietest register on the row: information, not a score (F6). */
.row-going { opacity: .5; }

.row.is-cancelled .row-title { text-decoration: line-through; opacity: .6; }
.row.is-cancelled .row-going { color: var(--hazard); opacity: 1; }

.row-actions {
  display: flex; gap: 1rem; padding: 0 0 .75rem calc(54px + 3px + .8rem); font-family: var(--mono); font-size: .72rem;
}
.row-actions a { color: var(--ink); padding: .3rem 0; }

/* The reason the row is there. An answer, not a headline, so it takes the
   quietest style on the row and sits under it. */
.row-why {
  display: block; padding: 0 0 .75rem calc(54px + 3px + .8rem);
  font-family: var(--mono); font-size: .72rem; opacity: .7;
}
.row-why a { color: var(--ink); }



/* Desktop: the list becomes a grid, nothing stretched (N11). `main`'s own
   width is set once, in base.css's width system; this only ever touches the
   row grid and the row's own type (docs/design/desktop.md, "Home and browse"
   and "Row size"). */
@media (min-width: 700px) {
  .rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
}

/* Wide: rows go three across and grow. Order, chronology and the finite
   ending are unchanged; wider is more across, never more rows. */
@media (min-width: 1100px) {
  .rows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row-flyer { width: 72px; height: 96px; }
  .row-flyer.row-avatar { height: 72px; }
  .row-title { font-size: 1.1rem; }
  .row-bill { font-size: .88rem; }
  .row-meta { font-size: .8rem; }
  .row-actions, .row-why { padding-left: calc(72px + 3px + .8rem); }
}


/* Search: one field, the magnifier inside its right end, no text button
   (browse-controls.md section 4). The field submits on Enter, the phone
   keyboard's Search key and the magnifier, with no JS. */
.browse-search { position: relative; margin-bottom: 10px; }
.browse-search input { width: 100%; box-sizing: border-box; min-height: 44px; min-width: 0;
  padding: .55rem 48px .55rem .7rem; font: inherit; font-size: 1rem; /* 16px: under it iOS Safari zooms on tap (WebKit walk, 2026-10-27) */
  border: 1.5px solid var(--ink); border-radius: 4px; background: #fff; }
.search-go { position: absolute; top: 0; right: 0; width: 44px; height: 44px; padding: 0; margin: 0;
  border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }


/* a long day never loses its date */
.day-head { position: sticky; top: 0; background: var(--paper); padding-top: .4rem; z-index: 1; }
.row-yours { font-weight: 700; }
.next-window { font-family: var(--body); font-size: .8rem; margin: .9rem 0 0; }


/* ================= search =================
   The same row shape as a show, because it is the same kind of list: a thing
   and the one fact that tells it from another thing with the same name. */
/* The handle rides beside the name, never under it: it is half the answer to
   "which one", and a reader compares two rows across, not down. */
/* Lowercase against the row title's uppercase: a handle is a literal string a
   reader matches against a flyer or an Instagram bio, and @SUNFLOWER_NYC is not
   what is written there. */
.row-handle { font-family: var(--mono); font-size: .8rem; opacity: .75; font-weight: 400;
  text-transform: none; letter-spacing: 0; }

.next-window { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.2rem; }
.next-window a, .next-window span { padding: .4rem 0; }
.next-window a:only-child { margin-left: auto; }
.next-window a:first-child:not(:only-child) { margin-left: 0; }


.row-title .is-handle { text-transform: none; }
