/* ============================================================
 * XI Class Admission — Frontend Styles
 * Theme-isolated, mobile-first, fully responsive.
 * ============================================================ */

/* ---------- 1. Standalone body reset ---------- */
html.xca-standalone-html,
body.xca-standalone {
	margin: 0 !important;
	padding: 0 !important;
	background: var(--xca-bg, #f3f7fb) !important;
}

body.xca-standalone {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
		"Helvetica Neue", "SolaimanLipi", "Noto Sans Bengali", Arial, sans-serif;
	color: var(--xca-text, #15233b);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
}

/* ---------- 2. Scope reset under .xca-wrap (defensive against theme leakage) ---------- */
.xca-wrap,
.xca-wrap *,
.xca-wrap *::before,
.xca-wrap *::after {
	box-sizing: border-box;
}

.xca-wrap {
	--xca-bg: #f3f7fb;
	--xca-surface: #ffffff;
	--xca-text: #15233b;
	--xca-muted: #5d6c85;
	--xca-border: #dde6f1;
	--xca-success: #2e7d32;
	--xca-warning: #ef6c00;
	--xca-danger: #c62828;
	--xca-info: #1565c0;

	/* These get overridden by inline <style id="xca-vars"> per-app */
	--xca-primary: #0a4d8c;
	--xca-primary-dark: #083a6c;
	--xca-primary-tint: #e8f0f8;
	--xca-secondary: #1e88e5;
	--xca-accent: #ffb300;

	--xca-radius: 10px;
	--xca-radius-sm: 6px;
	--xca-shadow-sm: 0 1px 2px rgba(15, 35, 70, 0.06);
	--xca-shadow: 0 4px 16px rgba(15, 35, 70, 0.07);
	--xca-shadow-lg: 0 12px 32px rgba(15, 35, 70, 0.10);

	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	background: var(--xca-bg);
	color: var(--xca-text);
	/* No overflow-x:hidden — it breaks position:sticky for header & TOC.
	   Tables that need to scroll horizontally are wrapped in .xca-table-wrap. */
}

.xca-wrap a {
	color: var(--xca-primary);
	text-decoration: none;
	transition: color .15s ease;
}
.xca-wrap a:hover {
	color: var(--xca-primary-dark);
	text-decoration: underline;
}
.xca-wrap img { max-width: 100%; height: auto; display: block; }
.xca-wrap p { margin: 0 0 12px; }
.xca-wrap h1, .xca-wrap h2, .xca-wrap h3, .xca-wrap h4, .xca-wrap h5 {
	color: var(--xca-primary-dark);
	margin: 0 0 12px;
	line-height: 1.25;
	font-weight: 700;
}
.xca-wrap ul, .xca-wrap ol { margin: 0 0 12px; padding-left: 22px; }
.xca-wrap li { margin-bottom: 6px; }
.xca-wrap table { border-collapse: collapse; width: 100%; }

/* ---------- 3. Skip link ---------- */
.xca-skip {
	position: absolute;
	left: -9999px;
	background: var(--xca-primary);
	color: #fff;
	padding: 10px 16px;
	z-index: 9999;
	border-radius: 0 0 6px 0;
}
.xca-skip:focus { left: 0; top: 0; }

/* ---------- 4. Container ---------- */
.xca-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- 5. Header ---------- */
.xca-header {
	background: linear-gradient(135deg, var(--xca-primary) 0%, var(--xca-secondary) 100%);
	color: #fff;
	box-shadow: var(--xca-shadow-sm);
	position: relative;
	z-index: 50;
}
.xca-header.xca-sticky {
	position: sticky;
	top: 0;
	z-index: 50;
}
.xca-header-inner {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 14px 24px;
	flex-wrap: nowrap;
}
.xca-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #fff !important;
	text-decoration: none !important;
	flex: 0 0 auto;
	min-width: 0;
}
.xca-brand:hover { opacity: .92; }
.xca-logo {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	background: rgba(255,255,255,0.12);
	flex: 0 0 44px;
}
.xca-logo-text {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,0.16);
	color: #fff;
	font-weight: 800;
	font-size: 15px;
	letter-spacing: .04em;
	border: 1px solid rgba(255,255,255,0.28);
}
.xca-brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	min-width: 0;
}
.xca-title {
	font-weight: 700;
	font-size: 17px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.xca-tagline {
	font-size: 12px;
	opacity: .88;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.xca-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.xca-nav a {
	color: #fff !important;
	text-decoration: none !important;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: background .15s ease;
}
.xca-nav a:hover { background: rgba(255,255,255,0.14); }
.xca-nav .xca-cta {
	background: var(--xca-accent);
	color: #1a1a1a !important;
	font-weight: 700;
	padding: 8px 14px;
}
.xca-nav .xca-cta:hover { background: #ffc933; }
.xca-parent-link {
	margin-left: 6px;
	background: rgba(255,255,255,0.14);
	border: 1px solid rgba(255,255,255,0.35);
	font-weight: 600 !important;
}
.xca-parent-link:hover { background: rgba(255,255,255,0.22); }

.xca-menu-toggle {
	display: none;
	background: transparent;
	border: 1px solid rgba(255,255,255,0.4);
	border-radius: 6px;
	padding: 8px 10px;
	cursor: pointer;
	margin-left: auto;
	flex: 0 0 auto;
}
.xca-menu-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: #fff;
	margin: 4px 0;
	transition: transform .2s ease;
}

/* ---------- 6. Hero ---------- */
.xca-hero {
	background: linear-gradient(135deg, var(--xca-primary-tint) 0%, #ffffff 100%);
	padding: 56px 0 48px;
	border-bottom: 1px solid var(--xca-border);
}
.xca-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 40px;
	align-items: center;
}
.xca-hero-left,
.xca-hero-text { min-width: 0; }
.xca-eyebrow {
	display: inline-block;
	background: var(--xca-primary);
	color: #fff;
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 999px;
	font-weight: 700;
	margin-bottom: 14px;
}
.xca-hero h1 {
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.18;
	color: var(--xca-primary-dark);
	margin: 0 0 14px;
}
.xca-hero .xca-lead {
	font-size: clamp(15px, 1.4vw, 17px);
	color: var(--xca-muted);
	margin-bottom: 22px;
	max-width: 620px;
}
.xca-hero-cta {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.xca-hero-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	min-width: 0;
}
.xca-stat {
	background: #fff;
	border: 1px solid var(--xca-border);
	border-radius: var(--xca-radius);
	padding: 18px;
	box-shadow: var(--xca-shadow-sm);
}
.xca-stat-num {
	font-size: clamp(20px, 2.4vw, 26px);
	color: var(--xca-primary);
	font-weight: 800;
	line-height: 1.1;
}
.xca-stat-lbl {
	font-size: 13px;
	color: var(--xca-muted);
	margin-top: 4px;
}

/* ---------- 7. Buttons ---------- */
.xca-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: var(--xca-primary);
	color: #fff !important;
	padding: 10px 18px;
	border-radius: 6px;
	border: 1px solid var(--xca-primary);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none !important;
	transition: background .15s ease, transform .1s ease;
	line-height: 1.3;
}
.xca-btn:hover { background: var(--xca-primary-dark); border-color: var(--xca-primary-dark); }
.xca-btn-primary { /* alias of .xca-btn */ }
.xca-btn-outline {
	background: transparent;
	color: var(--xca-primary) !important;
}
.xca-btn-outline:hover {
	background: var(--xca-primary);
	color: #fff !important;
}
.xca-btn-ghost {
	background: transparent;
	border-color: transparent;
	color: var(--xca-primary) !important;
}
.xca-btn-ghost:hover { background: var(--xca-primary-tint); }
.xca-btn-accent {
	background: var(--xca-accent);
	border-color: var(--xca-accent);
	color: #1a1a1a !important;
}
.xca-btn-accent:hover { filter: brightness(.95); }
.xca-btn-sm { padding: 6px 12px; font-size: 13px; }
.xca-btn-lg { padding: 13px 24px; font-size: 15px; }

/* ---------- 8. Countdown ---------- */
.xca-countdown {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 2px dashed var(--xca-accent);
	border-radius: var(--xca-radius);
	padding: 12px 16px;
	flex-wrap: wrap;
	max-width: 100%;
	box-sizing: border-box;
	margin: 8px 0;
}
.xca-cd-label {
	font-size: 13px;
	color: var(--xca-muted);
	font-weight: 600;
	flex: 1 1 auto;
	min-width: 0;
}
.xca-cd-units {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	min-width: 0;
}
.xca-cd-units > span {
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
	background: var(--xca-primary-tint);
	padding: 6px 10px;
	border-radius: var(--xca-radius-sm);
	min-width: 50px;
	justify-content: center;
}
.xca-cd-units b {
	font-size: 18px;
	color: var(--xca-primary);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}
.xca-cd-units i {
	font-style: normal;
	font-size: 11px;
	color: var(--xca-muted);
	text-transform: uppercase;
}
.xca-cd-ended { border-color: var(--xca-muted); }
.xca-cd-ended b { color: var(--xca-muted); }

/* ---------- 9. Main layout: TOC + content ---------- */
.xca-main { padding: 32px 0 60px; }
.xca-body-grid .xca-main,
.xca-body-grid > .xca-main { padding: 0; }

.xca-body-grid {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 36px;
	align-items: start;
	padding: 32px 24px 60px;
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
}

/* TOC sidebar */
.xca-toc {
	position: sticky;
	top: 92px;
	background: #fff;
	border: 1px solid var(--xca-border);
	border-radius: var(--xca-radius);
	padding: 16px 18px;
	box-shadow: var(--xca-shadow-sm);
	max-height: calc(100vh - 110px);
	overflow-y: auto;
}
.xca-toc h4 {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--xca-muted);
	margin: 0 0 10px;
}
.xca-toc ul { list-style: none; padding: 0; margin: 0; }
.xca-toc li { margin: 0; }
.xca-toc a {
	display: block;
	padding: 7px 10px;
	border-radius: 6px;
	color: var(--xca-text);
	font-size: 14px;
	border-left: 3px solid transparent;
	margin-bottom: 2px;
	text-decoration: none;
}
.xca-toc a:hover {
	background: var(--xca-primary-tint);
	color: var(--xca-primary);
}
.xca-toc a.xca-active {
	background: var(--xca-primary-tint);
	color: var(--xca-primary);
	border-left-color: var(--xca-primary);
	font-weight: 600;
}
.xca-toc-toggle {
	display: none;
	width: 100%;
	background: #fff;
	border: 1px solid var(--xca-border);
	border-radius: var(--xca-radius);
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--xca-primary);
	cursor: pointer;
	align-items: center;
	justify-content: space-between;
}
.xca-toc-toggle svg { transition: transform .2s ease; }
.xca-toc-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.xca-toc-body { display: block; }

/* ---------- 10. Sections ---------- */
.xca-section {
	background: #fff;
	border: 1px solid var(--xca-border);
	border-radius: var(--xca-radius);
	padding: 28px;
	margin-bottom: 24px;
	box-shadow: var(--xca-shadow-sm);
	scroll-margin-top: 90px;
}
.xca-section-head {
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--xca-border);
}
.xca-section-head h2 {
	font-size: clamp(20px, 2vw, 24px);
	color: var(--xca-primary-dark);
	margin: 0 0 4px;
}
.xca-section-head .xca-sub {
	color: var(--xca-muted);
	font-size: 14px;
	margin: 0;
}

/* ---------- 11. Badges ---------- */
.xca-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	line-height: 1.4;
}
.xca-badge-success { background: #e8f5e9; color: #2e7d32; }
.xca-badge-warning { background: #fff3e0; color: #ef6c00; }
.xca-badge-muted   { background: #eceff1; color: #455a64; }
.xca-badge-info    { background: #e3f2fd; color: #1565c0; }
.xca-badge-danger  { background: #ffebee; color: #c62828; }

/* ---------- 12. Notice card ---------- */
.xca-notice-card {
	background: linear-gradient(120deg, var(--xca-primary-tint) 0%, #fff 70%);
	border: 1px solid var(--xca-border);
	border-left: 4px solid var(--xca-primary);
	border-radius: var(--xca-radius);
	padding: 20px;
	display: grid;
	gap: 12px;
}
.xca-notice-meta {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--xca-muted);
}
.xca-notice-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 4px;
}

/* ---------- 13. Date strip (3 cards: start / end / fee) ---------- */
.xca-date-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 16px 0 20px;
}
.xca-date-card {
	background: var(--xca-primary-tint);
	border: 1px solid var(--xca-border);
	border-radius: var(--xca-radius);
	padding: 16px;
	text-align: center;
}
.xca-date-card .xca-dt-lbl,
.xca-date-card .lbl {
	display: block;
	font-size: 11px;
	color: var(--xca-muted);
	text-transform: uppercase;
	letter-spacing: .05em;
	font-weight: 700;
	margin-bottom: 6px;
}
.xca-date-card .xca-dt-val,
.xca-date-card .val {
	display: block;
	font-size: 16px;
	color: var(--xca-primary-dark);
	font-weight: 700;
	margin-bottom: 6px;
}
.xca-date-card--accent {
	background: #fff8e1;
	border-color: #ffe082;
}

/* ---------- 14. Steps list ---------- */
.xca-steps {
	list-style: none;
	padding: 0;
	margin: 0;
	counter-reset: xs;
}
.xca-steps li {
	position: relative;
	padding: 10px 12px 10px 50px;
	margin-bottom: 8px;
	background: #f8fafc;
	border: 1px solid var(--xca-border);
	border-radius: var(--xca-radius-sm);
	counter-increment: xs;
}
.xca-steps li::before {
	content: counter(xs);
	position: absolute;
	left: 12px; top: 50%;
	transform: translateY(-50%);
	width: 28px; height: 28px;
	background: var(--xca-primary);
	color: #fff;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-weight: 700;
	font-size: 13px;
}

/* ---------- 15. Table ---------- */
.xca-table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--xca-border);
	border-radius: var(--xca-radius);
	margin-bottom: 16px;
}
.xca-table {
	width: 100%;
	min-width: 540px;
	border-collapse: collapse;
}
.xca-table th, .xca-table td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid var(--xca-border);
	font-size: 14px;
	vertical-align: top;
}
.xca-table thead th {
	background: linear-gradient(135deg, var(--xca-primary) 0%, var(--xca-secondary) 100%);
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.xca-table tbody tr:nth-child(even) { background: #fafcfe; }
.xca-table tbody tr:hover { background: var(--xca-primary-tint); }

/* ---------- 16. Payment cards ---------- */
.xca-pay-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
}
.xca-pay-card {
	background: #fff;
	border: 1px solid var(--xca-border);
	border-radius: var(--xca-radius);
	padding: 18px;
	transition: transform .15s ease, box-shadow .15s ease;
}
.xca-pay-card:hover { transform: translateY(-2px); box-shadow: var(--xca-shadow); }
.xca-pay-card h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.xca-pay-card .ico { font-size: 22px; }
.xca-pay-card .ussd {
	display: inline-block;
	background: var(--xca-primary-tint);
	color: var(--xca-primary);
	padding: 2px 8px;
	border-radius: 4px;
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 12px;
	font-weight: 600;
}
.xca-pay-card ol { padding-left: 18px; margin-top: 8px; font-size: 13px; color: var(--xca-text); }
.xca-pay-card li { margin-bottom: 4px; }

/* ---------- 17. Timeline ---------- */
.xca-timeline {
	position: relative;
	padding-left: 28px;
	margin: 0;
	list-style: none;
}
.xca-timeline::before {
	content: '';
	position: absolute;
	left: 9px; top: 6px; bottom: 6px;
	width: 2px;
	background: var(--xca-border);
}
.xca-timeline-item {
	position: relative;
	padding: 0 0 18px 0;
}
.xca-timeline-item::before {
	content: '';
	position: absolute;
	left: -23px; top: 6px;
	width: 14px; height: 14px;
	background: var(--xca-primary);
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 2px var(--xca-primary);
}
.xca-timeline-head {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
	margin-bottom: 4px;
}
.xca-timeline-head strong { color: var(--xca-primary-dark); }
.xca-timeline-date { color: var(--xca-muted); font-size: 13px; }

/* ---------- 18. Migration grid ---------- */
.xca-mig-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
}
.xca-mig-card {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-left: 4px solid #16a34a;
	border-radius: var(--xca-radius);
	padding: 16px;
}
.xca-mig-card h4 { color: #15803d; margin-bottom: 6px; }

/* ---------- 19. Callouts ---------- */
.xca-callout {
	background: var(--xca-primary-tint);
	border: 1px solid var(--xca-border);
	border-left: 4px solid var(--xca-primary);
	border-radius: var(--xca-radius);
	padding: 14px 16px;
	margin: 14px 0;
}
.xca-callout-accent {
	background: #fff8e1;
	border-color: #ffe082;
	border-left-color: var(--xca-accent);
}
.xca-callout-danger {
	background: #fff5f5;
	border-color: #fecaca;
	border-left-color: var(--xca-danger);
}

/* ---------- 20. Grid helpers ---------- */
.xca-grid-2 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}
.xca-grid-3 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}
.xca-grid-4 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 14px;
}

/* ---------- 21. Iframe (Result Checker) ---------- */
.xca-iframe-wrap {
	border: 1px solid var(--xca-border);
	border-radius: var(--xca-radius);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--xca-shadow-sm);
	margin: 14px 0;
}
.xca-iframe-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 14px;
	background: var(--xca-primary-tint);
	border-bottom: 1px solid var(--xca-border);
	font-size: 13px;
	flex-wrap: wrap;
}
.xca-iframe {
	width: 100%;
	height: 540px;
	border: 0;
	display: block;
	background: #fff;
}

/* ---------- 22. App tile / link cards ---------- */
.xca-app-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
}
.xca-app-tile {
	background: #fff;
	border: 1px solid var(--xca-border);
	border-radius: var(--xca-radius);
	padding: 22px 16px;
	text-align: center;
	color: var(--xca-text) !important;
	text-decoration: none !important;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.xca-app-tile:hover {
	transform: translateY(-3px);
	box-shadow: var(--xca-shadow);
	border-color: var(--xca-primary);
}
.xca-app-tile .ico {
	font-size: 32px;
	margin-bottom: 6px;
	display: block;
}
.xca-app-tile h4 {
	font-size: 14px;
	margin: 6px 0 2px;
	color: var(--xca-primary-dark);
}
.xca-app-tile p {
	font-size: 12px;
	color: var(--xca-muted);
	margin: 0;
}

/* ---------- 23. FAQ ---------- */
.xca-faq-item {
	background: #fff;
	border: 1px solid var(--xca-border);
	border-radius: var(--xca-radius-sm);
	padding: 14px 18px;
	margin-bottom: 8px;
}
.xca-faq-item summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--xca-primary-dark);
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
}
.xca-faq-item summary::-webkit-details-marker { display: none; }
.xca-faq-item summary::after {
	content: '+';
	color: var(--xca-primary);
	font-size: 22px;
	line-height: 1;
	transition: transform .2s ease;
}
.xca-faq-item[open] summary::after { transform: rotate(45deg); }
.xca-faq-item p { margin: 10px 0 0; color: var(--xca-text); }

/* ---------- 24. College Finder form ---------- */
.xca-finder {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 10px;
	margin-bottom: 14px;
}
.xca-finder-label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.xca-finder-label > span {
	font-size: 11px;
	font-weight: 700;
	color: var(--xca-muted);
	text-transform: uppercase;
	letter-spacing: .05em;
}
.xca-finder input, .xca-finder select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--xca-border);
	border-radius: var(--xca-radius-sm);
	font-size: 14px;
	background: #fff;
	color: var(--xca-text);
	font-family: inherit;
}
.xca-finder input:focus, .xca-finder select:focus {
	outline: 2px solid var(--xca-primary);
	outline-offset: 1px;
	border-color: var(--xca-primary);
}
.xca-finder-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 10px;
	font-size: 13px;
	color: var(--xca-muted);
}

/* ---------- 25. GPA matrix table ---------- */
.xca-gpa-matrix .xca-table th:first-child { background: var(--xca-primary-dark); }

/* ---------- 26. Footer ---------- */
.xca-footer {
	background: var(--xca-primary-dark);
	color: rgba(255,255,255,0.92);
	margin-top: 40px;
}
.xca-footer-inner { padding: 44px 24px 16px; }
.xca-footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
	gap: 32px;
}
.xca-footer h4 {
	color: #fff;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin: 0 0 12px;
}
.xca-footer p { color: rgba(255,255,255,0.78); font-size: 14px; }
.xca-footer ul { list-style: none; padding: 0; margin: 0; }
.xca-footer li { margin-bottom: 8px; }
.xca-footer a {
	color: rgba(255,255,255,0.86) !important;
	text-decoration: none !important;
	font-size: 14px;
}
.xca-footer a:hover { color: #fff !important; text-decoration: underline !important; }
.xca-footer-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}
.xca-footer-logo {
	width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
}
.xca-footer-logo-text {
	width: 38px; height: 38px; border-radius: 50%;
	background: rgba(255,255,255,0.16);
	display: inline-flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 13px;
	border: 1px solid rgba(255,255,255,0.28);
}
.xca-footer-brand strong { color: #fff; font-size: 16px; }
.xca-footer-bottom {
	margin-top: 28px;
	padding-top: 16px;
	border-top: 1px solid rgba(255,255,255,0.14);
	font-size: 13px;
	color: rgba(255,255,255,0.7);
	text-align: center;
}

/* ============================================================
 * BREAKPOINTS
 * ============================================================ */

/* Tablet / small desktop — 1100px */
@media (max-width: 1100px) {
	.xca-body-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}
	.xca-toc {
		position: static;
		top: auto;
		max-height: none;
		overflow: visible;
		padding: 0;
		border: 0;
		box-shadow: none;
		background: transparent;
	}
	.xca-toc-toggle { display: flex; }
	.xca-toc-body {
		display: none;
		background: #fff;
		border: 1px solid var(--xca-border);
		border-top: 0;
		border-radius: 0 0 var(--xca-radius) var(--xca-radius);
		padding: 12px 16px;
		margin-top: -2px;
	}
	.xca-toc[data-open="true"] .xca-toc-body { display: block; }
	.xca-toc[data-open="true"] .xca-toc-toggle {
		border-radius: var(--xca-radius) var(--xca-radius) 0 0;
		border-bottom: 0;
	}
	.xca-toc h4 { display: none; }
}

/* Tablet portrait — 900px: header collapses to hamburger */
@media (max-width: 900px) {
	.xca-menu-toggle { display: inline-flex; }
	.xca-nav {
		display: none;
		position: absolute;
		left: 0; right: 0; top: 100%;
		background: var(--xca-primary-dark);
		flex-direction: column;
		align-items: stretch;
		padding: 12px;
		gap: 2px;
		box-shadow: var(--xca-shadow);
		z-index: 49;
	}
	.xca-nav.xca-open { display: flex; }
	.xca-nav a {
		padding: 12px 14px;
		font-size: 15px;
		border-radius: 6px;
	}
	.xca-nav a:hover { background: rgba(255,255,255,0.12); }
	.xca-nav .xca-cta { margin-top: 6px; }
	.xca-parent-link { margin-top: 6px; }

	.xca-header-inner { padding: 12px 18px; }
	.xca-hero { padding: 40px 0 32px; }
	.xca-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.xca-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.xca-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* Phone — 640px */
@media (max-width: 640px) {
	.xca-container { padding: 0 16px; }
	.xca-section { padding: 20px 18px; }
	.xca-main { padding: 22px 0 40px; }

	.xca-title { font-size: 15px; }
	.xca-tagline { font-size: 11px; }
	.xca-logo, .xca-logo-text { width: 38px; height: 38px; flex: 0 0 38px; }
	.xca-logo-text { font-size: 12px; }

	.xca-hero { padding: 32px 0 26px; }
	.xca-hero h1 { font-size: 26px; }
	.xca-hero .xca-lead { font-size: 15px; }

	.xca-date-strip { grid-template-columns: minmax(0, 1fr); }
	.xca-cd-units > span { min-width: 44px; padding: 5px 8px; }
	.xca-cd-units b { font-size: 16px; }

	.xca-section-head h2 { font-size: 19px; }

	.xca-finder { grid-template-columns: minmax(0, 1fr); }
	.xca-finder-meta { font-size: 12px; }

	.xca-iframe { height: 460px; }

	.xca-footer-inner { padding: 30px 18px 14px; }
}

/* Very small phones */
@media (max-width: 380px) {
	.xca-tagline { display: none; }
	.xca-hero h1 { font-size: 22px; }
	.xca-hero-stats { grid-template-columns: minmax(0, 1fr); }
}

/* Print */
@media print {
	.xca-header, .xca-footer, .xca-toc, .xca-iframe-wrap, .xca-menu-toggle,
	.xca-toc-toggle, .xca-hero-cta { display: none !important; }
	.xca-section { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
	.xca-body-grid { grid-template-columns: 1fr !important; gap: 0 !important; }
}

/* ---------- 27. Utility ---------- */
.xca-text-center { text-align: center; }
.xca-mt-0 { margin-top: 0 !important; }
.xca-mb-0 { margin-bottom: 0 !important; }
.xca-muted { color: var(--xca-muted); }
.xca-small { font-size: 13px; }

/* ============================================================
 * Template-specific classes (used by main.php / generic.php)
 * ============================================================ */

/* Steps: templates use explicit <span class="xca-step-num">N</span>, so disable auto-counter */
.xca-steps { counter-reset: none; }
.xca-steps li { padding-left: 12px; counter-increment: none; display: flex; align-items: flex-start; gap: 10px; }
.xca-steps li::before { content: none; }
.xca-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px; height: 28px;
	flex: 0 0 28px;
	background: var(--xca-primary);
	color: #fff;
	border-radius: 50%;
	font-weight: 700;
	font-size: 13px;
}
.xca-step-text { flex: 1 1 auto; color: var(--xca-text); }

/* Timeline alt markup (.xca-tl-*) used by templates */
.xca-timeline { padding-left: 0; }
.xca-timeline::before { content: none; }
.xca-tl-item {
	position: relative;
	display: grid;
	grid-template-columns: 16px 1fr;
	gap: 14px;
	padding-bottom: 16px;
	align-items: flex-start;
}
.xca-tl-item:not(:last-child)::after {
	content: '';
	position: absolute;
	left: 7px; top: 16px; bottom: -4px;
	width: 2px;
	background: var(--xca-border);
}
.xca-tl-dot {
	width: 14px; height: 14px;
	background: var(--xca-primary);
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 2px var(--xca-primary);
	margin-top: 4px;
	z-index: 1;
}
.xca-tl-card {
	background: #fff;
	border: 1px solid var(--xca-border);
	border-left: 3px solid var(--xca-primary);
	border-radius: var(--xca-radius-sm);
	padding: 12px 14px;
}
.xca-tl-date {
	display: inline-block;
	color: var(--xca-muted);
	font-size: 13px;
	margin-left: 8px;
}

/* App tile sub-classes */
.xca-app-ico {
	display: block;
	font-size: 32px;
	margin-bottom: 6px;
	line-height: 1;
}
.xca-app-title {
	display: block;
	font-weight: 700;
	color: var(--xca-primary-dark);
	font-size: 14px;
	margin: 4px 0 2px;
}
.xca-app-sub {
	display: block;
	font-size: 12px;
	color: var(--xca-muted);
}
.xca-app-go {
	display: inline-block;
	margin-top: 8px;
	color: var(--xca-primary);
	font-size: 12px;
	font-weight: 700;
}

/* Pay card sub-classes (templates use xca-pay-head + xca-pay-icon) */
.xca-pay-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	color: var(--xca-primary-dark);
	font-size: 15px;
}
.xca-pay-icon { font-size: 22px; line-height: 1; }

/* Callout BEM alias */
.xca-callout--accent {
	background: #fff8e1;
	border-color: #ffe082;
	border-left-color: var(--xca-accent);
}
.xca-callout--danger {
	background: #fff5f5;
	border-color: #fecaca;
	border-left-color: var(--xca-danger);
}

/* Generic card */
.xca-card {
	background: #fff;
	border: 1px solid var(--xca-border);
	border-radius: var(--xca-radius);
	padding: 18px;
	box-shadow: var(--xca-shadow-sm);
}
.xca-card--ghost {
	background: transparent;
	box-shadow: none;
	border-style: dashed;
}

/* CTA row */
.xca-cta-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 8px;
}

/* Hero sub variant (used by sub-apps) */
.xca-hero--sub {
	padding: 44px 0 36px;
}

/* Iframe toolbar alias */
.xca-iframe-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 14px;
	background: var(--xca-primary-tint);
	border-bottom: 1px solid var(--xca-border);
	font-size: 13px;
	flex-wrap: wrap;
}
.xca-iframe-wrap iframe { width: 100%; height: 540px; border: 0; display: block; background: #fff; }

/* Date / dt-sub */
.xca-date { color: var(--xca-muted); font-size: 13px; }
.xca-dt-sub {
	display: block;
	font-size: 12px;
	color: var(--xca-muted);
	margin-top: 2px;
}

/* Tips / notes */
.xca-tips {
	background: #f0f7ff;
	border-left: 3px solid var(--xca-secondary);
	padding: 12px 14px;
	border-radius: var(--xca-radius-sm);
	font-size: 14px;
	margin-top: 12px;
}
.xca-note {
	color: var(--xca-muted);
	font-size: 13px;
}

/* FAQ wrapper */
.xca-faq { display: block; }
.xca-faq-a { margin-top: 8px; color: var(--xca-text); }

/* Lead text class */
.xca-lead {
	font-size: clamp(15px, 1.4vw, 17px);
	color: var(--xca-muted);
	margin-bottom: 18px;
	max-width: 640px;
}

/* Subapp parent-link card alt */
.xca-app-tile.xca-app-tile--featured {
	background: var(--xca-primary-tint);
	border-color: var(--xca-primary);
}

/* Mobile adjustments for new classes */
@media (max-width: 640px) {
	.xca-tl-item { gap: 10px; }
	.xca-iframe-wrap iframe { height: 460px; }
	.xca-step-num { width: 24px; height: 24px; flex-basis: 24px; font-size: 12px; }
}

/* ============================================================
 * 3-Phase Application cards
 * ============================================================ */
.xca-phases {
	display: grid;
	gap: 14px;
	margin-bottom: 18px;
}
.xca-phase-card {
	background: #fff;
	border: 1px solid var(--xca-border);
	border-left: 4px solid var(--xca-primary);
	border-radius: var(--xca-radius);
	padding: 18px 20px;
	position: relative;
	box-shadow: var(--xca-shadow-sm);
}
.xca-phase-status-live    { border-left-color: #2e7d32; background: #f7fef8; }
.xca-phase-status-upcoming{ border-left-color: #ef6c00; background: #fff8f0; }
.xca-phase-status-closed  { border-left-color: #9e9e9e; opacity: .8; }
.xca-phase-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}
.xca-phase-num {
	width: 36px; height: 36px;
	flex: 0 0 36px;
	border-radius: 50%;
	background: var(--xca-primary);
	color: #fff;
	font-weight: 800;
	font-size: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.xca-phase-title {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}
.xca-phase-title strong {
	color: var(--xca-primary-dark);
	font-size: 17px;
}
.xca-phase-dates {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 10px;
	margin: 10px 0 12px;
}
.xca-phase-dates > div {
	background: #fafcfe;
	border: 1px solid var(--xca-border);
	border-radius: var(--xca-radius-sm);
	padding: 10px 12px;
}
.xca-phase-dates .xca-dt-lbl { display: block; }
.xca-phase-dates strong {
	display: block;
	margin-top: 2px;
	color: var(--xca-primary-dark);
	font-size: 14px;
}

/* ============================================================
 * Other Apps tile — colored logo badge
 * ============================================================ */
.xca-app-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--xca-primary);
	color: #fff;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: .04em;
	margin: 0 auto 10px;
	box-shadow: 0 4px 10px rgba(15,35,70,0.12);
}

/* ============================================================
 * Notice figure (image)
 * ============================================================ */
.xca-notice-figure {
	margin: 12px 0;
	border: 1px solid var(--xca-border);
	border-radius: var(--xca-radius-sm);
	overflow: hidden;
	background: #f6f9fc;
	max-width: 100%;
}
.xca-notice-figure img {
	width: 100%;
	max-height: 480px;
	object-fit: contain;
	display: block;
}

/* ============================================================
 * Sticky positioning safety — make sure parents allow it
 * ============================================================ */
.xca-body-grid { position: relative; }
.xca-toc { will-change: transform; }

/* ============================================================
 * College Finder — enhanced controls
 * ============================================================ */
.xca-finder {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}
@media (max-width: 1100px) { .xca-finder { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .xca-finder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .xca-finder { grid-template-columns: minmax(0, 1fr); } }

.xca-finder-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 10px 14px;
	background: var(--xca-primary-tint);
	border: 1px solid var(--xca-border);
	border-radius: var(--xca-radius-sm);
	margin: 8px 0 14px;
}
.xca-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: var(--xca-primary-dark);
	user-select: none;
}
.xca-toggle input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--xca-primary);
	cursor: pointer;
}
.xca-meta-actions {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.xca-finder-empty td { color: var(--xca-muted); }

@media (max-width: 540px) {
	.xca-finder-toolbar { flex-direction: column; align-items: flex-start; }
	.xca-finder-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ============================================================
 * Per-app visual differentiation
 * Each body.xca-app-{slug} gets its own hero treatment & accents
 * ============================================================ */

/* Notre Dame — Catholic Mission, classic navy with gold ornament */
body.xca-app-notre_dame .xca-hero {
	background: linear-gradient(135deg, #1a237e 0%, #283593 60%, #3949ab 100%);
	color: #fff;
}
body.xca-app-notre_dame .xca-hero h1,
body.xca-app-notre_dame .xca-hero .xca-lead,
body.xca-app-notre_dame .xca-hero .xca-eyebrow {
	color: #fff;
}
body.xca-app-notre_dame .xca-hero .xca-eyebrow { background: #ffb300; color: #1a237e; }
body.xca-app-notre_dame .xca-stat { border-top: 3px solid #ffb300; }
body.xca-app-notre_dame .xca-section-head h2 { border-bottom: 2px solid #ffb300; padding-bottom: 6px; display: inline-block; }

/* Holy Cross — burgundy with warm rose accent */
body.xca-app-holy_cross .xca-hero {
	background: linear-gradient(135deg, #7b1f1f 0%, #a02929 60%, #c33838 100%);
	color: #fff;
}
body.xca-app-holy_cross .xca-hero h1,
body.xca-app-holy_cross .xca-hero .xca-lead,
body.xca-app-holy_cross .xca-hero .xca-eyebrow { color: #fff; }
body.xca-app-holy_cross .xca-hero .xca-eyebrow { background: #f8bbd0; color: #7b1f1f; }
body.xca-app-holy_cross .xca-stat { border-top: 3px solid #ec407a; }
body.xca-app-holy_cross .xca-section { border-left: 3px solid #ec407a; }

/* St. Joseph — deep navy with crisp white cards */
body.xca-app-st_joseph .xca-hero {
	background: linear-gradient(135deg, #0d3b66 0%, #144a84 50%, #1c5ea0 100%);
	color: #fff;
}
body.xca-app-st_joseph .xca-hero h1,
body.xca-app-st_joseph .xca-hero .xca-lead { color: #fff; }
body.xca-app-st_joseph .xca-hero .xca-eyebrow { background: #f4d35e; color: #0d3b66; }
body.xca-app-st_joseph .xca-stat { border-top: 3px solid #f4d35e; }
body.xca-app-st_joseph .xca-section { border-radius: 4px; }

/* St. Gregory — royal violet */
body.xca-app-st_gregory .xca-hero {
	background: linear-gradient(135deg, #3a0ca3 0%, #5b1ed8 60%, #7c3aed 100%);
	color: #fff;
}
body.xca-app-st_gregory .xca-hero h1,
body.xca-app-st_gregory .xca-hero .xca-lead { color: #fff; }
body.xca-app-st_gregory .xca-hero .xca-eyebrow { background: #fbbf24; color: #3a0ca3; }
body.xca-app-st_gregory .xca-stat { border-top: 3px solid #fbbf24; }

/* BTEB — technical green with monospace accents */
body.xca-app-bteb .xca-hero {
	background: linear-gradient(135deg, #004d40 0%, #00695c 60%, #00897b 100%);
	color: #fff;
}
body.xca-app-bteb .xca-hero h1,
body.xca-app-bteb .xca-hero .xca-lead { color: #fff; }
body.xca-app-bteb .xca-hero .xca-eyebrow { background: #ffd54f; color: #004d40; }
body.xca-app-bteb .xca-stat-num { font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; letter-spacing: -.01em; }
body.xca-app-bteb .xca-stat { border-top: 3px solid #ffd54f; }
body.xca-app-bteb .xca-pay-card .ussd { font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; }

/* Polytechnic — bold industrial orange */
body.xca-app-polytechnic .xca-hero {
	background: linear-gradient(135deg, #bf360c 0%, #d84315 60%, #e64a19 100%);
	color: #fff;
}
body.xca-app-polytechnic .xca-hero h1 {
	color: #fff;
	font-weight: 800;
	letter-spacing: -.02em;
	text-transform: uppercase;
	font-size: clamp(28px, 4vw, 44px);
}
body.xca-app-polytechnic .xca-hero .xca-lead { color: #fff; }
body.xca-app-polytechnic .xca-hero .xca-eyebrow { background: #ffeb3b; color: #bf360c; }
body.xca-app-polytechnic .xca-stat { border-top: 3px solid #ffeb3b; }
body.xca-app-polytechnic .xca-section-head h2 { text-transform: uppercase; letter-spacing: .01em; }

/* Nursing — soft medical magenta with rounded corners */
body.xca-app-nursing .xca-hero {
	background: linear-gradient(135deg, #880e4f 0%, #ad1457 60%, #c2185b 100%);
	color: #fff;
}
body.xca-app-nursing .xca-hero h1,
body.xca-app-nursing .xca-hero .xca-lead { color: #fff; }
body.xca-app-nursing .xca-hero .xca-eyebrow { background: #f8bbd0; color: #880e4f; }
body.xca-app-nursing .xca-stat { border-top: 3px solid #f48fb1; border-radius: 14px; }
body.xca-app-nursing .xca-section,
body.xca-app-nursing .xca-card { border-radius: 14px; }
body.xca-app-nursing .xca-app-logo,
body.xca-app-nursing .xca-btn { border-radius: 999px; }

/* Main app — keep clean default with subtle improvement */
body.xca-app-main .xca-hero {
	background: linear-gradient(135deg, #0a4d8c 0%, #1565c0 60%, #1e88e5 100%);
	color: #fff;
	position: relative;
	overflow: hidden;
}
body.xca-app-main .xca-hero::before {
	content: '';
	position: absolute;
	right: -120px; top: -120px;
	width: 320px; height: 320px;
	background: radial-gradient(circle, rgba(255,179,0,0.18) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}
body.xca-app-main .xca-hero h1,
body.xca-app-main .xca-hero .xca-lead { color: #fff; }
body.xca-app-main .xca-hero .xca-eyebrow { background: #ffb300; color: #0a4d8c; }
body.xca-app-main .xca-stat { border-top: 3px solid #ffb300; }

/* Subapp hero text adjustments — also fix CTA buttons on dark hero */
body[class*="xca-app-"] .xca-hero .xca-btn-outline {
	border-color: #fff;
	color: #fff !important;
}
body[class*="xca-app-"] .xca-hero .xca-btn-outline:hover {
	background: #fff;
	color: var(--xca-primary) !important;
}
body[class*="xca-app-"] .xca-hero .xca-btn-ghost {
	color: #fff !important;
	background: rgba(255,255,255,0.10);
}
body[class*="xca-app-"] .xca-hero .xca-btn-ghost:hover { background: rgba(255,255,255,0.20); }

/* ============================================================
 * Phase comparison cards (no countdown — visual only)
 * ============================================================ */
.xca-phase-compare {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 18px;
}
@media (max-width: 900px)  { .xca-phase-compare { grid-template-columns: 1fr; } }

.xca-phase-tile {
	background: #fff;
	border: 1px solid var(--xca-border);
	border-top: 4px solid var(--xca-primary);
	border-radius: var(--xca-radius);
	padding: 18px 18px 16px;
	box-shadow: var(--xca-shadow-sm);
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: transform .15s ease, box-shadow .15s ease;
}
.xca-phase-tile:hover { transform: translateY(-2px); box-shadow: var(--xca-shadow); }

.xca-phase-status-live    { border-top-color: #2e7d32; background: linear-gradient(180deg,#f4fbf5 0%,#fff 100%); }
.xca-phase-status-upcoming{ border-top-color: #ef6c00; background: linear-gradient(180deg,#fff8f0 0%,#fff 100%); }
.xca-phase-status-closed  { border-top-color: #9e9e9e; opacity: .82; }

.xca-phase-tile-head {
	display: flex;
	align-items: center;
	gap: 12px;
}
.xca-phase-tile-head strong {
	display: block;
	color: var(--xca-primary-dark);
	font-size: 16px;
	margin-bottom: 3px;
}

.xca-phase-meta {
	margin: 0;
	display: grid;
	gap: 0;
	border-top: 1px solid var(--xca-border);
	padding-top: 10px;
}
.xca-phase-meta > div {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 8px;
	padding: 6px 0;
	border-bottom: 1px dashed var(--xca-border);
	align-items: baseline;
}
.xca-phase-meta > div:last-child { border-bottom: 0; padding-bottom: 0; }
.xca-phase-meta dt {
	margin: 0;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--xca-muted);
	font-weight: 700;
}
.xca-phase-meta dd {
	margin: 0;
	font-size: 13px;
	color: var(--xca-primary-dark);
	font-weight: 700;
	line-height: 1.35;
}

.xca-phase-note {
	margin: auto 0 0;
	padding: 8px 10px;
	background: var(--xca-primary-tint);
	border-radius: var(--xca-radius-sm);
	font-size: 12px;
	color: var(--xca-text);
	line-height: 1.5;
}

/* ============================================================
 * College Finder v2 — DB-backed UI
 * ============================================================ */
.xca-finder-v2 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) { .xca-finder-v2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .xca-finder-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .xca-finder-v2 { grid-template-columns: minmax(0, 1fr); } }

.xca-finder-status {
	font-size: 14px;
	color: var(--xca-primary-dark);
	font-weight: 600;
}
.xca-finder-status strong { color: var(--xca-primary); }

.xca-eiin {
	background: #eef2f7;
	color: #2c3e50;
	padding: 3px 8px;
	border-radius: 4px;
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 13px;
	font-weight: 700;
	display: inline-block;
}

.xca-mini {
	display: block;
	color: var(--xca-muted);
	font-size: 11px;
	margin-top: 2px;
}

.xca-grp-badge {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	white-space: nowrap;
}
.xca-grp-science   { background: #e3f2fd; color: #1565c0; }
.xca-grp-humanities{ background: #f3e5f5; color: #7b1fa2; }
.xca-grp-business  { background: #fff3e0; color: #e65100; }
.xca-grp-islamic   { background: #e8f5e9; color: #2e7d32; }
.xca-grp-default   { background: #eceff1; color: #455a64; }

.xca-gpa-pill {
	display: inline-block;
	background: var(--xca-primary-dark);
	color: #fff;
	padding: 4px 10px;
	border-radius: 4px;
	font-weight: 800;
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 13px;
}
.xca-seats-pill {
	color: #2e7d32;
	font-weight: 800;
	font-size: 15px;
}

/* Pagination */
.xca-pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 22px;
	flex-wrap: wrap;
}
.xca-page {
	background: #fff;
	border: 1px solid var(--xca-border);
	color: var(--xca-text);
	padding: 8px 14px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: background .15s ease, color .15s ease;
}
.xca-page:hover { background: var(--xca-primary-tint); color: var(--xca-primary); }
.xca-page-active {
	background: var(--xca-primary);
	color: #fff;
	border-color: var(--xca-primary);
}
.xca-page-gap {
	display: inline-flex;
	align-items: center;
	padding: 0 6px;
	color: var(--xca-muted);
}

/* Admin: PDF importer */
.xca-pdf-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
	padding: 16px;
	background: #f6f9fc;
	border: 1px solid var(--xca-border);
	border-radius: 6px;
	margin: 10px 0;
}
.xca-pdf-status { margin: 10px 0; font-weight: 600; }
.xca-pdf-preview { margin-top: 18px; padding-top: 18px; border-top: 2px solid #eee; }
.xca-pdf-log {
	margin-top: 12px;
	padding: 12px;
	background: #f1f3f5;
	border-radius: 6px;
	max-height: 200px;
	overflow-y: auto;
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 12px;
}
.xca-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}
.xca-stat-grid .xca-card {
	text-align: center;
	padding: 16px;
}
.xca-stat-grid .xca-card strong {
	display: block;
	font-size: 22px;
	color: #0a4d8c;
	margin-bottom: 4px;
}
.xca-stat-grid .xca-card span {
	display: block;
	font-size: 12px;
	color: #6b7c93;
}
.xca-section-box--ghost { background: #f9fbfd; border-style: dashed; }
