/* Verified desktop/mobile day-summary grouping, v37. */
body[data-unified-candidate] .td-day-overview{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px 18px!important}
.td-day-overview>li{display:flex!important;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.td-day-overview>li>.td-unit{font-size:.78em;font-weight:650;letter-spacing:.02em;color:var(--td-sub,#62576b)}
.td-day-overview .td-day-name{display:block;word-break:keep-all;overflow-wrap:normal;line-height:1.65}

/* Booking sequence: row-major 01→03, 04→06; mobile retains vertical order. */
@media(min-width:900px){
#td-p12-s3 .td-copy{max-width:none;width:100%}
#td-p12-s3 .td-process{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px 30px!important;max-width:none;width:100%}
#td-p12-s3 .td-process>li{margin:0!important;min-width:0;align-items:start;padding:18px 16px!important;background:rgba(255,255,255,.65);border-radius:14px}
#td-p12-s3 .td-process-copy{min-width:0}
#td-p12-s3 .td-process-copy p{max-width:none}
}

.td-entry-product-group .td-entry-policy{display:flex!important;align-items:center;justify-content:space-between;gap:12px;text-decoration:none!important;padding:12px 16px!important;min-height:44px;line-height:1.6}
.td-entry-product-group .td-entry-policy svg{flex:0 0 18px}

/* Established care symbols, matching each last-day activity. */
.td-route-stop .td-trip-activity{width:28px!important;height:28px!important;flex:none}

.td-care-unit{white-space:nowrap}

/* Consistent separation between complete-trip days, regardless of adjacent anchors. */
body[data-page="3n5d"] .td-day,body[data-page="4n6d"] .td-day{margin-top:32px!important;margin-bottom:0!important}

/* Equalize facts and action baselines across each paired tour card. */
@media(min-width:801px){
body[data-unified-candidate] .td-tour-option>.td-wrap{height:100%}
body[data-unified-candidate] .td-tour-option .td-copy{display:flex;flex-direction:column;flex:1}
body[data-unified-candidate] .td-tour-option .td-fact{margin-top:auto!important;padding-top:24px}
body[data-unified-candidate] .td-tour-option .td-actions{margin-top:24px!important}
}

/* Booking payment fact labels and values share their first text baseline. */
#td-p12-s4 .td-fact{align-items:start}
#td-p12-s4 .td-fact>h3,#td-p12-s4 .td-fact>p{margin-top:0!important}

/* Match desktop policy hierarchy to the one-day-tour policy sections. */
@media(min-width:801px){
body[data-page="3n5d"] .td-policy h2,body[data-page="4n6d"] .td-policy h2{font-size:25px!important;line-height:1.4!important}
body[data-page="3n5d"] .td-policy h3,body[data-page="4n6d"] .td-policy h3{font-size:17px!important;line-height:1.5!important}
}

/* All fact label/value pairs share a first-line baseline. */
.td-fact{align-items:start!important}
.td-fact>h3,.td-fact>p,.td-fact>.td-fact-body,.td-fact>.td-fact-body>p:first-child{margin-top:0!important}
