/* Classes portal — catalog skin (/classes, /packages, /package, programme page).
   Same tokens as portal.css (the staff app's Navy Brand Frame): Inter, white
   1px-bordered cards, quiet grey rules, navy for actions and the list-page
   header band; code colours only on status badges. */

:root {
	--ct-ink: #111827;
	--ct-muted: #6b7280;
	--ct-faint: #9ca3af;
	--ct-line: #e5e7eb;
	--ct-line-soft: #f1f3f5;
	--ct-bg: #fafafa;
	--ct-card: #ffffff;
	--ct-navy: #13305c;
	--ct-navy-hover: #0f2649;
	--ct-link: #13305c;
	--ct-green-bg: #dcfce7;
	--ct-green-ink: #166534;
	--ct-amber-bg: #fef3c7;
	--ct-amber-ink: #92400e;
	--ct-red-bg: #fee2e2;
	--ct-red-ink: #991b1b;
	--ct-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.ct-body { background: var(--ct-bg); }
.ct-page h1, .ct-page h2, .ct-page h3, .page_content .ct-page h1, .page_content .ct-page h2 {
	font-family: var(--ct-font); font-weight: 700; color: var(--ct-ink); letter-spacing: -0.01em;
}
.ct-page a { color: var(--ct-navy); }
.ct-page a:hover { color: var(--ct-navy-hover); }
.page-breadcrumbs { display: none; }

/* ---------- page frame ---------- */
.ct-page { max-width: 1240px; margin: 0 auto; padding: 0 24px 40px; font-family: var(--ct-font); color: var(--ct-ink); }
.ct-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--ct-navy); color: #ffffff; border-radius: 12px; padding: 20px 24px; margin: 24px 0 22px; }
.ct-title, .ct-page .ct-head h1 { font-size: 24px; font-weight: 600; margin: 0; color: #ffffff; }
.ct-head h1, .ct-head h2, .ct-detail-title h1, .ct-detail-title h2, body .page_content .ct-head h1, body .page_content .ct-detail-title h1 { color: #ffffff !important; }
.ct-head-sub { color: #b6c2d6; font-size: 14px; margin: 2px 0 0; }
.ct-head-tools { display: flex; align-items: center; gap: 12px; }

/* segmented view toggle */
.ct-seg { display: inline-flex; background: rgba(255, 255, 255, 0.1); border-radius: 6px; overflow: hidden; }
.ct-seg button {
	border: none; background: transparent; padding: 7px 12px; font: inherit; font-size: 14px; font-weight: 500;
	color: #b6c2d6; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
}
.ct-seg button:hover { color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.ct-seg button svg { width: 16px; height: 16px; stroke: currentColor; }
.ct-seg button.active { background: #ffffff; color: var(--ct-navy); }
.ct-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 6px; border: 1px solid transparent; background: transparent; color: #b6c2d6; cursor: pointer; }
.ct-icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; }
.ct-icon-btn svg { width: 18px; height: 18px; stroke: currentColor; }

/* ---------- two-column layout: filter rail + results ---------- */
.ct-layout { display: flex; gap: 48px; align-items: flex-start; }
.ct-rail { width: 380px; flex: 0 0 380px; }
.ct-results { flex: 1 1 auto; min-width: 0; }

.ct-search { position: relative; margin-bottom: 14px; }
.ct-search input {
	width: 100%; height: 42px; border: 1px solid var(--ct-line); border-radius: 10px; background: #ffffff; padding: 0 12px 0 40px;
	font: inherit; font-size: 14px; color: var(--ct-ink);
}
.ct-search input:focus { outline: none; border-color: var(--ct-navy); box-shadow: 0 0 0 3px rgba(19, 48, 92, 0.12); }
.ct-search svg { position: absolute; left: 13px; top: 12px; width: 18px; height: 18px; stroke: var(--ct-faint); }

.ct-facet { border-bottom: 1px solid var(--ct-line); }
.ct-facet summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
	padding: 22px 0; font-size: 15px; font-weight: 500; color: var(--ct-ink);
}
.ct-facet summary::-webkit-details-marker { display: none; }
.ct-facet summary .ct-plus { width: 14px; height: 14px; stroke: var(--ct-faint); stroke-width: 2; flex: 0 0 auto; }
.ct-facet[open] summary .ct-plus .v { display: none; }
.ct-facet-count { margin-left: auto; margin-right: 14px; font-size: 12px; font-weight: 600; color: #ffffff; background: var(--ct-navy); border-radius: 999px; padding: 2px 8px; }
.ct-facet-count:empty { display: none; }
.ct-facet-body { padding: 0 0 18px; }
.ct-check { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--ct-ink); cursor: pointer; }
.ct-check input { width: 16px; height: 16px; accent-color: var(--ct-navy); margin: 0; }
.ct-facet-body input[type="date"] {
	height: 40px; border: 1px solid var(--ct-line); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 14px; color: var(--ct-ink); background: #ffffff; width: 100%;
}
.ct-clear { display: none; margin: 16px 0 0; font-size: 13px; color: var(--ct-link); background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.ct-clear.show { display: inline-block; }

/* ---------- schedule list ---------- */
.ct-day { margin-bottom: 26px; }
.ct-day-head { font-size: 14px; color: var(--ct-ink); padding: 0 0 12px; border-bottom: 1px solid var(--ct-line); margin-bottom: 8px; }
.ct-day-head b { font-weight: 600; }
.ct-day-head span { color: var(--ct-muted); margin-left: 6px; }
.ct-day-body { display: flex; gap: 20px; align-items: flex-start; }
.ct-date-chip {
	flex: 0 0 80px; width: 80px; text-align: center; border: 1px solid var(--ct-line); border-radius: 10px; background: #ffffff; overflow: hidden; margin-top: 8px;
	position: sticky; top: 16px;
}
.ct-date-chip .m { display: block; background: #f9fafb; color: var(--ct-muted); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; padding: 5px 0 4px; text-transform: uppercase; border-bottom: 1px solid var(--ct-line-soft); }
.ct-date-chip .d { display: block; font-size: 20px; font-weight: 600; padding: 6px 0 0; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ct-date-chip .y { display: block; font-size: 13px; color: var(--ct-muted); padding: 2px 0 8px; }
.ct-day-list { flex: 1 1 auto; min-width: 0; }

.ct-row { display: flex; gap: 14px; padding: 8px 0 16px; }
.ct-row-time { flex: 0 0 48px; width: 48px; font-size: 14px; font-weight: 500; color: var(--ct-ink); padding-top: 4px; }
.ct-thumb {
	flex: 0 0 112px; width: 112px; height: 224px; border-radius: 6px; overflow: hidden; background: var(--ct-navy);
	display: flex; align-items: center; justify-content: center; position: relative;
}
.ct-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; background: #ffffff; }
.ct-thumb img.is-logo { object-fit: contain; padding: 10px; background: #ffffff; }
.ct-thumb .ct-thumb-txt { position: absolute; top: 12px; left: 0; right: 0; text-align: center; color: #ffffff; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0 8px; line-height: 1.3; text-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.ct-thumb .ct-thumb-mark { color: rgba(255,255,255,0.92); font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.ct-thumb.is-sm { flex-basis: 96px; width: 96px; height: 96px; }
.ct-card-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ct-card-top { display: flex; align-items: flex-start; gap: 10px; }
.ct-card-title { font-size: 15px; font-weight: 600; color: var(--ct-ink); text-decoration: none; line-height: 1.35; flex: 1 1 auto; }
.ct-card-title:hover { text-decoration: underline; color: var(--ct-navy); }
.ct-card-title.blue { color: var(--ct-ink); }
.ct-badges { display: flex; gap: 6px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.ct-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; white-space: nowrap; line-height: 1.3; }
.ct-badge-green { background: var(--ct-green-bg); color: var(--ct-green-ink); }
.ct-badge-grey { background: #eef1f5; color: var(--ct-ink); }
.ct-badge-amber { background: var(--ct-amber-bg); color: var(--ct-amber-ink); }
.ct-badge-red { background: var(--ct-red-bg); color: var(--ct-red-ink); }
.ct-card-desc { font-size: 14px; color: var(--ct-ink); margin: 6px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; font-size: 14px; color: var(--ct-ink); }
.ct-meta span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ct-meta svg { width: 15px; height: 15px; stroke: var(--ct-faint); flex: 0 0 auto; }
.ct-card-foot {
	margin-top: auto; padding-top: 18px;
}
.ct-price-bar {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f1f3f6; border-radius: 8px; padding: 9px 10px 9px 12px; font-size: 14px; color: var(--ct-ink);
}
.ct-price-bar b { font-weight: 700; }
.ct-price-bar .sep { color: var(--ct-faint); margin: 0 4px; }
.ct-btn {
	display: inline-flex; align-items: center; justify-content: center; background: var(--ct-navy); color: #ffffff !important; text-decoration: none !important;
	font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 7px; border: none; cursor: pointer; white-space: nowrap; font-family: inherit;
}
.ct-btn:hover { background: var(--ct-navy-hover); }
.ct-btn-lg { width: 100%; padding: 14px 18px; font-size: 16px; border-radius: 8px; }
.ct-btn-ghost { background: #ffffff; color: var(--ct-ink) !important; border: 1px solid var(--ct-line); }
.ct-btn-ghost:hover { background: var(--ct-line-soft); }

/* ---------- grid view ---------- */
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.ct-gcard { background: #ffffff; border: 1px solid var(--ct-line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.ct-gcard .ct-gimg { height: 150px; background: var(--ct-navy); position: relative; display: flex; align-items: center; justify-content: center; }
.ct-gcard .ct-gimg img { width: 100%; height: 100%; object-fit: contain; display: block; background: #ffffff; padding: 8px; box-sizing: border-box; }
.ct-gcard .ct-gimg .ct-thumb-mark { color: rgba(255,255,255,0.92); font-size: 44px; font-weight: 800; }
.ct-gcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1 1 auto; }
.ct-gcard .ct-meta { margin-top: 10px; gap: 6px 16px; font-size: 13px; }
.ct-gcard .ct-card-desc { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; color: var(--ct-muted); }
.ct-gcard .ct-card-foot { padding-top: 14px; }

/* ---------- empty ---------- */
.ct-empty { border: 1px dashed var(--ct-line); border-radius: 12px; background: #ffffff; padding: 40px 20px; text-align: center; color: var(--ct-muted); font-size: 14px; }
.ct-empty b { display: block; color: var(--ct-ink); font-size: 16px; margin-bottom: 6px; }

/* ---------- packages ---------- */
.ct-sec { margin: 0 0 34px; }
.ct-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0 16px; }
.ct-sec-title { font-size: 18px; font-weight: 600; margin: 0; display: inline-flex; align-items: center; gap: 8px; color: var(--ct-ink); text-decoration: none; }
.ct-sec-title svg { width: 14px; height: 14px; stroke: var(--ct-faint); }
.ct-sec-title:hover { color: var(--ct-navy); }
.ct-sec-more { font-size: 14px; color: var(--ct-muted); text-decoration: none; }
.ct-sec-more:hover { color: var(--ct-ink); text-decoration: underline; }
.ct-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ct-pcard { background: #ffffff; border: 1px solid var(--ct-line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none !important; color: inherit; transition: box-shadow 0.15s ease; }
.ct-pcard:hover { box-shadow: 0 6px 20px rgba(17, 24, 39, 0.08); }
.ct-pcard-name { padding: 14px 16px 12px; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--ct-line-soft); color: var(--ct-ink) !important; }
.ct-pcard-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: 14px; color: var(--ct-ink); }
.ct-pcard-row + .ct-pcard-row { border-top: 1px solid var(--ct-line-soft); }
.ct-pcard-row.lines { flex-direction: column; align-items: stretch; gap: 8px; }
.ct-pcard-row.lines span { display: inline-flex; align-items: flex-start; gap: 10px; }
.ct-pcard-row svg { width: 16px; height: 16px; stroke: var(--ct-faint); flex: 0 0 auto; margin-top: 2px; }
.ct-pico { width: 40px; height: 40px; border-radius: 8px; background: var(--ct-navy); flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: #ffffff; font-weight: 800; font-size: 16px; overflow: hidden; }
.ct-pico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-pcard-body { flex: 1 1 auto; }
.ct-pcard-price { background: #f1f3f6; padding: 14px 16px; font-size: 15px; font-weight: 700; }

/* ---------- package detail ---------- */
.ct-detail { display: flex; gap: 0; align-items: flex-start; margin-top: 26px; }
.ct-detail-main { flex: 1 1 auto; min-width: 0; padding-right: 28px; }
.ct-detail-side { width: 400px; flex: 0 0 400px; border-left: 1px solid var(--ct-line); padding-left: 28px; }
.ct-detail-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 20px; background: var(--ct-navy); color: #ffffff; border-radius: 12px; padding: 20px 24px; }
.ct-detail-title h1, .page_content .ct-detail-title h1 { font-size: 24px; font-weight: 600; margin: 0; color: #ffffff; }
.ct-detail-title .ct-detail-sub { color: #b6c2d6; font-size: 14px; margin: 2px 0 0; }
.ct-stats { display: flex; gap: 12px; background: #eef1f5; border-radius: 10px; padding: 12px; margin-bottom: 26px; }
.ct-stat { flex: 1 1 0; display: flex; align-items: center; gap: 12px; padding: 6px 8px; font-size: 14px; }
.ct-stat-ic { width: 38px; height: 38px; border-radius: 8px; background: #ffffff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ct-stat-ic svg { width: 18px; height: 18px; stroke: var(--ct-muted); }
.ct-stat small { display: block; font-size: 13px; color: var(--ct-muted); }
.ct-stat b { font-weight: 600; }
.ct-detail-cols { display: flex; gap: 40px; align-items: flex-start; }
.ct-detail-cols > div { flex: 1 1 0; min-width: 0; }
.ct-detail-cols > div.narrow { flex: 0 0 200px; }
.ct-h3 { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.ct-incl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 20px; }
.ct-incl-item { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.ct-incl-item .ct-pico { width: 44px; height: 44px; }
.ct-incl-item small { display: flex; align-items: center; gap: 6px; color: var(--ct-muted); font-size: 13px; margin-top: 3px; }
.ct-incl-item small svg { width: 14px; height: 14px; stroke: var(--ct-faint); }
.ct-contact a { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0; text-decoration: none; color: var(--ct-link); }
.ct-contact a svg { width: 17px; height: 17px; stroke: currentColor; flex: 0 0 auto; }
.ct-contact-outlet { font-size: 13px; color: var(--ct-muted); margin: 10px 0 2px; }
.ct-fees { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 30px; }
.ct-fee { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.ct-fee .ct-stat-ic { border: 1px solid var(--ct-line); }
.ct-fee small { display: block; color: var(--ct-muted); font-size: 13px; margin-top: 2px; }
.ct-about { margin-top: 32px; font-size: 14px; line-height: 1.6; color: var(--ct-ink); }
.ct-about img { max-width: 100%; height: auto; }

.ct-side-title { font-size: 18px; font-weight: 600; margin: 4px 0 18px; }
.ct-side-label { font-size: 14px; font-weight: 500; margin: 0 0 10px; }
.ct-opts { border: 1px solid var(--ct-line); border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
.ct-opt { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 16px; cursor: pointer; border-top: 1px solid var(--ct-line-soft); background: #ffffff; text-decoration: none !important; color: inherit; }
.ct-opt:first-child { border-top: none; }
.ct-opt.active { background: #f9fafb; box-shadow: inset 3px 0 0 var(--ct-navy); }
.ct-opt-name { font-size: 15px; font-weight: 500; color: var(--ct-ink); }
.ct-opt.active .ct-opt-name { color: var(--ct-navy); }
.ct-opt small { display: block; font-size: 13px; color: var(--ct-muted); margin-top: 2px; }
.ct-opt-price { font-size: 15px; font-weight: 600; color: var(--ct-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ct-opt.is-fee { background: #f9fafb; }
.ct-opt.is-fee .ct-opt-name { color: var(--ct-ink); font-weight: 500; }
.ct-side-field { margin: 0 0 16px; }
.ct-side-field label { display: block; font-size: 13px; color: var(--ct-muted); margin-bottom: 6px; }
.ct-side-field select { width: 100%; height: 42px; border: 1px solid var(--ct-line); border-radius: 8px; background: #ffffff; padding: 0 10px; font: inherit; font-size: 14px; color: var(--ct-ink); }
.ct-side-rule { border-top: 1px solid var(--ct-line); margin: 22px 0; }
.ct-side-total { display: flex; justify-content: space-between; font-size: 14px; color: var(--ct-muted); margin-bottom: 12px; }
.ct-side-total b { color: var(--ct-ink); font-size: 16px; }
.ct-crumb { font-size: 13px; color: var(--ct-muted); padding-top: 20px; }
.ct-crumb a { color: var(--ct-muted); text-decoration: none; }
.ct-crumb a:hover { color: var(--ct-ink); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
	.ct-layout { gap: 28px; }
	.ct-rail { width: 280px; flex-basis: 280px; }
	.ct-detail-side { width: 340px; flex-basis: 340px; }
}
@media (max-width: 820px) {
	.ct-layout { flex-direction: column; }
	.ct-rail { width: 100%; flex-basis: auto; }
	.ct-facet summary { padding: 14px 0; }
	.ct-day-body { gap: 12px; }
	.ct-date-chip { display: none; }
	.ct-row { flex-wrap: wrap; }
	.ct-row-time { flex-basis: 100%; width: auto; padding-top: 0; }
	.ct-thumb { height: 150px; flex-basis: 96px; width: 96px; }
	.ct-card-body { flex-basis: calc(100% - 110px); }
	.ct-card-top { flex-direction: column; }
	.ct-badges { justify-content: flex-start; }
	.ct-card-desc { white-space: normal; }
	.ct-price-bar { flex-wrap: wrap; }
	.ct-detail { flex-direction: column; }
	.ct-detail-main { padding-right: 0; }
	.ct-detail-side { width: 100%; flex-basis: auto; border-left: none; padding-left: 0; margin-top: 30px; }
	.ct-detail-cols { flex-direction: column; gap: 24px; }
	.ct-detail-cols > div.narrow { flex-basis: auto; }
	.ct-page { padding-left: 16px; padding-right: 16px; }
	.ct-head { padding: 16px 18px; border-radius: 10px; margin-top: 16px; }
	.ct-detail-title { padding: 16px 18px; border-radius: 10px; }
	.ct-detail-title h1 { font-size: 20px; }
	.ct-stats { flex-direction: column; gap: 4px; }
}
@media (max-width: 480px) {
	.ct-thumb { display: none; }
	.ct-card-body { flex-basis: 100%; }
	.ct-title { font-size: 22px; }
}
