/**
 * Homepage travel-style quiz interaction refinements.
 * Base component styling remains in style.css.
 */

.tss-quiz__nav {
	display: grid;
	grid-template-columns: minmax(52px, 1fr) auto minmax(52px, 1fr);
	align-items: center;
	min-height: 24px;
	margin-bottom: 8px;
}

.tss-quiz__nav::after {
	content: "";
}

.tss-quiz__nav > span {
	grid-column: 2;
	color: var(--tss-style-muted);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
}

.tss-quiz__back {
	display: inline-flex;
	grid-column: 1;
	width: max-content;
	align-items: center;
	gap: 4px;
	border: 0;
	padding: 3px 0;
	background: transparent;
	color: var(--tss-teal);
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.tss-quiz__back::before {
	content: "\2190";
	font-size: 13px;
	text-decoration: none;
}

.tss-trip-days-glyph {
	position: relative;
	display: grid;
	grid-template-columns: auto auto;
	min-width: 46px;
	min-height: 34px;
	box-sizing: border-box;
	align-content: center;
	align-items: end;
	justify-content: center;
	column-gap: 2px;
	border: 2px solid var(--tss-black);
	border-radius: 5px;
	padding: 6px 5px 3px;
	background: #fff9d8;
	box-shadow: 2px 2px 0 rgba(16, 16, 16, 0.16);
	font-variant-numeric: tabular-nums;
}

.tss-trip-days-glyph i {
	position: absolute;
	top: -2px;
	right: -2px;
	left: -2px;
	height: 7px;
	border: 2px solid var(--tss-black);
	border-radius: 5px 5px 0 0;
	background: var(--tss-yellow);
}

.tss-trip-days-glyph strong {
	font-size: 14px;
	font-weight: 950;
	line-height: 1;
}

.tss-trip-days-glyph small {
	font-size: 8px;
	font-weight: 900;
	letter-spacing: 0.02em;
	line-height: 1;
	text-transform: uppercase;
}

.tss-quiz__pack {
	margin-top: 10px;
	border: 1.5px dashed rgba(15, 110, 86, 0.48);
	border-radius: 6px;
	padding: 7px 10px;
	background: rgba(225, 245, 238, 0.72);
	color: #075a47;
}

@media (max-width: 767px) {
	.tss-rewards__head {
		justify-content: center;
		text-align: center;
	}

	.tss-rewards__head small {
		width: 100%;
	}

	.tss-search--quiz .tss-destination-search-panel {
		max-height: none;
		overflow-y: visible;
		overscroll-behavior: auto;
	}

	.tss-search--quiz .tss-destination-search-panel__head {
		position: static;
	}

	.tss-rewards__grid,
	.tss-rewards__grid--two,
	.tss-tasks {
		gap: 10px;
	}

	.tss-rewards__head {
		margin-bottom: 10px;
	}

	.tss-rewards__card {
		padding: 15px 12px 12px;
		text-align: center;
	}

	.tss-pack {
		text-align: center;
	}

	.tss-rewards__line,
	.tss-pack__note {
		line-height: 1.35;
	}

	.tss-tasks__card {
		padding: 14px 12px 12px;
		justify-items: center;
		text-align: center;
	}

	.tss-tasks__copy {
		justify-items: center;
		text-align: center;
	}

	.tss-tasks__side {
		justify-items: center;
	}

	.tss-tasks__button,
	.tss-tasks__chip {
		justify-self: center;
	}
}

@media (max-width: 420px) {
	.tss-quiz__nav {
		margin-bottom: 7px;
	}

	.tss-trip-days-glyph {
		min-width: 43px;
	}

	/* Keep the referral reward as one torn ticket on phones. */
	.tss-mates {
		flex-direction: row;
		gap: 0;
	}

	.tss-mates__half,
	.tss-mates__half--l,
	.tss-mates__half--r {
		border: 2px solid var(--tss-black);
		border-radius: 0;
		transform: none;
	}

	.tss-mates__half--l {
		border-right: 1.5px dashed var(--tss-black);
		border-radius: 6px 0 0 6px;
		transform: rotate(-1.5deg);
	}

	.tss-mates__half--r {
		border-left: 0;
		border-radius: 0 6px 6px 0;
		transform: rotate(1.5deg) translateX(2px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tss-trip-days-glyph,
	.tss-quiz__back {
		transition: none !important;
	}
}

/* Pack Your Data: homepage presentation of the shared Trip Match authority. */
.tss-plan-choice.tss-style-section {
	padding-top: clamp(132px, 10vw, 168px);
}

.tss-data-guide__shell {
	--guide-paper: #fffdf3;
	--guide-cream: #fff7df;
	--guide-tray: #f4f1e6;
	--guide-sage: #dfe9d4;
	--guide-yellow-soft: #ffec94;
	--guide-lilac: #e9e2f3;
	--guide-muted: #5d564b;
	max-width: 1280px;
	margin: 0 auto 44px;
	color: var(--tss-black);
}

.tss-data-guide__head {
	max-width: 900px;
	margin: 0 0 clamp(34px, 4vw, 52px);
}

.tss-data-guide__head h2 {
	max-width: 18ch;
	margin: 0;
	font-size: clamp(40px, 4.4vw, 52px);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1;
}

.tss-data-guide__head p {
	max-width: 48ch;
	margin: 20px 0 0;
	color: var(--guide-muted);
	font-size: clamp(16px, 1.45vw, 20px);
	font-weight: 720;
	line-height: 1.4;
}

.tss-data-guide__layout {
	display: grid;
	grid-template-columns: minmax(0, 2.2fr) minmax(310px, 0.92fr);
	align-items: start;
	gap: 30px;
}

.tss-data-guide__profiles fieldset {
	min-width: 0;
	border: 0;
	margin: 0;
	padding: 0;
}

.tss-data-guide__packing-board {
	position: relative;
	margin-top: 31px;
	border: 3px solid var(--tss-black);
	border-radius: 10px;
	background: var(--guide-tray);
	box-shadow: 8px 8px 0 rgba(16, 16, 16, 0.22);
}

.tss-data-guide__tray {
	display: grid;
	grid-template-columns: 0.96fr 1.15fr 1.04fr;
	gap: 12px;
	padding: 14px;
	background: transparent;
}

.tss-data-pack {
	position: relative;
	display: block;
	min-width: 0;
	min-height: 330px;
	cursor: pointer;
}

.tss-data-pack input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.tss-data-pack__surface {
	position: relative;
	display: grid;
	height: 100%;
	min-height: 330px;
	grid-template-rows: auto 1fr auto auto;
	align-content: stretch;
	gap: 16px;
	border: 3px solid var(--tss-black);
	border-radius: 8px;
	padding: 17px 16px 15px;
	box-shadow: 5px 5px 0 rgba(16, 16, 16, 0.18);
	transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.tss-data-pack__surface::after {
	content: "";
	position: absolute;
	inset: 9px;
	border: 1px dashed rgba(16, 16, 16, 0.18);
	border-radius: 4px;
	pointer-events: none;
}

.tss-data-pack--essential .tss-data-pack__surface { background: var(--guide-sage); }
.tss-data-pack--posting .tss-data-pack__surface { background: var(--guide-yellow-soft); }
.tss-data-pack--hotspot .tss-data-pack__surface { background: var(--guide-lilac); }

.tss-data-pack__surface > * {
	position: relative;
	z-index: 1;
}

.tss-data-pack__number {
	justify-self: start;
	border-bottom: 2px solid currentColor;
	font-size: 13px;
	font-weight: 850;
	font-variant-numeric: tabular-nums;
}

.tss-data-pack__radio {
	display: none;
}

.tss-data-pack__cue,
.tss-data-pack__status,
.tss-data-guide__mobile-cta {
	display: none;
}

.tss-data-pack strong {
	align-self: end;
	font-size: clamp(22px, 2vw, 30px);
	font-weight: 900;
	letter-spacing: -0.045em;
	line-height: 0.98;
}

.tss-data-pack small {
	color: #4f4a42;
	font-size: 13px;
	font-weight: 680;
	line-height: 1.35;
}

.tss-data-pack__action {
	display: inline-flex;
	width: max-content;
	min-height: 34px;
	align-items: center;
	border: 2px solid var(--tss-black);
	border-radius: 6px;
	padding: 0 10px;
	background: rgba(255, 253, 243, 0.84);
	font-size: 11px;
	font-weight: 900;
}

.tss-data-pack:hover .tss-data-pack__surface {
	box-shadow: 3px 3px 0 rgba(16, 16, 16, 0.2);
	transform: translate(1px, 1px);
}

.tss-data-pack input:focus-visible + .tss-data-pack__surface {
	outline: 3px solid #ff8e78;
	outline-offset: 3px;
}

.tss-data-pack input:checked + .tss-data-pack__surface {
	background: var(--tss-yellow);
	box-shadow: 3px 3px 0 var(--tss-black);
	transform: translate(2px, 2px);
}

.tss-data-pack input:checked + .tss-data-pack__surface .tss-data-pack__action {
	background: var(--tss-black);
	color: var(--guide-paper);
}

.tss-data-guide__trip {
	position: relative;
	border-bottom: 3px solid var(--tss-black);
	border-radius: 7px 7px 0 0;
	background: var(--guide-paper);
}

.tss-data-guide__trip-tab {
	position: absolute;
	top: -34px;
	left: -3px;
	display: inline-flex;
	height: 34px;
	align-items: center;
	border: 3px solid var(--tss-black);
	border-bottom: 0;
	border-radius: 7px 7px 0 0;
	padding: 0 13px;
	background: var(--tss-yellow);
	box-shadow: 3px -3px 0 rgba(16, 16, 16, 0.1);
	color: var(--tss-black);
	font-size: 11px;
	font-weight: 900;
}

.tss-data-guide__trip > div {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.tss-data-guide__trip button {
	display: grid;
	min-width: 0;
	min-height: 94px;
	align-content: center;
	gap: 4px;
	border: 0;
	border-radius: 0;
	padding: 14px 18px;
	background: var(--guide-paper);
	box-shadow: none;
	color: var(--tss-black);
	text-align: left;
	cursor: pointer;
	transition: background 150ms ease, transform 150ms ease;
}

.tss-data-guide__trip button + button {
	border-left: 2px solid var(--tss-black);
}

.tss-data-guide__trip button:hover {
	background: var(--guide-cream);
}

.tss-data-guide__trip button:active {
	transform: translate(1px, 1px);
}

.tss-data-guide__trip button > span {
	color: var(--guide-muted);
	font-size: 10px;
	font-weight: 850;
}

.tss-data-guide__trip button > strong {
	overflow: hidden;
	font-size: 18px;
	font-weight: 900;
	line-height: 1.1;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tss-data-guide__trip button > small {
	font-size: 11px;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tss-data-guide__browse {
	margin: 16px 0 0;
	font-size: 12px;
	font-weight: 850;
}

.tss-data-guide__match {
	position: relative;
	min-height: 424px;
	border: 3px solid var(--tss-black);
	border-radius: 10px;
	padding: 26px 24px 22px;
	background: var(--guide-paper);
	box-shadow: 7px 7px 0 var(--tss-yellow), 10px 10px 0 rgba(16, 16, 16, 0.86);
}

/* One upper ticket notch only. The lower CTA edge stays flush. */
.tss-data-guide__match::before {
	content: "";
	position: absolute;
	top: 76px;
	left: -22px;
	width: 38px;
	height: 38px;
	border: 3px solid var(--tss-black);
	border-left: 0;
	border-radius: 0 50% 50% 0;
	background: var(--guide-cream);
}

.tss-data-guide__match [hidden],
.tss-data-guide-dialog[hidden] {
	display: none !important;
}

.tss-data-guide__choice > span,
.tss-data-guide__next > span,
.tss-data-guide__range > span,
.tss-data-guide__plan > span {
	display: block;
	margin-bottom: 8px;
	color: var(--guide-muted);
	font-size: 11px;
	font-weight: 850;
}

.tss-data-guide__choice > strong {
	display: block;
	font-size: clamp(28px, 2.6vw, 42px);
	font-weight: 920;
	letter-spacing: -0.055em;
	line-height: 0.98;
}

.tss-data-guide__choice p,
.tss-data-guide__next p,
.tss-data-guide__range p,
.tss-data-guide__plan p,
.tss-data-guide__message p {
	margin: 10px 0 0;
	color: var(--guide-muted);
	font-size: 13px;
	font-weight: 680;
	line-height: 1.42;
}

.tss-data-guide__rule {
	margin: 24px 0;
	border-top: 2px dashed #aaa69b;
}

.tss-data-guide__next > strong {
	display: block;
	font-size: 22px;
	font-weight: 900;
	letter-spacing: -0.035em;
	line-height: 1.05;
}

.tss-data-guide__button {
	display: inline-flex;
	width: 100%;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	border: 3px solid var(--tss-black);
	border-radius: 7px;
	margin-top: 18px;
	padding: 9px 14px;
	background: var(--tss-yellow);
	box-shadow: 3px 3px 0 var(--tss-black);
	color: var(--tss-black);
	font-size: 13px;
	font-weight: 900;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.tss-data-guide__button:disabled {
	border-color: #9a968d;
	background: #e7e3d7;
	box-shadow: none;
	color: #6d6961;
	cursor: not-allowed;
}

.tss-data-guide__button:not(:disabled):active {
	box-shadow: 1px 1px 0 var(--tss-black);
	transform: translate(2px, 2px);
}

.tss-data-guide__loading p {
	margin: 0 0 24px;
	font-weight: 850;
}

.tss-data-guide__loading span {
	display: block;
	height: 18px;
	margin-top: 12px;
	background: linear-gradient(90deg, #e6e2d7 0%, #f7f3e7 50%, #e6e2d7 100%);
	background-size: 200% 100%;
}

.tss-data-guide__loading span:first-of-type { height: 64px; }
.tss-data-guide__loading span:last-of-type { width: 64%; }

.tss-data-guide__packed-tag {
	display: inline-flex;
	margin: -42px 0 22px 14px;
	border: 3px solid var(--tss-black);
	transform: rotate(2deg);
}

.tss-data-guide__packed-tag span,
.tss-data-guide__packed-tag b {
	display: block;
	padding: 6px 9px;
	font-size: 10px;
	font-weight: 900;
}

.tss-data-guide__packed-tag span { background: var(--tss-black); color: var(--guide-paper); }
.tss-data-guide__packed-tag b { background: var(--tss-yellow); }

.tss-data-guide__range > strong {
	display: block;
	font-size: clamp(38px, 4vw, 56px);
	font-weight: 950;
	letter-spacing: -0.06em;
	line-height: 0.95;
}

.tss-data-guide__plan {
	margin-top: 24px;
	border-top: 2px dashed #aaa69b;
	padding-top: 22px;
}

.tss-data-guide__plan > strong {
	display: block;
	font-size: 32px;
	font-weight: 950;
	letter-spacing: -0.05em;
	line-height: 1;
}

.tss-data-guide__plan h3,
.tss-data-guide__message h3 {
	margin: 8px 0 0;
	font-size: 20px;
	font-weight: 900;
	letter-spacing: -0.035em;
	line-height: 1.05;
}

.tss-data-guide__plan dl {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 18px 0 0;
}

.tss-data-guide__plan dl > div {
	min-width: 0;
	border-right: 1px solid #cbc7bb;
	padding-right: 8px;
	padding-left: 8px;
}

.tss-data-guide__plan dl > div:first-child { padding-left: 0; }
.tss-data-guide__plan dl > div:last-child { border-right: 0; padding-right: 0; }
.tss-data-guide__plan dt { color: var(--guide-muted); font-size: 9px; font-weight: 850; }
.tss-data-guide__plan dd { overflow-wrap: anywhere; margin: 3px 0 0; font-size: 12px; font-weight: 900; line-height: 1.15; }

.tss-data-guide__result details {
	margin-top: 18px;
	border-top: 1px solid #cbc7bb;
	padding-top: 14px;
}

.tss-data-guide__result summary {
	font-size: 12px;
	font-weight: 850;
}

.tss-data-guide__result details div div {
	display: grid;
	gap: 3px;
	margin-top: 10px;
}

.tss-data-guide__result details strong { font-size: 13px; }
.tss-data-guide__result details span { color: var(--guide-muted); font-size: 11px; line-height: 1.35; }

.tss-data-guide__text-button {
	border: 0;
	margin: 16px 0 0;
	padding: 0;
	background: transparent;
	color: var(--guide-muted);
	font-size: 12px;
	font-weight: 850;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.tss-data-guide__message > strong {
	display: inline-flex;
	border: 2px solid var(--tss-black);
	padding: 5px 8px;
	background: var(--tss-yellow);
	font-size: 10px;
	font-weight: 900;
}

.tss-data-guide__message--error > strong { background: #ff8e78; }
.tss-data-guide__message > a:not(.tss-data-guide__button) { display: inline-block; margin-top: 14px; font-size: 12px; }

body.tss-data-guide-dialog-open { overflow: hidden; }

.tss-data-guide-dialog {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: block;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 1px 24px;
	background: rgba(16, 16, 16, 0.56);
	backdrop-filter: blur(4px);
}

.tss-data-guide-dialog__panel {
	position: relative;
	width: min(760px, 100%);
	margin: clamp(24px, 7dvh, 72px) auto 24px;
	overflow: visible;
	border: 3px solid var(--tss-black);
	border-radius: 10px;
	padding: 26px;
	background: var(--guide-paper, #fffdf3);
	box-shadow: 8px 8px 0 var(--tss-yellow), 11px 11px 0 var(--tss-black);
}

body.tss-data-guide-dialog-open .tss-date-picker {
	z-index: 100010;
}

body.tss-data-guide-dialog-open .tss-journey-search-modal {
	z-index: 100020;
}

.tss-data-guide-dialog__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
}

.tss-data-guide-dialog__head > div { display: grid; gap: 7px; }
.tss-data-guide-dialog__head span { width: max-content; border: 2px solid var(--tss-black); padding: 4px 7px; background: var(--tss-yellow); font-size: 10px; font-weight: 900; }
.tss-data-guide-dialog__head h3 { margin: 0; font-size: clamp(30px, 5vw, 46px); font-weight: 950; letter-spacing: -0.055em; line-height: 1; }
.tss-data-guide-dialog__head > button { min-height: 44px; border: 2px solid var(--tss-black); border-radius: 7px; padding: 0 14px; background: #fffdf3; color: var(--tss-black); font-size: 12px; font-weight: 900; cursor: pointer; }
.tss-data-guide-dialog__head > button:hover { background: var(--tss-yellow); }
.tss-data-guide-dialog__head > button:active { transform: translate(1px, 1px); }
.tss-data-guide-dialog__panel > p { margin: 12px 0 20px; color: var(--guide-muted, #5d564b); font-size: 14px; }

.tss-search--data-guide {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.9fr) auto;
	align-items: stretch;
	border: 3px solid var(--tss-black);
	border-radius: 8px;
	background: #fffdf3;
	box-shadow: 4px 4px 0 rgba(16, 16, 16, 0.18);
}

.tss-search--data-guide .tss-search__field {
	min-width: 0;
	border-right: 2px solid var(--tss-black);
	padding: 9px 12px 7px;
}

.tss-search--data-guide .tss-search__field-label { display: block; color: #5d564b; font-size: 9px; font-weight: 850; }
.tss-search--data-guide input[type="search"] { width: 100%; min-height: 30px; border: 0; padding: 0; background: transparent; color: var(--tss-black); font-size: 15px; font-weight: 850; outline: 0; }
.tss-search--data-guide .tss-search__date-trigger { display: grid; width: 100%; min-height: 30px; align-content: center; justify-items: start; border: 0; padding: 0; background: transparent; color: var(--tss-black); font-size: 14px; font-weight: 850; text-align: left; cursor: pointer; }
.tss-search--data-guide .tss-search__date-trigger small { color: #5d564b; font-size: 10px; }
.tss-search--data-guide > button[type="submit"] { min-height: 58px; border: 0; padding: 0 18px; background: var(--tss-yellow); color: var(--tss-black); font-size: 12px; font-weight: 900; cursor: pointer; }
.tss-search--data-guide > button[type="submit"]:disabled { background: #e7e3d5; color: #6d685e; cursor: not-allowed; }
.tss-search--data-guide .tss-destination-search-panel { top: calc(100% + 8px); right: auto; left: 0; z-index: 30; width: min(620px, 100%); max-height: min(470px, 54dvh); overflow-y: auto; overscroll-behavior: contain; }

.tss-data-guide-dialog__chips {
	display: flex;
	grid-column: 1 / -1;
	flex-wrap: wrap;
	gap: 7px;
	border-top: 1px solid #cbc7bb;
	padding: 11px;
}

.tss-data-guide-dialog__chips button {
	min-height: 32px;
	border: 2px solid var(--tss-black);
	border-radius: 6px;
	padding: 0 9px;
	background: #fffdf3;
	font-size: 11px;
	font-weight: 850;
	cursor: pointer;
}

.tss-data-guide-dialog__chips button[aria-pressed="true"] {
	background: var(--tss-yellow);
	box-shadow: 3px 3px 0 var(--tss-black);
}

.tss-data-guide-dialog__chips button[aria-busy="true"] {
	cursor: progress;
}

.tss-data-guide-dialog__error {
	grid-column: 1 / -1;
	margin: 0;
	border-top: 2px solid #d56855;
	padding: 10px 12px;
	background: #ffe2d9;
	color: #6b2016;
	font-size: 12px;
	font-weight: 800;
}

.tss-data-guide__shell :is(a, button, input, summary):focus-visible,
.tss-data-guide-dialog :is(a, button, input):focus-visible {
	outline: 3px solid #ff8e78;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
	.tss-data-guide__loading span { animation: tss-data-guide-skeleton 1.4s linear infinite; }
	.tss-data-guide__packed-tag { animation: tss-data-guide-tag 260ms ease-out both; }
}

@keyframes tss-data-guide-skeleton { to { background-position: -200% 0; } }
@keyframes tss-data-guide-tag { from { opacity: 0; transform: translateY(-8px) rotate(2deg); } to { opacity: 1; transform: translateY(0) rotate(2deg); } }

@media (max-width: 1040px) {
	.tss-data-guide__layout { grid-template-columns: minmax(0, 1fr); }
	.tss-data-guide__match { min-height: 0; }
	.tss-data-guide__match::before { display: none; }
	.tss-data-guide__result { display: grid; grid-template-columns: 0.8fr 1.2fr; column-gap: 26px; }
	.tss-data-guide__packed-tag { grid-column: 1 / -1; width: max-content; }
	.tss-data-guide__plan { grid-row: 2 / span 3; grid-column: 2; margin-top: 0; border-top: 0; border-left: 2px dashed #aaa69b; padding-top: 0; padding-left: 24px; }
	.tss-data-guide__result details,
	.tss-data-guide__result .tss-data-guide__text-button { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
	.tss-plan-choice.tss-style-section { padding-top: 44px; }
	.tss-plan-choice .tss-plan-choice-bridge {
		display: none !important;
	}
	.tss-data-guide__shell { margin-bottom: 34px; }
	.tss-data-guide__head { margin-bottom: 24px; }
	.tss-data-guide__head h2 { max-width: 18ch; font-size: clamp(34px, 10vw, 38px); }
	.tss-data-guide__head p { margin-top: 14px; font-size: 16px; }
	.tss-data-guide__layout { display: block; }
	.tss-data-guide__packing-board {
		margin-top: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}
	.tss-data-guide__profiles fieldset { overflow: visible; }
	.tss-plan-choice[data-guide-state="editing"] .tss-data-guide__match { display: none; }
	.tss-data-guide__browse { margin: 6px 0 0; text-align: center; }
	.tss-data-guide__trip[data-guide-trip-state="empty"] { display: none; }
	.tss-data-guide__trip[data-guide-trip-state="complete"] {
		margin: 38px 7px 17px 3px;
		border: 2px solid var(--tss-black);
		border-radius: 7px;
		box-shadow: 3px 3px 0 rgba(16, 16, 16, 0.16);
	}
	.tss-data-guide__trip-tab {
		top: -29px;
		left: -2px;
		height: 29px;
		border-width: 2px;
		padding: 0 10px;
		box-shadow: none;
	}
	.tss-data-guide__trip > div { grid-template-columns: minmax(0, 1fr); }
	.tss-data-guide__trip button { min-height: 68px; padding: 10px 13px; }
	.tss-data-guide__trip button + button { border-top: 2px solid var(--tss-black); border-left: 0; }
	.tss-data-guide__match { margin: 4px 3px 9px 0; padding: 24px 18px 20px; box-shadow: 5px 5px 0 var(--tss-yellow), 8px 8px 0 rgba(16, 16, 16, 0.86); }
	.tss-data-guide__result { display: block; }
	.tss-data-guide__plan { margin-top: 22px; border-top: 2px dashed #aaa69b; border-left: 0; padding-top: 20px; padding-left: 0; }
	.tss-data-guide-dialog {
		display: flex;
		align-items: flex-end;
		padding: 10px;
		background: rgba(16, 16, 16, 0.62);
		backdrop-filter: blur(3px);
	}
	.tss-data-guide-dialog__panel {
		width: 100%;
		max-height: calc(100dvh - 20px);
		margin: auto 0 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		border-radius: 16px 16px 7px 7px;
		padding: 21px 15px calc(16px + env(safe-area-inset-bottom));
		box-shadow: 5px 5px 0 var(--tss-yellow), 8px 8px 0 var(--tss-black);
	}
	.tss-data-guide-dialog__head { align-items: center; }
	.tss-data-guide-dialog__head > div { gap: 6px; }
	.tss-data-guide-dialog__head h3 { font-size: clamp(30px, 9vw, 38px); }
	.tss-data-guide-dialog__head > button { min-height: 42px; padding: 0 12px; }
	.tss-data-guide-dialog__panel > p { margin: 11px 0 17px; line-height: 1.4; }
	.tss-search--data-guide { grid-template-columns: minmax(0, 1fr); }
	.tss-search--data-guide .tss-search__field { min-height: 62px; border-right: 0; border-bottom: 2px solid var(--tss-black); padding: 9px 11px 7px; }
	.tss-search--data-guide > button[type="submit"] { min-height: 50px; }
	.tss-search--data-guide .tss-destination-search-panel { position: relative; top: auto; width: 100%; max-height: none; grid-column: 1; }
	.tss-data-guide-dialog__chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding: 10px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.tss-data-guide-dialog__chips::-webkit-scrollbar { display: none; }
	.tss-data-guide-dialog__chips button { flex: 0 0 auto; }
}

/* Packing Pockets: one mobile organiser, with the desktop presentation untouched. */
@media (max-width: 767px) {
	.tss-data-guide__head {
		margin-bottom: 27px;
		text-align: left;
	}

	.tss-data-guide__head h2 {
		max-width: 14ch;
		font-size: clamp(34px, 10vw, 42px);
	}

	.tss-data-guide__head p {
		max-width: 35ch;
		margin-top: 14px;
	}

	.tss-data-guide__tray {
		--guide-mobile-essential: #dfe9d4;
		--guide-mobile-posting: #f7d4bd;
		--guide-mobile-hotspot: #d5e8ec;
		--guide-mobile-selected: #fff0a6;
		position: relative;
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		isolation: isolate;
		overflow: visible;
		border: 2px solid var(--tss-black);
		border-radius: 12px;
		padding: 4px;
		background: var(--guide-paper);
		box-shadow: 5px 5px 0 rgba(201, 217, 189, 0.78);
	}

	.tss-data-guide__tray::before {
		content: none;
	}

	.tss-data-pack {
		position: relative;
		z-index: 2;
		display: block;
		overflow: hidden;
		min-height: 0;
		margin: 0;
		padding: 0;
		border-radius: 0;
		background: var(--guide-paper);
		clip-path: none;
		filter: none;
		transform: none;
	}

	.tss-data-pack--essential { order: 1; }
	.tss-data-pack--posting { order: 3; }
	.tss-data-pack--hotspot { order: 5; }
	.tss-data-pack--essential { border-radius: 7px 7px 0 0; }
	.tss-data-pack--posting,
	.tss-data-pack--hotspot { border-top: 2px solid var(--tss-black); }
	.tss-data-pack--hotspot { border-radius: 0 0 7px 7px; }
	.tss-data-pack--essential,
	.tss-data-pack--essential .tss-data-pack__surface { background: var(--guide-mobile-essential); }
	.tss-data-pack--posting,
	.tss-data-pack--posting .tss-data-pack__surface { background: var(--guide-mobile-posting); }
	.tss-data-pack--hotspot,
	.tss-data-pack--hotspot .tss-data-pack__surface { background: var(--guide-mobile-hotspot); }

	.tss-data-pack.is-selected {
		z-index: 3;
		background: var(--guide-mobile-selected);
		filter: none;
		transform: none;
	}

	.tss-data-pack.is-selected::after {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 4;
		width: 4px;
		background: var(--tss-black);
		pointer-events: none;
	}

	.tss-data-pack__surface {
		position: relative;
		display: grid;
		height: auto;
		min-height: 92px;
		grid-template-columns: 34px minmax(0, 1fr) 24px;
		grid-template-rows: auto auto auto;
		align-items: start;
		gap: 5px 10px;
		border: 0;
		border-radius: 0;
		padding: 13px 12px;
		box-shadow: none;
		clip-path: none;
		text-align: left;
		transform: none;
		transition: background-color 160ms ease;
	}

	.tss-data-pack__surface::after { display: none; }
	.tss-data-pack__number,
	.tss-data-pack__action { display: none; }

	.tss-data-pack__cue {
		position: relative;
		display: block;
		width: 32px;
		height: 32px;
		grid-row: 1 / span 3;
		grid-column: 1;
		align-self: center;
		border: 0;
		background: transparent;
		box-shadow: none;
	}

	.tss-data-pack__cue::after {
		content: none;
	}

	.tss-data-pack__cue i,
	.tss-data-pack__cue b,
	.tss-data-pack__cue em {
		position: absolute;
		display: block;
		font-style: normal;
	}

	.tss-data-pack__cue--route i {
		top: 8px;
		left: 7px;
		width: 18px;
		height: 12px;
		border-top: 2px solid var(--tss-black);
		border-right: 2px solid var(--tss-black);
		transform: skewY(-25deg);
	}

	.tss-data-pack__cue--route b,
	.tss-data-pack__cue--route em {
		width: 6px;
		height: 6px;
		border: 1.5px solid var(--tss-black);
		border-radius: 50%;
		background: var(--guide-paper);
	}

	.tss-data-pack__cue--route b { top: 5px; left: 4px; }
	.tss-data-pack__cue--route em { right: 2px; bottom: 7px; }
	.tss-data-pack__cue--camera i { inset: 8px 5px 6px; border: 2px solid var(--tss-black); border-radius: 3px; }
	.tss-data-pack__cue--camera b { top: 11px; left: 11px; width: 9px; height: 9px; border: 2px solid var(--tss-black); border-radius: 50%; }
	.tss-data-pack__cue--camera em { top: 5px; left: 8px; width: 11px; border-top: 3px solid var(--tss-black); }
	.tss-data-pack__cue--laptop i { top: 6px; left: 5px; width: 22px; height: 16px; border: 2px solid var(--tss-black); border-radius: 2px; }
	.tss-data-pack__cue--laptop b { right: 3px; bottom: 5px; left: 3px; border-bottom: 3px solid var(--tss-black); }
	.tss-data-pack__cue--laptop em { top: 2px; right: 3px; width: 6px; height: 6px; border-top: 2px solid var(--tss-black); border-right: 2px solid var(--tss-black); border-radius: 50%; }

	.tss-data-pack__radio {
		position: relative;
		display: block;
		width: 22px;
		height: 22px;
		grid-row: 1;
		grid-column: 3;
		justify-self: end;
		border: 2px solid var(--tss-black);
		border-radius: 50%;
		background: var(--guide-paper);
		box-shadow: none;
	}

	.tss-data-pack__radio::after {
		content: "";
		position: absolute;
		inset: 4px;
		border-radius: 50%;
		background: transparent;
	}

	.tss-data-pack strong {
		grid-row: 1;
		grid-column: 2;
		align-self: center;
		font-size: 17px;
		letter-spacing: -0.025em;
		line-height: 1.16;
	}

	.tss-data-pack small {
		grid-row: 2;
		grid-column: 2 / 4;
		align-self: start;
		overflow: visible;
		max-height: none;
		color: #4f4a42;
		font-size: 12.5px;
		font-weight: 650;
		line-height: 1.38;
		opacity: 1;
	}

	.tss-data-pack__status {
		grid-row: 3;
		grid-column: 2 / 4;
		margin-top: 1px;
		color: var(--tss-black);
		font-size: 10.5px;
		font-weight: 900;
		line-height: 1.2;
	}

	.tss-data-pack.is-selected .tss-data-pack__status { display: block; }

	.tss-data-pack:hover .tss-data-pack__surface,
	.tss-data-pack input:checked + .tss-data-pack__surface {
		box-shadow: none;
		transform: none;
	}

	.tss-data-pack input:checked + .tss-data-pack__surface { background: var(--guide-mobile-selected); }
	.tss-data-pack input:checked + .tss-data-pack__surface .tss-data-pack__radio { background: var(--guide-paper); }
	.tss-data-pack input:checked + .tss-data-pack__surface .tss-data-pack__radio::after { background: var(--tss-black); }
	.tss-data-pack input:focus-visible + .tss-data-pack__surface { outline: 3px solid #ff8e78; outline-offset: -5px; }
}

@media (max-width: 767px) {
	.tss-data-guide__mobile-cta:not([hidden]) {
		position: relative;
		z-index: 4;
		display: inline-flex;
		width: calc(100% - 16px);
		min-height: 48px;
		align-items: center;
		justify-content: center;
		justify-self: center;
		border: 2px solid var(--tss-black);
		border-radius: 7px;
		margin: 8px 8px 11px;
		padding: 9px 12px;
		background: var(--tss-yellow);
		box-shadow: 3px 3px 0 var(--tss-black);
		color: var(--tss-black);
		font-size: 13px;
		font-weight: 900;
		line-height: 1.15;
		text-align: center;
		cursor: pointer;
	}

	.tss-plan-choice[data-guide-profile="essential"] .tss-data-guide__mobile-cta { order: 2; }
	.tss-plan-choice[data-guide-profile="posting"] .tss-data-guide__mobile-cta { order: 4; }
	.tss-plan-choice[data-guide-profile="hotspot"] .tss-data-guide__mobile-cta { order: 6; }
	.tss-data-guide__mobile-cta:active { box-shadow: 1px 1px 0 var(--tss-black); transform: translate(2px, 2px); }
	.tss-plan-choice[data-guide-state="editing"] .tss-data-guide__match { display: none; }
	.tss-plan-choice:not([data-guide-state="editing"]) .tss-data-guide__packer { display: block; }
	.tss-plan-choice:not([data-guide-state="editing"]) .tss-data-pack:not(.is-selected) { display: none; }
	.tss-plan-choice:not([data-guide-state="editing"]) .tss-data-guide__tray { padding-top: 4px; }
	.tss-plan-choice:not([data-guide-state="editing"]) .tss-data-guide__tray::before { display: none; }
	.tss-plan-choice:not([data-guide-state="editing"]) .tss-data-guide__browse { display: none; }
	.tss-data-guide__trip[data-guide-trip-state="complete"] { margin: 38px 1px 17px; }
	.tss-data-guide__match { margin-top: 18px; }

	.tss-data-guide-dialog__head {
		position: sticky;
		top: 0;
		z-index: 4;
		align-items: center;
		padding-bottom: 10px;
		background: var(--guide-paper, #fffdf3);
	}
}

@media (max-width: 480px) {
	.tss-data-guide__plan dl { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.tss-data-guide__plan dl > div { border-right: 0; border-bottom: 1px solid #cbc7bb; padding: 0 0 8px; }
	.tss-data-guide__plan dl > div:last-child { border-bottom: 0; }
}

@media (max-width: 350px) {
	.tss-data-guide__head h2 { font-size: 34px; }
	.tss-data-guide__tray { box-shadow: 4px 4px 0 rgba(201, 217, 189, 0.78); }
	.tss-data-pack__surface { grid-template-columns: 30px minmax(0, 1fr) 22px; gap: 5px 8px; padding-right: 9px; padding-left: 9px; }
	.tss-data-pack__cue { width: 30px; height: 30px; transform: scale(0.94); transform-origin: center; }
	.tss-data-pack strong { font-size: 15.5px; }
	.tss-data-pack small { font-size: 12px; }
	.tss-data-guide__mobile-cta:not([hidden]) { font-size: 12px; }
}

@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
	body.tss-data-guide-dialog-open .tss-data-guide-dialog { animation: tss-data-guide-dialog-fade 180ms ease-out both; }
	body.tss-data-guide-dialog-open .tss-data-guide-dialog__panel { animation: tss-data-guide-dialog-rise 280ms cubic-bezier(0.22, 1, 0.36, 1) both; }
	.tss-data-guide__mobile-cta:not([hidden]) { animation: tss-data-guide-cta-settle 240ms cubic-bezier(0.22, 1, 0.36, 1) both; }
}

@keyframes tss-data-guide-dialog-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tss-data-guide-dialog-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tss-data-guide-cta-settle { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
	.tss-data-guide__shell *,
	.tss-data-guide__shell *::before,
	.tss-data-guide__shell *::after,
	.tss-data-guide-dialog * {
		animation: none !important;
		transition: none !important;
	}
}

/* Trip Match: a separate, unselected hotspot requirement. */
.np-match-hotspot,.tss-trip-hotspot-choice{display:block;max-width:100%;margin:20px 0;font:inherit}
.np-match-hotspot>span,.tss-trip-hotspot-choice>span{display:block;font-weight:700;margin-bottom:8px}
.np-match-hotspot select,.tss-trip-hotspot-choice select{display:block;width:100%;max-width:100%;min-height:44px;padding:10px 32px 10px 12px;border:1px solid #777c69;border-radius:4px;background:#fff;color:#111;font:inherit;box-sizing:border-box}
.np-match-hotspot select:focus-visible,.tss-trip-hotspot-choice select:focus-visible{outline:3px solid #176f59;outline-offset:3px}
.np-match-unlimited{grid-column:1/-1;max-width:100%;white-space:normal;text-align:left;background:transparent;border:0;color:#176f59;text-decoration:underline;font:inherit;padding:8px 0;min-height:44px}

.tss-data-guide__tray > .tss-trip-hotspot-choice { grid-column: 1 / -1; width: 100%; }
