/* "Which SEPTA app is best?", /septa/apps (story #1776): the comparison table, a paragraph per
   app and the questions. Colours come from site.css. */

.apps { display: grid; gap: 48px; padding-top: 24px; }

/* Grid items grow to their widest content unless told not to, which would let the table widen
   the page on a phone instead of scrolling inside its box. */
.apps > *, .apps section > * { min-width: 0; }

.apps h2 { margin-bottom: 16px; font-size: clamp(26px, 3.5vw, 34px); }
.apps h3 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.apps p { margin: 0; }

.apps-head { display: grid; gap: 12px; max-width: 760px; }
.apps-head h1 { margin: 0; }

.apps-eyebrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.apps-lede { font-size: 20px; color: var(--ink); }
.apps-disclosure { color: var(--muted); }

.apps-short { display: grid; gap: 12px; max-width: 760px; margin: 0; padding-left: 20px; }
.apps-short li { color: var(--muted); }
.apps-short strong { color: var(--ink); }

/* The table scrolls sideways on a phone, keeping its first column in view. */
.apps-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.apps-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.4;
}

.apps-table th,
.apps-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.apps-table tbody tr:last-child th,
.apps-table tbody tr:last-child td { border-bottom: 0; }

.apps-table thead th { font-size: 14px; white-space: nowrap; }

.apps-table th[scope="row"] {
  position: sticky;
  left: 0;
  width: 160px;
  background: var(--card);
  font-weight: 700;
}

.apps-table td { color: var(--muted); }

.apps-table .us {
  background: color-mix(in srgb, var(--accent) 9%, var(--card));
  color: var(--ink);
}

/* Skipstop's column comes first, beside the feature names, so a phone shows it without
   scrolling; its logo marks it out. */
.apps-brand { display: inline-flex; align-items: center; gap: 8px; }
.apps-brand img { flex: none; border-radius: 22%; }
.apps-table thead th.us { border-top: 3px solid var(--accent); }

/* On a phone the columns get set widths, so the feature names and Skipstop's column fill the
   screen with the edge of SEPTA's showing, a hint that the rest scrolls into view. */
@media (max-width: 600px) {
  .apps-table table { table-layout: fixed; width: 902px; min-width: 0; }
  .apps-table thead th { width: 150px; white-space: normal; }
  .apps-table thead th:first-child { width: 112px; }
  .apps-table thead th.us { width: 190px; }
}

.apps .fine { margin-top: 12px; }

.apps-each { display: grid; gap: 28px; max-width: 760px; }
.apps-each h2 { margin-bottom: 0; }
.apps-each article { display: grid; gap: 8px; }
.apps-each article p { color: var(--muted); }
.apps-each article .apps-verdict { color: var(--ink); font-weight: 700; }

.apps-each article.us {
  padding: 20px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 9%, var(--card));
}

.apps-faq { display: grid; gap: 20px; max-width: 760px; }
.apps-faq h2 { margin-bottom: 0; }
.apps-faq div { display: grid; gap: 6px; }
.apps-faq h3 { font-size: 18px; }
.apps-faq p { color: var(--muted); }
