/* We Tour The World — Travel Toolkit hub */

.wttw-tips-page {
	--tips-paper: #f8f6f1;
	--tips-ink: #202a2f;
	--tips-soft: #536168;
	--tips-sky-light: #dcebef;
	--tips-sky-deep: #5e8799;
	--tips-sand: #d7ad79;
	--tips-coral: #dd5d47;
	--tips-line: rgba(32, 42, 47, 0.2);
	background: var(--tips-paper);
	color: var(--tips-ink);
	overflow: clip;
}

.wttw-tips-page :where(h1, h2, h3, p) { margin: 0; }

.wttw-tips-page :where(h1, h2, h3) {
	color: inherit;
	font-family: var(--wttw-font-display);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 0.96;
	text-transform: uppercase;
}

.wttw-tips-page :where(a) { color: inherit; }
.wttw-tips-page section { scroll-margin-top: calc(var(--wttw-header-h) + 1rem); }

.wttw-tips-tag,
.wttw-tips-label {
	display: inline-block;
	font-family: var(--wttw-font-display);
	font-size: 0.77rem;
	font-weight: 600;
	letter-spacing: 0.13em;
	line-height: 1;
	text-transform: uppercase;
}

.wttw-tips-tag { padding: 0.55rem 0.75rem; background: var(--tips-sky-deep); color: #fff; }
.wttw-tips-tag--coral { background: var(--tips-coral); }
.wttw-tips-label { color: var(--tips-sky-deep); }

/* Hero */
.wttw-tips-hero {
	display: grid;
	grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
	height: min(42rem, calc(100svh - var(--wttw-header-h)));
	min-height: 37rem;
	border-bottom: 1px solid var(--tips-line);
}

.wttw-tips-hero__photo,
.wttw-tips-hero__atlas { position: relative; min-width: 0; overflow: hidden; }
.wttw-tips-hero__photo picture,
.wttw-tips-hero__image { display: block; width: 100%; height: 100%; }

.wttw-tips-hero__image {
	object-fit: cover;
	object-position: 50% 55%;
	filter: saturate(0.8) contrast(0.97);
	animation: wttw-tips-photo-in 900ms var(--wttw-ease) both;
}

.wttw-tips-hero__caption {
	position: absolute;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	gap: 0.85rem;
	max-width: 20rem;
	padding: 1rem 1.35rem;
	background: rgba(248, 246, 241, 0.94);
	font-family: var(--wttw-font-display);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 1.35;
	text-transform: uppercase;
}

.wttw-tips-hero__caption .wttw-icon { width: 2rem; height: 2rem; flex: 0 0 auto; color: var(--tips-sky-deep); }

.wttw-tips-hero__atlas {
	display: grid;
	place-items: center;
	background-color: var(--tips-sky-light);
}

.wttw-tips-hero__atlas > img {
	position: absolute;
	inset: 8% -5% auto;
	width: 110%;
	height: 82%;
	object-fit: contain;
	opacity: 0.14;
	filter: grayscale(1);
}

.wttw-tips-hero__copy { position: relative; z-index: 1; width: min(34rem, 82%); padding: 4rem 0; }
.wttw-tips-hero h1 { margin-top: 1.35rem; font-size: clamp(4.25rem, 6.7vw, 6.6rem); line-height: 0.88; }
.wttw-tips-hero__copy > p { max-width: 31rem; margin-top: 1.6rem; color: var(--tips-soft); font-size: clamp(1rem, 0.95rem + 0.16vw, 1.12rem); line-height: 1.62; }

.wttw-tips-hero__copy > a,
.wttw-tips-guide__copy > a,
.wttw-tips-next > a {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	margin-top: 1.7rem;
	color: var(--tips-coral);
	font-family: var(--wttw-font-display);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
}

.wttw-tips-hero__copy > a .wttw-icon,
.wttw-tips-guide__copy > a .wttw-icon,
.wttw-tips-next > a .wttw-icon { transition: transform var(--wttw-fast) var(--wttw-ease); }

.wttw-tips-hero__copy > a:hover .wttw-icon,
.wttw-tips-guide__copy > a:hover .wttw-icon,
.wttw-tips-next > a:hover .wttw-icon { transform: translateX(0.3rem); }

@keyframes wttw-tips-photo-in {
	from { opacity: 0.76; filter: saturate(0.64) contrast(0.9) blur(0.3rem); transform: scale(1.03); }
	to { opacity: 1; filter: saturate(0.8) contrast(0.97) blur(0); transform: scale(1); }
}

/* Compact trust strip */
.wttw-tips-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--tips-ink); color: #fff; }
.wttw-tips-principles article { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 1rem; align-items: start; min-width: 0; padding: 1.6rem max(2rem, 3vw); border-right: 1px solid rgba(255, 255, 255, 0.15); }
.wttw-tips-principles article:last-child { border-right: 0; }
.wttw-tips-principles article > span { color: var(--tips-sand); font-family: var(--wttw-font-display); font-size: 0.72rem; letter-spacing: 0.12em; }
.wttw-tips-principles strong { display: block; font-family: var(--wttw-font-display); font-size: 1rem; letter-spacing: 0.07em; line-height: 1.1; text-transform: uppercase; }
.wttw-tips-principles small { display: block; margin-top: 0.4rem; color: var(--tips-sky-light); font-size: 0.75rem; line-height: 1.45; }

/* Field guides */
.wttw-tips-guides { padding: clamp(4rem, 7vw, 7rem) max(5vw, calc((100vw - 82rem) / 2)); background: #fff; }
.wttw-tips-section-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr); gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.wttw-tips-section-head h2,
.wttw-tips-finder h2,
.wttw-tips-next h2 { margin-top: 1rem; font-size: clamp(2.8rem, 4.4vw, 4.8rem); }
.wttw-tips-section-head > p { color: var(--tips-soft); font-size: 1rem; line-height: 1.68; }

.wttw-tips-guides__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 3.5rem; border: 1px solid var(--tips-line); background: var(--tips-line); }
.wttw-tips-guides__grid > article { min-width: 0; background: var(--tips-paper); }
.wttw-tips-guide__photo { position: relative; display: block; height: 16rem; overflow: hidden; }
.wttw-tips-guide__photo picture,
.wttw-tips-guide__image { display: block; width: 100%; height: 100%; }
.wttw-tips-guide__image { object-fit: cover; filter: saturate(0.8) contrast(0.97); transition: transform 600ms var(--wttw-ease); }
.wttw-tips-guide__photo:hover .wttw-tips-guide__image { transform: scale(1.025); }
.wttw-tips-guide__photo > span { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; background: var(--tips-ink); color: #fff; font-family: var(--wttw-font-display); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; }
.wttw-tips-guide__copy { display: flex; flex-direction: column; min-height: 17rem; padding: clamp(1.7rem, 2.6vw, 2.5rem); }
.wttw-tips-guide__copy h3 { font-size: clamp(1.8rem, 2.3vw, 2.55rem); }
.wttw-tips-guide__copy p { margin-top: 1rem; color: var(--tips-soft); font-size: 0.95rem; line-height: 1.62; }
.wttw-tips-guide__copy > a { margin-top: auto; padding-top: 1.5rem; }

/* Problem-led routes */
.wttw-tips-finder { display: grid; grid-template-columns: minmax(18rem, 0.78fr) minmax(0, 1.22fr); gap: clamp(3rem, 8vw, 8rem); padding: clamp(4rem, 7vw, 7rem) max(5vw, calc((100vw - 82rem) / 2)); border-top: 1px solid var(--tips-line); background: var(--tips-sky-light); }
.wttw-tips-finder__intro p { max-width: 35rem; margin-top: 1.45rem; color: var(--tips-soft); font-size: 1rem; line-height: 1.68; }
.wttw-tips-finder__routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--tips-line); border-left: 1px solid var(--tips-line); }
.wttw-tips-finder__routes a { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 7.1rem; padding: 1.25rem 1.4rem; border-right: 1px solid var(--tips-line); border-bottom: 1px solid var(--tips-line); background: rgba(255, 255, 255, 0.46); font-size: 0.92rem; font-weight: 700; line-height: 1.4; text-decoration: none; transition: background-color var(--wttw-fast) var(--wttw-ease); }
.wttw-tips-finder__routes a:hover,
.wttw-tips-finder__routes a:focus-visible { background-color: #fff; color: var(--tips-ink); }
.wttw-tips-finder__routes small { display: block; margin-bottom: 0.45rem; color: var(--tips-coral); font-family: var(--wttw-font-display); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; }
.wttw-tips-finder__routes .wttw-icon { flex: 0 0 auto; color: var(--tips-coral); }

.wttw-tips-ad { padding: clamp(2.5rem, 4vw, 4rem) max(5vw, calc((100vw - 74rem) / 2)); background: var(--tips-paper); }

/* Next chapter */
.wttw-tips-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(3rem, 8vw, 8rem); align-items: center; padding: clamp(4rem, 6vw, 6rem) max(5vw, calc((100vw - 82rem) / 2)); border-top: 1px solid var(--tips-line); background: #fff; }
.wttw-tips-next h2 { max-width: 13ch; }
.wttw-tips-next p { max-width: 45rem; margin-top: 1.35rem; color: var(--tips-soft); font-size: 1rem; line-height: 1.66; }
.wttw-tips-next > a { margin-top: 0; white-space: nowrap; }

@media (max-width: 900px) {
	.wttw-tips-principles { grid-template-columns: 1fr; }
	.wttw-tips-principles article { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
	.wttw-tips-principles article:last-child { border-bottom: 0; }
	.wttw-tips-finder { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 760px) {
	.wttw-tips-hero { grid-template-columns: 1fr; height: auto; min-height: 0; }
	.wttw-tips-hero__atlas { grid-row: 1; min-height: 29rem; }
	.wttw-tips-hero__photo { min-height: 20rem; }
	.wttw-tips-hero__copy { width: min(88%, 32rem); padding: 3.5rem 0; text-align: center; }
	.wttw-tips-hero h1 { font-size: clamp(3.8rem, 16vw, 5.2rem); }
	.wttw-tips-hero__copy > p { margin-inline: auto; }
	.wttw-tips-section-head,
	.wttw-tips-guides__grid,
	.wttw-tips-next { grid-template-columns: 1fr; }
	.wttw-tips-guides,
	.wttw-tips-finder,
	.wttw-tips-next { padding-inline: 1.25rem; }
	.wttw-tips-section-head { gap: 1.5rem; }
	.wttw-tips-guides__grid { margin-top: 2.5rem; }
	.wttw-tips-guide__photo { height: 17rem; }
	.wttw-tips-guide__copy { min-height: 0; padding: 2rem 1.5rem 2.5rem; }
	.wttw-tips-finder__routes { grid-template-columns: 1fr; }
	.wttw-tips-finder__routes a { min-height: 5.7rem; }
	.wttw-tips-next { gap: 1.5rem; }
	.wttw-tips-next > a { margin-top: 0.5rem; }
}

@media (max-width: 430px) {
	.wttw-tips-hero__caption { max-width: 100%; }
	.wttw-tips-hero h1 { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
	.wttw-tips-hero__image { animation: none; }
	.wttw-tips-guide__image { transition: none; }
}
