/* J3 Course Finder — [j3_course_finder]
   Everything is scoped to .j3cf so it never touches J3 Course Pages (.j3cp) or the theme.
   Fonts are inherited from the theme, the same as J3 Course Pages.
   Colours use the J3 Course Pages variables when that plugin is active (Settings & setup), with these fallbacks. */
/* Priority: every selector starts with body:not(#j3cf-boost). That matches every page and adds the
   weight of one ID, so these styles win over Elementor, Elementor kit and theme rules without !important.
   To override one of them in your own CSS, start your selector the same way. */
body:not(#j3cf-boost) .j3cf {
	--j3cf-primary: var(--j3-primary, #0b5ed7);
	--j3cf-dark: var(--j3-dark, #0f1c2e);
	--j3cf-sale: var(--j3-sale, #dc2626);
	--j3cf-text: #1f2937;
	--j3cf-muted: #64748b;
	--j3cf-line: #e5e9f0;
	--j3cf-soft: #f5f7fb;
	--j3cf-chip: color-mix(in srgb, var(--j3cf-primary) 10%, #fff);
	--j3cf-radius: 12px;
	color: var(--j3cf-text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.55;
}
body:not(#j3cf-boost) .j3cf *, body:not(#j3cf-boost) .j3cf *::before, body:not(#j3cf-boost) .j3cf *::after { box-sizing: border-box; }
body:not(#j3cf-boost) .j3cf h2, body:not(#j3cf-boost) .j3cf h3, body:not(#j3cf-boost) .j3cf h4 { color: var(--j3cf-dark); line-height: 1.25; margin: 0; font-weight: 700; letter-spacing: -.01em; font-family: inherit; }
body:not(#j3cf-boost) .j3cf p { margin: 0; }
body:not(#j3cf-boost) .j3cf a { text-decoration: none; }
body:not(#j3cf-boost) .j3cf button, body:not(#j3cf-boost) .j3cf input, body:not(#j3cf-boost) .j3cf select { font: inherit; }
body:not(#j3cf-boost) .j3cf [hidden] { display: none !important; }
body:not(#j3cf-boost) .j3cf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body:not(#j3cf-boost) .j3cf :focus-visible { outline: 0px solid var(--j3cf-primary); outline-offset: 2px; }
body:not(#j3cf-boost) .j3cf-title { font-size: 28px; margin-bottom: 14px !important; }

/* Search */
body:not(#j3cf-boost) .j3cf-search { display: flex; align-items: center; gap: 10px; max-width: 640px; margin-bottom: 20px; padding: 0 14px; border: 1.5px solid var(--j3cf-line); border-radius: 10px; background: #fff; color: var(--j3cf-muted); }
body:not(#j3cf-boost) .j3cf-search:focus-within { border-color: var(--j3cf-primary); }
body:not(#j3cf-boost) .j3cf-search input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: 0; padding: 12px 0 !important; color: var(--j3cf-text); min-height: 0; }

/* Layout */
body:not(#j3cf-boost) .j3cf-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
body:not(#j3cf-boost) .j3cf-main { min-width: 0; }

/* Sidebar */
body:not(#j3cf-boost) .j3cf-side { background: #fff; border: 1px solid var(--j3cf-line); border-radius: var(--j3cf-radius); position: sticky; top: 24px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; }
body.admin-bar:not(#j3cf-boost) .j3cf-side { top: 56px; max-height: calc(100vh - 80px); }
body:not(#j3cf-boost) .j3cf-side__head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--j3cf-line); }
body:not(#j3cf-boost) .j3cf-side__title { font-size: 16px !important; flex: 1; }
body:not(#j3cf-boost) .j3cf-x { display: none; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--j3cf-muted); cursor: pointer; padding: 0 4px; }
body:not(#j3cf-boost) .j3cf-groups { overflow: auto; overscroll-behavior: contain; }
body:not(#j3cf-boost) .j3cf-grp { border-bottom: 1px solid var(--j3cf-line); }
body:not(#j3cf-boost) .j3cf-grp:last-child { border-bottom: 0; }
body:not(#j3cf-boost) .j3cf-grp > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--j3cf-dark); }
body:not(#j3cf-boost) .j3cf-grp > summary::-webkit-details-marker { display: none; }
body:not(#j3cf-boost) .j3cf-grp > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--j3cf-muted); border-bottom: 2px solid var(--j3cf-muted); transform: rotate(45deg); transition: transform .15s; flex: none; }
body:not(#j3cf-boost) .j3cf-grp[open] > summary::after { transform: rotate(-135deg); }
body:not(#j3cf-boost) .j3cf-nsel { font-size: 11px; background: var(--j3cf-primary); color: #fff; border-radius: 999px; padding: 1px 7px; margin-left: 6px; letter-spacing: 0; }
body:not(#j3cf-boost) .j3cf-grp__body { padding: 0 16px 12px; display: flex; flex-direction: column; gap: 2px; }
body:not(#j3cf-boost) .j3cf-sub { font-size: 12px; color: var(--j3cf-muted); font-weight: 700; margin: 8px 0 2px; }
body:not(#j3cf-boost) .j3cf-sub:first-child { margin-top: 0; }
body:not(#j3cf-boost) .j3cf-chk { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: 14px; cursor: pointer; margin: 0; font-weight: 400; color: var(--j3cf-text); }
body:not(#j3cf-boost) .j3cf-chk input { accent-color: var(--j3cf-primary); width: 16px; height: 16px; margin: 0; flex: none; }
body:not(#j3cf-boost) .j3cf-chk span { flex: 1; min-width: 0; }
body:not(#j3cf-boost) .j3cf-chk em { font-style: normal; font-size: 12px; color: var(--j3cf-muted); font-variant-numeric: tabular-nums; }
body:not(#j3cf-boost) .j3cf-chk.is-off { opacity: .45; }
body:not(#j3cf-boost) .j3cf-chk.is-all span { font-weight: 600; }
body:not(#j3cf-boost) .j3cf-pills { display: flex; flex-wrap: wrap; gap: 6px; }
body:not(#j3cf-boost) .j3cf-pills--months { display: grid; grid-template-columns: repeat(4, 1fr); }
body:not(#j3cf-boost) .j3cf-pill { border: 1.5px solid var(--j3cf-line); background: #fff; color: var(--j3cf-text); border-radius: 8px; padding: 5px 10px; font-size: 13px; font-weight: 600; cursor: pointer; line-height: 1.3; }
body:not(#j3cf-boost) .j3cf-pills--months .j3cf-pill { padding: 6px 0; }
body:not(#j3cf-boost) .j3cf-pill[aria-pressed="true"] { border-color: var(--j3cf-primary); background: var(--j3cf-chip); color: var(--j3cf-primary); }
body:not(#j3cf-boost) .j3cf-pill:disabled { opacity: .4; cursor: default; }
body:not(#j3cf-boost) .j3cf-select { width: 100%; border: 1px solid var(--j3cf-line); border-radius: 8px; padding: 8px 10px; background: #fff; color: var(--j3cf-text); }
body:not(#j3cf-boost) .j3cf-side__foot { display: none; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--j3cf-line); }
body:not(#j3cf-boost) .j3cf.is-narrow .j3cf-side__foot { display: flex; }
body:not(#j3cf-boost) .j3cf-side__foot .j3cf-btn--primary { flex: 1; }

/* Buttons */
body:not(#j3cf-boost) .j3cf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; border: 1.5px solid transparent; padding: 10px 16px; font-weight: 600; font-size: 14px; line-height: 1.2; cursor: pointer; transition: filter .15s, border-color .15s; text-decoration: none !important; }
body:not(#j3cf-boost) .j3cf-btn--primary { background: var(--j3cf-primary); color: #fff !important; }
body:not(#j3cf-boost) .j3cf-btn--primary:hover { filter: brightness(.92); }
body:not(#j3cf-boost) .j3cf-btn--ghost { background: #fff; border-color: var(--j3cf-line); color: var(--j3cf-dark) !important; }
body:not(#j3cf-boost) .j3cf-btn--ghost:hover { border-color: var(--j3cf-dark); }
body:not(#j3cf-boost) .j3cf-btn--sm { padding: 7px 12px; font-size: 13px; }
body:not(#j3cf-boost) .j3cf-link { background: none; border: 0; padding: 0; color: var(--j3cf-primary); font-weight: 600; font-size: 13.5px; cursor: pointer; }
body:not(#j3cf-boost) .j3cf-link:hover { text-decoration: underline; }

/* Toolbar */
body:not(#j3cf-boost) .j3cf-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
body:not(#j3cf-boost) .j3cf-count { font-size: 14px; color: var(--j3cf-muted); }
body:not(#j3cf-boost) .j3cf-count b { color: var(--j3cf-dark); }
body:not(#j3cf-boost) .j3cf-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
body:not(#j3cf-boost) .j3cf-sortl { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--j3cf-muted); margin: 0; }
body:not(#j3cf-boost) .j3cf-sortl select { border: 1px solid var(--j3cf-line); border-radius: 8px; padding: 7px 28px 7px 10px; background-color: #fff; color: var(--j3cf-text); min-height: 0; width: auto; }
body:not(#j3cf-boost) .j3cf-seg { display: inline-flex; border: 1px solid var(--j3cf-line); border-radius: 8px; overflow: hidden; background: #fff; }
body:not(#j3cf-boost) .j3cf-seg button { border: 0; background: none; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--j3cf-muted); border-radius: 0; }
body:not(#j3cf-boost) .j3cf-seg button[aria-pressed="true"] { background: var(--j3cf-dark); color: #fff; }
body:not(#j3cf-boost) .j3cf-open { display: none; }
body:not(#j3cf-boost) .j3cf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
body:not(#j3cf-boost) .j3cf-chips:empty { display: none; }
body:not(#j3cf-boost) .j3cf-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--j3cf-chip); color: var(--j3cf-primary); border: 0; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
body:not(#j3cf-boost) .j3cf-chip::after { content: "×"; font-size: 15px; line-height: 1; }

/* List (table) */
body:not(#j3cf-boost) .j3cf-tbl-wrap { background: #fff; border: 1px solid var(--j3cf-line); border-radius: var(--j3cf-radius); overflow-x: auto; }
body:not(#j3cf-boost) .j3cf-tbl { width: 100%; border-collapse: collapse; min-width: 720px; margin: 0; border: 0; }
body:not(#j3cf-boost) .j3cf-tbl th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--j3cf-muted); font-weight: 700; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--j3cf-line); background: var(--j3cf-soft); white-space: nowrap; }
body:not(#j3cf-boost) .j3cf-tbl th.is-r { text-align: right; }
body:not(#j3cf-boost) .j3cf-tbl td { padding: 14px 16px; border: 0; border-bottom: 1px solid var(--j3cf-line); vertical-align: top; font-size: 14px; background: transparent; }
body:not(#j3cf-boost) .j3cf-tbl tr:last-child td { border-bottom: 0; }
body:not(#j3cf-boost) .j3cf-tbl tbody tr:hover td { background: var(--j3cf-soft); }
body:not(#j3cf-boost) .j3cf-ct { display: flex; gap: 14px; align-items: flex-start; }
body:not(#j3cf-boost) .j3cf-ct > div { min-width: 0; }
body:not(#j3cf-boost) .j3cf-ct__t { font-weight: 700; color: var(--j3cf-dark) !important; font-size: 15px; }
body:not(#j3cf-boost) .j3cf-ct__t:hover { color: var(--j3cf-primary) !important; }
body:not(#j3cf-boost) .j3cf-ct small { display: block; color: var(--j3cf-muted); font-size: 13px; margin-top: 2px; }
body:not(#j3cf-boost) .j3cf-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
body:not(#j3cf-boost) .j3cf-tag { font-size: 11.5px; font-weight: 600; border-radius: 4px; padding: 1px 7px; background: var(--j3cf-soft); border: 1px solid var(--j3cf-line); color: var(--j3cf-muted); }
body:not(#j3cf-boost) .j3cf-thumb { flex: none; display: block; width: 96px; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 8px; overflow: hidden; background: var(--j3cf-soft); }
body:not(#j3cf-boost) .j3cf-thumb img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; margin: 0; border-radius: 0; }
body:not(#j3cf-boost) .j3cf-when { min-width: 9em; max-width: 15em; font-variant-numeric: tabular-nums; }
body:not(#j3cf-boost) .j3cf-when b { display: block; color: var(--j3cf-dark); }
body:not(#j3cf-boost) .j3cf-when span { color: var(--j3cf-muted); font-size: 13px; }
body:not(#j3cf-boost) .j3cf-venue { display: flex; gap: 6px; align-items: flex-start; }
body:not(#j3cf-boost) .j3cf-venue svg { flex: none; color: var(--j3cf-primary); margin-top: 3px; }
body:not(#j3cf-boost) .j3cf-venue b { display: block; color: var(--j3cf-dark); font-weight: 600; }
body:not(#j3cf-boost) .j3cf-venue small { display: block; color: var(--j3cf-muted); font-size: 12.5px; line-height: 1.4; max-width: 220px; }
body:not(#j3cf-boost) .j3cf-map { display: inline-flex; white-space: nowrap; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--j3cf-primary) !important; margin-top: 3px; }
body:not(#j3cf-boost) .j3cf-map:hover { text-decoration: underline !important; }
body:not(#j3cf-boost) .j3cf-fee { white-space: nowrap; font-weight: 700; color: var(--j3cf-dark); font-variant-numeric: tabular-nums; text-align: right; }
body:not(#j3cf-boost) .j3cf-buy { margin-top: 8px; display: flex; justify-content: flex-end; }
body:not(#j3cf-boost) .j3cf .j3cf-cartbtn { text-decoration: none; box-shadow: none; }
body:not(#j3cf-boost) .j3cf.is-small .j3cf-buy { justify-content: flex-start; }
body:not(#j3cf-boost) .j3cf-card__acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
body:not(#j3cf-boost) .j3cf-fee del { display: block; font-weight: 400; color: var(--j3cf-muted); font-size: 12.5px; opacity: 1; }
body:not(#j3cf-boost) .j3cf-fee ins { text-decoration: none; color: var(--j3cf-sale); background: none; }
body:not(#j3cf-boost) .j3cf-fee .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body:not(#j3cf-boost) .j3cf-dash { color: var(--j3cf-muted); }

/* Grid (cards) */
body:not(#j3cf-boost) .j3cf-grid { display: grid; grid-template-columns: repeat(var(--j3cf-cols, 3), minmax(0, 1fr)); gap: 16px; }
body:not(#j3cf-boost) .j3cf-card { background: #fff; border: 1px solid var(--j3cf-line); border-radius: var(--j3cf-radius); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s, transform .15s; }
body:not(#j3cf-boost) .j3cf-card:hover { box-shadow: 0 10px 30px rgba(15, 28, 46, .12); transform: translateY(-2px); }
body:not(#j3cf-boost) .j3cf-card .j3cf-thumb { width: 100%; aspect-ratio: 16 / 9; border-radius: 0; }
body:not(#j3cf-boost) .j3cf-card__body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
body:not(#j3cf-boost) .j3cf-card__cat { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--j3cf-primary); font-weight: 700; }
body:not(#j3cf-boost) .j3cf-card h4 { font-size: 16px; }
body:not(#j3cf-boost) .j3cf-card h4 a { color: var(--j3cf-dark) !important; }
body:not(#j3cf-boost) .j3cf-card h4 a:hover { color: var(--j3cf-primary) !important; }
body:not(#j3cf-boost) .j3cf-card dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; font-size: 13.5px; }
body:not(#j3cf-boost) .j3cf-card dt { color: var(--j3cf-muted); font-weight: 400; margin: 0; }
body:not(#j3cf-boost) .j3cf-card dd { margin: 0; color: var(--j3cf-dark); font-weight: 500; }
body:not(#j3cf-boost) .j3cf-card .j3cf-venue svg { display: none; }
body:not(#j3cf-boost) .j3cf-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--j3cf-line); }
body:not(#j3cf-boost) .j3cf-card .j3cf-fee { text-align: left; }
body:not(#j3cf-boost) .j3cf-opts { display: block; text-align: right; font-size: 12px; color: var(--j3cf-muted); font-weight: 400; white-space: nowrap; }
body:not(#j3cf-boost) .j3cf-card .j3cf-opts { text-align: left; }

body:not(#j3cf-boost) .j3cf-empty { background: #fff; border: 1px solid var(--j3cf-line); border-radius: var(--j3cf-radius); padding: 40px 16px; text-align: center; color: var(--j3cf-muted); }

/* Pager */
body:not(#j3cf-boost) .j3cf-pager { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
body:not(#j3cf-boost) .j3cf-pager button { min-width: 38px; height: 38px; border: 1px solid var(--j3cf-line); background: #fff; color: var(--j3cf-dark); border-radius: 8px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; padding: 0 10px; }
body:not(#j3cf-boost) .j3cf-pager button[aria-current="page"] { background: var(--j3cf-primary); border-color: var(--j3cf-primary); color: #fff; }
body:not(#j3cf-boost) .j3cf-pager button:disabled { opacity: .4; cursor: default; }
body:not(#j3cf-boost) .j3cf-pager span { align-self: center; color: var(--j3cf-muted); padding: 0 2px; }

/* Responsive by the finder's own width (set by j3cf.js), so it also fits narrow page columns:
   .is-mid < 1024px, .is-narrow < 860px (filters slide in from the left), .is-small < 700px (list rows stack), .is-xs < 520px (one card per row) */
body:not(#j3cf-boost) .j3cf.is-mid .j3cf-grid { grid-template-columns: repeat(min(var(--j3cf-cols, 3), 2), minmax(0, 1fr)); }
body:not(#j3cf-boost) .j3cf.is-narrow .j3cf-layout { grid-template-columns: minmax(0, 1fr); }
body:not(#j3cf-boost) .j3cf.is-narrow .j3cf-open { display: inline-flex; }
body:not(#j3cf-boost) .j3cf.is-narrow .j3cf-x { display: block; }
body:not(#j3cf-boost) .j3cf.is-narrow .j3cf-side { position: fixed; inset: 0 auto 0 0; top: 0 !important; width: min(340px, 90vw); max-height: none !important; height: 100%; border-radius: 0; z-index: 99999; transform: translateX(-105%); transition: transform .2s; visibility: hidden; }
body:not(#j3cf-boost) .j3cf.is-narrow .j3cf-side.is-open { transform: none; visibility: visible; box-shadow: 0 0 0 100vmax rgba(10, 15, 25, .45); }
body:not(#j3cf-boost) .j3cf.is-narrow .j3cf-groups { flex: 1; }
body:not(#j3cf-boost) .j3cf.is-small .j3cf-ct .j3cf-thumb { width: 72px; }
/* Table rows become stacked blocks: title, then date · venue · fee */
body:not(#j3cf-boost) .j3cf.is-small .j3cf-tbl-wrap { overflow: visible; }
body:not(#j3cf-boost) .j3cf.is-small .j3cf-tbl, body:not(#j3cf-boost) .j3cf.is-small .j3cf-tbl tbody { display: block; min-width: 0; }
body:not(#j3cf-boost) .j3cf.is-small .j3cf-tbl thead { display: none; }
body:not(#j3cf-boost) .j3cf.is-small .j3cf-tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 16px; border-bottom: 1px solid var(--j3cf-line); }
body:not(#j3cf-boost) .j3cf.is-small .j3cf-tbl tr:last-child { border-bottom: 0; }
body:not(#j3cf-boost) .j3cf.is-small .j3cf-tbl td { display: block; padding: 0; border: 0 !important; }
body:not(#j3cf-boost) .j3cf.is-small .j3cf-tbl td:first-child { grid-column: 1 / -1; }
body:not(#j3cf-boost) .j3cf.is-small .j3cf-tbl td:nth-child(3) { grid-column: 1; grid-row: 3; }
body:not(#j3cf-boost) .j3cf.is-small .j3cf-tbl td:nth-child(4) { grid-column: 2; grid-row: 2 / span 2; align-self: start; }
body:not(#j3cf-boost) .j3cf.is-small .j3cf-tbl tbody tr:hover td { background: transparent; }
body:not(#j3cf-boost) .j3cf.is-small .j3cf-sortl span { display: none; }
body:not(#j3cf-boost) .j3cf.is-xs .j3cf-grid { grid-template-columns: minmax(0, 1fr); }
@media (prefers-reduced-motion: reduce) {
	body:not(#j3cf-boost) .j3cf *, body:not(#j3cf-boost) .j3cf-side { transition: none !important; }
}
