/**
 * Pine Sky Forest Camp page layer.
 *
 * Extends assets/css/xw-stay.css and never edits it: the shared grammar carries the grounds, the
 * shell, the type scale, the figures, the numerals and the calls to action, and three agents were
 * building against it at once. Everything below is either a device the shared file does not have
 * (the ruled spec list, the key/value rail, the two-column ledger, the labelled absence) or a
 * correction the shared file cannot make because it depends on which ground a component lands on.
 *
 * @package xwander
 */

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

.xw-stay--camp .xw-camp-hero {
	position: relative;
}

/* The 1px inset keyline Kuura sets over its hero, held off the very edge on phones. */
.xw-stay--camp .xw-camp-hero::before {
	position: absolute;
	z-index: 2;
	inset: clamp(0.9rem, 1.7vw, 1.6rem);
	border: 1px solid rgba(247, 244, 238, 0.28);
	content: "";
	pointer-events: none;
}

.xw-stay--camp .xw-camp-placeline {
	margin: 1.6rem 0 0;
	color: rgba(247, 244, 238, 0.66);
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	line-height: 1.5;
	text-transform: uppercase;
}

/* Plate ------------------------------------------------------------------ */

.xw-stay--camp .xw-camp-plate {
	padding-block: 0 clamp(1.25rem, 2.4vw, 2rem);
	background: var(--xw-stay-paper);
}

.xw-stay--camp .xw-camp-plate__frame .xw-stay-figure__media {
	max-height: clamp(17rem, 42vh, 27rem);
}

.xw-stay--camp .xw-camp-plate .xw-stay-plate__cap {
	margin-top: clamp(1rem, 2vw, 1.5rem);
}

/* The labelled absence ---------------------------------------------------- */

/*
 * A gap is a line of type, never a picture-shaped hole. The tag carries the same 0.2em uppercase
 * treatment as a numeral unit, so an absence reads as part of the page's own system rather than as
 * something that failed to load.
 */
.xw-stay--camp .xw-camp-gap {
	display: block;
}

.xw-stay--camp .xw-camp-gap__tag {
	display: block;
	margin-bottom: 0.3rem;
	color: var(--xw-stay-ink-faint);
	font-size: 0.6875rem;
	letter-spacing: 0.2em;
	line-height: 1.5;
	text-transform: uppercase;
}

.xw-stay--camp .xw-camp-gap__q {
	display: block;
	max-width: 46ch;
	color: var(--xw-stay-ink-soft);
}

.xw-stay--camp .xw-stay-section--dark .xw-camp-gap__tag {
	color: var(--xw-stay-gold);
}

.xw-stay--camp .xw-stay-section--dark .xw-camp-gap__q {
	color: rgba(247, 244, 238, 0.7);
}

/* The night: pair copy and the ruled spec list ---------------------------- */

.xw-stay--camp .xw-camp-night__copy > :last-child {
	margin-bottom: 0;
}

.xw-stay--camp .xw-camp-spec {
	margin: clamp(1.75rem, 3.6vw, 2.75rem) 0 0;
	padding: 0;
	border-top: var(--xw-stay-hair) solid var(--xw-stay-rule);
}

.xw-stay--camp .xw-camp-spec__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.2rem;
	padding: 0.95rem 0;
	border-bottom: var(--xw-stay-hair) solid var(--xw-stay-rule);
}

.xw-stay--camp .xw-camp-spec dt {
	margin: 0;
	color: var(--xw-stay-ink-faint);
	font-size: 0.6875rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	line-height: 1.5;
	text-transform: uppercase;
}

.xw-stay--camp .xw-camp-spec dd {
	margin: 0;
	color: var(--xw-stay-ink-soft);
	font-size: 1.0625rem;
	line-height: 1.6;
}

/* The camp: the type-only trio ------------------------------------------- */

/*
 * Two of these three have no photograph and are not getting a borrowed one, so none of them is a
 * picture. An even row of ruled cards is a decision; one photograph beside two grey boxes is the
 * broken grid this rebuild exists to remove.
 */
.xw-stay--camp .xw-camp-trio {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--xw-stay-gap);
	margin: clamp(1.75rem, 3.6vw, 2.75rem) 0 0;
	padding: 0;
	list-style: none;
}

.xw-stay--camp .xw-camp-trio > li {
	padding-top: 1rem;
	border-top: var(--xw-stay-hair) solid var(--xw-stay-rule);
	list-style: none;
}

.xw-stay--camp .xw-camp-trio .xw-stay-name {
	margin-bottom: 0.45rem;
	font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.xw-stay--camp .xw-camp-trio p:last-child {
	margin: 0;
}

/* Included, and not included ---------------------------------------------- */

.xw-stay--camp .xw-camp-ledger {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--xw-stay-gap);
	margin-top: clamp(1.5rem, 3.2vw, 2.5rem);
}

.xw-stay--camp .xw-camp-ledger__col {
	padding-top: 1rem;
	border-top: var(--xw-stay-hair) solid var(--xw-stay-rule);
}

.xw-stay--camp .xw-camp-ledger .xw-stay-h3 {
	margin-top: 0;
}

.xw-stay--camp .xw-camp-ledger__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.xw-stay--camp .xw-camp-ledger__list > li {
	padding: 0.7rem 0;
	border-bottom: var(--xw-stay-hair) solid var(--xw-stay-rule);
	color: var(--xw-stay-ink-soft);
	font-size: 1.0625rem;
	line-height: 1.6;
	list-style: none;
}

.xw-stay--camp .xw-camp-ledger__list > li:last-child {
	border-bottom: 0;
}

/* Getting here: the key/value rail on night ground ------------------------ */

.xw-stay--camp .xw-camp-rail {
	margin: clamp(1.5rem, 3.2vw, 2.5rem) 0 0;
	padding: 0;
	border-top: var(--xw-stay-hair) solid var(--xw-stay-rule-dark);
}

.xw-stay--camp .xw-camp-rail__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.3rem;
	padding: 0.95rem 0;
	border-bottom: var(--xw-stay-hair) solid var(--xw-stay-rule-dark);
}

.xw-stay--camp .xw-camp-rail dt {
	margin: 0;
	color: rgba(247, 244, 238, 0.6);
	font-size: 0.6875rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	line-height: 1.5;
	text-transform: uppercase;
}

.xw-stay--camp .xw-camp-rail dd {
	margin: 0;
	color: rgba(247, 244, 238, 0.86);
	font-size: 1.0625rem;
	line-height: 1.6;
}

/* Enquire: the sibling strip, then the single call to action -------------- */

.xw-stay--camp .xw-camp-siblings {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

.xw-stay--camp .xw-camp-siblings > li {
	border-top: var(--xw-stay-hair) solid var(--xw-stay-rule-dark);
	list-style: none;
}

.xw-stay--camp .xw-camp-siblings > li > a {
	display: block;
	padding: 1.15rem 0;
	color: var(--xw-stay-paper);
	text-decoration: none;
}

.xw-stay--camp .xw-camp-siblings > li > a:hover .xw-stay-rail__name,
.xw-stay--camp .xw-camp-siblings > li > a:focus-visible .xw-stay-rail__name {
	color: var(--xw-stay-gold);
}

.xw-stay--camp .xw-camp-siblings > li > a:focus-visible {
	outline: 1px solid rgba(247, 244, 238, 0.7);
	outline-offset: 4px;
}

/* The shared rail meta is inked for paper; this strip sits on night. */
.xw-stay--camp .xw-camp-siblings .xw-stay-rail__meta {
	color: rgba(247, 244, 238, 0.6);
	letter-spacing: 0.08em;
	text-transform: none;
}

.xw-stay--camp .xw-camp-enquire__ask {
	margin-top: clamp(2rem, 4vw, 3.25rem);
}

/* Pagefoot ---------------------------------------------------------------- */

.xw-stay--camp .xw-camp-pagefoot__stays {
	margin: 1.5rem 0 0;
	color: rgba(247, 244, 238, 0.6);
	font-size: 0.875rem;
	line-height: 1.7;
}

.xw-stay--camp .xw-camp-pagefoot__stays a {
	color: rgba(247, 244, 238, 0.82);
	text-decoration: none;
	border-bottom: 1px solid rgba(247, 244, 238, 0.28);
}

/*
 * The stays strip is navigation wearing a sentence's clothes, so WCAG 2.2's inline-link
 * exception does not cover it: measured at 390px each link was a 19px target, under the 24px
 * floor. Give them a real target without breaking the "A · B · C" rhythm.
 */
.xw-stay--camp .xw-camp-pagefoot__stays a {
	display: inline-block;
	min-height: 24px;
	padding-block: 0.15rem;
}

.xw-stay--camp .xw-camp-pagefoot__stays a:hover,
.xw-stay--camp .xw-camp-pagefoot__stays a:focus-visible {
	color: var(--xw-stay-paper);
	border-bottom-color: var(--xw-stay-paper);
}

.xw-stay--camp .xw-camp-pagefoot__stays [aria-current="page"] {
	color: rgba(247, 244, 238, 0.45);
}

/* Wide ------------------------------------------------------------------- */

@media (min-width: 56rem) {
	.xw-stay--camp .xw-camp-spec__row,
	.xw-stay--camp .xw-camp-rail__row {
		grid-template-columns: 14rem minmax(0, 1fr);
		gap: var(--xw-stay-gap);
		align-items: baseline;
	}

	.xw-stay--camp .xw-camp-spec dt,
	.xw-stay--camp .xw-camp-rail dt {
		padding-top: 0.25rem;
	}

	.xw-stay--camp .xw-camp-ledger {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.xw-stay--camp .xw-camp-trio {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.xw-stay--camp .xw-camp-siblings {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--xw-stay-gap);
	}
}
