/**
 * Interior templates.
 *
 * Archive, single, search and 404 — the pages rendered by PHP rather than
 * pasted in as blocks. Everything here builds on the primitives in style.css.
 */

/* ==========================================================================
   Interior hero

   The same opening on every interior page. Restraint is the point: one label,
   one heading, one paragraph, and nothing else competing.
   ========================================================================== */

.club-interior-hero {
	background: var(--club-cream);
	padding-top: calc(var(--club-section-tight) + 10px);
}

/* With a photograph behind it the block turns dark, like the venue heroes, and
   the picture is laid under a wash heavy enough to keep the heading readable
   over any part of it. */
.club-interior-hero--photo {
	position: relative;
	isolation: isolate;
	background: var(--club-olive-deep);
	color: var(--club-cream-soft);
	padding-block: clamp(64px, 9vw, 104px);
	border-top: 4px solid var(--club-terracotta);
}

.club-interior-hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
}

.club-interior-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.club-interior-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(rgba(12, 25, 18, 0.62), rgba(12, 25, 18, 0.78));
}

.club-interior-hero--photo .club-interior-hero__title { color: var(--club-cream); }
.club-interior-hero--photo .club-eyebrow { color: var(--club-gold); }
.club-interior-hero--photo .club-lede { color: var(--club-cream-soft); }

.club-interior-hero__title {
	font-size: var(--club-size-h1);
	margin: 0 0 18px;
	max-width: 18ch;
}

/* ==========================================================================
   Archive
   ========================================================================== */

/* The Open / Closed heading that splits tenders and careers. */
.club-archive__split {
	font-family: var(--club-font-label);
	font-size: var(--club-size-label);
	font-weight: 500;
	letter-spacing: var(--club-tracking-label);
	text-transform: uppercase;
	color: var(--club-brass);
	margin: 0 0 6px;
	padding-top: 8px;
}

.club-archive__split + .club-docs { margin-bottom: 52px; }

/* ==========================================================================
   Pagination
   ========================================================================== */

.club-pagination { margin-top: 56px; }

.club-pagination ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.club-pagination a,
.club-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 12px;
	font-family: var(--club-font-label);
	font-size: var(--club-size-label);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border: 1px solid var(--club-line-strong);
	color: var(--club-ink);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	font-variant-numeric: tabular-nums;
}

.club-pagination a:hover {
	border-color: var(--club-olive);
	background: var(--club-olive);
	color: var(--club-cream);
}

.club-pagination .current {
	background: var(--club-olive);
	border-color: var(--club-olive);
	color: var(--club-cream);
}

.club-pagination .dots { border-color: transparent; }

/* ==========================================================================
   Single
   ========================================================================== */

.club-single__media { margin-bottom: 52px; }

.club-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 64px;
	align-items: start;
}

/* Running text stays near 65 characters however wide the screen. */
.club-prose {
	max-width: 68ch;
	font-size: 1.0625rem;
	line-height: 1.8;
}

.club-prose h2 { font-size: var(--club-size-h3); margin: 1.8em 0 0.5em; }
.club-prose h3 { font-size: var(--club-size-h4); margin: 1.6em 0 0.4em; }
.club-prose ul,
.club-prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.club-prose li { margin-bottom: 0.5em; }

.club-prose a {
	border-bottom: 1px solid var(--club-brass);
	padding-bottom: 1px;
}

.club-prose a:hover { color: var(--club-brass); }

.club-prose blockquote {
	margin: 1.8em 0;
	padding-left: 24px;
	border-left: 2px solid var(--club-brass);
	font-family: var(--club-font-display);
	font-size: 1.3125rem;
	line-height: 1.5;
	color: var(--club-olive);
}

.club-prose img { margin-block: 1.6em; }

/* ---- Facts panel ---- */

.club-single__facts {
	position: sticky;
	top: 110px;
	border: 1px solid var(--club-line);
	background: var(--club-white);
	padding: 26px 26px 28px;
}

.club-single__facts h2 {
	font-family: var(--club-font-label);
	font-size: var(--club-size-label);
	font-weight: 500;
	letter-spacing: var(--club-tracking-label);
	text-transform: uppercase;
	color: var(--club-brass);
	margin: 0 0 18px;
}

.club-single__facts dl { margin: 0; }

.club-single__facts dt {
	font-family: var(--club-font-label);
	font-size: 0.625rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--club-taupe);
	margin-bottom: 3px;
}

.club-single__facts dd {
	margin: 0 0 16px;
	font-family: var(--club-font-display);
	font-size: 1.0625rem;
	color: var(--club-olive);
	line-height: 1.4;
}

.club-single__facts dd:last-child { margin-bottom: 0; }

.club-single__facts .club-btn {
	width: 100%;
	margin-top: 22px;
}

.club-single__back { margin-top: 56px; }

.club-prose > :first-child { margin-top: 0; }

/* ==========================================================================
   Document list

   Legal Status: one row per document, the download on the right.
   ========================================================================== */

.club-files {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--club-line);
}

.club-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 32px;
	padding: 28px 0;
	border-bottom: 1px solid var(--club-line);
}

.club-file__main { flex: 1 1 320px; min-width: 0; }

.club-file__main .club-eyebrow { margin-bottom: 6px; }

.club-file__title {
	font-size: var(--club-size-h4);
	margin: 0;
	text-wrap: balance;
}

.club-file__side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.club-file__size {
	font-family: var(--club-font-label);
	font-size: 0.6875rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--club-taupe);
}

.club-file__size:empty { display: none; }

/* ==========================================================================
   Embeds: maps and videos fill their frame
   ========================================================================== */

.club-media > iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* A height, not an aspect ratio: a ratio with a minimum height would force a
   minimum width too, and the map would push a phone screen sideways. */
.club-map { height: clamp(320px, 42vw, 520px); }

/* ==========================================================================
   Gallery

   Elementor's free Gallery widget with the class club-gallery. Photos of any
   shape are cropped to one frame so the rows stay even; the lightbox still
   shows the whole picture. Two across on the smallest phones, not one.
   ========================================================================== */

.club-gallery .gallery-item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--club-radius);
	transition: transform 0.6s ease, opacity 0.2s ease;
}

.club-gallery .gallery-item a:hover img { opacity: 0.92; }

.club-gallery .gallery-item .gallery-icon {
	display: block;
	overflow: hidden;
	border-radius: var(--club-radius);
}

.club-gallery .gallery-item a:hover img,
.club-gallery .gallery-item a:focus-visible img { transform: scale(1.05); }

@media (prefers-reduced-motion: reduce) {
	.club-gallery .gallery-item img { transition: none; }
}


@media (max-width: 479px) {
	.elementor-widget-image-gallery.club-gallery .elementor-image-gallery .gallery .gallery-item { max-width: 50%; }
}

/* ==========================================================================
   Search
   ========================================================================== */

.club-search { margin-bottom: 44px; }

.club-search__row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	max-width: 640px;
}

.club-search input[type="search"] {
	flex: 1 1 260px;
	min-width: 0;
	padding: 15px 18px;
	font-family: var(--club-font-body);
	font-size: 1rem;
	color: var(--club-ink);
	background: var(--club-white);
	border: 1px solid var(--club-line-strong);
	border-radius: var(--club-radius);
}

.club-search input[type="search"]::placeholder { color: var(--club-taupe); }

.club-results {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--club-line);
}

.club-result {
	padding: 24px 0;
	border-bottom: 1px solid var(--club-line);
}

.club-result__type {
	font-family: var(--club-font-label);
	font-size: var(--club-size-label);
	font-weight: 500;
	letter-spacing: var(--club-tracking-label);
	text-transform: uppercase;
	color: var(--club-brass);
	margin: 0 0 6px;
}

.club-result__title {
	font-size: var(--club-size-h4);
	margin: 0 0 6px;
}

.club-result__excerpt {
	margin: 0;
	color: var(--club-ink-soft);
	max-width: 68ch;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.club-single__layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.club-single__facts { position: static; }
}

@media (max-width: 680px) {
	.club-interior-hero__title { max-width: none; }
	.club-single__media { margin-bottom: 34px; }
	.club-file__side { align-items: flex-start; }
}

/* ==========================================================================
   Venue page — a dining venue or an amenity

   The approved design, minus the sections the Club has no information for:
   no menu, no prices, no capacity. Photographs carry the page instead.
   ========================================================================== */

.club-venue__hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(62vh, 520px);
	padding-block: 90px 56px;
	background: var(--club-olive-deep, #1C2412);
	color: var(--club-cream);
	overflow: hidden;
}

.club-venue__hero--plain { min-height: 0; padding-block: 64px 44px; }

.club-venue__hero-media {
	position: absolute;
	inset: 0;
}

.club-venue__hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The name has to stay readable on any photograph. */
.club-venue__hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(18, 24, 12, 0.88) 0%, rgba(18, 24, 12, 0.55) 45%, rgba(18, 24, 12, 0.25) 100%);
}

.club-venue__hero-inner { position: relative; }

.club-venue__hero .club-eyebrow { color: var(--club-gold); }

.club-venue__title {
	font-size: var(--club-size-h1);
	color: var(--club-cream);
	margin: 0 0 14px;
	max-width: 20ch;
}

.club-venue__lede {
	max-width: 56ch;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--club-cream-soft);
	margin: 0;
}

/* ---- What the Club has told us ---- */

.club-venue__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 56px;
	align-items: start;
}

.club-venue__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 26px;
	margin: 34px 0 0;
	padding-top: 26px;
	border-top: 1px solid var(--club-line);
}

.club-venue__fact dt {
	font-family: var(--club-font-label);
	font-size: var(--club-size-label);
	letter-spacing: var(--club-tracking-label);
	text-transform: uppercase;
	color: var(--club-brass);
	margin-bottom: 6px;
}

.club-venue__fact dd {
	margin: 0;
	font-size: 1.0625rem;
	color: var(--club-ink);
}

.club-venue__card {
	position: sticky;
	top: 110px;
	padding: 28px 28px 30px;
	background: var(--club-white);
	border: 1px solid var(--club-line);
	border-radius: var(--club-radius);
	box-shadow: 0 18px 40px -30px rgba(34, 31, 26, 0.45);
}

.club-venue__card h2 {
	font-family: var(--club-font-label);
	font-size: var(--club-size-label);
	font-weight: 500;
	letter-spacing: var(--club-tracking-label);
	text-transform: uppercase;
	color: var(--club-brass);
	margin: 0 0 14px;
}

.club-venue__hours {
	margin: 0 0 22px;
	font-family: var(--club-font-display);
	font-size: 1.125rem;
	line-height: 1.5;
	color: var(--club-olive);
}

.club-venue__card .club-btn { width: 100%; }
.club-venue__card .club-btn + .club-btn { margin-top: 10px; }

/* Nothing written about this venue yet: the hours read as a band across the
   page, rather than a card stranded beside an empty column. */
.club-venue__layout--bare { grid-template-columns: minmax(0, 1fr); }

.club-venue__layout--bare .club-venue__card {
	position: static;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 18px 32px;
	padding: 24px 28px;
}

.club-venue__layout--bare .club-venue__card h2 { margin: 0; }
.club-venue__layout--bare .club-venue__hours { margin: 0; flex: 1 1 260px; }

.club-venue__layout--bare .club-venue__card .club-btn {
	width: auto;
	margin-top: 0;
}

/* ---- Photographs ---- */

.club-venue__gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--club-gap);
}

.club-venue__photo {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--club-radius);
	background: var(--club-line);
}

.club-venue__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.club-venue__photo:hover img { transform: scale(1.05); }

/* ---- Other venues ---- */

.club-venue__more-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 38px;
}

.club-venue__more-head h2 { margin: 0; }

.club-link--on-dark { color: var(--club-gold); }

.club-venue__others {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--club-gap);
}

.club-venue__other {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: var(--club-radius);
	text-decoration: none;
}

.club-venue__other img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.club-venue__other:hover img { transform: scale(1.05); }

.club-venue__other-body {
	position: absolute;
	inset: auto 0 0 0;
	padding: 20px 22px;
	background: linear-gradient(to top, rgba(18, 24, 12, 0.9), transparent);
}

.club-venue__other-name {
	display: block;
	font-family: var(--club-font-display);
	font-size: 1.25rem;
	color: var(--club-cream);
}

.club-venue__other-kind {
	display: block;
	margin-top: 4px;
	font-family: var(--club-font-label);
	font-size: var(--club-size-label);
	letter-spacing: var(--club-tracking-label);
	text-transform: uppercase;
	color: var(--club-cream-soft);
}

@media (max-width: 1024px) {
	.club-venue__layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
	.club-venue__card { position: static; }
	.club-venue__gallery,
	.club-venue__others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
	.club-venue__hero { min-height: 58vh; padding-block: 70px 40px; }
	.club-venue__gallery,
	.club-venue__others { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.club-venue__photo img,
	.club-venue__other img { transition: none; }
}

/* A picture on a notice, when there is one.

   The column is reserved across the list, so a notice without a picture does
   not pull its title left and break the line the others make down the page. */
.club-doc__media {
	display: block;
	flex: none;
	width: 132px;
	align-self: flex-start;
	overflow: hidden;
	border-radius: 2px;
	background: var(--club-sand);
}

.club-doc__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.club-docs--with-photos .club-doc > .club-doc__main { margin-left: 0; }

/* The empty share of the column, for the rows that have no picture. */
.club-docs--with-photos .club-doc:not(:has(.club-doc__media)) .club-doc__main {
	padding-left: 160px;
}

@media (hover: hover) and (pointer: fine) {
	.club-doc:hover .club-doc__media img { transform: scale(1.04); }
}

@media (max-width: 680px) {
	.club-doc__media { width: 92px; }
	.club-docs--with-photos .club-doc:not(:has(.club-doc__media)) .club-doc__main {
		padding-left: 0;
	}
}
