/* Copyright (C) 2026 ceASAP LTD. All Rights Reserved. Proprietary.
 *
 * The CE package wizard.
 *
 * ⚠ EVERY RULE IS SCOPED UNDER .ce-pkg. This renders inside the theme's entry-content, where Astra
 * styles bare ul/li/h3 — so the scope is what stops those rules reaching the rest of the page, and
 * the doubled class selectors below are what stop Astra's reaching in. See the note at .ce-pkg__list.
 *
 * ⚠ AND THE COLOURS ARE THE ONES session-panel.css ALREADY USES. Blue #1c6fb5, navy #0e2747, muted
 * #54637a, card border #e6ebf2. A student moves between the course page and this in one sitting.
 */

.ce-pkg {
	--ce-pkg-blue: #1c6fb5;
	--ce-pkg-blue-dark: #15568c;
	--ce-pkg-navy: #0e2747;
	--ce-pkg-muted: #54637a;
	--ce-pkg-line: #e6ebf2;
	--ce-pkg-tint: #e7eef8;
	--ce-pkg-good: #16a34a;
	--ce-pkg-good-tint: #eafaf0;
	--ce-pkg-warn: #b45309;
	max-width: 1080px;
	margin: 0 auto;
	color: var(--ce-pkg-navy);
}

/* ── the header ─────────────────────────────────────────────────────────────────────────────── */

.ce-pkg .ce-pkg__head {
	margin: 0 0 20px;
}
.ce-pkg .ce-pkg__title {
	margin: 0;
	font-size: clamp( 25px, 3.2vw, 34px );
	font-weight: 700;
	line-height: 1.2;
	color: var(--ce-pkg-navy);
	text-wrap: balance;
}
.ce-pkg .ce-pkg__blurb {
	margin: 8px 0 0;
	max-width: 64ch;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ce-pkg-muted);
	text-wrap: pretty;
}
/* The one reassurance that stops a student treating this as a form they must finish now. */
.ce-pkg .ce-pkg__saved {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 14px 0 0;
	padding: 7px 14px 7px 12px;
	border-radius: 999px;
	background: var(--ce-pkg-tint);
	color: var(--ce-pkg-blue);
	font-size: 13.5px;
	font-weight: 600;
}
.ce-pkg .ce-pkg__saved::before {
	content: "";
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ce-pkg-blue);
}

.ce-pkg .ce-pkg__noscript,
.ce-pkg .ce-pkg__error {
	margin: 14px 0 0;
	padding: 13px 16px;
	border: 1px solid #f3cfa4;
	border-left: 4px solid var(--ce-pkg-warn);
	border-radius: 10px;
	background: #fdf6ec;
	color: #7c3d00;
	font-size: 14.5px;
	line-height: 1.55;
}
.ce-pkg .ce-pkg__error[hidden] {
	display: none;
}

/* ── the running total ──────────────────────────────────────────────────────────────────────── */

/* ⚠ STICKY, because the answer to "how far am I" is what the student scrolls away from. z-index is
   low enough to sit under the theme's own sticky header rather than fight it. */
.ce-pkg .ce-pkg__status {
	position: sticky;
	top: 0;
	z-index: 3;
	padding: 14px 0 6px;
	margin: 18px 0 0;
	background: #fff;
}

.ce-pkg .ce-pkg__progress {
	border: 1px solid var(--ce-pkg-line);
	border-left: 5px solid var(--ce-pkg-blue);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 6px 22px rgba( 16, 39, 71, .06 );
	padding: 18px 22px;
}
.ce-pkg .ce-pkg__progress.is-complete {
	border-left-color: var(--ce-pkg-good);
	background: var(--ce-pkg-good-tint);
}
.ce-pkg .ce-pkg__progress-line {
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ce-pkg-navy);
	font-variant-numeric: tabular-nums;
}

.ce-pkg .ce-pkg__meters {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 12px 26px;
	margin-top: 14px;
}
.ce-pkg .ce-pkg__meter-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
}
.ce-pkg .ce-pkg__meter-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ce-pkg-muted);
}
.ce-pkg .ce-pkg__meter-value {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ce-pkg-navy);
	font-variant-numeric: tabular-nums;
}
.ce-pkg .ce-pkg__meter-track {
	display: block;
	height: 8px;
	border-radius: 999px;
	background: #eef2f7;
	overflow: hidden;
}
.ce-pkg .ce-pkg__meter-fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--ce-pkg-blue);
	transition: width .25s ease;
}
.ce-pkg .ce-pkg__meter--live .ce-pkg__meter-fill {
	background: #2f8fd8;
}
.ce-pkg .ce-pkg__meter.is-full .ce-pkg__meter-fill {
	background: var(--ce-pkg-good);
}

.ce-pkg .ce-pkg__problems {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 14px 0 0;
	padding: 0;
}
.ce-pkg .ce-pkg__problems li {
	margin: 0;
	padding: 5px 11px;
	border-radius: 999px;
	background: #f4f6fa;
	color: #33415c;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}
.ce-pkg .ce-pkg__done {
	margin: 12px 0 0;
	color: #14532d;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.55;
	text-wrap: pretty;
}

/* ── a subject ──────────────────────────────────────────────────────────────────────────────── */

.ce-pkg .ce-pkg__topic {
	border: 1px solid var(--ce-pkg-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 6px 22px rgba( 16, 39, 71, .06 );
	padding: 20px 24px 22px;
	margin: 18px 0 0;
}
.ce-pkg .ce-pkg__topic-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin: 0;
	padding: 0 0 0 14px;
	border-left: 4px solid var(--ce-pkg-blue);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ce-pkg-navy);
}
.ce-pkg .ce-pkg__topic.is-done .ce-pkg__topic-head {
	border-left-color: var(--ce-pkg-good);
}
.ce-pkg .ce-pkg__topic-count {
	flex: none;
	padding: 4px 12px;
	border-radius: 999px;
	background: #f4f6fa;
	color: var(--ce-pkg-muted);
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.ce-pkg .ce-pkg__topic.is-done .ce-pkg__topic-count {
	background: var(--ce-pkg-good-tint);
	color: #14532d;
}
.ce-pkg .ce-pkg__topic-note,
.ce-pkg .ce-pkg__empty {
	margin: 12px 0 0 18px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ce-pkg-muted);
	text-wrap: pretty;
}

/* ── the courses ────────────────────────────────────────────────────────────────────────────── */

/* ⚠ THE RESETS ARE NOT DECORATION. Astra styles `.entry-content ul` and its `li`, and this renders
   inside entry-content — without these the rows inherit bullets, left padding and bottom margins
   that break the grid. Two classes beat Astra's one-class-one-element selector. */
.ce-pkg .ce-pkg__list {
	list-style: none;
	display: grid;
	/* ⚠ TWO PER ROW — Scott, 30 Oct 2026, for the live choices. An explicit track, not auto-fill:
	   auto-fill derives the count from the container and put three on a wide screen. The phone
	   case is already handled by the one-column override in the media query below. */
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 14px;
	margin: 16px 0 0;
	padding: 0;
}
.ce-pkg .ce-pkg__list .ce-pkg__item {
	margin: 0;
	padding: 0;
	list-style: none;
}
.ce-pkg .ce-pkg__list .ce-pkg__item::marker {
	content: "";
}

.ce-pkg .ce-pkg__item label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	height: 100%;
	padding: 13px 15px;
	border: 1.5px solid var(--ce-pkg-line);
	border-radius: 12px;
	background: #fff;
	cursor: default;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
/* Only clickable once the script that saves the click is running. */
.ce-pkg.is-live .ce-pkg__item label {
	cursor: pointer;
}
.ce-pkg.is-live .ce-pkg__item label:hover {
	border-color: #b9d6ef;
	background: #fafcfe;
}
.ce-pkg .ce-pkg__item.is-chosen label {
	border-color: var(--ce-pkg-blue);
	background: #f3f8fd;
	box-shadow: 0 2px 10px rgba( 28, 111, 181, .10 );
}
.ce-pkg .ce-pkg__item label:focus-within {
	outline: 2px solid var(--ce-pkg-blue);
	outline-offset: 2px;
}

.ce-pkg .ce-pkg__pick {
	flex: none;
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	border: 1.5px solid #b6c2d3;
	border-radius: 6px;
	background: #fff;
	cursor: inherit;
	transition: background .15s ease, border-color .15s ease;
}
.ce-pkg .ce-pkg__pick:checked {
	border-color: var(--ce-pkg-blue);
	background: var(--ce-pkg-blue) url( "data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E" ) center / 15px 15px no-repeat;
}
.ce-pkg .ce-pkg__pick:disabled {
	opacity: .5;
}

.ce-pkg .ce-pkg__item-body {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}
.ce-pkg .ce-pkg__item-title {
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ce-pkg-navy);
	text-wrap: pretty;
}
.ce-pkg .ce-pkg__item-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}
.ce-pkg .ce-pkg__tag {
	padding: 3px 9px;
	border-radius: 999px;
	background: #f1f3f7;
	color: var(--ce-pkg-muted);
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.5;
}
.ce-pkg .ce-pkg__tag--live {
	background: var(--ce-pkg-tint);
	color: var(--ce-pkg-blue);
}
.ce-pkg .ce-pkg__hrs {
	color: var(--ce-pkg-muted);
	font-size: 12.5px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.ce-pkg .ce-pkg__item.is-busy label {
	opacity: .55;
	cursor: progress;
}

/* ── the sign-in / no-package card ──────────────────────────────────────────────────────────── */

.ce-pkg--notice {
	border: 1px solid var(--ce-pkg-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 6px 22px rgba( 16, 39, 71, .06 );
	padding: 26px 28px;
}
.ce-pkg--notice p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ce-pkg-navy);
}

@media ( max-width: 640px ) {
	.ce-pkg .ce-pkg__topic {
		padding: 17px 16px 19px;
	}
	/* ⚠ 44px IS THE TOUCH TARGET. .ce-pkg__unlock-go computes to 43px from 15px/1 text and 14px
	   padding — a thumb
	   misses that one. .ce-pkg__pick needs nothing: the 20px box sits inside a <label> wrapping the
	   whole row, so the row is the target. */
	.ce-pkg .ce-pkg__unlock-go,
		.ce-pkg .ce-pkg__progress {
		padding: 15px 16px;
	}
	.ce-pkg .ce-pkg__meters {
		grid-template-columns: minmax( 0, 1fr );
	}
	.ce-pkg .ce-pkg__list {
		grid-template-columns: minmax( 0, 1fr );
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.ce-pkg .ce-pkg__meter-fill,
	.ce-pkg .ce-pkg__item label,
	.ce-pkg .ce-pkg__pick {
		transition: none;
	}
}

/* ⚠ THE SAME CHIPS, QUIETER. On a complete package these are no longer things to do — they are notes
   about hours that satisfy nothing. Styled down so they read as a footnote to the green banner
   rather than contradicting it. */
.ce-pkg .ce-pkg__progress.is-complete .ce-pkg__problems--note li {
	background: #fff;
	border: 1px solid #cdead9;
	color: #14532d;
	font-weight: 400;
}

/* ── unlocking ───────────────────────────────────────────────────────────────────────────────
 * ⚠ THE ONE CONTROL ON THIS SCREEN WITH CONSEQUENCES. Everything else is a plan the student can
 * change; this hands them the course. It is given weight, and the sentence above it is part of the
 * control rather than fine print somewhere else.
 */
.ce-pkg .ce-pkg__unlock {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px 22px;
	margin: 16px 0 0;
	padding: 18px 22px;
	border: 1px solid #cfe0f2;
	border-radius: 14px;
	background: #f7fbff;
}
.ce-pkg .ce-pkg__unlock[hidden] {
	display: none;
}
.ce-pkg .ce-pkg__unlock-copy {
	flex: 1 1 320px;
	margin: 0;
	max-width: 62ch;
	font-size: 14px;
	line-height: 1.6;
	color: #33415c;
	text-wrap: pretty;
}
.ce-pkg .ce-pkg__unlock-go {
	flex: none;
	-webkit-appearance: none;
	appearance: none;
	border: none;
	border-radius: 999px;
	background: var(--ce-pkg-blue);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	padding: 14px 26px;
	cursor: pointer;
	transition: background .15s ease;
}
.ce-pkg .ce-pkg__unlock-go:hover {
	background: var(--ce-pkg-blue-dark);
}
.ce-pkg .ce-pkg__unlock-go:disabled {
	opacity: .6;
	cursor: progress;
}

/* A course already unlocked: still visibly chosen, no longer offering an action it cannot honour. */
.ce-pkg .ce-pkg__item.is-settled label {
	border-color: #cdead9;
	background: var(--ce-pkg-good-tint);
	cursor: default;
}
.ce-pkg .ce-pkg__item.is-settled .ce-pkg__pick {
	border-color: var(--ce-pkg-good);
	background: var(--ce-pkg-good) url( "data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E" ) center / 15px 15px no-repeat;
	opacity: 1;
}
.ce-pkg .ce-pkg__tag--done {
	background: #fff;
	border: 1px solid #cdead9;
	color: #14532d;
}

/* ── more than one package, and the cap that spans them ──────────────────────────────────────
 * ⚠ THE SWITCHER ONLY EXISTS WHEN A STUDENT HOLDS TWO. Top-ups made that possible; before them a
 * student had exactly one holding and landing on it was unambiguous.
 */
.ce-pkg .ce-pkg__switch {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 0;
}
.ce-pkg .ce-pkg__switch-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border: 1px solid var(--ce-pkg-line);
	border-radius: 999px;
	background: #fff;
	color: var(--ce-pkg-muted);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: border-color .15s ease, color .15s ease;
}
.ce-pkg a.ce-pkg__switch-item:hover,
.ce-pkg a.ce-pkg__switch-item:focus {
	border-color: #b9d6ef;
	color: var(--ce-pkg-blue);
}
.ce-pkg .ce-pkg__switch-item.is-current {
	border-color: var(--ce-pkg-blue);
	background: var(--ce-pkg-tint);
	color: var(--ce-pkg-blue);
}
.ce-pkg .ce-pkg__switch-done {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--ce-pkg-good);
}

/* The self-paced cap, which spans every package a student holds. */
.ce-pkg .ce-pkg__cap {
	margin: 16px 0 0;
	padding: 12px 16px;
	border: 1px solid #f0b8b8;
	border-left: 4px solid #b32d2e;
	border-radius: 10px;
	background: #fdf1f1;
	color: #7a1f20;
	font-size: 14.5px;
	line-height: 1.6;
	text-wrap: pretty;
}

/* ⚠ THE NRED NUMBER, BESIDE THE NAME. Tabular figures, because it is an identifier a licensee
   reads character by character against their own record — not a label to skim. Quiet, but never
   hidden behind a hover or a tooltip.

   ⚠ NO LONGER MONOSPACED. Scott, 30 Oct 2026: "The course number should be in the same font,
   there are different areas that its like this." It was set in a monospace stack in eight places
   — here, the wizard's card pill, both dashboard pills, the Today panel chip and three calendar
   surfaces — so the same number looked like a different kind of thing depending on where a
   student met it. Tabular figures still line the digits up; only the family changed. */
.ce-pkg .ce-pkg__no {
	font-family: inherit; /* Scott 30 Oct 2026: the course number reads in the same font as everything round it */
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--ce-pkg-muted);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.ce-pkg .ce-pkg__item.is-settled .ce-pkg__no {
	color: #3f6b52;
}

/* One meter, full width — a self-paced package has no live requirement to show beside it. */
.ce-pkg .ce-pkg__meters--one {
	grid-template-columns: minmax( 0, 1fr );
}

/* ---------------------------------------------------------------------------
   Package Additions.

   ⚠ ABOVE THE METERS, NOT BESIDE THE SUBJECTS. Taking an addition changes what
   the meters are measuring — the total grows and the live minimum grows with it
   — so the control belongs before them, where a student sees the cause above
   the effect rather than beside it.
   --------------------------------------------------------------------------- */
.ce-pkg .ce-pkg__additions {
	margin: 0 0 22px;
	padding: 16px 18px 6px;
	border: 1px solid #d6e5f7;
	border-radius: 12px;
	background: #f2f7fd;
}
.ce-pkg .ce-pkg__additions-head {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #046bd2;
}
.ce-pkg .ce-pkg__additions-note {
	margin: 6px 0 12px;
	max-width: 70ch;
	font-size: 14px;
	line-height: 1.55;
	color: #54637a;
}
.ce-pkg .ce-pkg__additions-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.ce-pkg .ce-pkg__addition {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	padding: 7px 8px 7px 14px;
	border: 1px solid #d6e5f7;
	border-radius: 999px;
	background: #fff;
}
.ce-pkg .ce-pkg__addition.is-on {
	border-color: #046bd2;
	box-shadow: inset 0 0 0 1px #046bd2;
}
.ce-pkg .ce-pkg__addition-name { font-size: 14px; font-weight: 600; color: #0e2747; }
.ce-pkg .ce-pkg__addition-hrs  { font-size: 13px; font-weight: 700; color: #046bd2; font-variant-numeric: tabular-nums; }

/* ── guidance: the capped half, said before it is spent (26 Oct 2026) ────────
   ⚠ Nevada counts at most 18 self-paced hours, and some subjects have no live class at all. Every
   self-paced hour spent on a subject that HAD a live class is an hour those subjects never get
   back — a walk filling a package in requirement order stranded 3 of 36 hours exactly that way. */
.ce-pkg .ce-pkg__guide {
	margin: 0 0 12px;
	padding: 13px 15px;
	border: 1.5px solid #f0c36d;
	border-left-width: 5px;
	border-radius: 8px;
	background: #fff8e8;
	font-size: 15px;
	line-height: 1.5;
}
.ce-pkg .ce-pkg__topic-note--tight {
	color: #8a6100;
	font-weight: 600;
}

/* ── Live and self-paced side by side, the total beneath ──────────────────────
   Scott, 30 Oct 2026: the two halves a plan is built against belong together,
   and their sum belongs under them rather than competing with them. */
.ce-pkg .ce-pkg__meters--total {
	margin-top: 10px;
}

/* ⚠ THE SELF-PACED BAR IS A CEILING, NOT A TARGET. Filling it is not success — it is the
   point past which further internet hours stop counting — so it fills amber as it nears
   the cap rather than the green that means "requirement met". */
.ce-pkg .ce-pkg__meter--net .ce-pkg__meter-fill {
	background: #c98a12;
}

.ce-pkg .ce-pkg__meter--net.is-full .ce-pkg__meter-fill {
	background: #b3721a;
}

/* ⚠ THE DATES A LIVE CLASS ACTUALLY RUNS. Scott, 30 Oct 2026: a card that says only "you pick
   the date later" leaves a student unable to tell a class running next week from one with
   nothing on the calendar. Blue, matching the live tag it sits beside. */
.ce-pkg .ce-pkg__dates {
	display: inline-block;
	font-size: 12.5px;
	line-height: 1.5;
	color: #14427d;
}

/* ── Self-paced and live, in their own sections ───────────────────────────────
   Scott, 30 Oct 2026: *"separate them into their own sections."* The two are
   bought, started and finished differently, and interleaving them under a
   subject heading asked the student to re-sort every row in their head. */
.ce-pkg .ce-pkg__section {
	margin: 26px 0 0;
}

.ce-pkg .ce-pkg__section-head {
	margin: 0 0 3px;
	font-size: 19px;
	font-weight: 800;
	color: var(--ce-pkg-navy, #14427d);
}

.ce-pkg .ce-pkg__section-note {
	margin: 0 0 14px;
	font-size: 13.5px;
	line-height: 1.55;
	color: #5b6775;
}

/* a quiet rule so the eye can find where one half ends and the other begins */
.ce-pkg .ce-pkg__section + .ce-pkg__section {
	padding-top: 24px;
	border-top: 1px solid #e3eaf3;
}

/* ── owned self-paced courses: a flat grid, three across ──────────────────────
 *
 * ⚠ THREE ACROSS BECAUSE SCOTT ASKED FOR IT, AND TWO WHEN THREE WOULD CRAMP. 30 Oct 2026:
 * "They need to be three cards in a row. There is a lot of waisted space taking each and
 * seperating it in course categories ... If you need more space you can do two courses on
 * each row." auto-fit with a 270px floor does exactly that without a media query per size:
 * three at full width, two when the column narrows, one on a phone.
 *
 * ⚠ THE PILLS ARE THE COURSE PAGE'S, RE-SKINNED FOR A WHITE CARD. Same vocabulary and the
 * same dots as .ce-card__pill on the student dashboard; the hero's translucent-white variant
 * is invisible on white, which is why the dashboard already carries this inverted copy.
 */

/* ⚠ TWO PER ROW, NOT THREE — Scott, 30 Oct 2026, seeing the first build: "go to two per row
 * rather than three. It will not look crowded and the pills will be on two lines." Written as an
 * explicit two-column track rather than auto-fit, because auto-fit decides the count from the
 * container width and would quietly go back to three on a wider screen. One column on a phone. */
.ce-pkg__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 700px) {
	.ce-pkg__grid {
		grid-template-columns: 1fr;
	}
}

.ce-pkg__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 16px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 14px;
}

.ce-pkg__card.is-complete {
	background: #f8fafc;
	border-color: #e2e8f0;
}

.ce-pkg__card-title {
	margin: 0;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.3;
	color: #0f172a;
}

/* ⚠ CENTRED, AND FULL WIDTH SO THERE IS SOMETHING TO CENTRE WITHIN. Scott, 30 Oct 2026: "make
 * the two pill lines all centered". The card is a flex column with align-items:flex-start, so
 * each row would otherwise shrink to its content and justify-content would have no effect —
 * width:100% is what gives the centring room to work. */
.ce-pkg__card-pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	width: 100%;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* the two rows sit tighter together than the card's own 8px rhythm */
.ce-pkg__card-pills + .ce-pkg__card-pills {
	margin-top: -2px;
}

.ce-pkg__card-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	color: #334155;
	background: #fff;
	border: 1px solid #dbe3ec;
	border-radius: 999px;
}

.ce-pkg__card-pill--badge {
	color: #166534;
	border-color: #bbf7d0;
	font-weight: 700;
}

.ce-pkg__card-pill--free {
	color: #713f12;
	background: #fde68a;
	border-color: #fbbf24;
	font-weight: 700;
}

.ce-pkg__card-pill--number {
	font-family: inherit; /* Scott 30 Oct 2026: the course number reads in the same font as everything round it */
	font-size: 11.5px;
	color: #475569;
}

.ce-pkg__card-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
}

.ce-pkg__card-dot--category {
	background: var(--ce-event-color, #046bd2);
}

.ce-pkg__card-bar {
	display: block;
	width: 100%;
	height: 6px;
	background: #dcfce7;
	border-radius: 999px;
	overflow: hidden;
}

.ce-pkg__card-bar-fill {
	display: block;
	height: 100%;
	background: #16a34a;
}

.ce-pkg__card-pct {
	font-size: 12px;
	font-weight: 600;
	color: #15803d;
}

/* ⚠ AN ANCHOR, NOT A FORM BUTTON. The dashboard uses a GET form because Scott asked there for a
 * real <button>; that costs middle-click, open-in-new-tab and copy-link, which on a page a
 * student will keep coming back to is the wrong trade. This is a link, styled as a button. */
/* ⚠ CENTRED, BLUE, AND NEVER UNDERLINED — Scott, 30 Oct 2026. The `.ce-pkg` prefix and the
 * explicit :hover/:focus/:visited arms are not padding: the theme underlines links inside content,
 * and a bare `.ce-pkg__card-btn { text-decoration: none }` lost to it — the underline was visible
 * on every Start course button in the first render. */
/* ⚠ FOUR SELECTOR PARTS BECAUSE ASTRA HAS THREE. The theme sets
 * `.ast-single-post .entry-content a { text-decoration: underline }` from an INLINE block, which
 * ties my `.ce-pkg .ce-pkg__card-btn` on specificity (0,2,1) and then wins on source order —
 * measured in the browser, the underline survived the first attempt. `.ce-pkg__card a.…` is
 * (0,3,1) and wins outright, which is worth more than an !important nobody can override later. */
.ce-pkg .ce-pkg__card a.ce-pkg__card-btn,
.ce-pkg .ce-pkg__card a.ce-pkg__card-btn:hover,
.ce-pkg .ce-pkg__card a.ce-pkg__card-btn:focus,
.ce-pkg .ce-pkg__card a.ce-pkg__card-btn:visited {
	text-decoration: none;
	color: #fff;
}

.ce-pkg .ce-pkg__card-btn {
	margin-top: auto;
	align-self: center;
	display: inline-block;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 700;
	background: var(--ce-pkg-blue);
	border-radius: 999px;
}

.ce-pkg .ce-pkg__card-btn:hover,
.ce-pkg .ce-pkg__card-btn:focus {
	background: #15598f;
}

.ce-pkg .ce-pkg__card.is-complete .ce-pkg__card-btn {
	background: #475569;
}

.ce-pkg .ce-pkg__card.is-complete .ce-pkg__card-btn:hover,
.ce-pkg .ce-pkg__card.is-complete .ce-pkg__card-btn:focus {
	background: #334155;
}

.ce-pkg__card-note {
	margin: auto 0 0;
	font-size: 13px;
	font-weight: 600;
	color: #475569;
}

/* ── classes still to choose: the same card, with a tick ──────────────────────
 *
 * ⚠ THE LIST IS NOW A GRID. Scott, 30 Oct 2026 on the live half: "there is a loot of waisted
 * space". One card per row down a column wasted most of the width; this is the same
 * auto-fit track the owned grid uses, so both halves of the page agree.
 */

.ce-pkg__card--offer {
	background: #fff;
	border-color: #e2e8f0;
}

.ce-pkg__card--offer.is-chosen {
	background: #eff6ff;
	border-color: #93c5fd;
}

.ce-pkg__card--offer.is-settled {
	background: #f0fdf4;
	border-color: #bbf7d0;
}

/* ⚠ THE CARD IS THE CARD NOW, AND THE LABEL IS JUST THE TITLE ROW. The original design made
 * the <label> the whole card — `.ce-pkg .ce-pkg__item label` carries height:100%, a border, a
 * radius and the chosen/hover states. With pills and dates added the card has to own all of
 * that, so the label is flattened and every state moves out to the card. These selectors carry
 * the `.ce-pkg` prefix deliberately: without it they lose to the originals on specificity and
 * the label silently keeps its 100% height, which is exactly the empty gap under the title that
 * showed up in the first render. */
.ce-pkg .ce-pkg__list .ce-pkg__card--offer {
	padding: 16px;
	border: 1.5px solid var(--ce-pkg-line);
	border-radius: 14px;
	background: #fff;
}

.ce-pkg .ce-pkg__card--offer .ce-pkg__card-label {
	height: auto;
	padding: 0;
	gap: 10px;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	cursor: pointer;
}

.ce-pkg .ce-pkg__card--offer.is-settled .ce-pkg__card-label {
	cursor: default;
}

.ce-pkg.is-live .ce-pkg__card--offer .ce-pkg__card-label:hover,
.ce-pkg .ce-pkg__card--offer.is-chosen .ce-pkg__card-label {
	border: 0;
	background: none;
	box-shadow: none;
}

.ce-pkg.is-live .ce-pkg__list .ce-pkg__card--offer:hover {
	border-color: #b9d6ef;
	background: #fafcfe;
}

/* ⚠ A LIVE CLASS IS BLUE UNTIL IT IS CHOSEN, THEN GREEN — Scott, 30 Oct 2026. The colour is the
 * status: blue is "available to pick", green is "this one is mine", which is the same green the
 * owned self-paced cards above already use. So a student scanning the page sees what they hold
 * and what they have just claimed in one colour, without reading a word.
 *
 * ⚠ `.ce-pkg .ce-pkg__list .…` on every arm, deliberately. A single-class rule loses to the
 * doubled selectors this file uses to out-rank Astra, and does so SILENTLY — that is exactly how
 * the first two-per-row attempt and the button underline were lost today. */
.ce-pkg .ce-pkg__list .ce-pkg__card--live {
	background: #eff6ff;
	border-color: #bfdbfe;
}

.ce-pkg.is-live .ce-pkg__list .ce-pkg__card--live:hover {
	background: #e0efff;
	border-color: #93c5fd;
}

.ce-pkg .ce-pkg__list .ce-pkg__card--offer.is-chosen {
	border-color: var(--ce-pkg-blue);
	background: #f3f8fd;
	box-shadow: 0 2px 10px rgba( 28, 111, 181, .10 );
}

/* ⚠ THE SAME GREEN AS THE INTERNET CARDS, to the value — Scott, 30 Oct 2026. These are the
 * .ce-pkg__card colours from the owned grid above, repeated here rather than approximated: a
 * chosen class and an owned course are the same idea to a student, so two greens that nearly
 * match would read as two different states. No shadow, because the owned cards have none. */
.ce-pkg .ce-pkg__list .ce-pkg__card--live.is-chosen,
.ce-pkg.is-live .ce-pkg__list .ce-pkg__card--live.is-chosen:hover {
	background: #f0fdf4;
	border-color: #bbf7d0;
	box-shadow: none;
}

.ce-pkg .ce-pkg__list .ce-pkg__card--offer.is-settled {
	border-color: #bbf7d0;
	background: #f0fdf4;
}

.ce-pkg .ce-pkg__card--offer:focus-within {
	outline: 2px solid var(--ce-pkg-blue);
	outline-offset: 2px;
}

.ce-pkg .ce-pkg__card-when {
	margin: 0;
	width: 100%;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
}

.ce-pkg .ce-pkg__card-when.is-none {
	color: #94a3b8;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	font-size: 13px;
}

/* ⚠ STACKED, NOT COMMA-JOINED. See the note at the markup: one line of dates reads as a string
 * to be parsed; a column of them reads as dates to be compared against your own week. */
/* ⚠ THE DATE CARRIES REAL WEIGHT, CENTRED UNDER THE PILLS — Scott, 30 Oct 2026. On a live class
 * the date is the thing being decided; it was set at 13.5px in a dim column under a label, which
 * made the least negotiable fact on the card the quietest thing on it. Stacked, centred, and at
 * the size of the title's neighbours. */
.ce-pkg .ce-pkg__card-dates {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	width: 100%;
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.ce-pkg .ce-pkg__card-dates > li {
	margin: 0;
	padding: 0;
	font-size: 15px;
	font-weight: 700;
	color: #1d4ed8;
}

/* ⚠ THESE ONES KEEP THEIR UNDERLINE. The Start Course button had its stripped because it is a
 * button; a date is a link and has to look like one, or nobody will discover that it books the
 * session. Prefixed to survive Astra either way. */
.ce-pkg .ce-pkg__card-dates a.ce-pkg__card-date,
.ce-pkg .ce-pkg__card-dates a.ce-pkg__card-date:visited {
	color: #1d4ed8;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ce-pkg .ce-pkg__card-dates a.ce-pkg__card-date:hover,
.ce-pkg .ce-pkg__card-dates a.ce-pkg__card-date:focus {
	color: #15598f;
	text-decoration: underline;
}

.ce-pkg .ce-pkg__card-dates > li.is-more {
	font-size: 13px;
	font-weight: 500;
	color: #64748b;
}

/* the any-six rule, stated once under the live heading */
.ce-pkg__rule {
	margin: 10px 0 0;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.5;
	color: #0c4a6e;
	background: #e0f2fe;
	border: 1px solid #bae6fd;
	border-left: 4px solid #0284c7;
	border-radius: 10px;
}

/* ⚠ A THIN MONTH RULE, NOT A SECOND HEADING — Scott, 30 Oct 2026: "We need a thin header to
 * differentiate the months." It has to separate without competing with the subject heading above
 * it, so it is a small capitalised label on a hairline rather than another bold title. */
.ce-pkg .ce-pkg__month {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 20px 0 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #64748b;
}

.ce-pkg .ce-pkg__month::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: var(--ce-pkg-line);
}

.ce-pkg .ce-pkg__month + .ce-pkg__list {
	margin-top: 10px;
}

/* ── a dated session: the date, then the button that books it ────────────────
 *
 * ⚠ THE DATE LEADS AND THE BUTTON FOLLOWS, per session. Scott, 30 Oct 2026, asked for the whole
 * date and time with the booking control beneath it. Each row is one class a student can take,
 * so the two belong together rather than one button serving a list of dates nobody chose between.
 */
.ce-pkg .ce-pkg__card-dates > li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 10px 0 0;
}

.ce-pkg .ce-pkg__card-dates > li + li {
	margin-top: 8px;
	border-top: 1px dashed var(--ce-pkg-line);
}

/* ⚠ NO BOX ON EITHER — Scott, 30 Oct 2026. A box appeared on the multi-date labels by accident:
 * `.ce-pkg .ce-pkg__item label` is the legacy rule where the label WAS the whole card, and it was
 * reaching the radio's <label>. Three selector parts here, not two, so this beats it outright
 * instead of relying on coming later in the file. */
.ce-pkg .ce-pkg__card-dates .ce-pkg__card-date {
	display: block;
	flex: 0 1 auto;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: #0f172a;
	text-align: center;
}

/* the chosen session still has to read as chosen, now without a box to do it */
.ce-pkg .ce-pkg__card-dates .ce-pkg__sess:checked + .ce-pkg__card-date {
	color: var(--ce-pkg-blue);
}

/* the booking button the service renders, sized to sit in a card */
.ce-pkg .ce-pkg__card-dates .ce-credit-btn,
.ce-pkg .ce-pkg__card-dates button,
.ce-pkg .ce-pkg__card-dates .button {
	font-size: 13.5px;
}

/* ⚠ THE PICK CHECKBOX IS GONE FROM VIEW, NOT FROM THE PAGE. The saving script binds to it and to
 * `closest('.ce-pkg__item')`; hiding it with display:none would take it out of the form and out
 * of the keyboard's reach, so it is clipped instead and a <label for> still drives it. */
.ce-pkg .ce-pkg__pick--hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.ce-pkg .ce-pkg__pick--hidden:focus-visible + .ce-pkg__card-title {
	outline: 2px solid var(--ce-pkg-blue);
	outline-offset: 3px;
}

/* ⚠ THE SELECTOR CARRIES `label` ON PURPOSE, AND MUST KEEP IT.
 *
 * This button is a <label>, and it sits inside .ce-pkg__item — so it is also matched by the
 * card-wrapping rule at the top of this file:
 *
 *     .ce-pkg .ce-pkg__item label { background:#fff; border:1.5px solid …; border-radius:12px;
 *                                   display:flex; height:100%; padding:13px 15px }
 *
 * That selector scores (0,2,1): two classes AND an element. A class-only
 * `.ce-pkg .ce-pkg__card-add` scores (0,2,0) and LOSES every property the two share, however far
 * down the file it appears. The button kept only `color:#fff`, which the generic rule does not
 * set — so it rendered as WHITE TEXT ON A WHITE BACKGROUND inside the generic rule's bordered
 * box: an empty outlined rectangle that turned pale blue on hover from `… label:hover`, which is
 * exactly how Scott found it on 2026-11-12, on a live student's account.
 *
 * Adding `label` here makes it (0,3,1) and settles it outright. Do NOT "simplify" this back to
 * the class on its own: the styling silently disappears and the only symptom is an invisible
 * label, which no test that greps for the rule will ever catch.
 *
 * Every property the generic rule imposes is restated below — background, border, radius,
 * display, height, padding — because beating a rule on specificity only helps for properties you
 * actually declare. `height:100%` in particular would stretch the pill to the full card.
 */
.ce-pkg .ce-pkg__item label.ce-pkg__card-add {
	margin-top: auto;
	align-self: center;
	display: inline-block;
	height: auto;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	background: var(--ce-pkg-blue);
	border: 1.5px solid var(--ce-pkg-blue);
	border-radius: 999px;
	box-shadow: none;
	cursor: pointer;
	text-align: center;
}

/* ⚠ AND ITS OWN HOVER, or the generic `… label:hover` (0,3,1 with the pseudo-class) repaints the
 * pill near-white on hover — the pale blue that made the button look broken rather than absent. */
.ce-pkg.is-live .ce-pkg__item label.ce-pkg__card-add:hover {
	background: var(--ce-pkg-blue-dark);
	border-color: var(--ce-pkg-blue-dark);
	box-shadow: none;
}

/* The two span toggles are unaffected by the generic label rule (it sets nothing on spans), so
 * they stay class-only. Listed here so the next reader does not "fix" them to match above. */
.ce-pkg .ce-pkg__card-add .ce-pkg__add-off,
.ce-pkg .ce-pkg__card--offer.is-chosen .ce-pkg__card-add .ce-pkg__add-on {
	display: none;
}

.ce-pkg .ce-pkg__card--offer.is-chosen .ce-pkg__card-add .ce-pkg__add-off {
	display: inline;
}

/* ⚠ THE CHOSEN STATE NEEDS THE SAME WEIGHT. `.ce-pkg .ce-pkg__item.is-chosen label` (0,3,1) sets
 * a blue border and a pale blue background, and would otherwise repaint the green "Added" pill. */
.ce-pkg .ce-pkg__item.is-chosen label.ce-pkg__card-add,
.ce-pkg .ce-pkg__card--offer.is-chosen label.ce-pkg__card-add {
	color: #15803d;
	background: #dcfce7;
	border-color: #86efac;
	box-shadow: none;
}
.ce-pkg.is-live .ce-pkg__item.is-chosen label.ce-pkg__card-add:hover,
.ce-pkg.is-live .ce-pkg__card--offer.is-chosen label.ce-pkg__card-add:hover {
	background: #bbf7d0;
	border-color: #4ade80;
}

/* ── choosing a session, then booking it ─────────────────────────────────────
 *
 * ⚠ ONE BUTTON VISIBLE, ALL OF THEM PRESENT. See the markup note: each session's real button is
 * rendered with its own eligibility, and only the selected one is shown. Nothing here re-decides
 * whether a class can be booked.
 */
.ce-pkg .ce-pkg__card-dates > li {
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.ce-pkg .ce-pkg__sess {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--ce-pkg-blue);
	cursor: pointer;
}

.ce-pkg label.ce-pkg__card-date {
	cursor: pointer;
	text-align: left;
}

.ce-pkg .ce-pkg__card-book {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	margin-top: auto;
	padding-top: 10px;
}

.ce-pkg .ce-pkg__book-one {
	display: none;
}

.ce-pkg .ce-pkg__book-one.is-active {
	display: block;
}

/* ⚠ IT READS AS AN INSTRUCTION, NOT A DEAD BUTTON. Scott asked for "Choose your session date
 * above" where the button will be. Styling it as a greyed-out button would invite clicks on
 * something that cannot be clicked; this is plainly a sentence. */
.ce-pkg .ce-pkg__book-prompt {
	margin: 0;
	font-size: 13.5px;
	font-weight: 600;
	color: #64748b;
	text-align: center;
}

.ce-pkg .ce-pkg__card-note.is-booked {
	color: #15803d;
	font-weight: 700;
}

/* ── Cards / Calendar ────────────────────────────────────────────────────────
 *
 * ⚠ BOTH VIEWS ARE IN THE PAGE; THE TOGGLE ONLY HIDES ONE. The calendar borrows the cards'
 * booking buttons rather than rendering its own — see the markup and package-wizard.js — so the
 * two views can never disagree about whether a class is bookable.
 */
.ce-pkg .ce-pkg__views {
	display: inline-flex;
	gap: 2px;
	margin: 10px 0 0;
	padding: 3px;
	background: #eef2f7;
	border-radius: 999px;
}

.ce-pkg .ce-pkg__view {
	padding: 7px 18px;
	font-size: 13.5px;
	font-weight: 700;
	color: #475569;
	background: none;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

.ce-pkg .ce-pkg__view.is-on {
	color: #fff;
	background: var(--ce-pkg-blue);
}

.ce-pkg .ce-pkg__cal {
	margin-top: 10px;
}

/* ⚠ THE BESPOKE MONTH GRID THAT USED TO LIVE HERE IS GONE. The wizard renders the site's own
 * calendar now (templates/calendar/view-month.php) and loads assets/calendar/calendar.css with
 * it, so every rule for cells, day numbers and chips would have been a second opinion about a
 * component that already has one. What is left is the wrapper and the view toggle. */

/* ⚠ THE BOOKED LINE SITS WITH THE REST — Scott, 30 Oct 2026: it "should be centered in the cell."
 * Everything else on the card is centred; the note inherited the card's flex-start alignment and
 * was the one thing hanging off the left edge. */
.ce-pkg .ce-pkg__card-note {
	width: 100%;
	text-align: center;
}

/* ── cancel a booked seat ────────────────────────────────────────────────────
 *
 * ⚠ RED, AND ONLY BESIDE A BOOKED SEAT. Scott asked for it in red, which is right: it gives a
 * credit back and takes the seat away, and it should not look like the blue control that does
 * the opposite. The component itself is the course page's Cancel_Button — this only colours it.
 */
/* ⚠ `auto`, SO IT SITS WITH THE REST OF THE CARD'S CONTENT and does not float away from it.
 * Cards in a row stretch to a common height; without this the panel would be pinned to the
 * bottom of the tallest one. */
.ce-pkg .ce-pkg__card-cancel {
	width: 100%;
	margin-top: 8px;
	text-align: center;
}

.ce-pkg .ce-pkg__card-cancel button,
.ce-pkg .ce-pkg__card-cancel .button,
.ce-pkg .ce-pkg__card-cancel a {
	display: inline-block;
	padding: 8px 18px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	color: #b91c1c;
	background: #fef2f2;
	border: 1.5px solid #fecaca;
	border-radius: 999px;
	cursor: pointer;
}

.ce-pkg .ce-pkg__card-cancel button:hover,
.ce-pkg .ce-pkg__card-cancel .button:hover,
.ce-pkg .ce-pkg__card-cancel a:hover {
	color: #fff;
	background: #b91c1c;
	border-color: #b91c1c;
}

/* ── the cancel panel, compact inside a package card ─────────────────────────
 *
 * ⚠ THE POLICY PARAGRAPH IS HIDDEN HERE BECAUSE THE STUDENT ALREADY GETS IT. Scott, 30 Oct 2026:
 * *"It should generate the pop-up with a confirmation. not give all that info in the card"* — and
 * it already does: cancel-button.js fires window.confirm() with the same policy, built from
 * Expiry_Cron::days() rather than a hardcoded 180. Printing it on the card as well said the same
 * thing twice and buried the control. The warning is NOT lost; it is on the dialog, which is
 * where consent actually happens.
 *
 * ⚠ THE ICON STAYS — Scott: "I do like the cal icon."
 *
 * ⚠ SCOPED TO .ce-pkg__card-cancel, SO THE COURSE PAGE IS UNTOUCHED. This is layout applied to a
 * component inside our own container, not a change to the component — the full panel still renders
 * as it always has wherever else it appears. It does reach into that component's class names, so
 * if Cancel_Button's markup is reworked, check here.
 */
.ce-pkg .ce-pkg__card-cancel .ce-cancel-card {
	padding: 10px 12px;
	background: none;
	border: 0;
	box-shadow: none;
}

/* the button goes BELOW the session line, not beside it — Scott, 30 Oct 2026 */
.ce-pkg .ce-pkg__card-cancel .ce-cancel-row {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.ce-pkg .ce-pkg__card-cancel .ce-cancel-head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-align: left;
}

.ce-pkg .ce-pkg__card-cancel .ce-cancel-policy {
	display: none;
}

/* ⚠ `hidden` ALONE DOES NOT HIDE THESE, AND THAT IS WHY THE TOGGLE DID NOTHING. Scott, 31 Oct
 * 2026: switching to Calendar left the cards on screen with the calendar underneath. The browser's
 * own `[hidden] { display: none }` is specificity (0,0,1); `.ce-pkg .ce-pkg__list { display: grid }`
 * is (0,2,0) and wins, so setting the attribute changed nothing visible. Same trap as the
 * two-per-row grid and the Start Course underline earlier the same day — in this stylesheet a rule
 * that does not out-rank the doubled selectors loses silently.
 *
 * This file already carried two such overrides (.ce-pkg__error[hidden], .ce-pkg__unlock[hidden]),
 * which is the tell that it had been hit before. */
.ce-pkg .ce-pkg__list[hidden],
.ce-pkg .ce-pkg__cal[hidden],
.ce-pkg .ce-pkg__agenda[hidden],
.ce-pkg .ce-pkg__month[hidden] {
	display: none;
}

/* ── the wizard's calendar: less to read per chip ────────────────────────────
 *
 * ⚠ SCOPED TO THE WIZARD, NOT THE PUBLIC CALENDAR. /nvcalendar/ is a browsing surface where the
 * CE number is useful; inside the package wizard the student is choosing between classes, and on
 * this catalogue the number is what costs them the words that tell two classes apart — "Broker
 * Management: Reducing Liabilities" and "Broker Management: The Broker's Duty to Supervise" both
 * truncate to "Broker Management:…". Dropping the number here buys that room back. It is still on
 * the card view, on the course page and on the certificate.
 */
.ce-pkg .ce-pkg__cal .ce-calendar__event-cell-course-number {
	display: none;
}

.ce-pkg .ce-pkg__cal .ce-calendar__event-cell-title {
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
	/* two lines is enough to tell these apart; three starts pushing the row */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── what the colours mean ───────────────────────────────────────────────────
 * The chips are coloured by CE subject, which is exactly what a student filling subject gaps
 * needs — but nothing said so, so the colour was decoration. One line fixes that.
 */
.ce-pkg .ce-pkg__legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin: 12px 0 0;
	font-size: 12.5px;
	color: #64748b;
}

.ce-pkg .ce-pkg__legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
}

.ce-pkg .ce-pkg__legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: var(--ce-event-color, #cbd5e1);
}

/* ── the wizard's month grid on a phone ──────────────────────────────────────
 *
 * ⚠ THE SHARED CALENDAR SCROLLS SIDEWAYS; HERE IT STACKS. calendar.css keeps seven columns at a
 * 480px minimum below 768px and lets the grid scroll — measured on a 375px screen that leaves a
 * chip running to 493px, clipped, needing a sideways drag to read a class name. That trade is
 * defensible on /nvcalendar/, where somebody is reading a month. It is not defensible here, where
 * the job is choosing six classes and mobile is a standing rule.
 *
 * ⚠ SCOPED TO .ce-pkg__cal, so the public calendar is untouched. min-width has to be reset
 * explicitly: the 480px floor is what defeated the first attempt at this, not the column count.
 */
@media (max-width: 768px) {
	.ce-pkg .ce-pkg__cal .ce-calendar__cells,
	.ce-pkg .ce-pkg__cal .ce-calendar__weekday-headers {
		min-width: 0;
	}

	.ce-pkg .ce-pkg__cal .ce-calendar__cells {
		grid-template-columns: minmax(0, 1fr);
	}

	.ce-pkg .ce-pkg__cal .ce-calendar__weekday-headers,
	.ce-pkg .ce-pkg__cal .ce-calendar__cell--other-month {
		display: none;
	}

	/* an empty day is noise once the grid is a list — most of a month is empty here */
	.ce-pkg .ce-pkg__cal .ce-calendar__cell:not(:has(.ce-calendar__event-cell)) {
		display: none;
	}

	.ce-pkg .ce-pkg__cal .ce-calendar__cell {
		min-height: 0;
	}

	.ce-pkg .ce-pkg__cal .ce-calendar__cell-date {
		font-weight: 700;
	}
}
