/* ==========================================================================
   Celia Noire — Packages
   One wide, one-off entry card, then a row of equal-width monthly packages
   divided by fine champagne hairlines — never boxed cards with drop shadows
   or heavy rounding. One monthly package (the one marked Featured in the
   admin) gets a quiet accent of its own; everything else, including the
   entry card, stays at the same plain, unaccented treatment.
   ========================================================================== */

.cn-packages {
	--cn-packages-rule: rgba(198, 166, 100, 0.3);
}

.cn-surface--ivory.cn-packages,
.cn-surface--pink.cn-packages,
.cn-surface--rose.cn-packages {
	--cn-packages-rule: rgba(168, 134, 62, 0.35);
}

/* --------------------------------------------------------------------------
   Standalone — Single Campaign (whichever package sorts first), full width
   -------------------------------------------------------------------------- */

.cn-packages__standalone {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-top: clamp(3rem, 6vw, 4.5rem);
	padding: clamp(2rem, 4vw, 2.75rem) clamp(1.75rem, 4vw, 3rem);
	border: 1px solid var(--cn-packages-rule);
}

/* Name and price share one line, price pinned to the top-right — the price
   is the second thing read after the package name, not something found only
   after scanning past the whole description. */
.cn-packages__standalone-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem 2rem;
}

.cn-packages__price--standalone {
	margin: 0;
}

.cn-packages__standalone-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2rem 3rem;
	margin-top: 1.25rem;
}

.cn-packages__standalone-body {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	max-width: 40rem;
}

.cn-packages__standalone-aside {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
}

.cn-packages__scope--inline {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	padding-top: 0.35rem;
	border-top: none;
}

/* --------------------------------------------------------------------------
   Monthly row — Essential, Signature, Atelier
   -------------------------------------------------------------------------- */

.cn-packages__row {
	display: grid;
	grid-template-columns: 1fr;
	align-items: stretch;
	margin-top: clamp(2rem, 4vw, 3rem);
	border-top: 1px solid var(--cn-packages-rule);
	border-left: 1px solid var(--cn-packages-rule);
}

/* Two columns from tablet up, three from desktop up. A lone item stranded on
   the last row (an odd one out after a pair) spans full width instead of
   leaving a bare gap beside it. */
@media (min-width: 700px) {
	.cn-packages__row {
		grid-template-columns: repeat(2, 1fr);
	}

	.cn-packages__item:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1000px) {
	.cn-packages__row {
		grid-template-columns: repeat(3, 1fr);
	}

	.cn-packages__item:last-child:nth-child(odd) {
		grid-column: auto;
	}
}

.cn-packages__item {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding: clamp(2.25rem, 4vw, 3rem) clamp(1.75rem, 3vw, 2.5rem);
	border-right: 1px solid var(--cn-packages-rule);
	border-bottom: 1px solid var(--cn-packages-rule);
	transition: background-color var(--cn-dur-hover) var(--cn-ease);
}

.cn-packages__item:hover {
	background-color: rgba(255, 255, 255, 0.03);
}

.cn-surface--ivory .cn-packages__item:hover {
	background-color: rgba(10, 10, 10, 0.025);
}

/* The row's single focal point — a hairline frame in the same champagne as
   the dividers (so it reads as "this column drawn a little more
   deliberately", not a separate boxed card) plus the faintest possible
   wash. No shadow, no scale, no rounding. */
.cn-packages__item--featured {
	background-color: rgba(198, 166, 100, 0.05);
	box-shadow: inset 0 0 0 1px rgba(198, 166, 100, 0.55);
}

.cn-surface--ivory .cn-packages__item--featured,
.cn-surface--pink .cn-packages__item--featured,
.cn-surface--rose .cn-packages__item--featured {
	background-color: rgba(168, 134, 62, 0.06);
	box-shadow: inset 0 0 0 1px rgba(168, 134, 62, 0.5);
}

.cn-packages__item--featured:hover {
	background-color: rgba(198, 166, 100, 0.08);
}

.cn-surface--ivory .cn-packages__item--featured:hover,
.cn-surface--pink .cn-packages__item--featured:hover,
.cn-surface--rose .cn-packages__item--featured:hover {
	background-color: rgba(168, 134, 62, 0.09);
}

/* --------------------------------------------------------------------------
   Shared card typography
   -------------------------------------------------------------------------- */

.cn-packages__flag {
	margin: 0;
	font-size: var(--cn-text-xs);
	font-weight: 500;
	letter-spacing: var(--cn-tracking-wider);
	text-transform: uppercase;
	color: var(--cn-gold);
}

.cn-surface--ivory .cn-packages__flag,
.cn-surface--pink .cn-packages__flag,
.cn-surface--rose .cn-packages__flag {
	color: var(--cn-gold-deep);
}

/* Reserves the badge's own line height whether or not a given card has one —
   Essential/Signature/Atelier all start their name at the same baseline even
   when one card's badge is left empty in the admin. */
.cn-packages__flag-slot {
	min-height: 1.4em;
	font-size: var(--cn-text-xs);
}

/* A quiet pill rather than plain uppercase text — reads as a badge at a
   glance, still restrained enough to sit above a hairline-divided card. */
.cn-packages__item .cn-packages__flag {
	display: inline-block;
	padding: 0.3em 0.75em;
	border: 1px solid var(--cn-packages-rule);
	border-radius: 999px;
}

.cn-packages__name {
	color: var(--cn-fg-strong);
}

/* Discreet requirement line — a plain accent-coloured sentence, not a
   badge or a warning: no fill, no border, no icon, deliberately quieter
   than the uppercase/tracked .cn-packages__flag treatment above it. */
.cn-packages__requirement {
	margin: 0;
	font-size: var(--cn-text-sm);
	font-style: italic;
	color: var(--cn-accent);
}

.cn-packages__for {
	font-size: var(--cn-text-xs);
	font-weight: 500;
	letter-spacing: var(--cn-tracking-wider);
	text-transform: uppercase;
	color: var(--cn-accent);
}

.cn-packages__summary {
	color: var(--cn-fg);
}

.cn-packages__scope {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding-top: 1.4rem;
	border-top: 1px solid var(--cn-packages-rule);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.cn-packages__scope li {
	position: relative;
	padding-left: 1.3em;
}

.cn-packages__scope li::before {
	content: "\2014";
	position: absolute;
	left: 0;
	color: var(--cn-accent);
}

/* Every monthly card's price/notice/CTA lands together at the same baseline
   regardless of how much copy sits above it — margin-top: auto on the group
   absorbs the leftover space in each (already equal-height, via the grid's
   own row stretch) column, while price and CTA stay a fixed, short distance
   from each other no matter how many lines the notice above them wraps to. */
.cn-packages__foot {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.6rem;
	margin-top: auto;
	padding-top: 0.75rem;
}

.cn-packages__notice {
	max-width: 30ch;
	font-size: var(--cn-text-xs);
	line-height: 1.5;
	color: var(--cn-warm-gray);
	white-space: pre-line;
}

/* Fine print under the CTA — a step quieter and more discreet than the
   notice treatment above the button used to be. */
.cn-packages__notice--fine {
	margin-top: 0.15rem;
	font-style: italic;
	opacity: 0.85;
}

.cn-packages__price {
	font-family: var(--cn-font-display);
	font-size: var(--cn-text-h3);
	color: var(--cn-fg-strong);
	white-space: nowrap;
}

.cn-packages__row-intro {
	margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
	font-size: var(--cn-text-xs);
	font-weight: 500;
	letter-spacing: var(--cn-tracking-wider);
	text-transform: uppercase;
	color: var(--cn-accent);
}

.cn-packages__item .cn-btn,
.cn-packages__standalone .cn-btn {
	align-self: flex-start;
}

@media (max-width: 599px) {
	.cn-packages__price {
		white-space: normal;
	}
}
