/* ==========================================================================
   Base
   ========================================================================== */

/* --- Document ------------------------------------------------------------ */

html {
	scroll-behavior: smooth;
	scroll-padding-top: 88px;
}

body {
	-webkit-font-smoothing: antialiased;
}

/* Template parts and main sit flush; sections own their spacing. */
.wp-site-blocks > * {
	margin-block-start: 0;
}

/* Full-width covers keep the site gutter (core's own 1em padding would win). */
.wp-block-cover.alignfull {
	padding-left: var(--wp--style--root--padding-left);
	padding-right: var(--wp--style--root--padding-right);
}

/* --- Headings ------------------------------------------------------------ */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 850;
	font-stretch: 115%;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

h3,
h4,
h5,
h6 {
	font-weight: 800;
	font-stretch: 110%;
	letter-spacing: -0.015em;
}

.has-display-font-size {
	font-stretch: 118%;
	letter-spacing: -0.035em;
	line-height: var(--wp--custom--line-height--display);
}

p {
	text-wrap: pretty;
}

/* --- Buttons ------------------------------------------------------------- */

.wp-element-button,
.wp-block-button__link {
	font-weight: 700;
	line-height: 1.2;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

/* Outline: dark glass pill with a light hairline (hero secondary action). */
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) {
	background-color: rgba(14, 15, 17, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	padding: 15px 26px;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--ink);
}

/* Text: underlined link that sits in a button row. */
.wp-block-button.is-style-tt-text > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	padding-left: 10px;
	padding-right: 10px;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.35);
	text-underline-offset: 4px;
}

.wp-block-button.is-style-tt-text > .wp-block-button__link:hover {
	background: transparent;
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   Components
   ========================================================================== */

/* --- Badge (paragraph style) --------------------------------------------- */

.is-style-tt-badge {
	width: fit-content;
	padding: 8px 12px;
	border-radius: 6px;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--surface);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* --- Lead (paragraph style) ---------------------------------------------- */

.is-style-tt-lead {
	max-width: 580px;
	font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
	line-height: 1.55;
}

/* --- Eyebrow / label ----------------------------------------------------- */

.tt-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

/* --- Glass card (group style) -------------------------------------------- */

.wp-block-group.is-style-tt-glass {
	padding: 22px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 20px;
	background-color: rgba(14, 15, 17, 0.72);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.wp-block-group.is-style-tt-glass {
	gap: 0;
}

.is-style-tt-glass > .wp-block-group:first-child {
	margin-bottom: 14px;
}

.is-style-tt-glass p {
	margin: 0;
}

.tt-glass-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 16px;
	font-weight: 700;
	font-stretch: 108%;
}

/* --- Route row (group style) --------------------------------------------- */

.wp-block-group.is-style-tt-route {
	position: relative;
	gap: 12px;
	padding: 13px 4px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	transition: background-color 0.2s;
}

.wp-block-group.is-style-tt-route:hover {
	background-color: rgba(183, 112, 27, 0.06);
}

.is-style-tt-route .wp-block-group {
	gap: 3px;
}

.is-style-tt-route a {
	color: var(--wp--preset--color--ink);
	font-size: 15px;
	font-weight: 600;
}

/* The label link covers the whole row. */
.is-style-tt-route a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.tt-route-meta {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	color: var(--wp--preset--color--muted);
}

.tt-route-price {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 17px;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	white-space: nowrap;
}

/* --- Section head (eyebrow + h2 + intro) --------------------------------- */

.tt-eyebrow {
	margin: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}

.has-neutral-background-color .tt-eyebrow {
	color: color-mix(in srgb, var(--wp--preset--color--charcoal) 62%, transparent);
}

.tt-section-head {
	max-width: 720px;
}

.tt-section-head > .wp-block-heading {
	margin-top: 14px;
}

.tt-section-intro {
	max-width: 420px;
	margin: 0;
	line-height: 1.6;
	color: var(--wp--preset--color--soft);
}

.has-neutral-background-color .tt-section-intro {
	color: color-mix(in srgb, var(--wp--preset--color--charcoal) 78%, transparent);
}

/* --- Stats row ------------------------------------------------------------ */

.tt-stats {
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tt-stat {
	padding: 20px 0;
}

.tt-stat p {
	margin: 0;
}

.tt-stat .tt-stat-number {
	margin-bottom: 8px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 44px;
	font-weight: 850;
	font-stretch: 115%;
	line-height: 1;
}

.tt-stat .tt-stat-number + p {
	font-size: 15px;
}

/* --- Light card (group style) --------------------------------------------- */

.wp-block-group.is-style-tt-card-light {
	gap: 14px;
	min-height: 250px;
	padding: 30px 28px 26px;
	border: 1px solid #e3e0d8;
	border-radius: 18px;
	background-color: #fff;
	transition: transform 0.25s, box-shadow 0.25s;
}

.wp-block-group.is-style-tt-card-light:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px -20px rgba(20, 21, 24, 0.35);
}

.is-style-tt-card-light p,
.is-style-tt-card-light h3 {
	margin: 0;
}

.is-style-tt-card-light h3 {
	margin-top: 6px;
	font-size: 26px;
	line-height: 1.08;
	hyphens: manual;
}

.tt-card-num {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

.tt-chip {
	padding: 5px 9px;
	border-radius: 6px;
	background-color: var(--wp--preset--color--neutral);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	color: color-mix(in srgb, var(--wp--preset--color--charcoal) 78%, transparent);
}

.is-style-tt-card-light .tt-card-text {
	flex: 1;
	font-size: 16px;
	line-height: 1.6;
	color: color-mix(in srgb, var(--wp--preset--color--charcoal) 78%, transparent);
}

.tt-card-link a {
	padding-bottom: 3px;
	border-bottom: 2px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--charcoal);
	font-size: 15px;
	font-weight: 700;
}

.tt-card-link a:hover {
	color: color-mix(in srgb, var(--wp--preset--color--primary) 50%, var(--wp--preset--color--charcoal));
}

/* --- Dark card (group style) ---------------------------------------------- */

.wp-block-group.is-style-tt-card {
	padding: 26px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	background-color: var(--wp--preset--color--dark);
}

.is-style-tt-card p,
.is-style-tt-card h3 {
	margin: 0;
}

.is-style-tt-card h3 {
	font-size: 24px;
	line-height: 1.1;
}

.tt-card-meta {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	font-weight: 500;
	color: var(--wp--preset--color--primary);
	white-space: nowrap;
}

.is-style-tt-card .tt-card-text {
	margin-top: 12px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--wp--preset--color--soft);
}

/* --- Fleet section -------------------------------------------------------- */

.tt-fleet {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tt-fleet-image {
	margin: 0;
}

.tt-fleet-image img {
	width: 100%;
	min-height: 300px;
	object-position: center 55%;
}

/* --- Business band (the one amber section) -------------------------------- */

.has-primary-background-color .tt-eyebrow {
	color: #2e1a03;
}

.tt-business .wp-block-heading {
	margin-top: 14px;
}

.tt-business .is-style-tt-lead {
	max-width: 600px;
	margin-top: 22px;
	font-size: 18px;
	line-height: 1.6;
	color: #22150a;
}

.tt-business .wp-block-buttons {
	margin-top: 32px;
}

.tt-business .wp-block-button__link.has-charcoal-background-color:hover {
	background-color: #000 !important;
	color: var(--wp--preset--color--primary) !important;
}

/* Outline on amber: charcoal hairline instead of the hero's dark glass. */
.tt-business .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) {
	background-color: transparent;
	border: 1.5px solid var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--charcoal);
	font-weight: 700;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.tt-business .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover {
	background-color: var(--wp--preset--color--charcoal);
	border-color: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--primary);
}

/* --- Numbered list rows ---------------------------------------------------- */

.tt-list > .tt-list-row {
	gap: 12px;
	margin: 0;
	padding: 22px 0;
	border-top: 1.5px solid var(--wp--preset--color--charcoal);
}

.tt-list > .tt-list-row:last-child {
	border-bottom: 1.5px solid var(--wp--preset--color--charcoal);
}

.tt-list-row p,
.tt-list-row h3 {
	margin: 0;
}

.tt-list-num {
	flex: none;
	width: 48px;
	padding-top: 4px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	font-weight: 500;
}

.tt-list-row h3 {
	font-size: 21px;
	font-stretch: 108%;
	line-height: 1.2;
}

.tt-list-text {
	margin-top: 6px !important;
	font-size: 16px;
	line-height: 1.55;
	color: #22150a;
}

/* --- About (media & text + quote) ----------------------------------------- */

.tt-about .wp-block-media-text {
	gap: 48px;
}

.tt-about .wp-block-media-text__media img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	object-position: center 55%;
	border-radius: 24px;
}

.tt-about .wp-block-media-text__content {
	max-width: 540px;
	padding: 0;
}

.tt-about .wp-block-media-text__content > p:not(.tt-eyebrow) {
	margin-top: 16px;
	line-height: 1.65;
	color: var(--wp--preset--color--soft);
}

.tt-about .wp-block-media-text__content > .wp-block-heading {
	margin-top: 14px;
	font-size: clamp(2.125rem, 4vw, 3.5rem);
	line-height: 1;
}

.tt-about .wp-block-media-text__content > .wp-block-heading + p {
	margin-top: 22px;
}

.tt-about .wp-block-quote {
	margin: 30px 0 0;
	padding: 0 0 0 20px;
	border-left: 3px solid var(--wp--preset--color--primary);
}

.tt-about .wp-block-quote p {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 22px;
	font-weight: 700;
	font-stretch: 105%;
	line-height: 1.35;
	color: var(--wp--preset--color--ink);
}

/* --- FAQ (details) ---------------------------------------------------------- */

.tt-faq > .wp-block-heading {
	margin-top: 14px;
	font-size: clamp(2.125rem, 4vw, 3.5rem);
	line-height: 1;
}

.tt-faq .tt-eyebrow {
	color: #6b6a63;
}

.tt-faq-list {
	margin-top: 40px;
	border-top: 1.5px solid var(--wp--preset--color--charcoal);
}

.tt-faq-list > .wp-block-details {
	margin: 0;
	border-bottom: 1px solid #cfcbc1;
}

.tt-faq .wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 24px 0;
	cursor: pointer;
	list-style: none;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 20px;
	font-weight: 700;
	font-stretch: 105%;
	line-height: 1.3;
}

.tt-faq .wp-block-details summary::-webkit-details-marker {
	display: none;
}

/* Round +/− icon; filled charcoal with an amber sign when open. */
.tt-faq .wp-block-details summary::after {
	content: "+";
	flex: none;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	font-family: var(--wp--preset--font-family--body);
	font-size: 20px;
	font-weight: 400;
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.35s ease;
}

.tt-faq .wp-block-details[open] summary::after {
	content: "\2212";
	background-color: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--primary);
	transform: rotate(180deg);
}

/* Open/close: the answer slides open to its own height and fades in.
   Browsers without ::details-content or interpolate-size open instantly. */
.tt-faq-list > .wp-block-details {
	interpolate-size: allow-keywords;
}

.tt-faq .wp-block-details::details-content {
	block-size: 0;
	overflow-y: clip;
	opacity: 0;
	transition: block-size 0.35s ease, opacity 0.35s ease, content-visibility 0.35s allow-discrete;
}

.tt-faq .wp-block-details[open]::details-content {
	block-size: auto;
	opacity: 1;
}

.tt-faq .wp-block-details summary:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 4px;
}

/* Space under the answer is padding, not margin: a bottom margin slips out
   of ::details-content once the open transition ends, and the row jumped
   26px taller at the last frame. */
.tt-faq .wp-block-details > p {
	max-width: 760px;
	margin: 0;
	padding-bottom: 26px;
	font-size: 17px;
	line-height: 1.65;
	color: #45443f;
}

/* ==========================================================================
   Booking form (#varaa)
   The Ecosystem's Lomake block (Kuljetustilaus form) dressed as the demo's
   booking widget. Markup and behaviour are the plugin's; only looks here.
   ========================================================================== */

/* --- Section head --------------------------------------------------------- */

.tt-booking .tt-booking-intro {
	max-width: 600px;
	margin-top: 18px;
	font-size: 17px;
}

.tt-checklist {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	color: #d9d8d2;
}

.tt-checklist li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tt-checklist li::before {
	content: "\2713";
	color: var(--wp--preset--color--primary);
}

/* --- Layout: form card + sticky summary ----------------------------------- */

.tt-booking .wa-form {
	--wa-form-accent: var(--wp--preset--color--primary);
	--wa-form-error: #ff8a7a;
	--wa-form-error-text: #ff8a7a;
	--wa-form-radius: 12px;
	--wa-form-field-bg: var(--wp--preset--color--surface);
	--wa-form-pop-bg: #1e2024;
	--wa-form-pop-fg: var(--wp--preset--color--ink);
	--wa-form-knob: var(--wp--preset--color--ink);
	--wa-form-panel-bg: var(--wp--preset--color--dark);
	--wa-form-panel-radius: 24px;
	/* Wide like the section head; "none" let the form run edge to edge. */
	max-width: var(--wp--style--global--wide-size);
}

.tt-booking .wa-form--side {
	gap: 24px;
}

/* Wider summary than the plugin's default; below 861px the plugin stacks
   the summary under the form, so this stays out of its way. */
@media (min-width: 861px) {
	.tt-booking .wa-form--side {
		grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
	}
}

.tt-booking .wa-form__main {
	padding: clamp(20px, 3vw, 36px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 24px;
	background-color: var(--wp--preset--color--dark);
}

.tt-booking .wa-form__summary {
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 96px);
}

/* --- Steps ------------------------------------------------------------------ */

/* The demo shows numbered step pills only; the step counter and step titles
   stay for screen readers. */
.tt-booking .wa-form__stepof,
.tt-booking .wa-form__steptitle {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.tt-booking .wa-form__progress {
	margin-bottom: 32px;
}

.tt-booking .wa-form__steplist {
	gap: 8px;
	counter-reset: tt-step;
}

.tt-booking .wa-form__steplist li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	color: #a3a39c;
	opacity: 1;
	counter-increment: tt-step;
}

.tt-booking .wa-form__steplist li::before {
	content: counter(tt-step);
	flex: none;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--wp--preset--color--soft);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	font-weight: 700;
}

.tt-booking .wa-form__steplist li[aria-current] {
	border-color: rgba(183, 112, 27, 0.5);
	background-color: rgba(183, 112, 27, 0.1);
	color: var(--wp--preset--color--ink);
}

.tt-booking .wa-form__steplist li.is-done::before {
	content: "\2713";
}

.tt-booking .wa-form__steplist li[aria-current]::before,
.tt-booking .wa-form__steplist li.is-done::before {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--surface);
}

.tt-booking .wa-form__grid {
	gap: 26px 12px;
}

/* --- Fields ----------------------------------------------------------------- */

.tt-booking .wa-form__f > label,
.tt-booking .wa-form__f > legend,
.tt-booking .wa-route__pt > label,
.tt-booking .wa-route__km label,
.tt-booking .wa-form__subf label {
	margin-bottom: 2px;
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--soft);
}

.tt-booking .wa-form__req {
	color: var(--wp--preset--color--primary);
}

.tt-booking .wa-form__help {
	font-size: 14px;
	color: #a3a39c;
	opacity: 1;
}

.tt-booking .wa-form__f input:not([type="checkbox"]):not([type="radio"]),
.tt-booking .wa-form__f select,
.tt-booking .wa-form__f textarea,
.tt-booking .wa-form__subf input {
	padding: 14px 16px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	font-size: 16px;
	outline: none;
	color-scheme: dark;
}

.tt-booking .wa-form__f input:not([type="checkbox"]):not([type="radio"]):focus,
.tt-booking .wa-form__f select:focus,
.tt-booking .wa-form__f textarea:focus,
.tt-booking .wa-form__subf input:focus {
	border-color: var(--wp--preset--color--primary);
}

.tt-booking .wa-form__f textarea {
	resize: vertical;
}

/* iOS Safari gives native date and time inputs an intrinsic minimum width,
   so they ran past the right edge of the column on phones. iOS only
   (-webkit-touch-callout): elsewhere appearance: none can drop the picker icon. */
@supports (-webkit-touch-callout: none) {
	.tt-booking .wa-form__f input[type="date"],
	.tt-booking .wa-form__f input[type="time"] {
		-webkit-appearance: none;
		appearance: none;
		min-width: 0;
		max-width: 100%;
		min-height: 52px;
		text-align: left;
	}

	.tt-booking .wa-form__f input::-webkit-date-and-time-value {
		text-align: left;
	}
}

.tt-booking .wa-form__f [aria-invalid="true"] {
	border-color: var(--wa-form-error);
}

/* Pills: amber fill when picked, as the demo's chips. */
.tt-booking .wa-form__pills .wa-form__opt {
	padding: 11px 16px;
	border-color: rgba(255, 255, 255, 0.18);
	font-size: 15px;
	font-weight: 600 !important;
	color: #e4e3dd;
}

.tt-booking .wa-form__pills .wa-form__opt:has(input:checked) {
	border-color: var(--wp--preset--color--primary);
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--surface);
}

/* Route: quick picks as quiet chips under each address. */
.tt-booking .wa-place__favs {
	margin-top: 4px;
}

.tt-booking .wa-place__fav {
	padding: 5px 11px;
	border-color: rgba(255, 255, 255, 0.14);
	font-size: 13px;
	color: var(--wp--preset--color--soft);
}

.tt-booking .wa-place__fav:hover,
.tt-booking .wa-place__fav:focus-visible {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--ink);
}

.tt-booking .wa-place__list {
	padding: 6px;
	border-color: rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.6);
}

.tt-booking .wa-place__list li:hover,
.tt-booking .wa-place__list li[aria-selected="true"] {
	background-color: rgba(183, 112, 27, 0.1);
}

.tt-booking .wa-form__swap,
.tt-booking .wa-route__swap {
	border-color: rgba(255, 255, 255, 0.14);
	color: var(--wp--preset--color--primary);
}

/* Passenger stepper: full width, − and + at the ends. */
.tt-booking .wa-form__stepper {
	display: flex;
	max-width: none;
	padding: 5px;
	border-color: rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	background-color: var(--wp--preset--color--surface);
}

.tt-booking .wa-form__f .wa-form__stepper input:not([type="checkbox"]):not([type="radio"]) {
	padding: 0;
	border: 0;
	background: transparent;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 18px;
	font-weight: 700;
}

.tt-booking .wa-form__stepbtn {
	flex: 0 0 44px;
	height: 42px;
	border-radius: 9px;
	background: transparent;
	font-size: 20px;
}

.tt-booking .wa-form__stepbtn:hover:not(:disabled) {
	background-color: rgba(255, 255, 255, 0.08);
}

/* Return trip: switch in its own panel. */
.tt-booking .wa-form__toggle {
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	background-color: var(--wp--preset--color--surface);
}

.tt-booking .wa-form__toggle label {
	font-size: 16px;
	font-weight: 600 !important;
	color: var(--wp--preset--color--ink);
}

.tt-booking .wa-form__track {
	flex-basis: 48px;
	height: 28px;
	background-color: rgba(255, 255, 255, 0.18);
}

.tt-booking .wa-form__track::after {
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	box-shadow: none;
}

.tt-booking input:checked + .wa-form__track::after {
	transform: translateX(20px);
}

.tt-booking .wa-form__toggle input {
	width: 48px;
	height: 28px;
}

/* Extras: checkbox cards in a grid. */
.tt-booking [data-wa-field="lisat"] {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 10px;
}

.tt-booking [data-wa-field="lisat"] > legend {
	float: left;
	grid-column: 1 / -1;
	width: 100%;
	margin-bottom: 2px;
}

.tt-booking [data-wa-field="lisat"] > .wa-form__err {
	grid-column: 1 / -1;
}

.tt-booking [data-wa-field="lisat"] .wa-form__opt {
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	background-color: var(--wp--preset--color--surface);
	font-size: 15px;
	font-weight: 500 !important;
}

.tt-booking [data-wa-field="lisat"] .wa-form__opt:has(input:checked) {
	border-color: rgba(183, 112, 27, 0.5);
}

.tt-booking [data-wa-field="lisat"] input[type="checkbox"] {
	margin: 0;
}

/* --- Step buttons ------------------------------------------------------------- */

.tt-booking .wa-form__nav {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tt-booking .wa-form__nav .wp-element-button {
	padding: 16px 28px;
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 999px;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--surface);
	font-size: 16px;
	font-weight: 700;
}

.tt-booking .wa-form__nav .wp-element-button:hover {
	border-color: var(--wp--preset--color--accent);
	background-color: var(--wp--preset--color--accent);
}

.tt-booking .wa-form .wa-form__prev {
	padding: 15px 22px;
	border-color: rgba(255, 255, 255, 0.2);
	background: transparent;
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

.tt-booking .wa-form .wa-form__prev:hover {
	border-color: var(--wp--preset--color--ink);
	background: transparent;
}

.tt-booking .wa-form__status.is-ok {
	padding: 22px;
	border: 1px solid rgba(183, 112, 27, 0.35);
	border-radius: 16px;
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	font-size: 17px;
	line-height: 1.6;
}

/* --- Summary panel -------------------------------------------------------------- */

.tt-booking .wa-form__sumin {
	gap: 20px;
	padding: 26px 26px 28px;
	border-color: rgba(255, 255, 255, 0.08);
}

.tt-booking .wa-form__sumtitle {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

/* Map under the "Matkasi" title, rounded like the price box. The dark
   map style itself comes from assets/js/booking.js. */
.tt-booking .wa-map {
	height: 280px;
	overflow: hidden;
	border-radius: 16px;
	background-color: var(--wp--preset--color--dark);
}

.tt-booking .wa-form__sumkv {
	gap: 8px;
	font-size: 15px;
}

.tt-booking .wa-form__sumkv dt {
	color: var(--wp--preset--color--muted);
	opacity: 1;
}

.tt-booking .wa-form__sumkv dd {
	color: #e4e3dd;
}

/* Price box: amber hairline, big Archivo figure. */
.tt-booking .wa-form__sumprice {
	gap: 10px;
	padding: 22px;
	border: 1px solid rgba(183, 112, 27, 0.35);
	border-radius: 16px;
	background-color: var(--wp--preset--color--surface);
}

.tt-booking .wa-form__sumprice span {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	opacity: 1;
}

.tt-booking .wa-form__sumprice strong {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(38px, 4vw, 52px);
	font-weight: 850;
	font-stretch: 112%;
	line-height: 1;
	letter-spacing: -0.02em;
}

/* Price line above the step buttons (the Ecosystem's .wa-form__sumline, 0.4.30). Phones only:
   there the summary stacks under the whole form, below the send button. */
.tt-booking .wa-form__sumline {
	display: none;
}

@media (max-width: 860px) {
	.tt-booking .wa-form__sumline:not([hidden]) {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 4px 12px;
		margin: 28px 0 0;
		padding: 16px 18px;
		border: 1px solid rgba(183, 112, 27, 0.35);
		border-radius: 16px;
		background-color: var(--wp--preset--color--surface);
	}

	.tt-booking .wa-form__sumline span {
		flex-basis: 100%;
		font-family: var(--wp--preset--font-family--mono);
		font-size: 12px;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		color: var(--wp--preset--color--primary);
	}

	.tt-booking .wa-form__sumline strong {
		font-family: var(--wp--preset--font-family--heading);
		font-size: 26px;
		font-weight: 850;
		font-stretch: 112%;
		line-height: 1.1;
		color: var(--wp--preset--color--ink);
	}

	.tt-booking .wa-form__sumline .wa-form__sumgo {
		margin-left: auto;
		padding: 0;
		border: 0;
		background: none;
		color: var(--wp--preset--color--soft);
		font: inherit;
		font-size: 14px;
		text-decoration: underline;
		text-underline-offset: 3px;
		cursor: pointer;
	}
}

.tt-booking .wa-form__sumrows {
	gap: 9px;
	margin-top: -8px;
	padding: 16px 22px 0;
	border-top: 1px dashed rgba(255, 255, 255, 0.14);
	font-size: 14px;
}

.tt-booking .wa-form__sumrows li span:first-child {
	color: var(--wp--preset--color--soft);
}

.tt-booking .wa-form__sumrows li span:last-child {
	font-family: var(--wp--preset--font-family--mono);
	color: var(--wp--preset--color--ink);
}

.tt-booking .wa-form__disclaimer {
	font-size: 13px;
	line-height: 1.55;
	color: var(--wp--preset--color--muted);
	opacity: 1;
}

/* ==========================================================================
   Header
   ========================================================================== */

/* --- Bar ----------------------------------------------------------------- */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 1000;
}

/* Front page: the header overlays the hero and turns solid on scroll. */
body.home .wp-site-blocks > header.wp-block-template-part {
	position: fixed;
	left: 0;
	right: 0;
}

/* Background and blur sit on a pseudo-element: backdrop-filter on the bar
   itself would trap the navigation's fixed overlay inside the bar. */
.tt-header {
	position: relative;
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s;
}

.tt-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: rgba(14, 15, 17, 0.86);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	transition: background-color 0.3s;
}

body.home:not(.tt-scrolled) .tt-header::before {
	background-color: rgba(14, 15, 17, 0);
}

body.tt-scrolled .tt-header,
body:not(.home) .tt-header {
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* --- Brand --------------------------------------------------------------- */

.tt-brand {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 20px;
	font-weight: 800;
	font-stretch: 112%;
	line-height: 1;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.tt-brand a {
	display: inline-flex;
	align-items: center;
	color: var(--wp--preset--color--ink);
}

.tt-brand a::before {
	content: "";
	flex: none;
	width: 30px;
	height: 30px;
	margin-right: 12px;
	background-color: var(--wp--preset--color--primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M14 0H86A14 14 0 0 1 100 14H0A14 14 0 0 1 14 0Z M0 34H40V100H14A14 14 0 0 1 0 86Z M60 34H100V86A14 14 0 0 1 86 100H60Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M14 0H86A14 14 0 0 1 100 14H0A14 14 0 0 1 14 0Z M0 34H40V100H14A14 14 0 0 1 0 86Z M60 34H100V86A14 14 0 0 1 86 100H60Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- Navigation ---------------------------------------------------------- */

.tt-header .wp-block-navigation {
	gap: 30px;
	font-size: 15px;
	font-weight: 500;
}

.tt-header .wp-block-navigation-item__content {
	color: var(--wp--preset--color--soft);
}

.tt-header .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primary);
}

.tt-header .is-menu-open .wp-block-navigation-item__content {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 28px;
	font-weight: 800;
}

/* --- Phone + CTA --------------------------------------------------------- */

.tt-phone {
	margin: 0;
	white-space: nowrap;
}

.tt-phone a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 4px;
	color: var(--wp--preset--color--ink);
	font-size: 15px;
	font-weight: 600;
}

.tt-phone a::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #5bd38a;
	animation: tt-pulse 1.8s infinite;
}

@keyframes tt-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(183, 112, 27, 0.55);
	}

	100% {
		box-shadow: 0 0 0 12px rgba(183, 112, 27, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tt-phone a::before {
		animation: none;
	}

	/* Separate rules: a browser without ::details-content drops the whole list. */
	.tt-faq .wp-block-details summary::after {
		transition: none;
	}

	.tt-faq .wp-block-details::details-content {
		transition: none;
	}
}

.tt-header .wp-block-button__link {
	padding: 11px 18px;
	font-size: 15px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

/* --- CTA row ------------------------------------------------------------- */

.tt-footer-cta {
	padding-bottom: 64px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tt-footer-cta .wp-block-heading {
	max-width: 760px;
	margin: 0;
	font-size: clamp(2.5rem, 6vw, 5.5rem);
	font-stretch: 118%;
	line-height: 0.92;
	letter-spacing: -0.035em;
}

.tt-footer-cta .wp-block-button__link {
	font-size: 18px;
	padding: 18px 30px;
}

.tt-footer-cta .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) {
	padding: 17px 28px;
}

/* --- Columns ------------------------------------------------------------- */

.tt-footer-cols {
	padding: 48px 0;
	font-size: 15px;
	line-height: 1.8;
}

.tt-footer-cols p {
	margin: 0;
}

.tt-footer-cols .tt-brand {
	margin-bottom: 12px;
	font-size: 18px;
}

.tt-footer-cols .tt-brand a::before {
	width: 24px;
	height: 24px;
	margin-right: 10px;
}

.tt-footer-cols .tt-label {
	margin-bottom: 10px;
	letter-spacing: 0.12em;
}

.tt-footer-cols a:not(.tt-brand a) {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.tt-footer-cols a:not(.tt-brand a):hover {
	color: var(--wp--preset--color--primary);
}

/* --- Legal row ----------------------------------------------------------- */

.tt-footer-legal p {
	margin: 0;
	font-size: 13px;
	color: var(--wp--preset--color--muted);
}

.tt-footer-legal a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tt-footer-legal a:hover {
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   Content pages (templates/page.html)
   Text pages such as the privacy and accessibility statements: the front
   page's display headings are far too big for running text, and long
   Finnish compounds broke mid-word.
   ========================================================================== */

.tt-page .tt-page-title {
	margin-bottom: 28px;
	font-size: clamp(2.125rem, 5vw, 3.5rem);
	line-height: 1.02;
}

.tt-page .wp-block-post-content {
	color: var(--wp--preset--color--soft);
	font-size: 17px;
	line-height: 1.7;
}

.tt-page .wp-block-post-content h2 {
	margin-top: 56px;
	margin-bottom: 14px;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	color: var(--wp--preset--color--ink);
	font-size: clamp(1.5rem, 2.4vw, 1.875rem);
	line-height: 1.15;
}

.tt-page .wp-block-post-content h3 {
	margin-top: 32px;
	margin-bottom: 10px;
	color: var(--wp--preset--color--ink);
	font-size: 1.25rem;
	line-height: 1.25;
}

.tt-page .wp-block-post-content :where(p, ul) {
	margin-top: 0;
	margin-bottom: 16px;
}

.tt-page .wp-block-post-content ul {
	padding-left: 1.25em;
}

.tt-page .wp-block-post-content li + li {
	margin-top: 6px;
}

.tt-page .wp-block-post-content li::marker {
	color: var(--wp--preset--color--primary);
}

.tt-page .wp-block-post-content a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

/* Below 920px the demo drops the inline nav and the CTA: core's hamburger
   only switches at 600px, so it is widened here. Re-check after major
   WordPress updates (overrides core navigation's responsive container). */
/* Stats: 2 x 2 on phones instead of four tall rows. */
@media (max-width: 599px) {
	.tt-stats .wp-block-group.alignwide {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.tt-stat {
		padding: 12px 0;
	}

	.tt-stat .tt-stat-number {
		font-size: 36px;
	}

	/* Header: brand + phone + menu button need 359px at 375px wide (343px
	   between the gutters). Tighter gaps and a smaller brand keep the button
	   inside the gutter. */
	.tt-header .wp-block-group.alignwide {
		gap: 14px;
	}

	.tt-header .tt-brand {
		font-size: 18px;
	}

	.tt-header .tt-brand a::before {
		width: 26px;
		height: 26px;
		margin-right: 10px;
	}
}

/* Hero: the route card drops below the heading before it gets cramped
   (the demo wraps at the same point). */
@media (max-width: 999px) {
	.tt-hero .wp-block-columns {
		flex-wrap: wrap !important;
	}

	.tt-hero .wp-block-column {
		flex-basis: 100% !important;
	}

	.tt-hero .is-style-tt-glass {
		max-width: 460px;
	}
}

@media (max-width: 919px) {
	.tt-header .wp-block-buttons {
		display: none;
	}

	.tt-header .wp-block-navigation {
		order: 3;
	}
}

@media (min-width: 600px) and (max-width: 919px) {
	.tt-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.tt-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.tt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		display: flex;
	}
}

/* Booking form: on phones the step pills keep the number only, the current
   step keeps its name too. */
@media (max-width: 599px) {
	.tt-booking .wa-form__steplist li {
		flex: 0 0 auto;
		padding: 8px;
		font-size: 0;
	}

	.tt-booking .wa-form__steplist li[aria-current] {
		flex: 1;
		padding-right: 14px;
		font-size: 15px;
	}

	.tt-booking .wa-form__summary .wa-map {
		height: 220px;
	}

	/* Route quick picks: one row that scrolls sideways instead of a stack of
	   wrapped chips. The row bleeds to the card edge (the card's 20px phone
	   padding) and fades out on the right, so a cut-off chip hints at more. */
	.tt-booking .wa-place__favs {
		flex-wrap: nowrap;
		margin-inline: -20px;
		padding: 2px 48px 2px 20px; /* Right: the last chip clears the fade when scrolled to the end. */
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		scroll-padding-inline: 20px;
		scrollbar-width: none;
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
		mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
	}

	.tt-booking .wa-place__favs::-webkit-scrollbar {
		display: none;
	}

	.tt-booking .wa-place__fav {
		flex: none;
		white-space: nowrap;
		scroll-snap-align: start;
	}
}
