/* features/trip-home/trip-home.css v1 (2026-09-27) — 내 항공편 「집 ↔ 인천공항」
   토큰은 브리핑(ticket-brief.css)과 같은 이름을 쓰되, 호스트에 없으면 아래 기본값으로 선다. */
.th-root { --th-bg: var(--surface, #fff); --th-bg2: var(--surface-2, #eef2f7); --th-bd: var(--border, #dfe6ee); --th-bds: var(--border-strong, #b9c4d3);
  --th-tx: var(--text, #0f172a); --th-tx2: var(--text2, #475569); --th-tx3: var(--text3, #6b7a90); --th-ac: var(--accent, #0284c7);
  --th-ok: var(--ok, #059669); --th-warn: var(--warn, #b45309); --th-warn-s: var(--warn-soft, rgba(217,119,6,.14));
  --th-bad: var(--bad, #b91c1c); --th-bad-s: rgba(185,28,28,.10); --th-pred: var(--pred, #6d28d9); --th-pred-s: var(--pred-soft, rgba(109,40,217,.10));
  --th-reco: var(--reco, #0e7490); --th-reco-s: var(--reco-soft, rgba(14,116,144,.10));
  --th-disp: 'Iceland', 'JetBrains Mono', Menlo, monospace; --th-sans: 'IBM Plex Sans KR', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  color: var(--th-tx); font-size: 14px; line-height: 1.55; display: grid; gap: 12px; }
.th-root .num { font-variant-numeric: tabular-nums; }
.th-card { background: var(--th-bg); border: 1px solid var(--th-bd); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; }
.th-card > h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.th-card > h3 small { font-weight: 400; font-size: 12.5px; color: var(--th-tx3); margin-left: auto; }
.th-chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 1px 8px; font-size: 11.5px; line-height: 1.5; white-space: nowrap;
  background: var(--th-bg2); color: var(--th-tx2); border: 1px solid var(--th-bd); }
.th-chip.pred { color: var(--th-pred); background: var(--th-pred-s); border-color: transparent; }
.th-chip.live { color: var(--th-ac); background: color-mix(in srgb, var(--th-ac) 12%, transparent); border-color: transparent; }
.th-chip.reco { color: var(--th-reco); background: var(--th-reco-s); border-color: transparent; font-weight: 600; }
.th-chip.bad { color: var(--th-bad); background: var(--th-bad-s); border-color: transparent; }

/* 사는 곳 */
.th-home { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--th-tx2); }
.th-home select { height: 34px; border: 1px solid var(--th-bds); background: var(--th-bg); color: var(--th-tx); border-radius: 8px; padding: 0 8px; font: 13.5px inherit; }
.th-home button { height: 34px; border: 1px solid var(--th-ac); background: var(--th-ac); color: #fff; border-radius: 8px; padding: 0 12px; font-weight: 700; font-size: 13px; cursor: pointer; }
.th-home .th-save { background: transparent; color: var(--th-ac); }
.th-home .th-hnote { flex-basis: 100%; font-size: 12px; color: var(--th-tx3); }

/* 큰 시각 */
.th-big { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; background: var(--th-bg2); border-radius: 12px; padding: 12px 14px; }
.th-t { font: 48px/1 var(--th-disp); letter-spacing: .03em; color: var(--th-ac); }
.th-t small { display: block; font-family: var(--th-sans); font-size: 12.5px; line-height: 1.4; color: var(--th-tx3); letter-spacing: 0; margin-top: 4px; }
.th-d { display: grid; gap: 4px; font-size: 13.5px; color: var(--th-tx2); }
.th-d b { color: var(--th-tx); font-size: 14.5px; }
.th-calc { display: grid; gap: 3px; font-size: 12.5px; color: var(--th-tx2); border-left: 3px solid var(--th-bds); padding-left: 10px; }
.th-calc div { display: grid; grid-template-columns: 64px 1fr; gap: 8px; }
.th-calc .num { color: var(--th-tx); font-weight: 600; }
@media (max-width: 480px) { .th-big { grid-template-columns: 1fr; } .th-t { font-size: 40px; } }

/* 수단 탭 — 고른 하나만 */
.th-modes { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.th-modes::-webkit-scrollbar { display: none; }
.th-modes button { flex: 0 0 auto; border: 1px solid var(--th-bds); background: var(--th-bg); color: var(--th-tx2); border-radius: 999px; padding: 5px 11px; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; cursor: pointer; }
.th-modes button[aria-selected="true"] { background: var(--th-ac); color: #fff; border-color: var(--th-ac); font-weight: 600; }
.th-modes button .m { font-family: var(--th-disp); font-size: 11.5px; letter-spacing: .03em; opacity: .85; }
.th-modes button.off { text-decoration: line-through; opacity: .7; }
.th-modes button.star::before { content: '★'; font-size: 10px; }

/* 선택지 */
.th-opts { display: grid; gap: 8px; }
.th-opt { border: 1px solid var(--th-bd); border-radius: 12px; padding: 10px 12px; display: grid; gap: 7px; background: var(--th-bg); }
.th-opt[hidden] { display: none; }
.th-opt.pick { border-color: var(--th-reco); box-shadow: 0 0 0 3px var(--th-reco-s); }
.th-opt.off { opacity: .65; }
.th-h { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.th-h b { font-size: 14.5px; }
.th-tot { margin-left: auto; font: 18px/1 var(--th-disp); letter-spacing: .03em; color: var(--th-tx); white-space: nowrap; }
.th-tot small { font-family: var(--th-sans); font-size: 11.5px; color: var(--th-tx3); letter-spacing: 0; margin-left: 4px; }
.th-legs { display: grid; }
.th-leg { display: grid; grid-template-columns: 74px 16px 1fr; gap: 0 8px; align-items: start; padding-bottom: 7px; position: relative; font-size: 13px; }
.th-leg:last-child { padding-bottom: 0; }
.th-w { text-align: right; font: 13.5px/1.4 var(--th-disp); letter-spacing: .03em; color: var(--th-tx); padding-top: 2px; white-space: nowrap; }
.th-dot { position: relative; height: 100%; }
.th-dot::before { content: ''; position: absolute; left: 6px; top: 13px; bottom: -7px; width: 2px; background: var(--th-bd); }
.th-leg:last-child .th-dot::before { display: none; }
.th-dot i { position: absolute; left: 1px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--th-bg); border: 3px solid var(--th-bds); }
.th-rail .th-dot i { border-color: var(--th-ac); }
.th-bus .th-dot i { border-color: var(--th-ok); }
.th-car .th-dot i { border-color: var(--th-pred); }
.th-b { color: var(--th-tx2); line-height: 1.45; }
.th-b b { color: var(--th-tx); font-weight: 600; }
.th-src { color: var(--th-tx3); font-size: 11.5px; }
.th-why { font-size: 12.5px; color: var(--th-tx3); border-top: 1px dashed var(--th-bd); padding-top: 7px; line-height: 1.5; }
.th-why b { color: var(--th-tx2); font-weight: 500; }
.th-warn { background: var(--th-warn-s); color: var(--th-warn); border-radius: 9px; padding: 7px 10px; font-size: 13px; line-height: 1.45; }
.th-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--th-tx3); }
.th-links a { display: inline-flex; align-items: center; border: 1px solid var(--th-bds); background: var(--th-bg); color: var(--th-ac); border-radius: 999px; padding: 2px 9px; font-size: 12px; text-decoration: none; white-space: nowrap; }
.th-legend { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-size: 12px; color: var(--th-tx3); border-top: 1px dashed var(--th-bd); padding-top: 8px; }
.th-empty { color: var(--th-tx3); font-size: 13.5px; padding: 6px 2px; }
.th-note { font-size: 12px; color: var(--th-tx3); }
