/* ---------------------------------------------------------------------- */
/*	Additions to the old layout (style.css / contrast.css stay as the old
/*	site's look). Only what the new markup needs: buttons that replaced
/*	"javascript:;" links, the title bar trail, headings that replaced divs,
/*	keyboard focus and placeholders. Colors come from the theme variables.
/* ---------------------------------------------------------------------- */

/* icons: inline SVG of Bootstrap Icons (icon() in _site/helpers.php), same box as the old icon font glyph */
.bi > svg {
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: -.125em;
	fill: currentColor;
}

/* buttons that replaced the old <a href="javascript:;"> links look like the links */
.menu-button {
	padding: 2px 8px;
	border: 0;
	background: none;
	color: var(--color-base);
	line-height: 1.5;
}

.site-menu .close .menu-button {
	color: var(--color-black);
	font-size: 25px;
}

.menu-icon .menu-button i {
	font-size: 30px;
	font-weight: 600;
}

/* title bar: "Section / Category" (old a.btn) */
.page-title .trail {
	display: inline-block;
	margin: 0;
	padding: 5px .75rem;
	border: 1px solid transparent;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	vertical-align: middle;
}

.page-title .trail a {
	padding: 0;
}

/* breadcrumbs: same look as the old "Section / Category" text, "/" between items */
.page-title .trail ol {
	display: inline;
	margin: 0;
	padding: 0;
	list-style: none;
}

.page-title .trail li {
	display: inline;
}

.page-title .trail li + li::before {
	content: "/";
	display: inline-block;
	padding: 0 5px;
}

.page-title .trail h1 {
	display: inline;
	margin: 0;
	font: inherit;
	color: inherit;
}

/* home icon: 44px wide tap area without moving the trail */
.inner-page .page-title .trail li:first-child a {
	padding: 12px 14px;
	margin: -12px -14px;
}

.page-title .trail .bi {
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: -.1em;
}

.page-title .trail .bi svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

/* "Mais em <categoria>" (place) and "Outros eventos" (event) */
.inner-page .related {
	clear: both;
	padding-top: 30px;
}

.inner-page .related .heading {
	margin-bottom: 20px;
	font-size: 1.5rem;
}

.inner-page .related-more {
	margin-top: 10px;
	text-align: center;
}

.page-title .btn-share {
	border: 0;
}

/* share box: copy / back are buttons now */
.inner-page .share-box .btn {
	display: block;
	margin-bottom: 10px;
	font-size: 20px;
	background: var(--color-red);
	color: var(--color-white);
}

.inner-page .share-box .bluesky-icon {
	width: 20px;
	height: 20px;
	vertical-align: -3px;
}

/* old divs that are headings now */
.inner-page .read h1.title {
	line-height: 1.5;
}

.inner-page h2.photos-label {
	margin: 0;
	font-weight: 400;
	line-height: 1.5;
}

.inner-page .contact-info h2.h5 {
	margin-bottom: .5rem;
}

.inner-page .personalities .title-frame {
	color: var(--color-base);
}

/* footer address keeps the old h2 look */
footer .info address {
	margin: 0 0 .5rem;
	font-style: normal;
	line-height: 1.2;
}

/* image placeholder (record without image) */
img.no-image {
	object-fit: contain !important;
	background: var(--color-light-gray);
}

/* weather widget keeps its box before the third-party script loads */
.weather .weatherwidget-io {
	display: block;
	min-height: 80px;
}

/* registration form */
.register .image-label {
	font-size: 13px;
}

.register .rotate-buttons .btn {
	width: 48%;
}

/* hints on the dark form: Bootstrap's grey text was unreadable there */
.register .form-text {
	color: rgba(255, 255, 255, .8);
}

.register .image-preview {
	max-width: 100%;
	max-height: 300px;
	margin-top: 10px;
	transition: transform .2s;
}

/* Cropper.js needs a block image and a box with a fixed height */
.register .image-crop {
	max-height: 320px;
	margin-top: 10px;
}

.register .image-crop .image-preview {
	display: block;
	margin-top: 0;
}

.register .image-crop .cropper-container {
	max-width: 100%;
}

.form-status:empty {
	display: none;
}

.register .rows-box [data-row] + [data-row] {
	margin-top: 1rem;
}

.register .box-title .btn {
	margin-top: -10px;
	float: right;
	width: auto !important;
	font-size: 20px;
	background: var(--color-red);
	color: var(--color-white);
	border-radius: var(--border-radius);
}

/* popup banner (home) */
#popup-modal .modal-body {
	max-width: 100%;
	text-align: center;
}

#popup-modal .modal-body button {
	border: 0;
	background: none;
	font-size: 25px;
}

#popup-modal .modal-body img {
	max-width: 100%;
	height: auto;
}

/* copied link toast */
.copied-toast[hidden] {
	display: none !important;
}

.copied-toast:not([hidden]) {
	display: block;
	z-index: 1000000;
}

/* skip links ("Ir para o Conteúdo Principal [Alt + 1]") */
.skip-link:focus {
	position: fixed !important;
	z-index: 10000000;
	top: 10px;
	left: 10px;
	padding: 10px 15px;
	background: var(--color-white);
	color: var(--color-black) !important;
	border-radius: var(--border-radius);
}

/* visible keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.weather .weatherwidget-io.has-focus {
	outline: 3px solid var(--color-light-green) !important;
	outline-offset: 2px;
}

/* desktop menu: keyboard users open the dropdowns like the mouse hover */
@media only screen and (min-width: 991px) {
	.dropdown:focus-within > .dropdown-menu,
	.dropend:focus-within > .dropdown-menu {
		display: block;
		margin-top: 0.125em;
		margin-left: 0.125em;
	}

	.dropend:focus-within > .dropdown-menu {
		position: absolute;
		top: 0;
		left: 100%;
	}

	/* search icon inside the header bar, at the end of the menu line (style.css floated it over the banner) */
	header > .container {
		position: relative;
	}

	header .menu {
		padding-right: 56px;
	}

	header .search {
		top: 23px;
		right: 12px;
		padding: 0;
		width: 44px;
		height: 44px;
		transition: background .2s;
	}

	header .search:hover,
	header .search:focus-within {
		background: var(--color-green);
	}

	header .search a {
		width: 100%;
		height: 100%;
		color: var(--color-white) !important;
	}
}

/* featured banners: Splide gap is set in JS (old Slick margin 0 10px). With no more
   banners than fit on screen the old site showed them centred, without arrows */
.featured-banner.splide:not(.is-initialized) .splide__list {
	display: flex;
	gap: 20px;
	overflow: hidden;
}

.featured-banner.is-static .splide__list {
	justify-content: center;
}

.featured-banner.is-static .splide__slide {
	flex: 0 0 calc((100% - 40px) / 3);
}

.featured-banner-wrap.is-static .slider-button {
	visibility: hidden;
}

@media only screen and (max-width: 479px) {
	.featured-banner.is-static .splide__slide {
		flex-basis: 100%;
	}
}

/* static featured banners are never mounted by Splide (which hides .splide until then) */
.featured-banner.is-static {
	visibility: visible;
}

/* the footer e-mail is a mailto link now; the old "footer .info a" rule was for other links */
footer .info .info-email a {
	display: inline;
	margin: 0;
}

.featured-banner-wrap.is-static .mobile-buttons {
	display: none !important;
}

/* anti-spam field of the forms: out of sight for people, filled by bots */
.hp-field {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* optimized images (_site/images.php): <picture> never changes the layout, the
   <img> inside it is styled by the old rules as before */
picture {
	display: contents;
}

/* width/height only reserve the space (proportion); the old rules set the real size */
:where(img[width][height]) {
	height: auto;
}

/* header image: an <img> (srcset, loaded first) in place of the old CSS background */
.header-image > img,
.header-image > picture > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left top;
}

.header-image:before {
	z-index: 1;
}

/* ---------------------------------------------------------------------- */
/*	Stage 7: mobile first / accessibility
/* ---------------------------------------------------------------------- */

/* place page: quick actions under the title (WhatsApp, call, directions, website) */
.quick-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 15px 0 5px;
}

.quick-actions .quick-action {
	display: inline-flex;
	flex: 1 1 calc(50% - 8px);
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 8px 14px;
	border-radius: var(--border-radius);
	background: var(--color-red);
	color: var(--color-white) !important;
	font-size: 16px;
	line-height: 1.2;
	text-align: center;
}

.quick-actions .quick-action-whatsapp,
.quick-actions .quick-action-directions {
	background: var(--color-green);
}

.quick-actions .quick-action .bi {
	font-size: 20px;
}

@media only screen and (min-width: 768px) {
	.quick-actions .quick-action {
		flex: 0 1 auto;
		min-width: 160px;
	}
}

/* long links (social profiles, websites, e-mails) break instead of widening the page */
.inner-page .read,
.inner-page .text,
.inner-page .details a,
.inner-page .contact-info a,
footer .info {
	overflow-wrap: anywhere;
}

/* gallery links wrap the whole photo (tap area = the image) */
.inner-page a.glightbox {
	display: block;
}

/* home search box: texts with WCAG AA contrast on white (#669934 and #797979 were 3.3 and 4.4:1) */
.attractions-search .subheading {
	color: #4D7A22 !important;
}

.attractions-search label {
	color: #666 !important;
}

/* touch targets of at least 44px */
.menu-button,
.inner-page .btn-share,
.search a,
.scroll-top a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
}

/* small links get a taller tap area without moving the layout (padding taken back by the margin) */
.inner-page .card-body > a,
.inner-page .page-title .trail a,
.inner-page .phones .phone a,
.inner-page .contact-info a {
	display: inline-block;
	padding: 12px 0;
	margin: -12px 0;
}

.inner-page .contact-info a {
	padding: 4px 0;
	margin: -4px 0;
}

.inner-page .social-networks a {
	min-height: 44px;
	padding: 10px !important;
}

header .logo a,
.home .experiences .frame > a {
	display: inline-block;
}

.home .experiences .frame > a,
.home .agenda .frame > a {
	display: block;
}

footer .agency a {
	display: inline-block;
	padding: 3px;
}

/* VLibras 7: the floating Libras button opens it (site.js); its own floating button stays hidden, as in the old site */
#vlibras-access-wrapper {
	display: none !important;
}

/* style.css caps only the height (30px): keep the square logo square */
footer .agency img {
	width: auto;
}

footer .social-networks a {
	display: inline-block;
	padding: 2px;
}

.attractions-search .w-2 button {
	min-width: 48px;
	min-height: 48px;
}

.pagination .page-link {
	min-width: 44px;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.form-check {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-right: 1rem;
}

.form-check-input {
	width: 1.4em;
	height: 1.4em;
	margin-top: 0;
	margin-right: .5em;
}

.form-check-label {
	padding: 10px 0;
}

/* phones and tablets: off-canvas menu */
@media only screen and (max-width: 990px) {
	/* closed menu out of the keyboard order and of screen readers */
	.site-menu {
		visibility: hidden;
		transition: transform 0.3s ease-in-out, visibility 0s linear 0.3s;
	}

	.site-menu.open {
		visibility: visible;
		transition: transform 0.3s ease-in-out, visibility 0s;
	}

	.site-menu li {
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	.site-menu li .menu-label a,
	.site-menu .dropdown-menu a {
		display: flex;
		align-items: center;
		min-height: 44px;
	}

	.site-menu .dropdown-menu li {
		padding-left: 0 !important;
	}

	/* form fields: 16px text (iOS zooms into smaller fields) and 44px tall */
	.form-control,
	.form-select,
	.btn-main,
	.register .btn {
		min-height: 44px;
		font-size: 16px;
	}
}

/* phones: compact banner (the box took ~45% of the screen), buttons side by side */
@media screen and (max-width: 640px) {
	#cc-main .cm__title {
		padding-top: .8rem !important;
	}

	#cc-main .cm__desc {
		max-height: 30vh;
		overflow-y: auto;
		padding-bottom: .6rem !important;
		font-size: .85em;
	}

	#cc-main .cm__btns {
		flex-direction: row !important;
		gap: .5rem;
		padding-top: .6rem !important;
		padding-bottom: .6rem !important;
	}

	#cc-main .cm__btn-group {
		flex: 1;
		flex-direction: row !important;
		gap: .5rem;
	}

	#cc-main .cm__btn {
		flex: 1;
		min-height: 44px;
	}

	#cc-main .cm__btn + .cm__btn {
		margin: 0 !important;
	}
}

/* ---------------------------------------------------------------------- */
/*	Place page: hero, photo mosaic, content beside the contact card
/* ---------------------------------------------------------------------- */
.inner-page .read {
	--place-line: rgba(255, 255, 255, .1);
	--place-surface: rgba(255, 255, 255, .05);
	--place-muted: rgba(255, 255, 255, .68);
	--place-radius: 16px;
}

.place-hero {
	margin-bottom: 24px;
}

.inner-page .read .place-hero .title {
	margin-bottom: 8px;
	font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
	font-weight: 700;
	line-height: 1.15;
	text-shadow: 0 2px 16px rgba(0, 0, 0, .6);
}

.inner-page .read .place-hero .address {
	margin-bottom: 0;
	font-size: 1rem;
	color: rgba(255, 255, 255, .85);
}

.place-hero .quick-actions {
	margin-top: 20px;
}

.quick-actions .quick-action {
	box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
	transition: transform .15s ease, filter .15s ease;
}

.quick-actions .quick-action:hover {
	filter: brightness(1.15);
	transform: translateY(-1px);
}

/* mosaic: a swipeable row on the phone, a grid from 768px */
.place-gallery {
	display: flex;
	gap: 8px;
	margin: 0 0 40px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.place-gallery::-webkit-scrollbar {
	display: none;
}

.place-gallery [hidden] {
	display: none !important;
}

.place-gallery .place-photo {
	position: relative;
	flex: 0 0 85%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 12px;
	background: var(--place-surface);
	scroll-snap-align: start;
}

.place-gallery-1 .place-photo {
	flex-basis: 100%;
}

.place-gallery .place-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.place-gallery .place-photo:hover img {
	transform: scale(1.04);
}

.place-gallery-more {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: rgba(0, 0, 0, .55);
	color: var(--color-white);
	font-size: 1.25rem;
	font-weight: 600;
}

@media only screen and (min-width: 768px) {
	.place-gallery {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		grid-template-rows: repeat(2, 1fr);
		height: clamp(360px, 40vw, 500px);
		overflow: hidden;
		border-radius: var(--place-radius);
	}

	.place-gallery .place-photo {
		aspect-ratio: auto;
		border-radius: 0;
	}

	/* first photo: the left half (the whole frame when alone) */
	.place-gallery .place-photo:first-child {
		grid-column: 1 / 3;
		grid-row: 1 / 3;
	}

	.place-gallery-1 .place-photo:first-child {
		grid-column: 1 / 5;
	}

	.place-gallery-2 .place-photo:nth-child(2) {
		grid-column: 3 / 5;
		grid-row: 1 / 3;
	}

	.place-gallery-3 .place-photo:nth-child(n+2),
	.place-gallery-4 .place-photo:nth-child(2) {
		grid-column: 3 / 5;
	}
}

/* content and contact card */
.place-layout {
	display: grid;
	gap: 40px;
}

@media only screen and (min-width: 992px) {
	.place-layout {
		grid-template-columns: minmax(0, 1fr) 360px;
		align-items: start;
		gap: 56px;
	}

	.place-aside {
		position: sticky;
		top: 110px;
	}
}

.place-section + .place-section {
	margin-top: 36px;
	padding-top: 36px;
	border-top: 1px solid var(--place-line);
}

.inner-page .place-section h2,
.inner-page .place-card h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}

.place-section h2 .bi {
	color: var(--color-light-green);
}

.inner-page .read .place-about .body-text {
	font-size: 1.0625rem;
	line-height: 1.75;
}

.inner-page .read .place-about .body-text p,
.inner-page .read .place-about .body-text span {
	color: rgba(255, 255, 255, .88) !important;
}

.place-about .body-text p:last-child {
	margin-bottom: 0;
}

/* opening hours: one row per day, today marked by site.js */
.place-hours {
	max-width: 520px;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--place-line);
	border-radius: 12px;
	overflow: hidden;
}

.place-hours li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 12px 16px;
}

.place-hours li + li {
	border-top: 1px solid var(--place-line);
}

.place-hours-time {
	color: rgba(255, 255, 255, .85);
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.place-hours li.is-today {
	background: rgba(var(--color-light-green-rgb), .18);
}

.place-hours li.is-today .place-hours-day,
.place-hours li.is-today .place-hours-time {
	font-weight: 600;
	color: var(--color-white);
}

.place-today {
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--color-white);
	color: var(--color-green);
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	vertical-align: 2px;
}

/* payment / amenities */
.place-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.place-chips li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid var(--place-line);
	border-radius: 999px;
	background: var(--place-surface);
	font-size: .9375rem;
}

.place-chips .bi {
	color: var(--color-light-green);
}

/* video thumbnail with a play button */
.place-video-link {
	position: relative;
	display: block;
	max-width: 640px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid var(--place-line);
	border-radius: 12px;
	background: #000;
}

.place-video-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.place-video-link:hover img {
	transform: scale(1.04);
}

.place-video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: var(--color-red);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .5);
	transform: translate(-50%, -50%);
}

.place-video-play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	border-style: solid;
	border-width: 12px 0 12px 20px;
	border-color: transparent transparent transparent var(--color-white);
	transform: translate(-50%, -50%);
}

/* contact card */
.place-card {
	padding: 24px;
	border: 1px solid var(--place-line);
	border-radius: var(--place-radius);
	background: #121212;
	box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
}

.place-contacts {
	display: grid;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.place-contacts li {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.place-contact-icon {
	display: inline-flex;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	height: 40px;
	border-radius: 50%;
	background: var(--color-red);
	color: var(--color-white);
	font-size: 17px;
}

.place-contact-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow-wrap: anywhere;
}

.place-contact-label {
	font-size: .75rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--place-muted);
}

.place-contacts a,
.place-social a {
	color: var(--color-white) !important;
	text-decoration: none;
}

.place-contacts a:hover {
	text-decoration: underline !important;
}

.place-social-block {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--place-line);
}

.place-social {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.place-social a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 8px 12px;
	border-radius: 10px;
	background: var(--place-surface);
	overflow-wrap: anywhere;
	transition: background .15s ease;
}

.place-social a:hover {
	background: rgba(255, 255, 255, .1);
}

.place-social .bi {
	flex: none;
	font-size: 20px;
}

.place-map {
	margin-top: 24px;
}

.place-map .btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	border-radius: 10px;
}

.place-map p {
	margin: 0;
	color: var(--place-muted);
}

/* "Mais em <categoria>" / "Outros eventos" set apart from the page content */
.inner-page .related {
	margin-top: 56px;
	padding-top: 40px;
	border-top: 1px solid rgba(255, 255, 255, .1);
}

/* ---------------------------------------------------------------------- */
/*	High contrast (accessibility bar button): <html class="high-contrast">
/*	black background, white text, yellow links and controls. Images keep
/*	their colors; text over images gets a solid background.
/* ---------------------------------------------------------------------- */
/* body only: with a background on <html> the body would paint over the home banner (z-index: -1) */
html.high-contrast body {
	background: #000 !important;
}

/* transparent backgrounds over the black page: overlays on photos vanish instead of hiding them */
html.high-contrast body :where(*:not(img, svg, svg *, picture, source, iframe, #vlibras-app-root)) {
	background-color: transparent !important;
	background-image: none !important;
	color: #fff !important;
	text-shadow: none !important;
	box-shadow: none !important;
}

/* layers that sit over the page or over photos keep a solid background */
html.high-contrast header,
html.high-contrast .site-menu,
html.high-contrast .site-menu *,
html.high-contrast .dropdown-menu,
html.high-contrast .a11y-panel,
html.high-contrast .share-box,
html.high-contrast .scroll-top,
html.high-contrast .skip-link,
html.high-contrast .copied-toast,
html.high-contrast .modal-content,
html.high-contrast #cc-main .cm,
html.high-contrast #cc-main .pm,
html.high-contrast .featured-banner h2,
html.high-contrast .card-list li .frame h2,
html.high-contrast .experiences .frame h3,
html.high-contrast footer .rights,
html.high-contrast footer .agency {
	background-color: #000 !important;
}

html.high-contrast .attractions-search .subheading,
html.high-contrast .attractions-search label {
	color: #fff !important;
}

/* the header photo sits behind the title and the first lines of text */
html.high-contrast .header-image {
	display: none !important;
}

html.high-contrast .menu-bg {
	background-color: rgba(0, 0, 0, .85) !important;
}

html.high-contrast body *::before,
html.high-contrast body *::after {
	background-image: none !important;
	text-shadow: none !important;
}

html.high-contrast a,
html.high-contrast a *:not(img),
html.high-contrast .btn,
html.high-contrast .btn *,
html.high-contrast button,
html.high-contrast button * {
	color: #ff0 !important;
}

html.high-contrast main a:not(.btn):not(.glightbox):not(.quick-action) {
	text-decoration: underline !important;
}

html.high-contrast .btn,
html.high-contrast button:not(.menu-button):not(.slider-button),
html.high-contrast .quick-action,
html.high-contrast .page-link,
html.high-contrast .inner-page .social-networks a,
html.high-contrast .inner-page .payment a,
html.high-contrast .inner-page .extra-details span,
html.high-contrast .register-cta a {
	border: 2px solid #ff0 !important;
}

html.high-contrast .form-control,
html.high-contrast .form-select,
html.high-contrast .form-check-input {
	border: 2px solid #fff !important;
}

html.high-contrast .form-check-input:checked {
	background-color: #ff0 !important;
}

html.high-contrast .is-invalid {
	border-color: #f66 !important;
}

html.high-contrast .invalid-feedback {
	color: #f99 !important;
}

html.high-contrast :focus-visible {
	outline: 3px solid #ff0 !important;
}

/* ---------------------------------------------------------------------- */
/*	Footer bottom strip: rights, institutional links, agency
/*	(they sat on the old fixed accessibility bar; now part of the footer)
/* ---------------------------------------------------------------------- */
footer .footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0 30px;
	padding: 4px 5%;
	background: var(--color-green);
	color: var(--color-white);
}

footer .footer-bottom .rights,
footer .footer-bottom .agency {
	margin: 0;
	padding: 0;
}

footer .footer-bottom .agency a {
	margin: 0;
}

.footer-links ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-links a,
.footer-links button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--color-white) !important;
	font-size: 13.5px;
	text-decoration: underline !important;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* desktop: logo, networks and contact columns of the same height, so the black logo block reaches the strip */
@media only screen and (min-width: 991px) {
	footer {
		display: flex;
		flex-wrap: wrap;
	}

	footer > .clear {
		display: none;
	}

	footer .logo {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	footer .footer-bottom {
		flex: 0 0 100%;
	}
}

@media only screen and (max-width: 990px) {
	footer .footer-bottom {
		flex-direction: column;
		padding: 15px;
		text-align: center;
	}
}

/* ---------------------------------------------------------------------- */
/*	Accessibility (same buttons and panel as AG Menu): right side,
/*	mid-screen, VLibras button on top, accessibility panel button below.
/*	Preferences are classes on <html> printed by the server (cookie "a11y").
/* ---------------------------------------------------------------------- */
.a11y-toggle {
	position: fixed;
	right: 0;
	top: calc(50% + 4px);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 2px solid var(--color-white);
	border-right: 0;
	border-radius: 50% 0 0 50%;
	background: var(--color-green);
	color: var(--color-white);
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.a11y-toggle--libras {
	top: calc(50% - 52px);
}

/* VLibras player open */
.a11y-toggle--libras.active {
	background: var(--color-white);
	color: var(--color-green);
	border-color: var(--color-green);
}

.a11y-toggle .a11y-icon {
	width: 28px;
	height: 28px;
}

/* the share box of the inner pages also opens on the right, mid-screen */
.inner-page .share-box {
	right: 58px !important;
}

.a11y-panel {
	width: min(22rem, 100% - 2rem);
	max-height: min(85vh, 48rem);
	padding: 1.5rem;
	overflow: auto;
	border: 0;
	border-radius: 16px;
	background: var(--color-white);
	color: #1a1a1f;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
	font-size: 1rem;
}

.a11y-panel::backdrop {
	background: rgba(0, 0, 0, .55);
}

.a11y-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.a11y-panel__title {
	margin: 0;
	font-size: 1.25rem;
	color: #1a1a1f;
}

.a11y-panel__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.a11y-panel__close:hover {
	background: var(--color-light-gray);
}

.a11y-icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

.a11y-panel__group {
	margin-bottom: .75rem;
}

.a11y-panel__label {
	margin: 0 0 .5rem;
	font-weight: 700;
}

.a11y-panel__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .5rem;
}

.a11y-option {
	display: flex;
	align-items: center;
	gap: .75rem;
	width: 100%;
	min-height: 48px;
	margin-bottom: .5rem;
	padding: .5rem .75rem;
	border: 2px solid #ddd;
	border-radius: 10px;
	background: var(--color-white);
	color: #1a1a1f;
	cursor: pointer;
	text-align: left;
	font-weight: 600;
}

.a11y-panel__row .a11y-option {
	margin-bottom: 0;
}

.a11y-option:hover {
	border-color: var(--color-green);
}

.a11y-option[aria-pressed="true"] {
	border-color: var(--color-green);
	background: var(--color-green);
	color: var(--color-white);
}

.a11y-option[aria-pressed="true"]::after {
	content: attr(data-on);
	margin-left: auto;
	font-size: .8rem;
}

.a11y-option:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.a11y-option[data-a11y="reset"] {
	margin-top: .5rem;
	border-style: dashed;
}

.a11y-panel__note {
	margin: .75rem 0 0;
	font-size: .875rem;
	color: #56565e;
}

.a11y-panel__note a {
	color: var(--color-green) !important;
	text-decoration: underline !important;
}

/* text size: the old CSS sizes text in px, so the content is zoomed (header and menu keep their layout) */
html.a11y-text-1 main,
html.a11y-text-1 footer {
	zoom: 1.25;
}

html.a11y-text-2 main,
html.a11y-text-2 footer {
	zoom: 1.5;
}

html.a11y-links a {
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 3px;
}

html.a11y-links button {
	text-decoration: underline;
	text-underline-offset: 3px;
	outline: 2px dashed currentColor;
	outline-offset: -4px;
}

html.a11y-no-motion *,
html.a11y-no-motion *::before,
html.a11y-no-motion *::after {
	animation: none !important;
	transition: none !important;
	scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* high contrast: solid black buttons and panel, pressed options in yellow */
html.high-contrast .a11y-toggle,
html.high-contrast .a11y-option {
	background-color: #000 !important;
}

html.high-contrast .a11y-panel {
	border: 2px solid #fff;
}

html.high-contrast .a11y-panel__note,
html.high-contrast .a11y-panel__title {
	color: #fff !important;
}

html.high-contrast .a11y-option[aria-pressed="true"],
html.high-contrast .a11y-option[aria-pressed="true"] * {
	background-color: #ff0 !important;
	color: #000 !important;
}
