/* 160Foals Sale Lots: foal page (/foals/<name>/). Colours and fonts follow the Elementor kit of the site. */

.f160-lot {
	--f160-gold: #C9A961;
	--f160-gold-soft: #E8C875;
	--f160-gold-btn: #E5BE6B;
	--f160-ink: #0E0B08;
	--f160-text: #FAF8F4;
	--f160-muted: rgba(250, 248, 244, 0.74);
	--f160-line: rgba(255, 255, 255, 0.12);
	--f160-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--f160-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: clamp(118px, 14vw, 168px) 16px clamp(56px, 8vw, 110px);
	background:
		radial-gradient(900px 520px at 88% 0%, rgba(201, 169, 97, 0.10), transparent 62%),
		radial-gradient(700px 500px at 0% 42%, rgba(201, 169, 97, 0.05), transparent 60%),
		var(--f160-ink);
	color: var(--f160-text);
	font-family: var(--f160-sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.55;
}

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

.f160-lot__wrap {
	max-width: 1200px;
	margin: 0 auto;
}

.f160-lot__wrap > * + * {
	margin-top: 24px;
}

.f160-lot :where(p, h1, h2, dl, dd, ul) {
	margin: 0;
}

/* Head */
.f160-lot__head {
	text-align: center;
	margin-bottom: clamp(20px, 4vw, 40px);
}

.f160-lot__eyebrow,
.f160-lot__label {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--f160-gold);
}

.f160-lot .f160-lot__title {
	margin: 14px 0 12px;
	font-family: var(--f160-serif);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(46px, 7.4vw, 88px);
	line-height: 1.02;
	letter-spacing: -0.01em;
	color: var(--f160-gold-soft);
}

.f160-lot__sub {
	font-family: var(--f160-serif);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(18px, 2.2vw, 24px);
	color: var(--f160-muted);
}

.f160-lot__sub em,
.f160-lot__line em {
	font-style: italic;
	color: var(--f160-gold-soft);
}

/* Top: gallery + facts */
.f160-lot__top {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 24px;
	align-items: stretch;
}

.f160-lot__stage {
	position: relative;
	overflow: hidden;
	border-radius: 24px;
	background: #161210;
	aspect-ratio: 3 / 2;
}

.f160-lot .f160-lot__main {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.f160-lot__badge,
.f160-lot__chip {
	display: inline-block;
	padding: 7px 15px;
	border: 1px solid var(--f160-gold);
	border-radius: 999px;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--f160-gold);
}

.f160-lot__badge {
	position: absolute;
	left: 20px;
	bottom: 20px;
	background: rgba(22, 18, 16, 0.82);
}

.f160-lot .f160-lot__thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.f160-lot .f160-lot__thumb,
.f160-lot .f160-lot__thumb:hover,
.f160-lot .f160-lot__thumb:focus {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--f160-line);
	border-radius: 14px;
	background: #161210;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

.f160-lot .f160-lot__thumb:hover,
.f160-lot .f160-lot__thumb:focus-visible,
.f160-lot .f160-lot__thumb[aria-current="true"] {
	opacity: 1;
	border-color: var(--f160-gold);
	outline: none;
}

.f160-lot .f160-lot__thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	height: auto;
	object-fit: cover;
}

/* Cards */
.f160-lot__card {
	padding: clamp(24px, 3.4vw, 42px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 24px;
	background: linear-gradient(180deg, #1B1714 0%, #141110 100%);
}

.f160-lot__facts {
	display: flex;
	flex-direction: column;
}

.f160-lot__chips {
	margin-bottom: 20px;
}

.f160-lot__lead {
	font-family: var(--f160-serif);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(19px, 2vw, 23px);
	line-height: 1.45;
	color: rgba(250, 248, 244, 0.94);
}

.f160-lot .f160-lot__rule {
	height: 0;
	margin: 22px 0;
	border: 0;
	border-top: 1px solid var(--f160-line);
	background: none;
}

.f160-lot__line {
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--f160-muted);
}

.f160-lot__line em {
	margin-left: 6px;
	font-family: var(--f160-serif);
	font-size: 20px;
	font-weight: 300;
	letter-spacing: 0.02em;
	text-transform: none;
}

.f160-lot .f160-lot__legend {
	margin: 0;
	padding: 0;
	list-style: none;
}

.f160-lot__legend li {
	margin: 0 0 6px;
	font-size: 14px;
	color: var(--f160-muted);
}

.f160-lot__legend strong {
	margin-right: 6px;
	font-weight: 500;
	letter-spacing: 0.12em;
	color: var(--f160-gold);
}

/* Dam-line numbers */
.f160-lot__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.f160-lot__stat {
	display: flex;
	flex: 1 1 150px;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	border: 1px solid var(--f160-line);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.03);
}

.f160-lot__stattag {
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--f160-gold);
}

.f160-lot .f160-lot__statnum {
	font-family: var(--f160-serif);
	font-size: clamp(34px, 4vw, 46px);
	font-weight: 300;
	line-height: 1.05;
	color: var(--f160-gold-soft);
}

.f160-lot__statlabel {
	font-size: 13px;
	color: var(--f160-text);
}

.f160-lot__statratio,
.f160-lot__statnote {
	font-size: 13px;
	color: var(--f160-muted);
}

.f160-lot__statnote {
	font-family: var(--f160-serif);
	font-style: italic;
	font-size: 18px;
	line-height: 1.35;
	color: var(--f160-text);
}

/* Buttons */
.f160-lot__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: auto;
	padding-top: 28px;
}

.f160-lot a.f160-lot__btn,
.f160-lot a.f160-lot__btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 28px;
	border: 0;
	border-radius: 999px;
	font-family: var(--f160-sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.2em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--f160-ink);
	transition: transform 0.15s ease, filter 0.15s ease;
}

.f160-lot a.f160-lot__btn--gold { background: var(--f160-gold-btn); }
.f160-lot a.f160-lot__btn--light { background: #F8F6F0; }

.f160-lot a.f160-lot__btn:hover,
.f160-lot a.f160-lot__btn:focus-visible {
	color: var(--f160-ink);
	filter: brightness(1.06);
	transform: translateY(-1px);
}

/* About, pedigree, sale */
.f160-lot .f160-lot__h2 {
	margin: 0 0 14px;
	font-family: var(--f160-serif);
	font-weight: 300;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.15;
	color: var(--f160-text);
}

.f160-lot__h2 em {
	font-style: italic;
	color: var(--f160-gold-soft);
}

.f160-lot__about p:not(.f160-lot__label) {
	max-width: 62ch;
	font-family: var(--f160-serif);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(18px, 2vw, 22px);
	line-height: 1.6;
	color: var(--f160-muted);
}

.f160-lot__about p + p {
	margin-top: 22px;
}

.f160-lot__cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
}

.f160-lot__col .f160-lot__label {
	padding-bottom: 6px;
	border-bottom: 1px solid var(--f160-line);
}

.f160-lot__col dt {
	margin-top: 18px;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--f160-muted);
}

.f160-lot__col dd {
	margin: 3px 0 0;
	font-family: var(--f160-serif);
	font-size: 21px;
	font-weight: 300;
	line-height: 1.3;
	color: var(--f160-text);
}

.f160-lot__sale {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.f160-lot__sale .f160-lot__h2 {
	margin-top: 8px;
}

.f160-lot__sale p:not(.f160-lot__label) {
	max-width: 52ch;
	color: var(--f160-muted);
}

.f160-lot__sale .f160-lot__actions {
	margin-top: 0;
	padding-top: 0;
}

/* Previous / next */
.f160-lot__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
}

.f160-lot a.f160-lot__navlink,
.f160-lot a.f160-lot__navlink:visited {
	display: block;
	min-width: min(100%, 240px);
	padding: 20px 26px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	background: #161210;
	text-decoration: none;
	color: var(--f160-text);
	transition: border-color 0.15s ease;
}

.f160-lot a.f160-lot__navlink:hover,
.f160-lot a.f160-lot__navlink:focus-visible {
	border-color: var(--f160-gold);
	color: var(--f160-text);
}

.f160-lot__navlink > span {
	display: block;
	margin-bottom: 4px;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--f160-gold);
}

.f160-lot__navlink strong {
	font-family: var(--f160-serif);
	font-size: 24px;
	font-style: italic;
	font-weight: 300;
}

.f160-lot__navlink--next {
	margin-left: auto;
	text-align: right;
}

@media (max-width: 900px) {
	.f160-lot__top,
	.f160-lot__cols {
		grid-template-columns: minmax(0, 1fr);
	}

	.f160-lot__sale {
		flex-direction: column;
		align-items: flex-start;
	}

	.f160-lot__actions {
		margin-top: 0;
	}
}

@media (max-width: 480px) {
	.f160-lot a.f160-lot__btn {
		width: 100%;
	}

	.f160-lot__navlink {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.f160-lot * {
		transition: none !important;
	}
}
