/* ttdl/build-my-day — quiz screen, result screen (plan list + sidebar),
   thin/zero state, and the optional Print/Copy enhancement. No step or
   background photography is used anywhere (no real photography exists
   yet for this feature) -- both screens are deliberately text-led rather
   than simulating imagery that doesn't exist. Responsive layout collapses
   to a single column at 900px (result two-column layout) and 600px
   (option grid, nav row). The Print/Copy button row only exists in the
   DOM once view.js has fully succeeded (it's script-created, never
   pre-rendered) -- the plain-link share fallback next to it is never
   hidden by CSS in any state, so a working share link is always visible
   regardless of JS/Clipboard support or a runtime copy failure. A final
   @media print block hides every interactive/promotional element and
   keeps only the plan itself printable. */

.ttdl-build-my-day .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.ttdl-build-my-day {
	margin-bottom: 64px;
}

.ttdl-build-my-day__intro {
	font-size: var(--wp--preset--font-size--body-l);
	line-height: 1.65;
	color: var(--wp--preset--color--text-secondary);
	max-width: 640px;
	margin-bottom: 40px;
}

.ttdl-build-my-day__intro p {
	margin: 0 0 16px;
}

.ttdl-build-my-day__intro p:last-child {
	margin-bottom: 0;
}

.ttdl-build-my-day__eyebrow {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: var(--wp--custom--tracking--label);
	text-transform: uppercase;
	color: var(--wp--preset--color--text-secondary);
	margin: 0 0 20px;
}

/* Quiz screen */

.ttdl-build-my-day__quiz {
	max-width: 640px;
}

.ttdl-build-my-day__progress {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0 0 34px;
	padding: 0;
	max-width: 340px;
}

.ttdl-build-my-day__progress-bar {
	height: 3px;
	flex: 1;
	min-width: 30px;
	background: var(--wp--preset--color--border-subtle);
}

.ttdl-build-my-day__progress-bar--filled {
	background: var(--wp--preset--color--gold-500);
}

.ttdl-build-my-day__question {
	font-family: var(--wp--preset--font-family--serif-display);
	font-size: var(--wp--preset--font-size--hero-l);
	line-height: 1.05;
	margin: 0 0 12px;
	text-wrap: pretty;
}

.ttdl-build-my-day__hint {
	font-size: 17px;
	line-height: 1.6;
	color: var(--wp--preset--color--text-secondary);
	margin: 0 0 32px;
	max-width: 46ch;
}

.ttdl-build-my-day__options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
}

.ttdl-build-my-day__option {
	display: block;
	text-align: left;
	padding: 18px 20px;
	border-radius: var(--wp--preset--border-radius--s);
	border: 1px solid var(--wp--preset--color--border-strong);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy-800);
	text-decoration: none;
	transition: background var(--wp--custom--duration--fast) var(--wp--custom--ease--standard),
		color var(--wp--custom--duration--fast) var(--wp--custom--ease--standard);
}

.ttdl-build-my-day__option:hover {
	border-color: var(--wp--preset--color--navy-800);
}

.ttdl-build-my-day__option--selected {
	background: var(--wp--preset--color--navy-800);
	border-color: var(--wp--preset--color--navy-800);
	color: var(--wp--preset--color--ivory-050);
}

.ttdl-build-my-day__option-label {
	display: block;
	font-family: var(--wp--preset--font-family--serif-display);
	font-size: 22px;
	margin-bottom: 4px;
}

.ttdl-build-my-day__option-hint {
	display: block;
	font-size: 13.5px;
	line-height: 1.45;
	opacity: 0.72;
}

.ttdl-build-my-day__nav {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 32px;
}

.ttdl-build-my-day__back,
.ttdl-build-my-day__skip {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--wide);
	text-transform: uppercase;
	color: var(--wp--preset--color--text-muted);
	text-decoration: none;
}

.ttdl-build-my-day__back--disabled {
	opacity: 0.35;
}

.ttdl-build-my-day__answers-so-far {
	padding-top: 22px;
	border-top: 1px solid var(--wp--preset--color--border-subtle);
	margin-bottom: 24px;
}

.ttdl-build-my-day__answers-so-far-label {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: var(--wp--custom--tracking--label);
	text-transform: uppercase;
	color: var(--wp--preset--color--text-muted);
	margin: 0 0 10px;
}

.ttdl-build-my-day__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ttdl-build-my-day__chip {
	display: inline-block;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 12.5px;
	font-weight: 700;
	color: var(--wp--preset--color--navy-800);
	background: var(--wp--preset--color--cream-100);
	border: 1px solid transparent;
	padding: 7px 13px;
	border-radius: var(--wp--preset--border-radius--s);
	text-decoration: none;
}

.ttdl-build-my-day__matching {
	font-size: 15px;
	line-height: 1.6;
	color: var(--wp--preset--color--text-secondary);
	margin: 0;
}

/* Result screen */

.ttdl-build-my-day__result-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 26px;
}

.ttdl-build-my-day__plan-title {
	font-family: var(--wp--preset--font-family--serif-display);
	font-size: var(--wp--preset--font-size--hero-xl);
	line-height: 1.04;
	margin: 0 0 14px;
	text-wrap: pretty;
}

.ttdl-build-my-day__plan-summary {
	font-size: 18px;
	line-height: 1.6;
	color: var(--wp--preset--color--text-secondary);
	margin: 0;
	max-width: 60ch;
}

.ttdl-build-my-day__result-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.ttdl-build-my-day__shuffle,
.ttdl-build-my-day__restart {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--wide);
	text-transform: uppercase;
	padding: 13px 20px;
	border-radius: var(--wp--preset--border-radius--m);
	white-space: nowrap;
	text-decoration: none;
}

.ttdl-build-my-day__shuffle {
	background: transparent;
	color: var(--wp--preset--color--navy-800);
	border: 1px solid var(--wp--preset--color--border-strong);
}

.ttdl-build-my-day__restart {
	background: var(--wp--preset--color--navy-800);
	color: var(--wp--preset--color--ivory-050);
	border: none;
}

.ttdl-build-my-day__based-on {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0 0 26px;
}

.ttdl-build-my-day__based-on-label {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: var(--wp--custom--tracking--label);
	text-transform: uppercase;
	color: var(--wp--preset--color--text-muted);
	margin-right: 4px;
}

/* Thin/zero-match band */

.ttdl-build-my-day__thin {
	border: 1px solid var(--wp--preset--color--border-subtle);
	background: var(--wp--preset--color--cream-100);
	padding: 24px 26px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 26px;
}

.ttdl-build-my-day__thin-text {
	max-width: 62ch;
}

.ttdl-build-my-day__thin-heading {
	font-family: var(--wp--preset--font-family--serif-display);
	font-size: 24px;
	margin: 0 0 6px;
}

.ttdl-build-my-day__thin-body {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--wp--preset--color--text-secondary);
}

.ttdl-build-my-day__relax {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--wide);
	text-transform: uppercase;
	padding: 13px 20px;
	border-radius: var(--wp--preset--border-radius--m);
	background: var(--wp--preset--color--navy-800);
	color: var(--wp--preset--color--ivory-050);
	white-space: nowrap;
	text-decoration: none;
}

/* Layout: plan list + sidebar */

.ttdl-build-my-day__layout {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 52px;
	align-items: start;
}

.ttdl-build-my-day__stop {
	display: grid;
	grid-template-columns: 90px 1fr;
	gap: 22px;
	padding: 0 0 32px;
}

.ttdl-build-my-day__stop-number-col {
	line-height: 0.9;
}

.ttdl-build-my-day__stop-number {
	display: block;
	font-family: var(--wp--preset--font-family--serif-display);
	font-size: 52px;
	line-height: 0.9;
	color: var(--wp--preset--color--border-strong);
}

.ttdl-build-my-day__stop-sequence-label {
	display: block;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 13px;
	font-weight: 700;
	color: var(--wp--preset--color--text-secondary);
	margin-top: 8px;
}

.ttdl-build-my-day__stop-body {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 20px;
	border-top: 1px solid var(--wp--preset--color--border-subtle);
	padding-top: 18px;
}

.ttdl-build-my-day__stop-media {
	display: block;
	width: 180px;
	height: 128px;
}

.ttdl-build-my-day__stop-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ttdl-build-my-day__stop-media--none {
	background: var(--wp--preset--color--cream-100);
	border-top: 3px solid var(--wp--preset--color--gold-500);
}

.ttdl-build-my-day__stop-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.ttdl-build-my-day__stop-title {
	font-family: var(--wp--preset--font-family--serif-display);
	font-size: 25px;
	line-height: 1.15;
	margin: 0;
}

.ttdl-build-my-day__stop-meta {
	font-size: 12.5px;
	color: var(--wp--preset--color--text-muted);
	white-space: nowrap;
}

.ttdl-build-my-day__stop-note {
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--wp--preset--color--text-secondary);
	margin: 0 0 12px;
}

.ttdl-build-my-day__stop-links {
	display: flex;
	gap: 18px;
	align-items: center;
	flex-wrap: wrap;
}

.ttdl-build-my-day__stop-details {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: var(--wp--custom--tracking--wide);
	text-transform: uppercase;
	color: var(--wp--preset--color--navy-800);
	white-space: nowrap;
	text-decoration: none;
}

.ttdl-build-my-day__stop-swap {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: var(--wp--custom--tracking--wide);
	text-transform: uppercase;
	color: var(--wp--preset--color--text-muted);
	white-space: nowrap;
	text-decoration: none;
}

.ttdl-build-my-day__disclaimer {
	font-size: 15px;
	line-height: 1.6;
	color: var(--wp--preset--color--text-muted);
	border-top: 1px solid var(--wp--preset--color--border-subtle);
	padding-top: 18px;
	margin: 0;
}

/* Sidebar */

.ttdl-build-my-day__sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: sticky;
	top: 32px;
}

.ttdl-build-my-day__keep-day,
.ttdl-build-my-day__worth-knowing {
	background: var(--wp--preset--color--cream-100);
	padding: 26px 24px;
}

.ttdl-build-my-day__keep-day-label,
.ttdl-build-my-day__worth-knowing-label,
.ttdl-build-my-day__lodging-title {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: var(--wp--custom--tracking--label);
	text-transform: uppercase;
	color: var(--wp--preset--color--text-muted);
	margin: 0 0 16px;
}

.ttdl-build-my-day__share-fallback-note {
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--wp--preset--color--text-muted);
	margin: 0 0 8px;
}

.ttdl-build-my-day__share-fallback {
	font-size: 13.5px;
	line-height: 1.5;
	word-break: break-all;
	margin: 0 0 14px;
}

.ttdl-build-my-day__worth-knowing-text {
	font-size: 15px;
	line-height: 1.7;
	color: var(--wp--preset--color--text-secondary);
	margin: 0;
}

.ttdl-build-my-day__lodging {
	background: var(--wp--preset--color--navy-900);
	color: var(--wp--preset--color--ivory-050);
	padding: 22px;
}

.ttdl-build-my-day__lodging-text {
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--wp--preset--color--mist-300);
	margin: 0 0 16px;
}

.ttdl-build-my-day__lodging-notice {
	font-size: 12px;
	line-height: 1.5;
	color: var(--wp--preset--color--mist-300);
	opacity: 0.85;
	margin: 0 0 16px;
}

.ttdl-build-my-day__lodging-cta {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: var(--wp--custom--tracking--wide);
	text-transform: uppercase;
	color: var(--wp--preset--color--navy-900);
	background: var(--wp--preset--color--gold-500);
	padding: 12px 18px;
	border-radius: var(--wp--preset--border-radius--m);
	text-decoration: none;
}

.ttdl-build-my-day__lodging-cta:hover,
.ttdl-build-my-day__lodging-cta:focus-visible {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy-900) !important;
}

/* Print/Copy enhancement -- the button row only ever exists in the DOM
   once view.js has fully succeeded (it's created and appended by the
   script itself, never pre-rendered by PHP), so this rule is a defensive
   default rather than something that needs to key off the --enhanced
   modifier. The plain-link share fallback (.share-fallback-note /
   .share-fallback) is DELIBERATELY NEVER hidden by CSS in any state --
   it stays visible whether or not JS ran, whether or not Clipboard
   support exists, and even if a Copy click fails at runtime, so there is
   always a working way to get the link. */

.ttdl-build-my-day__keep-day-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 14px;
}

.ttdl-build-my-day__print-button,
.ttdl-build-my-day__copy-button {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: var(--wp--custom--tracking--wide);
	text-transform: uppercase;
	min-height: 44px;
	border-radius: var(--wp--preset--border-radius--m);
	cursor: pointer;
}

.ttdl-build-my-day__print-button {
	background: var(--wp--preset--color--navy-800);
	color: var(--wp--preset--color--ivory-050);
	border: none;
}

.ttdl-build-my-day__copy-button {
	background: transparent;
	color: var(--wp--preset--color--navy-800);
	border: 1px solid var(--wp--preset--color--border-strong);
}

/* Time-aware result screen (public cutover, 2026-08-27). Reuses the same
   design tokens, type scale, and 900px/600px breakpoints as the result
   screen above -- this is the first stylesheet pass for
   TTDL_Build_My_Day_Time_Aware_Result_Renderer's markup (Phase 7 built the
   HTML/escaping; a production stylesheet was explicitly deferred to this
   activation phase, per that phase's own report). Single-column, no
   sidebar -- the renderer emits only the plan itself (header, numbered
   stops, "Worth considering"), not the legacy screen's share/lodging
   sidebar. */

.ttdl-bmd-ta {
	max-width: 760px;
}

.ttdl-bmd-ta__header {
	margin-bottom: 28px;
}

.ttdl-bmd-ta__title {
	font-family: var(--wp--preset--font-family--serif-display);
	font-size: var(--wp--preset--font-size--hero-l);
	line-height: 1.08;
	margin: 0 0 10px;
	text-wrap: pretty;
}

.ttdl-bmd-ta__summary {
	font-size: 17px;
	line-height: 1.6;
	color: var(--wp--preset--color--text-secondary);
	margin: 0 0 16px;
}

.ttdl-bmd-ta__notices {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ttdl-bmd-ta__notice {
	font-size: 14px;
	line-height: 1.55;
	color: var(--wp--preset--color--text-secondary);
	background: var(--wp--preset--color--cream-100);
	border-left: 3px solid var(--wp--preset--color--gold-500);
	padding: 10px 14px;
	border-radius: var(--wp--preset--border-radius--s);
}

.ttdl-bmd-ta__empty {
	font-size: 16px;
	line-height: 1.6;
	color: var(--wp--preset--color--text-secondary);
	margin: 0;
}

.ttdl-bmd-ta__stops {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
	max-width: 640px;
}

.ttdl-bmd-ta__stop {
	padding: 22px 0;
	border-top: 1px solid var(--wp--preset--color--border-subtle);
}

.ttdl-bmd-ta__stop:first-child {
	border-top: none;
	padding-top: 0;
}

.ttdl-bmd-ta__travel {
	font-size: 13px;
	color: var(--wp--preset--color--text-muted);
	margin: 0 0 12px;
}

.ttdl-bmd-ta__travel-note {
	opacity: 0.75;
}

.ttdl-bmd-ta__stop-card {
	display: flex;
	gap: 18px;
	align-items: flex-start;
}

.ttdl-bmd-ta__stop-number {
	flex: 0 0 auto;
	width: 44px;
	font-family: var(--wp--preset--font-family--serif-display);
	font-size: 30px;
	line-height: 1;
	color: var(--wp--preset--color--border-strong);
}

.ttdl-bmd-ta__stop-media {
	flex: 0 0 auto;
	width: 140px;
	height: 100px;
}

.ttdl-bmd-ta__stop-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ttdl-bmd-ta__stop-body {
	flex: 1 1 auto;
	min-width: 0;
}

.ttdl-bmd-ta__stop-title {
	font-family: var(--wp--preset--font-family--serif-display);
	font-size: 22px;
	line-height: 1.2;
	margin: 0 0 6px;
}

.ttdl-bmd-ta__meal-badge {
	display: inline-block;
	vertical-align: middle;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: var(--wp--custom--tracking--label);
	text-transform: uppercase;
	color: var(--wp--preset--color--text-secondary);
	background: var(--wp--preset--color--cream-100);
	padding: 3px 9px;
	border-radius: var(--wp--preset--border-radius--s);
}

.ttdl-bmd-ta__stop-time {
	font-size: 13.5px;
	color: var(--wp--preset--color--text-muted);
	margin: 0 0 8px;
}

.ttdl-bmd-ta__stop-caveat,
.ttdl-bmd-ta__stop-caution {
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--wp--preset--color--text-muted);
	margin: 0 0 8px;
}

.ttdl-bmd-ta__stop-note {
	font-size: 15px;
	line-height: 1.6;
	color: var(--wp--preset--color--text-secondary);
	margin: 0 0 10px;
}

.ttdl-bmd-ta__stop-link {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: var(--wp--custom--tracking--wide);
	text-transform: uppercase;
	color: var(--wp--preset--color--navy-800);
	white-space: nowrap;
	text-decoration: none;
}

/* Worth Considering redesign (2026-09-29): two small, text-only sections
   after the itinerary -- "Worth Considering" (<= 4 alternatives) and the
   visually quieter "More possibilities" (<= 2). No images, no excerpts, no
   buttons; the title link is the only interactive element per row. */

.ttdl-bmd-ta__alts {
	margin-top: 12px;
	padding-top: 24px;
	border-top: 1px solid var(--wp--preset--color--border-subtle);
	max-width: 640px;
}

.ttdl-bmd-ta__alts--secondary {
	margin-top: 20px;
	padding-top: 20px;
}

.ttdl-bmd-ta__alts-heading {
	font-family: var(--wp--preset--font-family--serif-display);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.2;
	margin: 0 0 6px;
}

.ttdl-bmd-ta__alts--secondary .ttdl-bmd-ta__alts-heading {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: var(--wp--custom--tracking--label);
	text-transform: uppercase;
	color: var(--wp--preset--color--text-secondary);
}

.ttdl-bmd-ta__alts-intro {
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--wp--preset--color--text-secondary);
	margin: 0 0 10px;
}

.ttdl-bmd-ta__alts--secondary .ttdl-bmd-ta__alts-intro {
	font-size: 13.5px;
}

.ttdl-bmd-ta__alts-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ttdl-bmd-ta__alts-item {
	padding: 4px 0 10px;
	border-bottom: 1px solid var(--wp--preset--color--border-subtle);
	min-width: 0;
}

.ttdl-bmd-ta__alts-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.ttdl-bmd-ta__alts-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	max-width: 100%;
	font-family: var(--wp--preset--font-family--serif-display);
	font-size: 18px;
	line-height: 1.25;
	color: var(--wp--preset--color--navy-800);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

.ttdl-bmd-ta__alts--secondary .ttdl-bmd-ta__alts-link {
	font-size: 16px;
}

a.ttdl-bmd-ta__alts-link:hover {
	text-decoration-thickness: 2px;
}

.ttdl-bmd-ta__alts-context,
.ttdl-bmd-ta__alts-reason {
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--wp--preset--color--text-secondary);
	margin: 0;
	overflow-wrap: anywhere;
}

.ttdl-bmd-ta__alts-reason {
	margin-top: 2px;
}

/* Focus visibility */

.ttdl-build-my-day__option:focus-visible,
.ttdl-build-my-day__back:focus-visible,
.ttdl-build-my-day__skip:focus-visible,
.ttdl-build-my-day__chip:focus-visible,
.ttdl-build-my-day__shuffle:focus-visible,
.ttdl-build-my-day__restart:focus-visible,
.ttdl-build-my-day__relax:focus-visible,
.ttdl-build-my-day__stop-details:focus-visible,
.ttdl-build-my-day__stop-swap:focus-visible,
.ttdl-build-my-day__lodging-cta:focus-visible,
.ttdl-build-my-day__print-button:focus-visible,
.ttdl-build-my-day__copy-button:focus-visible,
.ttdl-build-my-day__share-fallback a:focus-visible,
.ttdl-bmd-ta__stop-link:focus-visible,
.ttdl-bmd-ta__alts-link:focus-visible {
	outline: none;
	box-shadow: var(--wp--custom--shadow--inset-focus);
}

/* ---------------------------------------------------------------------
 * Phase 4 — interest multi-select (1–3 checkboxes + Continue).
 *
 * Appended rather than woven into the existing option rules so the
 * single-select steps keep their exact styling. The checkbox rows reuse
 * .ttdl-build-my-day__option for the card look and add only what a real
 * checkbox row needs.
 * ------------------------------------------------------------------ */

.ttdl-build-my-day__interest-form {
	margin: 0 0 8px;
}

.ttdl-build-my-day__interest-fieldset {
	border: 0;
	margin: 0;
	padding: 0;
	/* min-width:0 stops a fieldset from refusing to shrink inside a grid,
	   which is the usual cause of horizontal overflow at 320px. */
	min-width: 0;
}

/* PHASE 4.1 — the legend IS this step's instruction, in the same position and
   playing the same role as the .ttdl-build-my-day__hint paragraph does on every
   other step, so it is styled to match that paragraph exactly. It used to be a
   smaller 15px line with a 6px gap because the selected-count paragraph sat
   between it and the cards; with the counter gone, a 6px gap would have left the
   instruction crammed against the first card. display:block and padding:0
   neutralise the <legend> defaults. */
.ttdl-build-my-day__interest-legend {
	display: block;
	padding: 0;
	margin: 0 0 32px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--wp--preset--color--text-secondary);
	max-width: 46ch;
}

/* The .ttdl-build-my-day__interest-count rule was deleted here along with the
   element it styled. Nothing hides a counter; there is no counter. */

.ttdl-build-my-day__interest-error {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: var(--wp--preset--border-radius--s);
	border: 1px solid currentColor;
	background: var(--wp--preset--color--white);
	color: #8a1c1c;
	font-size: 14.5px;
	line-height: 1.45;
	/* Not colour alone — the border and the leading marker both carry it. */
}

.ttdl-build-my-day__interest-error::before {
	content: "!\00a0\00a0";
	font-weight: 700;
}

/* The row itself is a <label>, so the whole card is a tap target. */
.ttdl-build-my-day__option--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-height: 44px;
	cursor: pointer;
}

.ttdl-build-my-day__option-box {
	/* A real, visible native checkbox — never hidden and never replaced. */
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 3px 0 0;
	accent-color: var(--wp--preset--color--navy-800);
}

.ttdl-build-my-day__option-text {
	display: block;
	min-width: 0;
}

/* Long labels and hints must wrap, not overflow, at 320px. */
.ttdl-build-my-day__option--checkbox .ttdl-build-my-day__option-label,
.ttdl-build-my-day__option--checkbox .ttdl-build-my-day__option-hint {
	overflow-wrap: break-word;
}

/* Selected state is driven by the CHECKBOX, not by a server-rendered class.
   A class would only ever describe the state the page was built in: with
   JavaScript off, unticking a preselected box left the row still styled as
   selected and a newly ticked row unstyled (Codex Phase 4 round-2 finding 2).
   :has(:checked) tracks what the visitor can actually see, with no script.

   It is carried by more than colour -- a left rule and a weight change, both of
   which survive greyscale and forced-colors -- and deliberately does NOT invert
   the card to navy the way the single-select <a> options do, because a navy
   accent-color checkbox on a navy background would stop being visible. */
.ttdl-build-my-day__option--checkbox:has(.ttdl-build-my-day__option-box:checked) {
	border-color: var(--wp--preset--color--navy-800);
	box-shadow: inset 4px 0 0 0 var(--wp--preset--color--navy-800);
}

.ttdl-build-my-day__option--checkbox:has(.ttdl-build-my-day__option-box:checked) .ttdl-build-my-day__option-label {
	font-weight: 700;
}

/* Focus must be visible on the row when the native box inside it has focus. */
.ttdl-build-my-day__option--checkbox:focus-within {
	outline: var(--wp--custom--outline--focus, 2px solid #005fcc);
	outline-offset: 2px;
}

.ttdl-build-my-day__interest-submit {
	display: inline-block;
	min-height: 44px;
	padding: 12px 28px;
	border: 1px solid var(--wp--preset--color--navy-800);
	border-radius: var(--wp--preset--border-radius--s);
	background: var(--wp--preset--color--navy-800);
	color: var(--wp--preset--color--ivory-050);
	font-size: 16px;
	cursor: pointer;
}

.ttdl-build-my-day__interest-submit:hover {
	opacity: 0.9;
}

.ttdl-build-my-day__interest-submit:focus-visible {
	outline: var(--wp--custom--outline--focus, 2px solid #005fcc);
	outline-offset: 2px;
}

/* "or" separator between the checkbox group and Surprise Me. */
.ttdl-build-my-day__or {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 22px 0 14px;
	font-size: 14px;
	opacity: 0.7;
}

.ttdl-build-my-day__or::before,
.ttdl-build-my-day__or::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: var(--wp--preset--color--border-strong, #d5d8de);
}

.ttdl-build-my-day__options--surprise {
	grid-template-columns: 1fr;
}

/* A box disabled by the optional JS enhancement must still read as
   unavailable without relying on colour. */
.ttdl-build-my-day__option-box:disabled {
	cursor: not-allowed;
}

.ttdl-build-my-day__option--checkbox:has(.ttdl-build-my-day__option-box:disabled) {
	opacity: 0.55;
	cursor: not-allowed;
}

@media (forced-colors: active) {
	.ttdl-build-my-day__option--checkbox:has(.ttdl-build-my-day__option-box:checked) {
		border: 3px solid CanvasText;
	}

	.ttdl-build-my-day__interest-error {
		border: 2px solid CanvasText;
	}

	.ttdl-build-my-day__option--checkbox:focus-within {
		outline: 3px solid CanvasText;
	}
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
	.ttdl-build-my-day__option {
		transition: none;
	}
}

/* Responsive */

@media (max-width: 900px) {
	.ttdl-build-my-day__layout {
		grid-template-columns: 1fr;
	}

	.ttdl-build-my-day__sidebar {
		position: static;
	}

	.ttdl-build-my-day__stop-body {
		grid-template-columns: 1fr;
	}

	.ttdl-build-my-day__stop-media {
		width: 100%;
		height: 170px;
	}
}

@media (max-width: 600px) {
	.ttdl-build-my-day__options {
		grid-template-columns: 1fr;
	}

	/* Phase 4: the checkbox rows are already single-column via the rule
	   above; keep the Continue button full-width and obvious on a phone. */
	.ttdl-build-my-day__interest-submit {
		display: block;
		width: 100%;
	}

	.ttdl-build-my-day__result-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.ttdl-build-my-day__stop {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.ttdl-build-my-day__stop-number-col {
		display: flex;
		align-items: baseline;
		gap: 12px;
	}

	.ttdl-build-my-day__stop-number {
		font-size: 38px;
	}

	.ttdl-build-my-day__stop-sequence-label {
		margin-top: 0;
	}

	.ttdl-bmd-ta__stop-card {
		flex-direction: column;
	}

	.ttdl-bmd-ta__stop-number {
		width: auto;
		font-size: 30px;
	}

	.ttdl-bmd-ta__stop-media {
		width: 100%;
		height: 170px;
	}
}

/* Print */

@media print {
	.ttdl-build-my-day__result-actions,
	.ttdl-build-my-day__based-on,
	.ttdl-build-my-day__relax,
	.ttdl-build-my-day__stop-details,
	.ttdl-build-my-day__stop-swap,
	.ttdl-build-my-day__keep-day-actions,
	.ttdl-build-my-day__keep-day-label,
	.ttdl-build-my-day__share-fallback-note,
	.ttdl-build-my-day__share-fallback,
	.ttdl-build-my-day__lodging {
		display: none !important;
	}

	.ttdl-build-my-day__sidebar {
		position: static;
	}

	.ttdl-build-my-day__layout {
		grid-template-columns: 1fr;
	}

	.ttdl-build-my-day__stop,
	.ttdl-bmd-ta__stop {
		break-inside: avoid;
	}
}

/* Loading state (bmd-performance-and-followup-v1) -- script-created by
   loading.js only while a result request is in flight; never pre-rendered,
   so the no-JS baseline is unchanged. Existing tokens only: a cream panel
   with the site's fine gold top rule, navy serif heading, sans supporting
   line, and three small gold dots that pulse gently. With
   prefers-reduced-motion the dots are static (loading.js also stops the line
   rotating). No progress bar, percentage or step count. */

.ttdl-build-my-day__loading {
	background: var(--wp--preset--color--cream-100);
	border-top: 3px solid var(--wp--preset--color--gold-500);
	padding: 32px 32px 28px;
	margin: 0 0 32px;
	text-align: center;
}

.ttdl-build-my-day__loading-heading {
	font-family: var(--wp--preset--font-family--serif-display);
	font-size: 30px;
	line-height: 1.2;
	color: var(--wp--preset--color--navy-900);
	margin: 0 0 10px;
}

.ttdl-build-my-day__loading-line {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--wp--preset--color--text-secondary);
	margin: 0;
	min-height: 1.6em;
}

.ttdl-build-my-day__loading-dots {
	display: inline-flex;
	gap: 5px;
	margin-left: 10px;
	vertical-align: middle;
}

.ttdl-build-my-day__loading-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--gold-500);
	opacity: 0.35;
	animation: ttdl-bmd-loading-pulse 1.4s ease-in-out infinite;
}

.ttdl-build-my-day__loading-dot:nth-child(2) {
	animation-delay: 0.2s;
}

.ttdl-build-my-day__loading-dot:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes ttdl-bmd-loading-pulse {
	0%, 80%, 100% {
		opacity: 0.35;
	}
	40% {
		opacity: 1;
	}
}

/* After ~120 s the dots stop: the panel now offers Try again / Start over. */
.ttdl-build-my-day__loading-line--stalled .ttdl-build-my-day__loading-dots {
	display: none;
}

.ttdl-build-my-day__loading-actions {
	margin: 18px 0 0;
	display: flex;
	justify-content: center;
	gap: 24px;
	flex-wrap: wrap;
}

.ttdl-build-my-day__loading-retry,
.ttdl-build-my-day__loading-restart {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: var(--wp--custom--tracking--wide);
	text-transform: uppercase;
	color: var(--wp--preset--color--navy-900);
}

/* The question underneath is deliberately NOT dimmed or disabled while
   waiting: its controls stay usable (the interest step's Continue must
   never be disabled or intercepted), so they must keep full text contrast.
   loading.js alone ignores repeat result-link clicks. */

@media (max-width: 600px) {
	.ttdl-build-my-day__loading {
		padding: 24px 18px 22px;
	}

	.ttdl-build-my-day__loading-heading {
		font-size: 24px;
	}

	.ttdl-build-my-day__loading-line {
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ttdl-build-my-day__loading-dot {
		animation: none;
		opacity: 0.8;
	}
}