/* -------------------------------------------------------------------------
 * We Tour The World — Gear Field Inventory Ledger
 * Direct production translation of the recommended gear archive concept.
 * ---------------------------------------------------------------------- */

.wttw-gear-page {
	--gear-white: #fdfdfd;
	--gear-paper: #f4f0ea;
	--gear-paper-deep: #e8e0d5;
	--gear-ink: #1a2125;
	--gear-ink-deep: #1b2a32;
	--gear-soft: #4b585e;
	--gear-muted: #6f7a80;
	--gear-sky: #a8c4d1;
	--gear-sky-deep: #496f84;
	--gear-coral: #d95d43;
	--gear-coral-dark: #a8402f;
	--gear-line: #d8d0c5;
	background: var(--gear-white);
	color: var(--gear-ink);
}

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

.wttw-gear-page :where(p) {
	margin: 0;
}

.wttw-gear-page section {
	scroll-margin-top: calc(var(--wttw-header-h) + 1rem);
}

.wttw-gear-tag {
	display: inline-block;
	padding: 0.48rem 0.72rem;
	background: var(--gear-sky-deep);
	color: #fff;
	font-family: var(--wttw-font-display);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.13em;
	line-height: 1;
	text-transform: uppercase;
}

.wttw-gear-tag--archive {
	background: var(--gear-coral);
}

/* Hero ---------------------------------------------------------------- */

.wttw-gear-hero {
	display: grid;
	grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
	min-height: 39rem;
	overflow: hidden;
	background: var(--gear-paper);
}

.wttw-gear-hero__photo {
	position: relative;
	min-width: 0;
	overflow: hidden;
	background: var(--gear-ink);
}

.wttw-gear-hero__photo picture,
.wttw-gear-hero__image {
	display: block;
	width: 100%;
	height: 100%;
}

.wttw-gear-hero__image {
	object-fit: cover;
	object-position: 58% 50%;
	filter: saturate(0.9) contrast(0.98);
	transform: scale(1.015);
	animation: wttw-gear-photo-in 900ms var(--wttw-ease) both;
}

.wttw-gear-hero__caption {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.35rem clamp(1.5rem, 3vw, 2.5rem);
	background: rgba(26, 33, 37, 0.88);
	color: #fff;
}

.wttw-gear-hero__caption strong,
.wttw-gear-hero__caption span {
	font-size: 0.78rem;
	line-height: 1.2;
}

.wttw-gear-hero__caption strong {
	font-family: var(--wttw-font-display);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.wttw-gear-hero__caption span {
	color: rgba(255, 255, 255, 0.82);
}

.wttw-gear-hero__copy {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-width: 0;
	padding: clamp(3.5rem, 6vw, 6.5rem) clamp(2.5rem, 6vw, 6.5rem);
	background: var(--gear-paper);
}

.wttw-gear-hero h1 {
	max-width: 8ch;
	margin-top: 1.6rem;
	font-size: clamp(4.4rem, 6.6vw, 6rem);
	line-height: 0.9;
}

.wttw-gear-hero__copy > p {
	max-width: 34rem;
	margin-top: 1.75rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--gear-ink);
	color: var(--gear-soft);
	font-size: clamp(1rem, 0.92rem + 0.2vw, 1.14rem);
	line-height: 1.62;
}

.wttw-gear-hero__route {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-top: 2.2rem;
	color: var(--gear-coral);
}

.wttw-gear-hero__route span {
	width: 0.6rem;
	height: 0.6rem;
	border: 2px solid currentColor;
	border-radius: 50%;
	background: var(--gear-paper);
}

.wttw-gear-hero__route i {
	width: clamp(4.5rem, 7vw, 7rem);
	border-top: 2px dashed currentColor;
}

.wttw-gear-hero__route em {
	font-family: var(--wttw-font-marker);
	font-size: 1rem;
	font-style: normal;
}

/* Field index --------------------------------------------------------- */

.wttw-gear-index {
	display: grid;
	grid-template-columns: minmax(11rem, 1.15fr) repeat(5, minmax(8rem, 1fr));
	min-height: 5.8rem;
	background: var(--gear-ink-deep);
	color: #fff;
}

.wttw-gear-index > * {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 1.2rem clamp(1rem, 1.8vw, 1.8rem);
	border-right: 1px solid rgba(255, 255, 255, 0.16);
	color: inherit;
	text-decoration: none;
}

.wttw-gear-index > *:last-child {
	border-right: 0;
}

.wttw-gear-index strong {
	font-family: var(--wttw-font-display);
	font-size: clamp(0.96rem, 0.85rem + 0.3vw, 1.25rem);
	font-weight: 600;
	line-height: 1.1;
	text-transform: uppercase;
}

.wttw-gear-index span {
	margin-top: 0.35rem;
	color: #b7c5ca;
	font-size: 0.78rem;
}

.wttw-gear-index__lead {
	background: var(--gear-sky-deep);
}

.wttw-gear-index a {
	transition:
		background-color var(--wttw-fast) var(--wttw-ease),
		color var(--wttw-fast) var(--wttw-ease);
}

.wttw-gear-index a:hover,
.wttw-gear-index a:focus-visible {
	background: var(--gear-coral);
	color: #fff;
}

.wttw-gear-index a:hover span,
.wttw-gear-index a:focus-visible span {
	color: rgba(255, 255, 255, 0.8);
}

/* 2027 chapter -------------------------------------------------------- */

.wttw-gear-next {
	display: grid;
	grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
	gap: clamp(2.5rem, 5vw, 6rem);
	padding: clamp(3.8rem, 6vw, 6.2rem) clamp(2rem, 6vw, 6rem);
	background: var(--gear-sky);
}

.wttw-gear-next__intro h2 {
	margin-top: 1rem;
	font-size: clamp(3.1rem, 4.4vw, 5rem);
}

.wttw-gear-next__intro p {
	max-width: 32rem;
	margin-top: 1.4rem;
	color: #29404a;
	font-size: 1.02rem;
	line-height: 1.62;
}

.wttw-gear-next__empty {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-height: 18rem;
	padding: clamp(2rem, 4vw, 4rem);
	border: 1px solid rgba(26, 33, 37, 0.35);
}

.wttw-gear-next__empty::after {
	position: absolute;
	right: clamp(1.5rem, 4vw, 3.5rem);
	bottom: clamp(1.5rem, 4vw, 3rem);
	width: clamp(5rem, 10vw, 8rem);
	border-top: 2px dashed var(--gear-coral);
	content: "";
	transform: rotate(-5deg);
}

.wttw-gear-next__empty > span,
.wttw-gear-next__items article span {
	color: #31505f;
	font-family: var(--wttw-font-display);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.wttw-gear-next__empty strong {
	display: block;
	margin-top: 0.75rem;
	font-family: var(--wttw-font-display);
	font-size: clamp(2.4rem, 4vw, 4.6rem);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 0.96;
	text-transform: uppercase;
}

.wttw-gear-next__empty p {
	max-width: 42rem;
	margin-top: 1.2rem;
	color: #29404a;
	font-size: 1rem;
	line-height: 1.62;
}

.wttw-gear-next__empty small {
	display: block;
	margin-top: 1.5rem;
	color: #31505f;
	font-size: 0.82rem;
}

.wttw-gear-next__items {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-top: 1px solid rgba(26, 33, 37, 0.35);
	border-left: 1px solid rgba(26, 33, 37, 0.35);
}

.wttw-gear-next__items article {
	padding: 1.75rem;
	border-right: 1px solid rgba(26, 33, 37, 0.35);
	border-bottom: 1px solid rgba(26, 33, 37, 0.35);
}

.wttw-gear-next__items article > div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.wttw-gear-next__items article small {
	color: #31505f;
	font-size: 0.78rem;
}

.wttw-gear-next__items article > strong {
	display: block;
	margin-top: 1rem;
	font-family: var(--wttw-font-display);
	font-size: 1.65rem;
	line-height: 1.05;
	text-transform: uppercase;
}

.wttw-gear-next__items article p {
	margin-top: 0.8rem;
	color: #29404a;
	font-size: 0.94rem;
	line-height: 1.55;
}

.wttw-gear-next__items article a {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	margin-top: 1rem;
	color: var(--gear-coral-dark);
	font-family: var(--wttw-font-display);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-decoration: none;
	text-transform: uppercase;
}

/* Archive note -------------------------------------------------------- */

.wttw-gear-archive-note {
	display: grid;
	grid-template-columns: minmax(7.5rem, 0.18fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 3vw, 3rem);
	align-items: center;
	padding: 1.6rem clamp(2rem, 6vw, 6rem);
	border-block: 1px solid var(--gear-line);
	background: var(--gear-paper);
}

.wttw-gear-archive-note strong {
	font-family: var(--wttw-font-display);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.wttw-gear-archive-note p {
	max-width: 70rem;
	color: var(--gear-soft);
	font-size: 0.92rem;
	line-height: 1.58;
}

/* 2017 archive -------------------------------------------------------- */

.wttw-gear-archive {
	width: min(90rem, 100%);
	margin-inline: auto;
	padding: clamp(4.5rem, 7vw, 7.5rem) clamp(2rem, 5vw, 5rem) clamp(3.5rem, 6vw, 6rem);
}

.wttw-gear-heading {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
	gap: clamp(2rem, 5vw, 6rem);
	align-items: end;
	margin-bottom: 2.5rem;
}

.wttw-gear-heading h2 {
	margin-top: 1rem;
	font-size: clamp(3rem, 4.4vw, 5rem);
}

.wttw-gear-heading > p {
	max-width: 36rem;
	color: var(--gear-soft);
	font-size: 1rem;
	line-height: 1.62;
}

.wttw-gear-ledger {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	border-top: 1px solid var(--gear-ink);
	border-bottom: 1px solid var(--gear-ink);
}

.wttw-gear-chapter {
	display: grid;
	grid-template-columns: 5.2rem minmax(0, 1fr);
	min-width: 0;
	padding: 2.25rem 2.25rem 2.25rem 0;
	border-bottom: 1px solid var(--gear-line);
}

.wttw-gear-chapter:nth-child(odd) {
	border-right: 1px solid var(--gear-line);
}

.wttw-gear-chapter:nth-child(even) {
	padding-right: 0;
	padding-left: 2.25rem;
}

.wttw-gear-chapter:nth-last-child(-n + 2) {
	border-bottom: 0;
}

.wttw-gear-chapter__code {
	padding-top: 0.25rem;
	color: var(--gear-coral);
	font-family: var(--wttw-font-display);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.wttw-gear-chapter h3 {
	margin-bottom: 1rem;
	font-size: clamp(1.8rem, 2.2vw, 2.6rem);
}

.wttw-gear-chapter__items {
	border-top: 1px dotted var(--gear-line);
}

.wttw-gear-item {
	border-bottom: 1px dotted var(--gear-line);
}

.wttw-gear-item summary {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 1.2rem;
	gap: 1rem;
	align-items: center;
	padding: 0.9rem 0;
	cursor: pointer;
	list-style: none;
}

.wttw-gear-item summary::-webkit-details-marker {
	display: none;
}

.wttw-gear-item summary > span {
	display: grid;
	grid-template-columns: minmax(9rem, 1fr) auto;
	gap: 1rem;
	align-items: baseline;
}

.wttw-gear-item summary strong {
	font-size: 0.94rem;
	line-height: 1.35;
}

.wttw-gear-item summary small {
	color: var(--gear-muted);
	font-size: 0.78rem;
	line-height: 1.4;
	text-align: right;
}

.wttw-gear-item summary i {
	position: relative;
	width: 1rem;
	height: 1rem;
}

.wttw-gear-item summary i::before,
.wttw-gear-item summary i::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.85rem;
	border-top: 1px solid var(--gear-coral);
	content: "";
	transform: translate(-50%, -50%);
	transition: transform var(--wttw-fast) var(--wttw-ease);
}

.wttw-gear-item summary i::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.wttw-gear-item[open] summary i::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

.wttw-gear-item summary:hover strong,
.wttw-gear-item summary:focus-visible strong {
	color: var(--gear-coral-dark);
}

.wttw-gear-item summary:focus-visible {
	outline: 3px solid var(--gear-coral);
	outline-offset: 4px;
}

.wttw-gear-item > div {
	padding: 0.15rem 2.2rem 1.25rem 0;
}

.wttw-gear-item > div > span {
	display: block;
	margin-bottom: 0.55rem;
	color: var(--gear-coral-dark);
	font-family: var(--wttw-font-display);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.wttw-gear-item > div p {
	max-width: 62ch;
	color: var(--gear-soft);
	font-size: 0.96rem;
	line-height: 1.65;
}

.wttw-gear-chapter--note p {
	max-width: 44ch;
	color: var(--gear-soft);
	font-size: 1rem;
	line-height: 1.65;
}

.wttw-gear-chapter--note details {
	margin-top: 1.1rem;
}

.wttw-gear-chapter--note summary {
	color: var(--gear-coral-dark);
	cursor: pointer;
	font-family: var(--wttw-font-display);
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.wttw-gear-chapter--note summary:focus-visible {
	outline: 3px solid var(--gear-coral);
	outline-offset: 4px;
}

.wttw-gear-chapter--note details p {
	margin-top: 0.9rem;
	font-size: 0.94rem;
}

/* Closing principle --------------------------------------------------- */

.wttw-gear-principle {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
	width: min(82rem, calc(100% - 4rem));
	margin: 0 auto clamp(3.5rem, 6vw, 6rem);
	background: var(--gear-paper);
}

.wttw-gear-principle__photo {
	min-height: 23rem;
	overflow: hidden;
}

.wttw-gear-principle__photo picture,
.wttw-gear-principle__image {
	width: 100%;
	height: 100%;
}

.wttw-gear-principle__image {
	object-fit: cover;
}

.wttw-gear-principle > div:last-child {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(2.5rem, 4vw, 4.5rem);
}

.wttw-gear-principle > div:last-child > span {
	font-family: var(--wttw-font-display);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.wttw-gear-principle h2 {
	margin-top: 0.9rem;
	font-size: clamp(2.8rem, 4vw, 4.6rem);
}

.wttw-gear-principle p {
	max-width: 34rem;
	margin-top: 1.3rem;
	color: var(--gear-soft);
	font-size: 1rem;
	line-height: 1.62;
}

.wttw-gear-principle a {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	margin-top: 1.4rem;
	color: var(--gear-coral-dark);
	font-family: var(--wttw-font-display);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-decoration: none;
	text-transform: uppercase;
}

.wttw-gear-principle a .wttw-icon {
	transition: transform var(--wttw-fast) var(--wttw-ease);
}

.wttw-gear-principle a:hover .wttw-icon,
.wttw-gear-principle a:focus-visible .wttw-icon {
	transform: translateX(0.25rem);
}

/* Advertisement ------------------------------------------------------ */

.wttw-gear-ad {
	padding: 1.5rem clamp(2rem, 5.2vw, 5.2rem);
	border-block: 1px solid var(--gear-line);
	background: #faf8f4;
}

.wttw-gear-ad .wttw-ad-slot {
	display: grid;
	place-items: center;
	min-height: 8.5rem;
	border: 1px dashed #bdb4a9;
}

@keyframes wttw-gear-photo-in {
	from {
		clip-path: inset(0 7% 0 0);
		filter: saturate(0.72) contrast(0.94) blur(2px);
		transform: scale(1.045);
	}

	to {
		clip-path: inset(0);
		filter: saturate(0.9) contrast(0.98) blur(0);
		transform: scale(1.015);
	}
}

/* Responsive --------------------------------------------------------- */

@media (max-width: 68.75rem) {
	.wttw-gear-hero {
		grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
	}

	.wttw-gear-hero__copy {
		padding-inline: clamp(2rem, 4vw, 4rem);
	}

	.wttw-gear-index {
		grid-template-columns: minmax(10rem, 1.15fr) repeat(5, minmax(7.2rem, 1fr));
	}

	.wttw-gear-chapter {
		grid-template-columns: 4rem minmax(0, 1fr);
		padding-right: 1.5rem;
	}

	.wttw-gear-chapter:nth-child(even) {
		padding-left: 1.5rem;
	}

	.wttw-gear-item summary > span {
		grid-template-columns: 1fr;
		gap: 0.2rem;
	}

	.wttw-gear-item summary small {
		text-align: left;
	}
}

@media (max-width: 56.25rem) {
	.wttw-gear-hero {
		grid-template-columns: 1fr;
	}

	.wttw-gear-hero__photo {
		min-height: 31rem;
	}

	.wttw-gear-hero__copy {
		min-height: 34rem;
	}

	.wttw-gear-index {
		grid-template-columns: 11rem repeat(5, 9rem);
		overflow-x: auto;
		scrollbar-width: thin;
	}

	.wttw-gear-index > * {
		min-height: 5.8rem;
	}

	.wttw-gear-next {
		grid-template-columns: 1fr;
	}

	.wttw-gear-heading {
		grid-template-columns: 1fr;
	}

	.wttw-gear-ledger {
		grid-template-columns: 1fr;
	}

	.wttw-gear-chapter,
	.wttw-gear-chapter:nth-child(even) {
		padding: 2rem 0;
		border-right: 0;
		border-bottom: 1px solid var(--gear-line);
	}

	.wttw-gear-chapter:last-child {
		border-bottom: 0;
	}

	.wttw-gear-principle {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 43.75rem) {
	.wttw-gear-hero {
		min-height: 0;
	}

	.wttw-gear-hero__photo {
		min-height: 24rem;
	}

	.wttw-gear-hero__caption {
		padding: 1rem 1.25rem;
	}

	.wttw-gear-hero__copy {
		min-height: 0;
		padding: 3.5rem 1.55rem 3.8rem;
	}

	.wttw-gear-hero h1 {
		font-size: clamp(4rem, 18vw, 5.2rem);
	}

	.wttw-gear-hero__copy > p {
		font-size: 1rem;
	}

	.wttw-gear-next {
		gap: 2.5rem;
		padding: 3.8rem 1.55rem;
	}

	.wttw-gear-next__intro h2 {
		font-size: clamp(3.3rem, 14vw, 4.4rem);
	}

	.wttw-gear-next__empty {
		min-height: 20rem;
		padding: 2rem 1.5rem 4.5rem;
	}

	.wttw-gear-next__empty strong {
		font-size: clamp(2.6rem, 12vw, 3.8rem);
	}

	.wttw-gear-next__items {
		grid-template-columns: 1fr;
	}

	.wttw-gear-archive-note {
		grid-template-columns: 1fr;
		gap: 0.75rem;
		padding: 1.6rem 1.55rem;
	}

	.wttw-gear-archive {
		padding: 4rem 1.55rem;
	}

	.wttw-gear-heading h2 {
		font-size: clamp(3.1rem, 13vw, 4.3rem);
	}

	.wttw-gear-chapter,
	.wttw-gear-chapter:nth-child(even) {
		grid-template-columns: 3.5rem minmax(0, 1fr);
	}

	.wttw-gear-item summary {
		grid-template-columns: minmax(0, 1fr) 1.2rem;
	}

	.wttw-gear-item summary strong {
		font-size: 0.98rem;
	}

	.wttw-gear-item summary small {
		font-size: 0.8rem;
	}

	.wttw-gear-principle {
		width: 100%;
		margin-bottom: 0;
	}

	.wttw-gear-principle__photo {
		min-height: 20rem;
	}

	.wttw-gear-principle > div:last-child {
		padding: 3.5rem 1.55rem;
	}

	.wttw-gear-ad {
		padding-inline: 1.55rem;
	}
}

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

	.wttw-gear-index a,
	.wttw-gear-item summary i::before,
	.wttw-gear-item summary i::after,
	.wttw-gear-principle a .wttw-icon {
		transition: none;
	}
}
