/* CPCF arrival board — traffic guide */
.tr-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }
.tr-mode { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border: 1px solid var(--cpcf-line); background: #fffdf7; padding: 15px 16px; cursor: pointer; text-align: left; font: inherit; color: #526055; transition: background .15s ease, border-color .15s ease; }
.tr-mode:hover { border-color: #c9a227; }
.tr-mode.is-active { background: #08291d; border-color: #08291d; color: #fff; }
.tr-mode svg { width: 28px; height: 28px; fill: #0e6b43; }
.tr-mode.is-active svg { fill: #d8b45a; }
.tr-mode b { font-family: var(--cpcf-font-display); font-size: 17px; font-weight: 400; }
.tr-mode span { color: #7d8a80; font-size: 9px; line-height: 1.5; }
.tr-mode.is-active span { color: rgba(255,255,255,.55); }
.tr-panel { display: none; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: 16px; align-items: stretch; }
.tr-panel.is-active { display: grid; }
.tr-route { border: 1px solid var(--cpcf-line); background: #fffdf7; padding: 22px 24px; }
.tr-route-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--cpcf-line); padding-bottom: 14px; margin-bottom: 6px; }
.tr-route-head span { color: #c9a227; font-size: 9px; letter-spacing: .16em; }
.tr-route-head h2 { margin: 0; font-family: var(--cpcf-font-display); font-size: 25px; }
.tr-route-head em { margin-left: auto; color: #778477; font-style: normal; font-size: 10px; }
.tr-timeline { position: relative; }
.tr-timeline::before { content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; border-left: 1px dashed #cdbf9f; }
.tr-stop { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
.tr-stop + .tr-stop { border-top: 1px solid #eee6d5; }
.tr-icon { position: relative; z-index: 1; width: 42px; height: 42px; border-radius: 50%; background: #08291d; display: flex; align-items: center; justify-content: center; }
.tr-icon svg { width: 21px; height: 21px; fill: #d8b45a; }
.tr-stop h3 { margin: 2px 0 4px; font-size: 14px; }
.tr-stop p { margin: 0; color: #68766b; font-size: 10px; line-height: 1.75; }
.tr-stop small { display: inline-block; margin-top: 6px; padding: 2px 6px; border: 1px solid #d8cbaa; color: #8b743c; font-size: 8px; }
.tr-summary { border: 1px solid #08291d; background: #08291d; color: #fff; padding: 20px; position: sticky; top: 16px; display: flex; flex-direction: column; }
.tr-summary-kicker { margin: 0 0 5px; color: #d8b45a; font-size: 9px; letter-spacing: .16em; }
.tr-summary-time { display: block; font-family: var(--cpcf-font-display); font-size: 38px; line-height: 1; color: #f7f2e7; }
.tr-summary-sub { display: block; margin-top: 4px; color: rgba(255,255,255,.5); font-size: 9px; }
.tr-summary-list { margin: 16px 0 0; border-top: 1px solid rgba(255,255,255,.15); }
.tr-summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.55); font-size: 9px; }
.tr-summary-row b { color: #f7f2e7; font-weight: 400; text-align: right; }
.tr-summary-note { margin: 15px 0 0; color: rgba(255,255,255,.55); font-size: 9px; line-height: 1.75; }
.tr-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.tr-tip { border-top: 2px solid #c9a227; background: #fffdf7; padding: 14px 16px; }
.tr-tip b { color: #c9a227; font-family: var(--cpcf-font-display); font-size: 17px; font-weight: 400; }
.tr-tip h3 { margin: 3px 0 4px; font-size: 13px; }
.tr-tip p { margin: 0; color: #6f7c70; font-size: 9px; line-height: 1.7; }
.tr-footnote { margin: 15px 0 0; color: #7b887c; font-size: 9px; line-height: 1.7; }
@media (max-width: 900px) {
    .tr-modes { grid-template-columns: 1fr 1fr; }
    .tr-panel.is-active { grid-template-columns: 1fr; }
    .tr-summary { position: static; }
    .tr-tips { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .tr-route { padding: 17px; }
    .tr-route-head h2 { font-size: 21px; }
    .tr-mode { padding: 12px; }
    .tr-summary-time { font-size: 30px; }
}
