/* ==========================================================================
   Mutable Trajectory – accessible theme
   Two backgrounds: "Dia" (light) and "Noite" (dark, the logo colours). Every
   text/background pair below is at least 4.5:1 (most above 10:1). Sizes are in
   rem so the text-size control and browser zoom scale everything together.
   ========================================================================== */

@font-face {
	font-family: "Atkinson Hyperlegible";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Atkinson Hyperlegible";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2");
}
@font-face {
	font-family: "Atkinson Hyperlegible";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
}

/* --- Colour tokens ------------------------------------------------------- */

:root {
	/* Brand, identical in both themes */
	--navy: #0b1633;
	--navy-2: #13224a;
	--yellow: #ffd21f;

	/* Dia (light) */
	--bg: #ffffff;
	--surface: #fffbe8;
	--surface-2: #f2f4fa;
	--text: #0b1633;
	--muted: #33405e;
	--heading: #0b1633;
	--link: #0a3a8c;
	--link-hover: #0b1633;
	--border: #5b6785;
	--border-strong: #0b1633;
	--accent-text: #0b1633;
	--btn-bg: #ffd21f;
	--btn-text: #0b1633;
	--btn-border: #0b1633;
	--ghost-text: #0b1633;
	--ghost-border: #0b1633;
	--focus: #0b1633;
	--focus-halo: #ffd21f;
	--error: #a3001b;
	--error-bg: #fff0f1;
	--success: #0b5c2b;
	--success-bg: #ecf8f0;
	--mark: #ffd21f;

	color-scheme: light;
}

:root[data-theme="noite"] {
	--bg: #0b1633;
	--surface: #13224a;
	--surface-2: #0f1c3f;
	--text: #ffffff;
	--muted: #d7ddef;
	--heading: #ffd21f;
	--link: #ffd21f;
	--link-hover: #ffffff;
	--border: #8a97bd;
	--border-strong: #d7ddef;
	--accent-text: #ffd21f;
	--btn-bg: #ffd21f;
	--btn-text: #0b1633;
	--btn-border: #ffd21f;
	--ghost-text: #ffffff;
	--ghost-border: #ffffff;
	--focus: #ffd21f;
	--focus-halo: #0b1633;
	--error: #ffb4b4;
	--error-bg: #2a1630;
	--success: #9ff0bd;
	--success-bg: #0f2b33;
	--mark: #ffd21f;

	color-scheme: dark;
}

/* No JavaScript: follow the device setting. */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--bg: #0b1633;
		--surface: #13224a;
		--surface-2: #0f1c3f;
		--text: #ffffff;
		--muted: #d7ddef;
		--heading: #ffd21f;
		--link: #ffd21f;
		--link-hover: #ffffff;
		--border: #8a97bd;
		--border-strong: #d7ddef;
		--accent-text: #ffd21f;
		--btn-border: #ffd21f;
		--ghost-text: #ffffff;
		--ghost-border: #ffffff;
		--focus: #ffd21f;
		--focus-halo: #0b1633;
		--error: #ffb4b4;
		--error-bg: #2a1630;
		--success: #9ff0bd;
		--success-bg: #0f2b33;
		color-scheme: dark;
	}
}

/* --- Base ---------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: "Atkinson Hyperlegible", Verdana, Arial, sans-serif;
	font-size: 1.1875rem; /* 19px at default zoom */
	line-height: 1.65;
	overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
	color: var(--heading);
	line-height: 1.25;
	margin: 2rem 0 0.75rem;
	font-weight: 700;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); margin-top: 0; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2rem); }
h3 { font-size: 1.3rem; }

p,
ul,
ol,
dl {
	margin: 0 0 1rem;
}

ul,
ol {
	padding-left: 1.5rem;
}
li + li {
	margin-top: 0.4rem;
}

strong {
	font-weight: 700;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--link);
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}
a:hover {
	color: var(--link-hover);
	text-decoration-thickness: 0.16em;
}

/* One strong focus style everywhere: thick outline plus a contrasting halo. */
:focus-visible {
	outline: 0.25rem solid var(--focus);
	outline-offset: 0.2rem;
	box-shadow: 0 0 0 0.5rem var(--focus-halo);
	border-radius: 0.2rem;
}
:focus:not(:focus-visible) {
	outline: none;
}
[tabindex="-1"]:focus {
	outline: none;
	box-shadow: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.container {
	width: 100%;
	max-width: 72rem;
	margin: 0 auto;
	padding: 0 1rem;
}
@media (min-width: 48rem) {
	.container {
		padding: 0 2rem;
	}
}

/* --- Skip link ------------------------------------------------------------ */

.skip-link {
	position: absolute;
	left: 1rem;
	top: -10rem;
	z-index: 1000;
	padding: 0.75rem 1.25rem;
	background: var(--yellow);
	color: var(--navy);
	font-weight: 700;
	border: 0.2rem solid var(--navy);
	border-radius: 0.4rem;
}
.skip-link:focus {
	top: 1rem;
	outline: 0.25rem solid var(--navy);
	box-shadow: 0 0 0 0.5rem var(--yellow);
}

/* --- Header (navy in both themes, like the logo) --------------------------- */

.site-header {
	--focus: #ffd21f;
	--focus-halo: #0b1633;
	background: var(--navy);
	color: #ffffff;
}
.site-header a {
	color: #ffffff;
}

.toolbar {
	background: #070f24;
	border-bottom: 1px solid #2a3a66;
	font-size: 1rem;
}
.toolbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	padding-top: 0.4rem;
	padding-bottom: 0.4rem;
}


.display-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
}
.display-controls[hidden] {
	display: none;
}
.control-group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
}
.control-group__label {
	font-weight: 700;
	margin-right: 0.15rem;
}
.control-group__value {
	min-width: 3.2rem;
	font-variant-numeric: tabular-nums;
}

.ctrl {
	min-height: 2.75rem;
	min-width: 2.75rem;
	padding: 0 0.75rem;
	font: inherit;
	font-weight: 700;
	color: #ffffff;
	background: transparent;
	border: 0.125rem solid #c9d1ea;
	border-radius: 0.4rem;
	cursor: pointer;
}
.ctrl:hover {
	border-color: var(--yellow);
}
.ctrl[aria-pressed="true"] {
	background: var(--yellow);
	border-color: var(--yellow);
	color: var(--navy);
}
.ctrl:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.masthead {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

/* The logo exactly as supplied (it has its own navy background). */
.brand {
	display: block;
	width: min(100%, 24rem);
	border-radius: 0.5rem;
	text-decoration: none;
}
.brand__logo {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0.5rem;
}
.brand:hover .brand__logo {
	outline: 0.15rem solid var(--yellow);
	outline-offset: 0.25rem;
}

.primary-nav ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.primary-nav li + li {
	margin-top: 0;
}
.primary-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0 0.7rem;
	border-radius: 0.3rem;
	text-decoration: none;
	font-weight: 700;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"],
.primary-nav .current-menu-ancestor > a {
	text-decoration: underline;
	text-decoration-color: var(--yellow);
	text-decoration-thickness: 0.2em;
	text-underline-offset: 0.35em;
}
.primary-nav a[aria-current="page"],
.primary-nav .current-menu-ancestor > a {
	color: var(--yellow);
}
.primary-nav .nav-cta {
	background: var(--yellow);
	color: var(--navy);
	padding: 0 1rem;
}
.primary-nav .nav-cta:hover,
.primary-nav .nav-cta[aria-current="page"] {
	color: var(--navy);
	text-decoration-color: var(--navy);
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 2.75rem;
	padding: 0 1rem;
	font: inherit;
	font-weight: 700;
	color: var(--navy);
	background: var(--yellow);
	border: 0;
	border-radius: 0.4rem;
	cursor: pointer;
}
.nav-toggle[hidden] {
	display: none;
}
.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
	display: block;
	width: 1.25rem;
	height: 0.15rem;
	background: currentColor;
	border-radius: 1px;
}
.nav-toggle__icon {
	position: relative;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after {
	content: "";
	position: absolute;
	left: 0;
}
.nav-toggle__icon::before { top: -0.4rem; }
.nav-toggle__icon::after { top: 0.4rem; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
	background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
	top: 0;
	transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
	top: 0;
	transform: rotate(-45deg);
}

/* Small screens (and large text sizes): the menu folds behind the button. */
.js .primary-nav.is-collapsible {
	width: 100%;
}
.js .primary-nav.is-collapsible ul {
	flex-direction: column;
	align-items: stretch;
	padding-top: 0.75rem;
}
.js .primary-nav.is-collapsible ul[hidden] {
	display: none;
}
.js .primary-nav.is-collapsible a {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border-top: 1px solid #2a3a66;
}
.js .primary-nav.is-collapsible .nav-cta {
	justify-content: center;
	margin-top: 0.5rem;
	border-top: 0;
}

/* --- Main ------------------------------------------------------------------ */

.site-main {
	display: block;
	padding-bottom: 3rem;
}
.site-main:focus {
	outline: none;
}

.page-article {
	padding-top: 2rem;
}
.page-header {
	margin-bottom: 1.5rem;
	max-width: 48rem;
}

/* Text keeps a comfortable reading width; tables, cards and the "Sobre mim" block use the full container. */
.entry-content > * {
	max-width: 48rem;
}
.entry-content > :is(.mt-rates, .mt-region, .mt-service-list, .mt-route-list, .mt-about-me) {
	max-width: none;
}
.entry-content > *:first-child {
	margin-top: 0;
}
.entry-content .wp-block-group > *:first-child {
	margin-top: 0;
}

/* Hero */
.hero {
	background: var(--navy);
	color: #ffffff;
	--focus: #ffd21f;
	--focus-halo: #0b1633;
	border-top: 1px solid #2a3a66;
	margin-bottom: 2.5rem;
}
.hero__inner {
	display: grid;
	gap: 1.25rem;
	padding-top: 2.5rem;
	padding-bottom: 3rem;
	justify-items: start;
}
@media (max-width: 40rem) {
	.hero__inner {
		padding-top: 1.5rem;
	}
}
.hero__title {
	color: #ffffff;
	max-width: none;
	margin: 0;
}
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
}
.hero__actions li + li {
	margin-top: 0;
}
.hero .mt-button--ghost,
.hero .mt-button--ghost:hover {
	color: #ffffff;
	border-color: #ffffff;
}

/* Buttons (links styled as buttons) */
.mt-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 3rem;
	padding: 0.5rem 1.25rem;
	font: inherit;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	color: var(--btn-text);
	background: var(--btn-bg);
	border: 0.15rem solid var(--btn-border);
	border-radius: 0.5rem;
	cursor: pointer;
}
.mt-button:hover {
	color: var(--btn-text);
	text-decoration: underline;
	text-decoration-thickness: 0.12em;
}
.mt-button--ghost {
	background: transparent;
	color: var(--ghost-text);
	border-color: var(--ghost-border);
}
.mt-button--ghost:hover {
	color: var(--ghost-text);
}

/* Route cards */
.mt-route-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	gap: 1.25rem;
	margin: 1.5rem 0 2rem;
	padding: 0;
	list-style: none;
}
.mt-route-list > li + li {
	margin-top: 0;
}
.mt-route-card article {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.25rem 1.25rem 1rem;
	background: var(--surface);
	border: 0.125rem solid var(--border);
	border-radius: 0.75rem;
}
.mt-route-card__title {
	font-size: 1.3rem;
	margin: 0 0 0.35rem;
}
.mt-route-card__title a {
	color: var(--heading);
}
.mt-route-card__destination {
	font-weight: 700;
	color: var(--muted);
	margin-bottom: 0.6rem;
}
.mt-route-card__actions {
	margin: auto 0 0;
	padding-top: 0.75rem;
}

/* Key facts */
.mt-facts {
	display: grid;
	gap: 0.5rem;
	margin: 0.5rem 0 0.75rem;
}
.mt-facts > div {
	display: grid;
	grid-template-columns: minmax(8rem, auto) 1fr;
	gap: 0.75rem;
	padding-top: 0.45rem;
	border-top: 1px solid var(--border);
}
.mt-facts dt {
	font-weight: 700;
}
.mt-facts dd {
	margin: 0;
}
.mt-facts--large {
	font-size: 1.1rem;
	max-width: 44rem;
}
.mt-small {
	font-size: 0.9em;
	color: var(--muted);
}

/* Route page */
.route__eyebrow {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
	margin-bottom: 0.4rem;
}
.route__summary {
	font-size: 1.2rem;
	max-width: 44rem;
}
.route__image {
	margin: 0 0 2rem;
}
.route__image img {
	border-radius: 0.75rem;
}
.route__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.25rem;
}
.route section {
	max-width: 48rem;
}

.itinerary {
	list-style: none;
	padding: 0;
	margin: 0;
	border-left: 0.3rem solid var(--mark);
}
.itinerary__step {
	position: relative;
	padding: 0 0 1.25rem 1.5rem;
}
.itinerary__step + .itinerary__step {
	margin-top: 0;
}
.itinerary__step::before {
	content: "";
	position: absolute;
	left: -0.8rem;
	top: 0.35rem;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	background: var(--bg);
	border: 0.25rem solid var(--mark);
}
.itinerary__time {
	font-weight: 700;
	color: var(--accent-text);
	margin: 0 0 0.2rem;
	font-variant-numeric: tabular-nums;
}
.itinerary__text {
	margin: 0;
}
.costs {
	padding-left: 1.25rem;
}

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
	font-size: 1rem;
}
.breadcrumb li + li {
	margin-top: 0;
}
.breadcrumb li + li::before {
	content: "›";
	padding: 0 0.4rem;
	color: var(--muted);
}
.breadcrumb a[aria-current] {
	color: var(--text);
	text-decoration: none;
	font-weight: 700;
}

/* Tables */
.mt-table-wrap {
	overflow-x: auto;
	margin: 0 0 1rem;
	border: 0.125rem solid var(--border);
	border-radius: 0.5rem;
}
.mt-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 36rem;
}
.mt-table th,
.mt-table td {
	padding: 0.75rem 0.9rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--border);
}
.mt-table thead th {
	background: var(--surface-2);
	color: var(--heading);
}
.mt-table tbody tr:last-child > * {
	border-bottom: 0;
}
.mt-table tbody th {
	font-weight: 700;
}
.mt-price {
	white-space: nowrap;
	font-weight: 700;
}
.mt-rates {
	margin-bottom: 2rem;
}
.mt-note {
	font-weight: 700;
}

/* Contacts */
.mt-contacts {
	display: grid;
	gap: 0.75rem;
}
.mt-contacts dt {
	font-weight: 700;
}
.mt-contacts dd {
	margin: 0;
}

/* --- Booking form -------------------------------------------------------- */

.mt-booking {
	max-width: 40rem;
}
.mt-form-intro,
.mt-form-note {
	color: var(--muted);
}
.mt-fieldset {
	margin: 0 0 1.5rem;
	padding: 0;
	border: 0;
}
.mt-fieldset legend {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--heading);
	padding: 0;
	margin-bottom: 0.75rem;
}
.mt-field {
	margin: 0 0 1.4rem;
}
.mt-field > label {
	display: block;
	font-weight: 700;
	margin-bottom: 0.25rem;
}
.mt-hint {
	margin: 0 0 0.4rem;
	color: var(--muted);
	font-size: 1rem;
}
.mt-error {
	margin: 0 0 0.4rem;
	color: var(--error);
	font-weight: 700;
}
.mt-field.has-error {
	padding-left: 0.9rem;
	border-left: 0.3rem solid var(--error);
}

.mt-form input[type="text"],
.mt-form input[type="tel"],
.mt-form input[type="email"],
.mt-form select,
.mt-form textarea {
	display: block;
	width: 100%;
	min-height: 3rem;
	padding: 0.55rem 0.75rem;
	font: inherit;
	color: var(--text);
	background: var(--bg);
	border: 0.15rem solid var(--border-strong);
	border-radius: 0.4rem;
}
.mt-form .mt-input--short {
	max-width: 14rem;
}
.mt-form select {
	appearance: auto;
}
.mt-form textarea {
	min-height: 6rem;
	resize: vertical;
}
.mt-form [aria-invalid="true"] {
	border-color: var(--error);
	border-width: 0.2rem;
}

.mt-field--check {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.25rem 0.75rem;
	align-items: start;
}
.mt-field--check .mt-error {
	grid-column: 1 / -1;
}
.mt-field--check input[type="checkbox"] {
	width: 1.6rem;
	height: 1.6rem;
	margin: 0.15rem 0 0;
	accent-color: var(--navy);
}
:root[data-theme="noite"] .mt-field--check input[type="checkbox"] {
	accent-color: var(--yellow);
}
.mt-field--check label {
	font-weight: 400;
}

.mt-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.mt-error-summary,
.mt-success {
	margin: 0 0 2rem;
	padding: 1.25rem 1.5rem;
	border: 0.25rem solid var(--error);
	border-radius: 0.5rem;
	background: var(--error-bg);
}
.mt-error-summary h2,
.mt-error-summary h3,
.mt-success h3,
.mt-success h2 {
	margin-top: 0;
	font-size: 1.4rem;
	color: var(--text);
}
.mt-error-summary a {
	color: var(--error);
	font-weight: 700;
}
.mt-success {
	border-color: var(--success);
	background: var(--success-bg);
}
.mt-error-summary:focus,
.mt-success:focus {
	outline: 0.25rem solid var(--focus);
	outline-offset: 0.25rem;
}

/* --- Footer (navy in both themes) ---------------------------------------- */

.site-footer {
	--focus: #ffd21f;
	--focus-halo: #0b1633;
	--btn-border: #ffd21f;
	background: var(--navy);
	color: #ffffff;
	padding: 2.5rem 0 1rem;
	border-top: 0.3rem solid var(--yellow);
}
.site-footer a {
	color: var(--yellow);
}
.site-footer a:hover {
	color: #ffffff;
}
.site-footer .mt-button,
.site-footer .mt-button:hover {
	color: var(--navy);
}
.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: 2rem;
}
.site-footer__title {
	color: var(--yellow);
	font-size: 1.25rem;
	margin: 0 0 0.75rem;
}
.footer-links {
	list-style: none;
	padding: 0;
}
.site-footer__legal {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid #2a3a66;
	font-size: 1rem;
	color: #d7ddef;
}

/* --- Preferences and platform modes -------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
	a,
	.ctrl,
	.mt-button {
		transition: color 0.15s, background-color 0.15s, border-color 0.15s;
	}
}

/* Windows High Contrast and similar: keep borders and focus visible. */
@media (forced-colors: active) {
	.mt-button,
	.ctrl,
	.nav-toggle,
	.primary-nav .nav-cta {
		border: 2px solid ButtonText;
	}
	.ctrl[aria-pressed="true"] {
		outline: 3px solid Highlight;
	}
	:focus-visible {
		outline: 3px solid Highlight;
	}
}

@media print {
	.toolbar,
	.primary-nav,
	.hero__actions,
	.route__actions,
	.site-footer__grid section:nth-child(2) {
		display: none;
	}
	body {
		background: #fff;
		color: #000;
	}
}

/* --- Site structure (services, regions, about) --------------------------- */

.mt-service-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	gap: 1.25rem;
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}
.mt-service-list > li + li {
	margin-top: 0;
}
.mt-service-card article {
	height: 100%;
	padding: 1.5rem;
	background: var(--surface);
	border: 0.125rem solid var(--border);
	border-radius: 0.75rem;
}
.mt-service-card h2 {
	margin-top: 0;
}

.mt-region {
	margin-bottom: 2.5rem;
}
.mt-region > h2 {
	margin-bottom: 0;
}
.mt-route-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.route__theme {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--muted);
	max-width: 44rem;
}

.mt-chosen {
	display: grid;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
}
.mt-chosen > div {
	display: grid;
	grid-template-columns: minmax(9rem, auto) 1fr;
	gap: 0.75rem;
	padding-top: 0.45rem;
	border-top: 1px solid var(--border);
}
.mt-chosen dt {
	font-weight: 700;
}
.mt-chosen dd {
	margin: 0;
}

.mt-tariff-note {
	max-width: 48rem;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
}
.mt-booking {
	margin-top: 2rem;
}

.mt-about-me {
	display: grid;
	gap: 1.5rem 2.5rem;
	align-items: start;
	max-width: 64rem;
}
.mt-about-me > .wp-block-group__inner-container {
	display: contents;
}
.mt-about-me__text > :first-child {
	margin-top: 0;
}
.mt-about-me figure {
	margin: 0;
}
.mt-about-me img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0.75rem;
}
@media (min-width: 48rem) {
	.mt-about-me:has(figure) {
		grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
	}
}

/* Long addresses (the email) must wrap instead of causing sideways scrolling at large text sizes. */
.mt-contacts dd,
.mt-contacts a {
	overflow-wrap: anywhere;
}

/* Key facts and the chosen service stack on narrow screens so large text never overflows. */
.mt-facts > div,
.mt-chosen > div {
	min-width: 0;
}
.mt-facts dd,
.mt-chosen dd {
	overflow-wrap: anywhere;
}
@media (max-width: 40rem) {
	.mt-facts > div,
	.mt-chosen > div {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.1rem;
	}
}

/* Home: the two service cards share the container width, aligned with the heading above. */
.mt-service-card article {
	display: flex;
	flex-direction: column;
}
.mt-service-card article p:last-child {
	margin-top: auto;
}

.hero__lead {
	margin: 0;
	max-width: 40rem;
	font-size: 1.25rem;
	color: #d7ddef;
}

/* Footer: the contacts sit two by two on wide screens instead of one long column. */
@media (min-width: 48rem) {
	.site-footer__grid {
		grid-template-columns: 2fr 1fr;
	}
	.site-footer .mt-contacts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem 2rem;
	}
}

/* Turismo de Portugal logo and licence number under the footer links. The logo has a white background,
   so it sits on a white panel in both colour themes. */
.footer-licence {
	margin-top: 1.25rem;
}
.footer-licence__logo {
	display: block;
	width: min(100%, 12rem);
	height: auto;
	padding: 0.5rem 0.75rem;
	background: #ffffff;
	border-radius: 0.5rem;
}
.footer-licence__text {
	margin: 0.6rem 0 0;
	font-weight: 700;
}
