/* Dicas presentation only. Destination Hero and authored block styles are untouched. */
.tips-page {
	--lx2we-tips-navy: color-mix(in srgb, var(--lx2we-color-primary) 50%, var(--lx2we-color-text));
	color: var(--lx2we-color-text);
}
.tips-hero {
	/* Same title scale as destination-hero h1; also sizes its flag independently of the destination subtitle. */
	--lx2we-tips-title-size: clamp(2.2rem, 3.6vw, 3.5rem);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--lx2we-color-surface);
	color: var(--lx2we-tips-navy);
}
.tips-hero__media,
.tips-hero--image::before { position: absolute; inset: 0; }
.tips-hero__media { z-index: -2; }
.tips-hero__media > img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.tips-hero--image::before {
	content: "";
	z-index: -1;
	background: linear-gradient(90deg, rgb(255 255 255 / 78%) 0%, rgb(255 255 255 / 68%) 40%, rgb(255 255 255 / 0%) 72%);
}
.tips-hero__inner { display: flex; align-items: center; min-height: clamp(300px, 27vw, 390px); padding-block: clamp(2rem, 3.5vw, 3rem); }
.tips-hero__text { width: min(46%, 620px); min-width: 0; overflow-wrap: anywhere; }
.tips-hero__breadcrumb { font-size: .85rem; font-weight: 600; }
.tips-hero__breadcrumb ol { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.tips-hero__breadcrumb li { display: inline-flex; align-items: center; gap: .55rem; }
.tips-hero__breadcrumb a { color: inherit; text-underline-offset: .2em; }
.tips-hero h1 { margin: 0; font-size: var(--lx2we-tips-title-size); font-weight: 800; line-height: 1.1; }
.tips-hero__destination { margin: .45rem 0 0; font-family: var(--lx2we-heading); font-size: clamp(1.4rem, 2.1vw, 2rem); font-weight: 700; line-height: 1.3; }
.tips-hero__flag { display: inline-block; margin-inline-start: .15em; font-size: calc(var(--lx2we-tips-title-size) * .8); line-height: 1.1; vertical-align: .04em; }
.tips-hero__intro { margin: .75rem 0 0; max-width: 52ch; font-weight: 500; line-height: 1.65; }
.tips-page__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.25rem, 2.5vw, 2.5rem); padding-block: clamp(1.75rem, 3.5vw, 3rem); align-items: start; }
.tips-page__layout--journey { grid-template-columns: minmax(170px, 210px) minmax(0, 1fr); }
.tips-page__layout--navigation { grid-template-columns: minmax(0, 1fr) minmax(170px, 210px); }
.tips-page__layout--journey.tips-page__layout--navigation { grid-template-columns: minmax(170px, 210px) minmax(0, 1fr) minmax(170px, 210px); }
.tips-page__main { min-width: 0; }
.tips-page__sidebar { border-inline-start: 1px solid var(--lx2we-color-border); padding-inline-start: 1.25rem; }
.tips-page__sidebar-title { margin: 0 0 1.15rem; color: var(--lx2we-tips-navy); font-size: 1rem; font-weight: 800; }
.tips-journey { min-width: 0; font-size: .9rem; }
.tips-journey__return, .tips-journey__all { display: inline-block; font-weight: 600; text-decoration: none; }
.tips-journey__return { margin-bottom: 1.75rem; }
.tips-journey__all { margin-top: 1.25rem; }
.tips-journey__list { list-style: none; margin: 0 0 0 .3rem; padding: 0; border-inline-start: 1px solid var(--lx2we-color-border); }
.tips-journey__list li { position: relative; padding: 0 0 1rem 1rem; }
.tips-journey__list li:last-child { padding-bottom: 0; }
.tips-journey__list li::before { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--lx2we-color-primary); inset-inline-start: -4px; top: .6em; }
.tips-journey__list a { color: var(--lx2we-color-text); text-decoration: none; overflow-wrap: anywhere; }
.tips-nav ul { display: flex; list-style: none; padding: 0; margin: 0; gap: .25rem; }
.tips-nav li { min-width: 0; }
.tips-nav a { display: flex; align-items: center; gap: .5rem; padding: .65rem .7rem; color: var(--lx2we-tips-navy); font-size: .85rem; font-weight: 600; text-decoration: none; border-radius: 6px; }
.tips-nav svg { flex: 0 0 20px; }
.tips-nav--horizontal { margin-bottom: 1.75rem; padding-bottom: .65rem; border-bottom: 1px solid var(--lx2we-color-border); }
.tips-nav--horizontal ul { flex-wrap: wrap; }
.tips-nav--vertical ul { flex-direction: column; }
.tips-nav a[aria-current="location"] { background: var(--lx2we-color-primary); color: var(--lx2we-color-surface); }
.tips-nav a:hover, .tips-journey a:hover { text-decoration: underline; text-underline-offset: .2em; }
.tips-page a:focus-visible { outline: 2px solid var(--lx2we-color-primary); outline-offset: 3px; }
.tips-page__content { background: var(--lx2we-color-surface); border: 1px solid var(--lx2we-color-border); border-radius: var(--lx2we-radius); padding: clamp(1rem, 2vw, 2rem); overflow-wrap: anywhere; }
/* Only known section wrappers/headings: never select gallery figures or images. */
.tips-page__content > .wp-block-group { scroll-margin-top: 1.5rem; }
.tips-page__content > .wp-block-group > h2:first-child { margin-top: 0; color: var(--lx2we-tips-navy); font-size: clamp(1.35rem, 2vw, 1.7rem); }
.tips-page__content h2:focus { outline: 2px solid var(--lx2we-color-primary); outline-offset: 5px; }
.tips-page--enhanced .tips-page__content [hidden] { display: none !important; }
@media (max-width: 1100px) {
	.tips-page__layout--navigation { grid-template-columns: minmax(0, 1fr); }
	.tips-page__layout--journey.tips-page__layout--navigation { grid-template-columns: 180px minmax(0, 1fr); }
	.tips-page__sidebar { display: none; }
	.tips-hero--image::before { background: linear-gradient(90deg, rgb(255 255 255 / 78%), rgb(255 255 255 / 68%) 58%, rgb(255 255 255 / 0%) 90%); }
}
@media (max-width: 760px) {
	.tips-page__layout, .tips-page__layout--journey.tips-page__layout--navigation { grid-template-columns: minmax(0, 1fr); }
	.tips-page__main { grid-row: 1; }
	.tips-journey { border-top: 1px solid var(--lx2we-color-border); padding-top: 1.5rem; }
	.tips-hero--image::before { background: linear-gradient(90deg, rgb(255 255 255 / 76%), rgb(255 255 255 / 64%)); }
	.tips-nav a { min-height: 44px; }
}

/* Hero geometry follows destination.css (Phase 2); grid breakpoints stay independent. */
@media (max-width: 1000px) {
	.tips-hero__text { width: 65%; }
}
@media (max-width: 620px) {
	.tips-hero__inner { min-height: 280px; padding-block: 1.75rem; }
	.tips-hero__text { width: 100%; }
}
/* Only the validated group's initial H2 is marked by enhancement. Keep it in the accessibility tree. */
.tips-page--enhanced .tips-page__content .tips-section__structural-heading {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Remove only the residual top margin after the visually hidden structural H2. */
.tips-page--enhanced .tips-page__content .tips-section__structural-heading + * {
	margin-block-start: 0;
}
