/* Post block: setup route (inc/post-blocks/route.php, SEO-DEV-211). The post's
   button and prose rules skip blocks, so plain selectors hold (DEV-W243). */
.tc-pb-route {
	--rt-pad: 20px;
	--rt-warn: #735A17; /* small gold text needs the deeper gold (4.5+ on the soft tint) */
	margin: 1.5em 0; padding: var(--rt-pad); box-sizing: border-box; min-width: 0; max-width: 100%;
	background: var(--paper-soft); border: 1px solid var(--rule); border-radius: var(--radius-lg);
	color: var(--ink); font-family: var(--sans);
}
:root[data-theme="dark"] .tc-pb-route { --rt-warn: var(--gold); }
.tc-pb-route__q { margin: 0 0 8px; font-weight: 600; font-size: 17px; }
.tc-pb-route__opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.tc-pb-route__opts[hidden] { display: none; }
.tc-pb-route__opt {
	flex: 0 0 auto; min-height: 44px; padding: 8px 14px; box-sizing: border-box;
	border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink);
	font: 400 15px/1.2 var(--sans); white-space: nowrap; cursor: pointer;
	transition: background var(--dur-fast), border-color var(--dur-fast); -webkit-tap-highlight-color: transparent;
}
.tc-pb-route__opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tc-pb-route__opt:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* JS off: every route stacked under its own heading. */
.tc-pb-route__r { border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 16px; }
.tc-pb-route__r:first-child { margin-top: 0; }
.tc-pb-route__h { font: 400 20px/1.25 var(--serif); margin: 0 0 8px; }
/* JS on: one route, its name already on the pressed button. */
.tc-pb-route.is-live .tc-pb-route__r { margin-top: 0; }
.tc-pb-route.is-live .tc-pb-route__r[hidden] { display: none; }
.tc-pb-route.is-live .tc-pb-route__h {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.tc-pb-route__auto { margin: -4px 0 12px; font-size: 13px; color: var(--ink-muted); }
.tc-pb-route__auto[hidden] { display: none; }

.tc-pb-route__tag { display: inline-block; font-size: 13px; line-height: 1; padding: 6px 10px; border-radius: var(--radius-sm); white-space: nowrap; }
.tc-pb-route__tag.is-ok { background: var(--ship-soft); color: var(--ship); }
.tc-pb-route__tag.is-step { background: var(--gold-soft); color: var(--rt-warn); }
.tc-pb-route__v { font: 400 24px/1.25 var(--serif); margin: 10px 0 4px; color: var(--ink); }
.tc-pb-route__m { font-size: 14px; color: var(--ink-muted); margin: 0 0 16px; }

.tc-pb-route__path {
	display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
	align-items: stretch; margin: 0 0 14px;
}
.tc-pb-route__n {
	display: flex; flex-direction: column; justify-content: center; min-height: 66px; box-sizing: border-box;
	border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper);
	padding: 10px 6px; font-size: 14px; line-height: 1.25; text-align: center; overflow-wrap: anywhere;
}
.tc-pb-route__n small { display: block; font-size: 12px; color: var(--ink-muted); margin-top: 3px; }
.tc-pb-route__n.is-once { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 45%, var(--gold-soft)); }
.tc-pb-route__n.is-you { border: 2px solid var(--ink); }
.tc-pb-route__path i { position: relative; align-self: center; height: 2px; background: var(--rule); }
.tc-pb-route__path i::after {
	content: ""; position: absolute; right: -2px; top: -4px;
	border: 5px solid transparent; border-left: 6px solid var(--rule); border-right: 0;
}

.tc-pb-route__steps { list-style: none; margin: 0; padding: 0; counter-reset: tcrs; }
.tc-pb-route__steps li {
	display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start;
	margin: 0; padding: 11px 0; border-bottom: 1px solid var(--rule-soft); font-size: 16px; line-height: 1.5;
}
.tc-pb-route__steps li:last-child { border-bottom: 0; }
.tc-pb-route__steps li::before {
	counter-increment: tcrs; content: counter(tcrs); display: grid; place-items: center;
	width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--ink); color: var(--paper); font-size: 14px;
}
.tc-pb-route__steps li.is-alt::before {
	content: "or"; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); box-sizing: border-box; font-size: 12px;
}
.tc-pb-route__why { font-size: 14px; line-height: 1.5; color: var(--ink-muted); background: var(--paper); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0 0; }

.tc-pb-route__foot {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
	margin-top: 16px; border-top: 1px solid var(--rule); padding-top: 14px;
}
.tc-pb-route__small { flex: 1 1 260px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.tc-pb-route__small a { color: var(--ink); }
.tc-pb-route__cta {
	display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; box-sizing: border-box;
	border: 1px solid var(--rule); border-radius: var(--radius); background: transparent; color: var(--ink);
	font: 400 15px/1.2 var(--sans); text-decoration: none;
	transition: background var(--dur-fast), border-color var(--dur-fast);
}
.tc-pb-route__cta:hover { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.tc-pb-route__cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

@media (min-width: 700px) {
	.tc-pb-route__v { font-size: 28px; }
	.tc-pb-route__path { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr); }
	.tc-pb-route__n { font-size: 15px; }
}
@media (max-width: 600px) {
	.tc-pb-route { --rt-pad: 14px; padding: 16px var(--rt-pad); }
	.tc-pb-route__opts {
		flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
		margin: 0 calc(-1 * var(--rt-pad)) 12px; padding: 0 var(--rt-pad); scroll-snap-type: x proximity;
		scroll-padding-inline: var(--rt-pad); /* = side padding, or the snap parks button 1 flush to the card edge (DEV-W372) */
		-webkit-mask: linear-gradient(90deg, transparent 0, #000 var(--rt-pad), #000 calc(100% - 28px), transparent);
		mask: linear-gradient(90deg, transparent 0, #000 var(--rt-pad), #000 calc(100% - 28px), transparent);
	}
	.tc-pb-route__opts::-webkit-scrollbar { display: none; }
	.tc-pb-route__opt { scroll-snap-align: start; }
}
@media print {
	.tc-pb-route__opts, .tc-pb-route__auto { display: none !important; }
	.tc-pb-route .tc-pb-route__r[hidden] { display: block; }
}
