/*
 * Northline — price list
 *
 * Layout lives here; every colour, distance and size arrives from the Elementor
 * panel as a custom property on .nlm-pl. The values in the fallbacks are the
 * Northline defaults, so a site that sets nothing still looks deliberate and a
 * site with a different palette is one control away from matching it.
 */

.nlm-pl {
	/*
	 * Same contract as the booking widget: the page's tokens come first, the old
	 * literals stay as fallbacks. Everything below derives from these two, so the
	 * ticks, rules, badge and buttons all follow a brand swap for free.
	 */
	--nlm-pl-text: var(--Ink, #0b1220);
	--nlm-pl-muted: var(--Muted, #5a6472);
	/*
	 * Lines, borders and ticks are drawn from the text colour, not from a fixed
	 * ink. On a dark card the ticks would otherwise vanish — they did, on the
	 * first dark theme this widget met. The doubled declaration is a floor: if
	 * color-mix is unsupported the plain text colour is used instead.
	 */
	--nlm-pl-rule: var(--nlm-pl-text);
	--nlm-pl-rule: color-mix(in srgb, var(--nlm-pl-text) 14%, transparent);
	--nlm-pl-accent: var(--Signal-Blue, #1f5aff);
	--nlm-pl-tick: var(--nlm-pl-text);
	--nlm-pl-tick: color-mix(in srgb, var(--nlm-pl-text) 38%, transparent);

	--nlm-pl-card-bg: var(--Card, #ffffff);
	--nlm-pl-card-border: var(--nlm-pl-text);
	--nlm-pl-card-border: color-mix(in srgb, var(--nlm-pl-text) 14%, transparent);
	--nlm-pl-card-radius: 14px;
	--nlm-pl-card-pad: 26px;
	--nlm-pl-gap: 20px;

	--nlm-pl-badge-bg: var(--nlm-pl-text);
	--nlm-pl-badge-text: var(--nlm-pl-card-bg);

	/*
	 * The badge and both buttons derive from the card's own colours instead of
	 * carrying a fixed light-theme palette. A card set to #131212 with white
	 * text then gets a white badge, a white outlined button and a white filled
	 * button automatically, and a light card keeps exactly the old look. Each
	 * one can still be pinned to a colour in the panel.
	 */
	--nlm-pl-btn-bg: transparent;
	--nlm-pl-btn-text: var(--nlm-pl-text);
	--nlm-pl-btn-border: var(--nlm-pl-text);
	/* Softer hairline where color-mix exists; the solid line above is the floor. */
	--nlm-pl-btn-border: color-mix(in srgb, var(--nlm-pl-text) 32%, transparent);
	--nlm-pl-btn-hover-bg: var(--nlm-pl-text);
	--nlm-pl-btn-hover-text: var(--nlm-pl-card-bg);
	--nlm-pl-fbtn-bg: var(--nlm-pl-text);
	--nlm-pl-fbtn-text: var(--nlm-pl-card-bg);
	--nlm-pl-fbtn-hover-bg: var(--nlm-pl-accent);
	--nlm-pl-btn-radius: 8px;
	--nlm-pl-btn-h: 42px;

	--nlm-pl-amount-size: 40px;

	color: var(--nlm-pl-text);
}

.nlm-pl *,
.nlm-pl *::before,
.nlm-pl *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------- heading */

.nlm-pl__head {
	max-width: 62ch;
	margin: 0 0 34px;
}

.nlm-pl__eyebrow {
	margin: 0;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--nlm-pl-muted);
}

.nlm-pl__title {
	margin: 0.28em 0 0.42em;
	font-size: clamp(28px, 3.4vw, 44px);
	font-weight: 600;
	line-height: 1.06;
	letter-spacing: -0.032em;
	color: var(--nlm-pl-text);
}

.nlm-pl__intro {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: var(--nlm-pl-muted);
}

.nlm-pl__note {
	margin: 12px 0 0;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--nlm-pl-muted);
}

/* ------------------------------------------------------------------ grid */

.nlm-pl__grid {
	display: grid;
	grid-template-columns: repeat(var(--nlm-pl-cols, 3), minmax(0, 1fr));
	gap: var(--nlm-pl-gap);
	align-items: start;
}

/* Optional: one height for every card. The tick list is then pinned to the
   bottom, which lines the cards up — at the price of empty space inside the
   shorter ones. Off by default: a card that hugs its content never shows a
   floating rule over nothing. */
.nlm-pl__grid.is-equal {
	align-items: stretch;
}

.nlm-pl__grid.is-equal .nlm-pl__card {
	justify-content: space-between;
}

/* ------------------------------------------------------------------ card */

.nlm-pl__card {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 22px;
	margin: 0;
	padding: var(--nlm-pl-card-pad);
	background: var(--nlm-pl-card-bg);
	border: 1px solid var(--nlm-pl-card-border);
	border-radius: var(--nlm-pl-card-radius);
}

.nlm-pl__card.is-featured {
	border-color: var(--nlm-pl-accent);
	border-width: 1.5px;
	box-shadow: 0 1px 2px rgba(11, 18, 32, 0.05), 0 18px 40px -26px rgba(11, 18, 32, 0.35);
}

.nlm-pl__card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.nlm-pl__name {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--nlm-pl-text);
}

.nlm-pl__badge {
	flex: 0 0 auto;
	padding: 3px 9px;
	border-radius: 100px;
	background: var(--nlm-pl-badge-bg);
	color: var(--nlm-pl-badge-text);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.5;
	text-transform: uppercase;
	white-space: nowrap;
}

/* ----------------------------------------------------------------- price */

.nlm-pl__price {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 6px;
	margin: 18px 0 0;
}

.nlm-pl__amount {
	display: inline-flex;
	align-items: flex-start;
	gap: 4px;
	font-size: var(--nlm-pl-amount-size);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.042em;
	color: var(--nlm-pl-text);
	font-variant-numeric: tabular-nums;
}

.nlm-pl__cur {
	margin-top: 0.42em;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--nlm-pl-muted);
}

.nlm-pl__from {
	margin-top: 0.62em;
	font-size: 13px;
	font-weight: 500;
	color: var(--nlm-pl-muted);
}

.nlm-pl__free {
	font-size: var(--nlm-pl-amount-size);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.042em;
	color: var(--nlm-pl-text);
}

.nlm-pl__ask {
	font-size: 22px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--nlm-pl-text);
}

.nlm-pl__sub {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--nlm-pl-muted);
}

.nlm-pl__sub-lead {
	font-weight: 600;
	color: var(--nlm-pl-text);
}

.nlm-pl__sep {
	color: var(--nlm-pl-muted);
}

.nlm-pl__blurb {
	margin: 14px 0 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--nlm-pl-muted);
}

/* ---------------------------------------------------------------- button */

.nlm-pl__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	min-height: var(--nlm-pl-btn-h);
	margin-top: 22px;
	padding: 0 16px;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	color: var(--nlm-pl-btn-text);
	background: var(--nlm-pl-btn-bg);
	border: 1px solid var(--nlm-pl-btn-border);
	border-radius: var(--nlm-pl-btn-radius);
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nlm-pl__cta:hover {
	background: var(--nlm-pl-btn-hover-bg);
	color: var(--nlm-pl-btn-hover-text);
	border-color: var(--nlm-pl-btn-hover-bg);
}

.nlm-pl__card.is-featured .nlm-pl__cta {
	background: var(--nlm-pl-fbtn-bg);
	color: var(--nlm-pl-fbtn-text);
	border-color: var(--nlm-pl-fbtn-bg);
}

.nlm-pl__card.is-featured .nlm-pl__cta:hover {
	background: var(--nlm-pl-fbtn-hover-bg);
	border-color: var(--nlm-pl-fbtn-hover-bg);
	color: var(--nlm-pl-fbtn-text);
}

.nlm-pl__cta:focus-visible {
	outline: 2px solid var(--nlm-pl-accent);
	outline-offset: 2px;
}

.nlm-pl__arrow {
	font-size: 12px;
	line-height: 1;
	opacity: 0.75;
}

/* ------------------------------------------------------------------ list */

.nlm-pl__list {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin: 0;
	padding: 20px 0 0;
	list-style: none;
	border-top: 1px solid var(--nlm-pl-rule);
}

.nlm-pl__group {
	margin: 8px 0 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.005em;
	color: var(--nlm-pl-text);
}

.nlm-pl__group:first-child {
	margin-top: 0;
}

.nlm-pl__item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--nlm-pl-muted);
}

.nlm-pl__tick {
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	margin-top: 2px;
	color: var(--nlm-pl-tick);
}

.nlm-pl__item-text {
	flex: 1 1 auto;
}

/* ------------------------------------------------------------ responsive */

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

@media (max-width: 600px) {
	/*
	 * Cap the figure instead of resetting the variable: the panel writes its
	 * value per instance, which beats a variable set in this media query — so
	 * the limit has to land on the element that uses it. Someone who wants
	 * 30px still gets 30px.
	 */
	.nlm-pl .nlm-pl__amount,
	.nlm-pl .nlm-pl__free {
		font-size: min(var(--nlm-pl-amount-size), 34px);
	}

	.nlm-pl__head {
		margin-bottom: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nlm-pl__cta {
		transition: none;
	}
}
