/* Copyright (C) 2026 ceASAP LTD. All Rights Reserved. Proprietary.
 *
 * catalog-v2.css — the redeveloped /nvcourses/ catalogue.
 *
 * ⚠ DEPENDS ON ce-brand.css AND SAYS SO IN THE ENQUEUE. Every colour and both faces come from the
 * shared design system's tokens; nothing here redefines a brand value. Scott, 28 Oct 2026: "Let's
 * use this style sheet for all pages that we are going to redesign."
 *
 * ⚠ THE CATEGORY PALETTE IS CARRIED OVER UNCHANGED from the old catalogue's style.css. Those nine
 * colours are how a returning licensee recognises "that's the Ethics one" at a glance, and
 * restyling them would cost that for no gain. They are the one set of literals in this file.
 *
 * ⚠ SCOPED UNDER #ce-cat. The old catalogue is still installed and may render on the same site
 * while the flag is off, so not one selector here may reach #ce-courses.
 */

#ce-cat {
	--cat-gap: 24px;
	--cat-radius: 14px;
	--cat-card: #fff;
	--cat-ink: var( --ce-brand-ink, #0e2747 );
	--cat-muted: var( --ce-brand-muted, #54637a );
	--cat-line: var( --ce-brand-line, #e6ebf2 );
	--cat-tint: var( --ce-brand-tint, #e7eef8 );
	--cat-brand: var( --ce-brand, #046bd2 );
	--cat-deep: var( --ce-brand-deep, #02356f );
	--cat-shadow: 0 1px 2px rgba( 14, 39, 71, .06 ), 0 8px 24px rgba( 14, 39, 71, .07 );
	--cat-shadow-up: 0 2px 6px rgba( 14, 39, 71, .09 ), 0 16px 40px rgba( 14, 39, 71, .13 );

	font-family: var( --ce-font-sans, system-ui, sans-serif );
	color: var( --cat-ink );
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 16px;
	/* ⚠ THE WHITE STRIP ABOVE THE BAND IS NOT THIS FILE'S ANY MORE. It used to be cancelled here
	   with a negative margin against the Elementor section's padding; that produced a different
	   answer on every page that shares the band. `ce-brand.css` now zeroes the ambient gap and
	   draws one divider for all of them — change it there, not here. */
	padding-block: 0 48px;
	box-sizing: border-box;
}

#ce-cat *,
#ce-cat *::before,
#ce-cat *::after { box-sizing: inherit; }

/* ⚠ EVERY `display` BELOW LOSES TO THIS, WHICH IS THE POINT. The browser hides [hidden] by giving
   it `display:none` at user-agent weight, and ANY author rule — `.cat-cats{display:flex}` — beats
   that. The inactive tab's filter rail duly rendered under the active one: both category lists
   visible at once, the self-paced counts sitting beneath the live ones. Stating it once here, with
   the precedence the attribute is supposed to have, means a future `display` cannot resurrect it. */
#ce-cat [hidden] { display: none !important; }

/* ─────────────────────────────────────────── the band, and the panel that overlaps it

   ⚠ THE BAND IS .ce-brand-hero FROM THE DESIGN SYSTEM. Everything here adds to it; nothing
   redefines its gradient, its washes or its full-bleed trick. The TYPOGRAPHY deliberately copies
   the individual package screen (.ce-store__phero-eyebrow / -name / -sub) rather than inventing a
   third heading style, because a student lands here and on a package page in the same session and
   the two must read as one site. Scott, 1 Nov 2026. */

/* ⚠ SHORTER THAN THE SHARED BAND'S DEFAULT, DELIBERATELY. Scott, 1 Nov 2026: "the header needs
   to be not so large vertically." `.ce-brand-hero` sets `min-height: 360px` because the storefront
   hero carries a photograph; this one carries four lines of text, so the minimum is released and
   the padding decides the height. The bottom padding still has to clear the panel that overlaps
   it by 64px — 5rem leaves 16px of blue showing beneath it, which is what reads as an overlap
   rather than a join. The package screen does the same thing for the same reason. */
.cat-band { text-align: left; min-height: 0; }

/* ⚠ THE BOTTOM PADDING IS NOT WHITESPACE, IT IS THE OVERLAP BUDGET. The panel below pulls up by
   64px, so the blue left showing under the sub-heading is this value minus 64 — at 5rem that was
   16px and the sentence sat almost on the panel's edge. 6.5rem leaves 40px. Scott, 1 Nov 2026. */
.cat-band-in { padding-block: 2.4rem 6.5rem; }

/* ⚠ A TIGHTER MARGIN THAN THE SHARED BADGE'S. ce-brand.css gives .ce-brand-badge a 1.25rem
   bottom margin, sized for a hero with room to spare; this band was shortened on purpose and the
   default would hand back most of what was saved. */
#ce-cat .cat-band-badge { margin-bottom: 14px; }

/* Matched to .ce-store__phero-eyebrow. */
#ce-cat .cat-band-eyebrow {
	display: block;
	margin: 0 0 16px;
	font-family: var( --ce-font-sans );
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: rgba( 255, 255, 255, .82 );
}

/* Matched to .ce-store__phero-name — Playfair Display at 500, not a bold sans.

   ⚠ SCOPED UNDER #ce-cat, AND THAT IS LOAD-BEARING. The Elementor kit styles bare headings —
   `.elementor-kit-2890 h1 { font-family: "Satoshi Font" }` — which is one class plus one element
   and therefore outranks a lone `.cat-band-title`. Measured on staging: the token resolved to
   Playfair correctly and the heading still rendered in Satoshi. The id prefix wins it back. Every
   heading below is scoped for the same reason, whether or not the kit currently targets it. */
#ce-cat .cat-band-title {
	margin: 0;
	/* ⚠ RUNS WIDER THAN THE PACKAGE SCREEN'S 44px CEILING, on Scott's instruction of 1 Nov 2026 to
	   let the title and sub "span longer". Same face and same weight — only the ceiling moves, so
	   the two pages still read as one typeface at one voice. */
	font-family: var( --ce-font-display );
	font-size: clamp( 28px, 4vw, 50px );
	font-weight: 500;
	line-height: 1.14;
	letter-spacing: -.01em;
	color: #fff;
	text-wrap: balance;
}

/* Matched to .ce-store__phero-sub. */
#ce-cat .cat-band-sub {
	margin: 14px 0 0;
	/* ⚠ NO MEASURE CAP, exactly as .ce-store__phero-sub does it. The 64ch cap broke this single
	   sentence after "Division and" at every desktop width, which is what made the band look
	   narrow and tall at once. */
	max-width: none;
	font-family: var( --ce-font-sans );
	font-size: 17px;
	font-weight: 400;
	line-height: 1.55;
	color: rgba( 255, 255, 255, .86 );
	text-wrap: pretty;
}

/* ── the overlapping panel ──
   ⚠ `margin-bottom`, NEVER THE `margin` SHORTHAND. ce-brand.css gives .ce-brand-shell its
   `margin-top: -64px` and this file loads after it, so a shorthand here would reset the overlap
   and it would simply not happen — a trap that file documents from having cost two debugging
   rounds already. */
.cat-offers {
	margin-bottom: 30px;
	padding: 22px 22px 24px;
	display: grid;
	gap: 18px;
}

.cat-offers-rule { text-align: center; }

#ce-cat .cat-offers-rule-h {
	margin: 0 0 6px;
	font-family: var( --ce-font-display );
	font-size: clamp( 18px, 2vw, 23px );
	font-weight: 500;
	line-height: 1.2;
	color: var( --cat-deep );
	text-wrap: balance;
}

.cat-offers-rule-b {
	margin: 0 auto;
	max-width: 70ch;
	font-size: 15px;
	line-height: 1.55;
	color: var( --cat-muted );
	text-wrap: pretty;
}

/* ── the four ways to buy ──
   ⚠ FOUR ACROSS, AND THEY MUST STAY LEGIBLE AS THEY NARROW. `auto-fit` with a 220px floor gives
   4 / 2 / 1 columns without a breakpoint for each, and every tile is the same height so the
   prices line up — a price row that stair-steps reads as four unrelated offers rather than one
   comparison. */
/* ⚠ SCOPED, BECAUSE THIS IS A <ul> AND THE THEME STYLES BARE LISTS. Measured: the theme's
   `padding-left: 20px` and `margin: 16px 0` beat a lone `.cat-pkgs`, so the tile row started 20px
   right of the heading above it and ran 20px narrow. Same class-plus-element trap as the hero
   title and the card image — the third time, so every list and image rule in this file is scoped
   now whether or not it currently loses. */
#ce-cat .cat-pkgs {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 220px, 1fr ) );
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	align-items: stretch;
}

.cat-pkg {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 18px 16px;
	border: 1px solid var( --cat-line );
	border-radius: 12px;
	background: #fff;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.cat-pkg:hover {
	border-color: rgba( 4, 107, 210, .38 );
	box-shadow: 0 10px 28px rgba( 14, 39, 71, .1 );
	transform: translateY( -2px );
}

/* The whole renewal is the one most people need, so it carries the brand ground and a rule along
   its top. It is MARKED, not enlarged: a taller tile would break the price alignment. */
.cat-pkg--feature {
	border-color: rgba( 4, 107, 210, .34 );
	background: linear-gradient( 160deg, rgba( 4, 107, 210, .09 ) 0%, rgba( 2, 53, 111, .05 ) 100% );
	box-shadow: inset 0 3px 0 0 var( --cat-brand );
}

.cat-pkg-kicker {
	margin: 0;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .11em;
	text-transform: uppercase;
	color: var( --cat-brand );
}

#ce-cat .cat-pkg-price {
	margin: 2px 0 0;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -.02em;
	color: var( --cat-deep );
	font-variant-numeric: tabular-nums;
}

/* The rate sits directly under the price it divides, quieter than both the price and the name. */
.cat-pkg-rate {
	margin: 0 0 2px;
	font-size: 12.5px;
	font-weight: 600;
	color: var( --cat-muted );
	font-variant-numeric: tabular-nums;
}

#ce-cat .cat-pkg-name {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var( --cat-ink );
	text-wrap: pretty;
}

.cat-pkg-note {
	margin: 4px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var( --cat-muted );
	text-wrap: pretty;
}

#ce-cat .cat-pkg-go {
	/* Centred on the tile, Scott 1 Nov 2026 — four left-aligned links under four blocks of text
	   of different lengths read as ragged; centred they form a row of their own. */
	align-self: center;
	margin-top: auto;
	padding-top: 14px;
	/* ⚠ 44px INCLUDING THE PADDING, measured on a phone at 38px before this. A text link is more
	   forgiving than a button, but the rule is the rule: every tappable thing on a student page
	   clears 44. box-sizing is border-box here, so this is the whole target. */
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	font-size: 13.5px;
	font-weight: 700;
	color: var( --cat-brand );
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

#ce-cat .cat-pkg-go:hover { color: var( --cat-deep ); border-bottom-color: currentColor; }

#ce-cat .cat-pkg--feature .cat-pkg-go { color: var( --cat-deep ); }

/* ── the two delivery tabs ──
   A real tablist: buttons, roving tabindex, arrow keys. The old page used <div>s, so a keyboard
   user could not reach Self-Paced at all. */
/* ── the delivery switch, inside the rail ──
   ⚠ IT MUST NOT LOOK LIKE THE CATEGORY LIST BENEATH IT. Both are now full-width rows in the same
   narrow rail, and the category rows already use a filled blue for "selected" — so a student
   could read the two as one list of six choices rather than two independent questions. The
   segmented track, its own label, and the rule under it are what separate them. */
.cat-delivery { margin-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var( --cat-line ); }

/* ⚠ ONE LINE, WITH ROOM TO SPARE — AND MEASURE THE TEXT, NOT THE BOX, BEFORE BELIEVING OTHERWISE.
   I reported this label as two pixels from overflowing and nearly shrank the type to fix it. The
   reading was junk: `scrollWidth` on a `display:block` element returns the BOX width, so it said
   226px whatever the text was. Measured properly with a Range, "Choose your delivery method" is
   175.6px against 228px available — 52px of slack. `nowrap` stays as the guard that makes a
   genuinely over-long label fail visibly here instead of quietly wrapping to two lines. */
.cat-delivery-label {
	display: block;
	margin-bottom: 7px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	color: var( --cat-muted );
}

/* ⚠ STACKED, BECAUSE THE RAIL IS 268px AND THE LABELS DO NOT FIT BESIDE EACH OTHER. Side by side
   they clipped to "Live / Z…" and "Self-P…" — measured on staging, 108px per half against the
   ~128px "Live / ZOOM" plus its count needs. Stacking gives each the full 220px, and the two
   still read as one control because they share the tinted track. */
.cat-tabs {
	display: flex;
	flex-direction: column;
	width: 100%;
	gap: 3px;
	margin: 0;
	padding: 4px;
	background: var( --cat-tint );
	border-radius: 12px;
}

.cat-tab {
	/* Equal halves of the rail, so the two deliveries read as a pair rather than as a list whose
	   first item happens to be wider. min-width:0 lets a long label shrink instead of overflowing
	   the track — "Self-Paced" plus its count is the tight one at 268px. */
	/* Label left, count right — the same scanning line as the category rows below, so the eye
	   reads one column of counts down the whole rail. */
	width: 100%;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 9px 12px;
	min-height: 44px;
	border: 0;
	border-radius: var( --ce-brand-radius-pill, 999px );
	background: transparent;
	font: inherit;
	font-size: 13.5px;
	font-weight: 700;
	color: var( --cat-deep );
	cursor: pointer;
	white-space: nowrap;
	transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.cat-tab-label { overflow: hidden; text-overflow: ellipsis; }

.cat-tab { border-radius: 9px; }

/* ⚠ EVERY HOVER RULE ON A BARE <button> MUST SET **BOTH** background AND color.
   Astra styles bare elements, and two of its rules hit `button:hover`:
     main.min.css   button:hover { color: #fff }
     astra inline   button:hover { color: #fff; background-color: var(--ast-global-color-1) }
   Our `.x:hover` (0,2,0) outranks `button:hover` (0,1,1), so whichever half WE declare wins — and
   Astra supplies the half we leave out. That is one bug with two faces, both reported 2026-11-03:
   a rule setting only `background` got Astra's WHITE TEXT on our pale background (.cat-tab,
   .cat-cat), and a rule setting only `color` got our brand text on Astra's BRAND BACKGROUND
   (.cat-reset). In each case the label vanished. Anchors and labels are unaffected — Astra's
   `a:hover` sets colour only — so this applies to the three <button> components below. */
.cat-tab:hover { background: rgba( 255, 255, 255, .7 ); color: var( --cat-deep ); }

/* ⚠ A WHITE PILL, NOT THE CATEGORY ROWS' SOLID BLUE. That difference is doing real work: it is
   what stops a student reading the delivery switch and the category list as one list of six. */
.cat-tab.is-on {
	background: var( --cat-card );
	color: var( --cat-brand );
	box-shadow: 0 1px 2px rgba( 14, 39, 71, .1 ), 0 4px 12px rgba( 14, 39, 71, .08 );
}

.cat-tab-n {
	display: inline-grid;
	place-items: center;
	flex: none;
	min-width: 22px;
	height: 22px;
	padding-inline: 6px;
	border-radius: 999px;
	background: rgba( 4, 107, 210, .12 );
	font-size: 12px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var( --cat-brand );
}

.cat-tab.is-on .cat-tab-n { background: var( --cat-brand ); color: #fff; }

/* ─────────────────────────────────────────────────── layout: rail + grid */

.cat-shell {
	display: grid;
	grid-template-columns: 268px minmax( 0, 1fr );
	gap: 32px;
	align-items: start;
	margin-top: 8px;
}

.cat-main { min-width: 0; }

/* ── the filter rail ── */

.cat-side {
	position: sticky;
	top: 24px;
	background: var( --cat-card );
	border: 1px solid var( --cat-line );
	border-radius: var( --cat-radius );
	padding: 20px;
	box-shadow: var( --cat-shadow );
}

/* ⚠ THE CLOSE BUTTON IS ABSOLUTE SO THE TITLE CAN CENTRE ON THE RAIL, NOT ON WHAT IS LEFT OF IT.
   With both in a flex row the pill sat off-centre by half the button's width on a phone, and
   perfectly centred on desktop where the button is hidden — the kind of difference that only
   shows up on the device nobody tests. */
.cat-side-head { position: relative; display: flex; justify-content: center; }

/* Scott, 1 Nov 2026: a centred pill, matching the delivery toggle's shape. */
#ce-cat .cat-side-title {
	margin: 0;
	padding: 8px 18px;
	border-radius: var( --ce-brand-radius-pill, 999px );
	background: var( --cat-tint );
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var( --cat-deep );
	text-align: center;
}

.cat-side-close { display: none; position: absolute; right: 0; top: 50%; transform: translateY( -50% ); }

.cat-search { margin-top: 16px; }

.cat-search-label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: var( --cat-muted );
	margin-bottom: 6px;
}

.cat-q {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var( --cat-line );
	border-radius: 10px;
	font: inherit;
	font-size: 15px;
	color: var( --cat-ink );
	background: #fbfcfe;
}

.cat-q:focus-visible { outline: 2px solid var( --cat-brand ); outline-offset: 1px; border-color: var( --cat-brand ); }

.cat-cats { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; }

.cat-cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	min-height: 44px;
	padding: 9px 12px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	color: var( --cat-ink );
	text-align: left;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.cat-cat:hover { background: var( --cat-tint ); color: var( --cat-ink ); }

.cat-cat.is-on { background: var( --cat-brand ); color: #fff; }

.cat-cat-n {
	font-size: 12px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var( --cat-muted );
	flex: none;
}

.cat-cat.is-on .cat-cat-n { color: rgba( 255, 255, 255, .85 ); }

.cat-reset {
	width: 100%;
	min-height: 44px;
	margin-top: 18px;
	padding: 10px;
	border: 1px solid var( --cat-line );
	border-radius: 9px;
	background: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var( --cat-muted );
	cursor: pointer;
}

.cat-reset:hover { border-color: var( --cat-brand ); color: var( --cat-brand ); background: #fff; }

.cat-side-help { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var( --cat-line ); font-size: 13.5px; line-height: 1.5; }

#ce-cat .cat-side-help a { color: var( --cat-brand ); font-weight: 600; text-decoration: none; }

#ce-cat .cat-side-help a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────────────────────────── the grid */

/* ⚠ `stretch`, NOT `start`. A live course with three dates is a taller card than one with a single
   next class, and with `start` each card took its natural height — so the Add to Cart buttons in a
   row sat at three different heights. Stretched, every card in a row matches the tallest and
   `.cc-foot { margin-top: auto }` pins the price and buttons to the bottom of each, so the row of
   actions lines up whatever the cards contain. */
.cat-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 286px, 1fr ) );
	gap: var( --cat-gap );
	align-items: stretch;
}

.cat-empty {
	padding: 56px 24px;
	text-align: center;
	font-size: 16px;
	color: var( --cat-muted );
}

#ce-cat .cat-empty-reset {
	display: inline-block;
	margin-left: 8px;
	border: 0;
	background: none;
	font: inherit;
	font-weight: 700;
	color: var( --cat-brand );
	text-decoration: underline;
	cursor: pointer;
	min-height: 44px;
}

/* ── one course card ──
   ⚠ A CARD IS A COURSE, NOT A DATE. A live course scheduled four times is one card with four
   dates inside it, which is why the body is a column with the footer pinned to the bottom: cards
   in a row have different numbers of dates and their buttons must still line up. */

.cc {
	display: flex;
	flex-direction: column;
	background: var( --cat-card );
	border: 1px solid var( --cat-line );
	border-radius: var( --cat-radius );
	overflow: hidden;
	box-shadow: var( --cat-shadow );
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.cc:hover { box-shadow: var( --cat-shadow-up ); transform: translateY( -2px ); border-color: rgba( 4, 107, 210, .28 ); }

/* ⚠ THE IMAGE IS TAKEN OUT OF FLOW SO IT CANNOT SET THE CARD'S HEIGHT. `aspect-ratio` proposes a
   height, it does not impose one: content that wants to be taller wins, because `min-height` is
   `auto`. Measured on staging, where one upload was missing: the broken image's alt text pushed
   .cc-media to 1500px and the card to 1840px, wrecking the whole row. Positioned absolutely the
   image has no say in the box at all, so a 404, a slow load and a course with no picture at all
   each leave the grid exactly as it is. */
.cc-media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var( --cat-tint );
	overflow: hidden;
}

/* ⚠ SCOPED UNDER #ce-cat, AND `height` IS WHY. `.elementor img { height: auto }` is one class
   plus one element and outranks a lone `.cc-img`, so the image sized itself to its own aspect
   ratio instead of filling the box. It was invisible on the live tab by pure luck — those uploads
   are 4:3, the same ratio as the box, so `auto` happened to give the right answer. The self-paced
   uploads are 10:7, so they came up 21px short and the card's tint showed as a pale band under
   every one of them. Second time this theme's element rules have taken one of ours; measure the
   computed value, never assume the cascade. */
#ce-cat .cc-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	display: block;
	color: transparent; /* a broken image shows its box, not its alt text, inside a styled card */
}

.cc-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	max-width: calc( 100% - 24px );
	padding: 6px 12px;
	border-radius: 999px;
	background: var( --cat-deep );
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .01em;
	line-height: 1.3;
	box-shadow: 0 2px 8px rgba( 0, 0, 0, .22 );
}

/* ⚠ THE ONE SET OF LITERALS IN THIS FILE — carried over from the old catalogue so a returning
   student recognises a category by its colour. Do not re-pick these. */
.cc-badge[data-badge="Agency"]    { background: #1e3a5f; }
.cc-badge[data-badge="Contracts"] { background: #3b82f6; }
.cc-badge[data-badge="Ethics"]    { background: #d851e2; }
.cc-badge[data-badge="Risk"]      { background: #f59e0b; }
.cc-badge[data-badge="Property"]  { background: #4bb549; }
.cc-badge[data-badge="General"]   { background: #f57547; }
.cc-badge[data-badge="Law"]       { background: #1f2937; }
.cc-badge[data-badge="Broker"]    { background: #6366f1; }
.cc-badge[data-badge="Business"]  { background: #475569; }

.cc-hours {
	position: absolute;
	bottom: 12px;
	left: 12px;
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba( 255, 255, 255, .95 );
	color: var( --cat-deep );
	font-size: 12px;
	font-weight: 700;
	box-shadow: 0 2px 8px rgba( 0, 0, 0, .16 );
}

.cc-hours b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }

.cc-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 18px; }

.cc-kicker {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var( --cat-muted );
}

.cc-kicker-ce { color: var( --cat-brand ); font-variant-numeric: tabular-nums; }

#ce-cat .cc-title {
	margin: 0;
	font-size: 17.5px;
	line-height: 1.3;
	font-weight: 700;
	color: var( --cat-deep );
	text-wrap: pretty;
}

/* The CE-number component also renders inside the heading on some paths; keep it quiet there. */
.cc-title .cc-ce-no { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var( --cat-muted ); }

.cc-anytime { margin: 0; font-size: 14px; line-height: 1.5; color: var( --cat-muted ); }

.cc-when { margin: 0; font-size: 14.5px; line-height: 1.5; color: var( --cat-ink ); }

.cc-when-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var( --cat-muted ); }

/* ── what you'll cover ──
   Closed by default: three subjects on every card would make the grid a wall of text and push the
   price below the fold. Open is one tap, and the text is in data-find so search still reaches it. */

.cc-covers { margin: 0; border-top: 1px solid var( --cat-line ); padding-top: 10px; }

.cc-covers-sum {
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	color: var( --cat-brand );
	list-style: none;
	min-height: 32px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.cc-covers-sum::-webkit-details-marker { display: none; }

.cc-covers-sum::after {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate( 45deg ) translateY( -2px );
	transition: transform .18s ease;
}

.cc-covers[open] .cc-covers-sum::after { transform: rotate( -135deg ) translateY( -2px ); }

#ce-cat .cc-covers-list { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; color: var( --cat-muted ); }

#ce-cat .cc-covers-list li { margin-bottom: 4px; }

/* ── the date chooser ── */

.cc-dates { margin: 0; padding: 0; border: 0; min-width: 0; }

.cc-dates-legend {
	padding: 0;
	margin-bottom: 7px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var( --cat-muted );
}

.cc-date {
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 44px;
	padding: 8px 11px;
	margin-bottom: 5px;
	border: 1px solid var( --cat-line );
	border-radius: 9px;
	font-size: 13.5px;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}

.cc-date:hover { border-color: rgba( 4, 107, 210, .4 ); background: #fbfcfe; }

.cc-date.is-on { border-color: var( --cat-brand ); background: rgba( 4, 107, 210, .06 ); }

.cc-date-in { flex: none; width: 17px; height: 17px; accent-color: var( --cat-brand ); margin: 0; cursor: pointer; }

.cc-date-when { flex: 1; min-width: 0; font-weight: 600; color: var( --cat-ink ); }

.cc-date-price { flex: none; font-weight: 700; color: var( --cat-muted ); font-variant-numeric: tabular-nums; }

.cc-date.is-on .cc-date-price { color: var( --cat-brand ); }

/* ── price and actions, pinned to the bottom of every card ── */

.cc-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var( --cat-line ); }

/* ⚠ SCOPED, LIKE EVERY OTHER RULE HERE WHOSE SUBJECT IS A BARE ELEMENT THE THEME STYLES. This is
   a <p>, and text-align on a theme paragraph rule would take the centring straight back off —
   the fourth instance of that trap would be the one nobody checked. */
#ce-cat .cc-price {
	margin: 0 0 12px;
	font-size: 24px;
	font-weight: 800;
	color: var( --cat-deep );
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
	text-align: center;
}

#ce-cat .cc-price .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; color: inherit; }

.cc-actions { display: flex; gap: 8px; }

/* ⚠ SCOPED, BECAUSE ASTRA UNDERLINES EVERY LINK IN THE CONTENT AREA. Its inline rule
   `.ast-single-post .entry-content a { text-decoration: underline }` is two classes plus an
   element and beat a lone `.cc-buy`, so both card buttons rendered with their labels underlined
   — they look like buttons and must not read as links. An id beats any number of classes. */
#ce-cat .cc-buy,
#ce-cat .cc-info {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 16px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	text-align: center;
	transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.cc-buy { flex: 1 1 auto; background: var( --cat-brand ); color: #fff; }

.cc-buy:hover { background: var( --cat-deep ); color: #fff; }

.cc-info { flex: none; border: 1px solid var( --cat-line ); background: #fff; color: var( --cat-muted ); }

.cc-info:hover { border-color: var( --cat-brand ); color: var( --cat-brand ); }

/* ── focus, once, for everything that takes it ──
   :focus-visible so a mouse click never draws a ring, but every keyboard stop does. */

#ce-cat :focus-visible {
	outline: 2px solid var( --cat-brand );
	outline-offset: 2px;
	border-radius: 6px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect( 0 0 0 0 );
	white-space: nowrap;
	border: 0;
}

/* ─────────────────────────────────────────────── the mobile filter drawer */

.cat-fab,
.cat-scrim { display: none; }

@media ( max-width: 980px ) {
	.cat-shell { grid-template-columns: minmax( 0, 1fr ); gap: 0; }

	/* ⚠ OFF-CANVAS, NOT `display:none`. The rail still holds the search box and every category
	   button; hiding it would take filtering away from exactly the people with the least screen to
	   scan. It slides in over the grid instead. */
	.cat-side {
		position: fixed;
		inset: 0 auto 0 0;
		z-index: 10000;
		width: min( 320px, 86vw );
		max-height: 100%;
		overflow-y: auto;
		border-radius: 0;
		border-width: 0 1px 0 0;
		padding: 20px 20px calc( 20px + env( safe-area-inset-bottom, 0px ) );
		transform: translateX( -102% );
		/* ⚠ `visibility`, NOT TRANSFORM ALONE. A drawer moved off-canvas by a transform is still
		   rendered, still in the accessibility tree and still in the tab order — so a keyboard user
		   on a phone tabs out of the page into an invisible panel of filters. visibility:hidden
		   takes it out of all three. The 0s delay is what keeps the slide visible: on close it waits
		   for the transform to finish before hiding, on open it applies immediately. */
		visibility: hidden;
		transition: transform .24s ease, visibility 0s linear .24s;
		box-shadow: 0 0 40px rgba( 14, 39, 71, .3 );
	}

	.cat-side.is-open {
		transform: none;
		visibility: visible;
		transition: transform .24s ease, visibility 0s linear 0s;
	}

	.cat-side-close {
		display: inline-grid;
		place-items: center;
		width: 40px;
		height: 40px;
		border: 0;
		border-radius: 9px;
		background: var( --cat-tint );
		font-size: 24px;
		line-height: 1;
		color: var( --cat-deep );
		cursor: pointer;
	}

	.cat-scrim {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 9999;
		background: rgba( 14, 39, 71, .45 );
	}

		.cat-fab {
		display: inline-flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 1px;
		position: fixed;
		right: 16px;
		bottom: calc( 16px + env( safe-area-inset-bottom, 0px ) );
		z-index: 9998;
		min-height: 48px;
		padding: 12px 22px;
		border: 0;
		border-radius: 999px;
		background: var( --cat-deep );
		color: #fff;
		font: inherit;
		font-size: 14px;
		font-weight: 700;
		line-height: 1.2;
		text-align: left;
		cursor: pointer;
		box-shadow: 0 6px 24px rgba( 14, 39, 71, .34 );
	}

	/* The delivery in force, on the face of the button that hides the switch. */
	.cat-fab-now {
		font-size: 11.5px;
		font-weight: 600;
		letter-spacing: .02em;
		color: rgba( 255, 255, 255, .8 );
	}

}

@media ( max-width: 560px ) {
	#ce-cat { padding-inline: 16px; }

	.cat-grid { grid-template-columns: minmax( 0, 1fr ); gap: 18px; }

	.cat-tabs { display: flex; width: 100%; }

	.cat-tab { flex: 1; justify-content: center; padding-inline: 12px; font-size: 14px; }

	/* The band's own padding is set for a desktop measure; a phone needs the words nearer the top
	   and less blue showing under the panel that overlaps it. */
	.cat-band-in { padding-block: 1.9rem 5.6rem; }

	#ce-cat .cat-band-sub { font-size: 15.5px; }

	.cat-offers { padding: 16px 14px 18px; gap: 14px; }

	.cat-pkg { padding: 15px; }

	#ce-cat .cat-pkg-price { font-size: 26px; }

}

@media ( prefers-reduced-motion: reduce ) {
	#ce-cat *,
	#ce-cat *::before,
	#ce-cat *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }

	.cc:hover { transform: none; }
}
