/* Homepage (/). Loaded after site.css. Phone first. */
.counter { padding: .9rem 0 .4rem; }
.sets { margin: 0 0 .7rem; }
.sets summary { list-style: none; display: flex; align-items: baseline; gap: .6rem; cursor: pointer; }
.sets summary::-webkit-details-marker { display: none; }
.sets .cur { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.sets .chg { font-size: .8rem; font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: 2rem; padding: .05rem .6rem; }
.sets[open] .chg { background: var(--accent); color: #fff; }
.sets nav { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.sets nav a { text-decoration: none; font-size: .88rem; font-weight: 600; padding: .3rem .8rem; border-radius: 2rem;
  border: 1px solid var(--axis); color: var(--ink2); background: var(--surface); }
.sets nav a:hover { color: var(--ink); border-color: var(--ink2); }
.bigs { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: .5rem 1rem; align-items: end; margin: 0 0 .6rem; }
.big { display: flex; flex-direction: column; min-width: 0; }
.big .n { font-size: clamp(2.6rem, 12.5vw, 8rem); font-weight: 800; line-height: 1; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums; }
.big.bad .n { color: var(--bad-text); }
.big .l { font-size: .95rem; font-weight: 600; color: var(--ink2); margin-top: .2rem; }
.counter .facts { margin: 0 0 .4rem; font-size: .88rem; color: var(--ink2); }
.counter .facts b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.counter .facts .sep { color: var(--axis); margin: 0 .15rem; }
/* the counters line by line: badge, minutes, cancellations, on-time share, and under them a bar
   in the line's colour (its minutes against the worst line's). The whole row is the link. */
.bylines { max-width: 34rem; margin: .8rem 0 .9rem; }
.bylines .eyebrow { margin-bottom: .25rem; }
.bylines a { display: grid; grid-template-columns: 3.9rem 6rem minmax(0, 1fr) auto; align-items: baseline; row-gap: .3rem;
  padding: .45rem 0 0; text-decoration: none; color: var(--ink2); font-size: .9rem; font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent; }
.bylines a:active { background: var(--accent-soft); }
@media (hover: hover) { .bylines a:hover { background: var(--surface); } }
.bylines .min { text-align: right; white-space: nowrap; }
.bylines .min b { font-size: 1.1rem; }
.bylines .canc { padding-left: 1.1rem; }
.bylines .canc, .bylines .otp { white-space: nowrap; }
@media (max-width: 420px) { .bylines a { grid-template-columns: 3.7rem 5.6rem minmax(0, 1fr) auto; font-size: .8rem; }
  .bylines .canc { padding-left: .5rem; } .bylines .otp { padding-left: .5rem; } }
.bylines .min b, .bylines .canc b { color: var(--ink); }
.bylines .bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--hair); }
.bylines .bar i { display: block; height: 100%; min-width: 3px; border-radius: 2px; }
/* how much of the counters fell during each incident: one link per incident */
.byinc { max-width: 34rem; margin: .8rem 0 .9rem; }
.byinc .eyebrow { margin-bottom: .25rem; }
.byinc a { display: block; padding: .45rem .3rem; border-top: 1px solid var(--hair); color: inherit; text-decoration: none; font-size: .9rem; }
.byinc a:active { background: var(--accent-soft); }
@media (hover: hover) { .byinc a:hover { background: var(--surface); } }
.byinc .nm, .byinc .nums { display: block; }
.byinc .nums { color: var(--ink2); margin: .1rem 0 .3rem; } .byinc .nums b { color: var(--ink); }
.byinc .bar { display: block; height: 4px; border-radius: 2px; background: var(--hair); }
.byinc .bar i { display: block; height: 100%; min-width: 3px; border-radius: 2px; background: var(--bad-text); }
.defn { font-size: .85rem; color: var(--ink2); max-width: 44rem; }
.defn summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.defn p { margin: .3rem 0 0; }
@media (min-width: 640px) {
  .counter { padding-top: 1.4rem; }
  .sets .cur { font-size: 1.5rem; }
  .bigs { grid-template-columns: repeat(2, minmax(0, max-content)); gap: 1rem 3.5rem; }
  .big .l { font-size: 1.15rem; }
  .counter .facts { font-size: 1rem; }
}

.worst .head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; margin-top: 1.8rem; }
.worst h2 { margin: 0; font-size: 1.3rem; }
/* the list's window: the commute week (default) or today alone — the site's segmented control */
.worst .scope { display: flex; gap: .3rem; }
.worst .scope .seg { text-decoration: none; color: var(--ink2); padding: .15rem .7rem; border: 1px solid var(--hair); border-radius: 999px; font-size: .82rem; }
.worst .scope .seg.on { background: var(--accent); color: #fff; border-color: transparent; font-weight: 600; }
.worst .sub { font-size: .92rem; margin-bottom: .4rem; }
.runs { list-style: none; margin: .3rem 0 0; padding: 0; counter-reset: rank; border-top: 1px solid var(--hair); }
.runs li { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr); padding: .55rem 0; border-bottom: 1px solid var(--hair); counter-increment: rank; }
.runs li::before { content: counter(rank); grid-row: 1 / span 3; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: .15rem; }
.runs.plain li::before { content: ""; }
.runs.plain li { grid-template-columns: 0 minmax(0, 1fr); }
.runs .r1 { display: flex; align-items: baseline; gap: .8rem; }
.runs .r1 a.train { flex: 1 1 auto; min-width: 0; font-size: 1rem; }
.runs .lbl { font-size: .9rem; color: var(--ink2); }
.counter .share-row { margin: .5rem 0 .7rem; }
.runs .r1 .delay { flex: 0 0 auto; margin-left: auto; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1;
  font-variant-numeric: tabular-nums; }
.runs .r1 .delay small { font-size: .55em; font-weight: 600; margin-left: .15rem; letter-spacing: 0; }
.runs .r1 .delay.bad { color: var(--bad-text); } .runs .r1 .delay.warn { color: var(--warn-text); }
.runs .r1 .chip { margin-left: auto; flex: 0 0 auto; }
.runs .r2 { margin-top: .1rem; }
/* a long note ("reached Newark Broad Street +1 h 27 min, cancelled there") wraps inside its chip
   rather than widening the page on a narrow phone */
/* a chip can wrap to a line of its own ("never arrived" over "ended at Secaucus Junction"):
   vertical margin keeps stacked chips off each other */
.runs .r2 .chip { white-space: normal; max-width: 100%; margin: .12rem 0; }
.runs .r2 a { color: inherit; text-decoration: none; }
.runs .r2 a:hover { color: var(--ink); }
.more { margin-top: .8rem; }
.more summary { cursor: pointer; font-weight: 600; color: var(--accent); }

/* the rider's own commute, above the system counters (2026-10-07) */
.mine { margin: .9rem 0 1.2rem; padding: .8rem 1rem .6rem; background: var(--surface); border: 1px solid var(--hair); border-radius: .6rem; max-width: 34rem; }
.mine .head { display: flex; justify-content: space-between; align-items: baseline; }
.mine .head .eyebrow { margin: 0; }
.mine .head a { font-size: .85rem; font-weight: 600; }
.mine h2 { margin: .15rem 0 .4rem; font-size: 1.2rem; }
.mine .next { list-style: none; margin: 0; padding: 0; }
.mine .next li { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-top: 1px solid var(--hair); }
.mine .next a.train { flex: 1 1 auto; min-width: 0; color: inherit; }
.mine .next .t { display: inline-block; min-width: 4.6rem; font-variant-numeric: tabular-nums; }
.mine .next .st { flex: 0 0 auto; text-align: right; display: flex; align-items: center; gap: .4rem; }
.mine .mynums { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .9rem; margin: .5rem 0 0; padding-top: .55rem; border-top: 1px solid var(--hair); font-size: .92rem; color: var(--ink2); }
.mine .mynums .eyebrow { flex-basis: 100%; margin: 0; }
.mine .mynums b { color: var(--ink); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.mine .mynums b.bad { color: var(--bad-text); }
.allriders { margin: 1.4rem 0 -.3rem; }
.mynudge { margin: 1.2rem 0 0; font-weight: 600; }
