/* A shared Pacer plan's page (TKF-827, app/pacer-plan.php). The shell — tokens,
   #nav, .crumbs, .btn, the footer — comes from tokens.css and style.css; this
   is the plan itself. The site's box, as the blog and /routes have it, so the
   page lines up with the logo. Loaded after style.css. */

.pp-main { max-width: 1100px; margin: 0 auto; padding: 112px 24px 64px; }
.pp-main h1 { font-size: var(--fs-xxl); line-height: 1.2; font-weight: 700; color: var(--txt-hi, var(--txt));
  margin: 0 0 10px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.pp-main h2 { font-size: var(--fs-lg); line-height: 1.3; color: var(--txt-hi, var(--txt)); margin: 40px 0 14px; }
.pp-eyebrow { margin: 0 0 6px; color: var(--amber-ink); font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; }
.pp-lede { color: var(--dim); font-size: var(--fs-md); line-height: 1.55; margin: 0 0 22px; max-width: 720px; }
.pp-lede a { color: var(--amber-ink); text-decoration: underline; text-underline-offset: 2px; }
.pp-dim { color: var(--dim); }

/* What the plan was made with, as label: value pairs. */
.pp-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 26px; }
.pp-facts div { min-width: 0; }
.pp-facts dt { color: var(--dim2); font-size: var(--fs-xs); margin: 0 0 2px; }
.pp-facts dd { margin: 0; color: var(--txt); font-size: var(--fs-sm); }

/* Start, finish, riding, stopped, total. The finish is the one a reader came for. */
.pp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 8px; }
.pp-tile { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1px solid var(--bdr);
  border-radius: 10px; background: var(--bg1); min-width: 0; }
.pp-tile .l { color: var(--dim); font-size: var(--fs-xs); }
.pp-tile .v { font-family: var(--font-data); font-size: var(--fs-lg); color: var(--txt-hi, var(--txt)); font-weight: 600; }
.pp-tile .s { color: var(--dim); font-size: var(--fs-xs); line-height: 1.4; }
.pp-tile-hero { border-color: var(--amber); }
.pp-tile-hero .v { color: var(--amber-ink); }

/* The clock. Wide, so it scrolls sideways inside its box on a phone and the
   page itself never does. */
.pp-scroll { overflow-x: auto; border: 1px solid var(--bdr); border-radius: 10px; background: var(--bg1); }
.pp-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.pp-table th { text-align: left; font-weight: 600; color: var(--dim); font-size: var(--fs-xs); padding: 10px 12px;
  border-bottom: 1px solid var(--bdr); white-space: nowrap; }
.pp-table td { padding: 9px 12px; border-bottom: 1px solid var(--bg2); vertical-align: baseline; }
.pp-table tbody tr:last-child td { border-bottom: 0; }
.pp-table .num { text-align: right; font-family: var(--font-data); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pp-table .pp-n { color: var(--dim2); font-family: var(--font-data); width: 1%; }
.pp-table tr.pp-end td { background: var(--bg2); }
.pp-table td b { color: var(--txt-hi, var(--txt)); }
/* Time in hand: an hour is about one control's worth of stop (marginTone()). */
.pp-table b.pp-clear { color: var(--green); }
.pp-table b.pp-limit { color: var(--amber-ink); }
.pp-table b.pp-short { color: var(--red); }

.pp-map { position: relative; height: 420px; border: 1px solid var(--bdr); border-radius: 10px; overflow: hidden; background: var(--bg1); }
.pp-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pp-fine { margin: 18px 0 0; color: var(--dim); font-size: var(--fs-sm); line-height: 1.55; max-width: 760px; }
.pp-fine p { margin: 0 0 8px; }

.pp-cta { margin: 44px 0 0; padding: 22px 24px; border: 1px solid var(--bdr); border-radius: 10px; background: var(--bg1);
  display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pp-cta p { margin: 0; flex: 1 1 320px; color: var(--dim); line-height: 1.55; }
.pp-cta strong { color: var(--txt); }

@media (max-width: 640px) {
  .pp-main { padding: 96px 16px 48px; }
  .pp-main h1 { font-size: var(--fs-xl); }
  /* Start and finish a row each, the three durations sharing the next. */
  .pp-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pp-tile:first-child, .pp-tile-hero { grid-column: 1 / -1; }
  .pp-tile .v { font-size: var(--fs-md); }
  .pp-map { height: 320px; }
}

/* The catalog (TKF-840, app/pacer-index.php): a section per route, and the
   same table of plans a plan page shows under "Other plans for this route". */
.pp-count { margin: 0 0 8px; font-size: var(--fs-sm); }
.pp-group { margin: 0 0 8px; }
.pp-group h2 { margin-bottom: 4px; }
.pp-group h2 a { color: inherit; text-decoration: none; }
.pp-group h2 a:hover { color: var(--amber-ink); }
.pp-group-meta { margin: 0 0 12px; color: var(--dim); font-size: var(--fs-sm); }
.pp-plans td a { color: var(--txt-hi, var(--txt)); font-weight: 600; text-decoration: none; }
.pp-plans td a:hover { color: var(--amber-ink); text-decoration: underline; }
.pp-empty { padding: 28px 24px; border: 1px dashed var(--bdr); border-radius: 10px; color: var(--dim); }
.pp-empty p { margin: 0; }

/* The tour catalog (TKF-841, app/stages-index.php): a card per tour, its map
   on top, as the route catalog's cards have it. */
.tc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0 0 8px; }
.tc-card { display: flex; flex-direction: column; border: 1px solid var(--bdr); border-radius: 10px; overflow: hidden;
  background: var(--bg1); color: inherit; text-decoration: none; min-width: 0; }
.tc-card:hover { border-color: var(--amber); }
.tc-thumb { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; background: var(--bg2); }
.tc-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; min-width: 0; }
.tc-by { color: var(--amber-ink); font-size: var(--fs-micro); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tc-title { color: var(--txt-hi, var(--txt)); font-weight: 600; font-size: var(--fs-base); line-height: 1.3; overflow-wrap: anywhere; }
.tc-meta { color: var(--dim); font-size: var(--fs-sm); font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.tc-desc { color: var(--dim); font-size: var(--fs-sm); line-height: 1.45; }
