/* Service-only styles (tokens only; see DESIGN.md). Shell.tsx imports this after ds.css on every page; the Worker-rendered pages load the same file as /hub.css. */

/* ---------- Lists: one row per place or animal (no photos in phase 1) ---------- */
.pcs { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; gap: 0; }
.pc { display: flex; align-items: center; gap: var(--s3); border-bottom: 1px solid var(--rule); padding: var(--s3) 0; min-width: 0; }
.pc:last-child { border-bottom: 0; }
.pc-a { display: flex; align-items: center; gap: var(--s3); flex: 1 1 auto; min-width: 0; color: var(--ink); text-decoration: none; min-height: 4.5rem; }
a.pc-a:active { background: var(--fill); }
.pc a { display: flex; align-items: center; gap: var(--s3); min-width: 0; flex: 1 1 auto; color: var(--ink); text-decoration: none; min-height: 4.5rem; }
.pc-img { flex: none; width: 4.5rem; height: 4.5rem; border-radius: var(--r1); background: var(--fill); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pc-img img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pc-b { display: flex; flex-direction: column; gap: .125rem; min-width: 0; flex: 1 1 auto; }
.pc-t { font-weight: 700; font-size: var(--t-body); line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
.pc-m { color: var(--text-2); font-size: var(--t-cap); line-height: 1.5; }
.pc-act { flex: none; display: flex; flex-direction: column; gap: var(--s2); align-items: stretch; }
.pc-act .btn { min-height: 2.75rem; padding: 0 var(--s3); white-space: nowrap; }
.pc-date { color: var(--text-2); font-size: var(--t-cap); text-align: right; }
.badge.on { background: var(--accent); color: var(--on-accent); }
.badge.end { background: var(--fill); color: var(--text-2); }
.stops { padding-left: 0; list-style: none; display: grid; gap: var(--s4); margin: 0 0 var(--s4); }
.stops p { margin: var(--s1) 0 0; color: var(--text-2); font-size: var(--t-sm); }
.pager { display: flex; align-items: center; justify-content: center; gap: var(--s5); margin: var(--s4) 0; }
.pager a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--s3); font-weight: 700; }
.count { color: var(--text-2); font-size: var(--t-cap); margin: var(--s3) 0 0; }

/* ---------- Home ---------- */
.home-new .wk-v { margin: 0 0 var(--s3); font-size: var(--t-lg); font-weight: 800; letter-spacing: -.02em; line-height: 1.45; word-break: keep-all; }
.my-region { margin: 0 0 var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r2); background: var(--accent-weak); font-weight: 700; word-break: keep-all; }
.picker-wrap { margin: var(--s3) 0 0; }
.picker { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--s4); border: 1px solid var(--rule); border-radius: 999px; font-weight: 700; font-size: var(--t-sm); color: var(--ink); text-decoration: none; background: var(--paper); }
.quick-chips { list-style: none; padding: 0; margin: 0 0 var(--s4); display: flex; flex-wrap: wrap; gap: var(--s2); }
.quick-chip { display: inline-flex; align-items: center; gap: var(--s1); min-height: 2.75rem; padding: 0 var(--s4); border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: var(--t-sm); font-weight: 600; text-decoration: none; }
.chip-n { color: var(--text-3); font-weight: 600; font-size: var(--t-cap); }
.doors li { align-items: center; }
.doors .k { font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.search-row { display: flex; gap: var(--s2); align-items: stretch; margin: var(--s3) 0; }
.search-row input { flex: 1 1 auto; min-width: 0; }
.search-row .btn { flex: none; }
.pa { display: grid; gap: var(--s3); }
.pa h3 { margin: var(--s3) 0 0; }
.pa .list li { align-items: center; }
.pa .quick-chips { list-style: none; padding: 0; margin: 0; }
.linklike { border: 0; background: transparent; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-align: left; text-decoration: underline; text-underline-offset: .2em; min-height: 2.75rem; cursor: pointer; }
.sheet { position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, var(--ink) 45%, transparent); display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-panel { width: 100%; max-width: 34rem; max-height: 85dvh; overflow-y: auto; background: var(--surface); color: var(--ink); border-radius: 1.25rem 1.25rem 0 0; padding: var(--s4) var(--s4) calc(var(--s4) + env(safe-area-inset-bottom)); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--rule); margin-bottom: var(--s3); }
.sheet-x { min-height: 2.75rem; padding: 0 var(--s3); border: 0; background: transparent; font-weight: 700; color: var(--text-2); }
@media (min-width: 48rem) { .sheet { align-items: center; } .sheet-panel { border-radius: 1.25rem; } }

/* ---------- Trip editor ---------- */
.trip-day { margin: var(--s5) 0; padding-top: var(--s4); border-top: 1px solid var(--rule); }
.trip-day h3 { margin-top: 0; }
.stops-ed { list-style: none; margin: 0 0 var(--s3); padding: 0; }
.stop { border-bottom: 1px solid var(--rule); padding-bottom: var(--s3); }
.stop .pc { border-bottom: 0; padding-bottom: 0; }
.stop-act { margin: 0 0 var(--s2); gap: var(--s2); }
.stop-act .btn { min-height: 2.75rem; }
.trips li { align-items: center; }
.trips .k a, .trips a.k { font-weight: 700; }
.btn.danger { background: var(--err); color: var(--paper); border-color: var(--err); }

/* ---------- Costs and pets ---------- */
.month-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin: 0 0 var(--s3); }
.month-nav .btn { min-width: 2.75rem; }
.bars { margin: var(--s5) 0 0; display: grid; gap: var(--s2); }
.bar-row { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; align-items: center; gap: var(--s3); font-size: var(--t-cap); }
.bar-t { display: block; height: .75rem; border-radius: 999px; background: var(--fill); overflow: hidden; }
.bar-t i { display: block; height: 100%; background: var(--accent); border-radius: 999px; min-width: 0; }
.bar-v { color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; }
.pets li, .costs li { align-items: center; }

@media (max-width: 47.99rem) {
  .pc { align-items: flex-start; flex-wrap: wrap; }
  .pc-act { flex-direction: row; width: 100%; padding-left: calc(4rem + var(--s3)); }
  .pc-act .btn { flex: 0 1 auto; }
  .pc-img { width: 4rem; height: 4rem; }
  .pc-a, .pc a { min-height: 4rem; }
  .search-row { flex-direction: row; }
  .stop-act .btn { flex: 1 1 calc(50% - var(--s2)); }
}
