/* ScholarsChapter Core — explorer, cards and single listing. */
:root {
	--sc-navy: #0b2c7d;
	--sc-blue: #1456c8;
	--sc-teal: #10a197;
	--sc-teal-dark: #0b7f77;
	--sc-gold: #c9973b;
	--sc-ink: #0f172a;
	--sc-text: #334155;
	--sc-muted: #64748b;
	--sc-line: #e2e8f0;
	--sc-bg: #f5f7fb;
	--sc-surface: #ffffff;
	--sc-soft: #eef4ff;
	--sc-radius: 14px;
	--sc-radius-sm: 9px;
	--sc-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 6px 20px rgba(15, 23, 42, .06);
	--sc-shadow-lg: 0 10px 30px rgba(11, 44, 125, .14);
}

.sc-container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sc-icon { width: 18px; height: 18px; flex: none; }
.sc-muted { color: var(--sc-muted); }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

/* Buttons */
.sc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
	background: linear-gradient(135deg, var(--sc-blue), var(--sc-navy)); color: #fff !important;
	font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none !important; cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.sc-btn:hover { transform: translateY(-1px); box-shadow: var(--sc-shadow-lg); }
.sc-btn:focus-visible { outline: 3px solid rgba(20, 86, 200, .35); outline-offset: 2px; }
.sc-btn--ghost { background: var(--sc-surface); color: var(--sc-navy) !important; border-color: var(--sc-line); }
.sc-btn--ghost:hover { border-color: var(--sc-blue); box-shadow: none; }
.sc-btn--teal { background: linear-gradient(135deg, var(--sc-teal), var(--sc-teal-dark)); }
.sc-btn--block { width: 100%; }

/* Badges & statuses */
.sc-badge, .sc-status {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap;
}
.sc-badge .sc-icon, .sc-status .sc-icon { width: 13px; height: 13px; }
.sc-badge--type { background: var(--sc-soft); color: var(--sc-navy); }
.sc-badge--ok, .sc-status--ok { background: #e6f6f0; color: #0b7a54; }
.sc-badge--info, .sc-status--info { background: #e9f0fe; color: #1d4ed8; }
.sc-badge--muted, .sc-status--muted { background: #f1f5f9; color: var(--sc-muted); }
.sc-status--warn { background: #fef3c7; color: #a1460a; }

/* Page head */
.sc-pagehead {
	background:
		radial-gradient(900px 300px at 85% -40%, rgba(16, 161, 151, .25), transparent 60%),
		radial-gradient(700px 300px at 0% 120%, rgba(20, 86, 200, .25), transparent 60%),
		linear-gradient(135deg, #082063, var(--sc-navy) 55%, #0d3a8f);
	color: #fff; padding: 34px 0 30px;
}
.sc-pagehead a { color: #cfe0ff; }
.sc-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #b8c7ec; margin-bottom: 10px; }
.sc-crumbs a { text-decoration: none; }
.sc-crumbs a:hover { text-decoration: underline; }
.sc-pagehead__title { display: flex; align-items: center; gap: 12px; color: #fff; font-size: clamp(26px, 4vw, 38px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -.02em; }
.sc-pagehead__title .sc-flag { border-radius: 4px; }
.sc-pagehead__intro { max-width: 760px; color: #d6e1fb; margin: 0; font-size: 16px; }

.sc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sc-chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
	color: #fff !important; font-size: 13.5px; font-weight: 500; text-decoration: none !important;
}
.sc-chip:hover { background: rgba(255, 255, 255, .2); }
.sc-chip.is-active { background: #fff; color: var(--sc-navy) !important; }

/* Explorer layout */
.sc-explorer, .sc-single { background: var(--sc-bg); padding-bottom: 56px; }
.sc-explorer__layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; padding-top: 28px; align-items: start; }

/* Filters */
.sc-filters {
	background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: var(--sc-radius);
	padding: 18px; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; box-shadow: var(--sc-shadow);
}
.sc-filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sc-filters__title { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0; color: var(--sc-ink); }
.sc-filters__close { display: none; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--sc-muted); }
.sc-fieldset { border: 0; border-top: 1px solid var(--sc-line); margin: 14px 0 0; padding: 12px 0 0; }
.sc-fieldset legend { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--sc-muted); padding: 0 6px 0 0; }
.sc-field { margin-bottom: 11px; }
.sc-field label { display: block; font-size: 13px; font-weight: 600; color: var(--sc-ink); margin-bottom: 5px; }
.sc-field select, .sc-field input[type="search"], .sc-field input[type="text"] {
	width: 100%; padding: 9px 11px; border: 1px solid var(--sc-line); border-radius: var(--sc-radius-sm);
	background: #fff; color: var(--sc-ink); font: inherit; font-size: 14px; min-height: 40px;
}
.sc-field select:focus, .sc-field input:focus { outline: none; border-color: var(--sc-blue); box-shadow: 0 0 0 3px rgba(20, 86, 200, .15); }
.sc-input-icon { position: relative; }
.sc-input-icon .sc-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--sc-muted); width: 16px; }
.sc-input-icon input { padding-left: 34px !important; }
.sc-help { font-size: 12px; color: var(--sc-muted); margin: 6px 0 0; line-height: 1.45; }
.sc-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--sc-text); cursor: pointer; }
.sc-check input { margin-top: 3px; }
.sc-filter-actions { display: flex; gap: 8px; margin-top: 16px; }
.sc-filter-actions .sc-btn { flex: 1; padding: 10px 12px; }

/* Results */
.sc-results__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sc-results__count { margin: 0; color: var(--sc-text); }
.sc-results__count strong { color: var(--sc-ink); font-size: 18px; }
.sc-results__tools { display: flex; gap: 10px; align-items: center; }
.sc-sort select { padding: 9px 12px; border: 1px solid var(--sc-line); border-radius: var(--sc-radius-sm); background: #fff; font: inherit; font-size: 14px; min-height: 40px; }
.sc-filters-toggle.sc-btn { display: none; }
.sc-active { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.sc-active__chip { background: var(--sc-soft); color: var(--sc-navy); border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 600; text-decoration: none; }
.sc-active__chip:hover { background: #dce8ff; }
.sc-active__clear { font-size: 13px; color: var(--sc-blue); }

.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

/* Card */
.sc-card {
	position: relative; display: flex; flex-direction: column; gap: 10px;
	background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: var(--sc-radius);
	padding: 18px; box-shadow: var(--sc-shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.sc-card:hover { transform: translateY(-3px); box-shadow: var(--sc-shadow-lg); border-color: #c9d8f5; }
.sc-card--closed { opacity: .72; }
.sc-card__top { display: flex; gap: 12px; align-items: center; }
.sc-card__icon {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; flex: none;
	background: linear-gradient(135deg, rgba(20, 86, 200, .12), rgba(16, 161, 151, .16)); color: var(--sc-blue);
}
.sc-card__icon .sc-icon { width: 21px; height: 21px; }
.sc-card__tags { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sc-card__tags .sc-badge { align-self: flex-start; }
.sc-card__cat { font-size: 12px; color: var(--sc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-card__title { font-size: 17px; line-height: 1.35; margin: 2px 0 0; letter-spacing: -.01em; }
.sc-card__title a { color: var(--sc-ink); text-decoration: none; position: relative; z-index: 2; }
.sc-card__title a:hover { color: var(--sc-blue); }
.sc-card__host { margin: -4px 0 0; color: var(--sc-muted); font-size: 13.5px; }
.sc-card__dest { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; font-size: 13.5px; color: var(--sc-text); }
.sc-dest { display: inline-flex; align-items: center; gap: 6px; }
.sc-flag { border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .08); object-fit: cover; }
.sc-flag--globe { display: inline-flex; color: var(--sc-teal); box-shadow: none; }
.sc-flag--globe .sc-icon { width: 16px; height: 16px; }
.sc-card__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--sc-text); }
.sc-card__facts li { display: flex; gap: 8px; align-items: flex-start; }
.sc-card__facts .sc-icon { width: 16px; height: 16px; color: var(--sc-teal); margin-top: 2px; }
.sc-card__foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--sc-line); display: flex; flex-direction: column; gap: 8px; }
.sc-card__deadline { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc-card__date { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: var(--sc-ink); }
.sc-card__date .sc-icon { width: 15px; height: 15px; color: var(--sc-muted); }
.sc-card__trust { display: flex; gap: 6px; flex-wrap: wrap; }
.sc-card__trust:empty { display: none; }
.sc-card__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }

/* Pagination & empty */
.sc-pagination { margin-top: 28px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.sc-pagination .page-numbers { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--sc-line); color: var(--sc-ink); text-decoration: none; font-weight: 600; }
.sc-pagination .page-numbers.current { background: var(--sc-navy); color: #fff; border-color: var(--sc-navy); }
.sc-empty { text-align: center; background: #fff; border: 1px dashed #cbd5e1; border-radius: var(--sc-radius); padding: 48px 20px; }
.sc-empty__icon { width: 42px; height: 42px; color: var(--sc-teal); }
.sc-empty h2 { margin: 10px 0 6px; font-size: 21px; }
.sc-empty p { color: var(--sc-muted); }
.sc-empty .sc-btn { margin: 4px; }

/* Single */
.sc-pagehead--single { padding-bottom: 36px; }
.sc-single__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sc-pagehead .sc-badge--type { background: rgba(255, 255, 255, .14); color: #fff; }
.sc-single__host { color: #d6e1fb; margin: 0; font-size: 17px; }
.sc-single__layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; padding-top: 28px; align-items: start; }
.sc-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }
.sc-fact { display: flex; gap: 12px; background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius-sm); padding: 14px; }
.sc-fact__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--sc-soft); color: var(--sc-blue); flex: none; }
.sc-fact__label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--sc-muted); font-weight: 700; }
.sc-fact__value { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--sc-ink); font-weight: 600; font-size: 14.5px; margin-top: 2px; }
.sc-section { background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); padding: 22px 24px; margin-bottom: 16px; }
.sc-section h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; margin: 0 0 12px; color: var(--sc-ink); }
.sc-prose { color: var(--sc-text); line-height: 1.7; }
.sc-prose > *:first-child { margin-top: 0; }
.sc-prose > *:last-child { margin-bottom: 0; }
.sc-dl { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 10px 18px; margin: 12px 0 0; }
.sc-dl dt { font-weight: 600; color: var(--sc-muted); font-size: 14px; }
.sc-dl dd { margin: 0; color: var(--sc-ink); font-size: 14.5px; }
.sc-dl dd p { margin: 0 0 6px; }
.sc-amount { font-size: 22px; font-weight: 700; color: var(--sc-teal-dark); margin: 0 0 8px; }
.sc-benefits { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sc-benefits li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.sc-benefits li.is-yes { background: #e6f6f0; color: #0b7a54; }
.sc-benefits li.is-no { background: #f1f5f9; color: #94a3b8; }
.sc-benefits .sc-icon { width: 15px; height: 15px; }
.sc-verify { background: linear-gradient(180deg, #f8fbff, #fff); }
.sc-verify .sc-icon { color: var(--sc-teal); }

.sc-single__side { position: sticky; top: 90px; display: grid; gap: 16px; }
.sc-applybox { background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); padding: 20px; box-shadow: var(--sc-shadow); }
.sc-applybox__label { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--sc-muted); font-weight: 700; }
.sc-applybox__date { margin: 2px 0 8px; font-size: 24px; font-weight: 700; color: var(--sc-ink); }
.sc-applybox__host { text-align: center; font-size: 12.5px; color: var(--sc-muted); margin: 8px 0 0; }
.sc-share { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--sc-line); align-items: center; }
.sc-share__label { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 700; color: var(--sc-ink); width: 100%; }
.sc-share a, .sc-copy { font-size: 12.5px; padding: 6px 10px; border-radius: 8px; background: var(--sc-bg); border: 1px solid var(--sc-line); color: var(--sc-text); text-decoration: none; cursor: pointer; font-family: inherit; }
.sc-share a:hover, .sc-copy:hover { border-color: var(--sc-blue); color: var(--sc-blue); }
.sc-related { background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); padding: 18px 20px; }
.sc-related h2 { font-size: 16px; margin: 0 0 10px; }
.sc-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sc-related li { display: grid; gap: 4px; }
.sc-related li .sc-status { justify-self: start; }
.sc-related a { color: var(--sc-ink); font-weight: 600; text-decoration: none; font-size: 14.5px; line-height: 1.35; }
.sc-related a:hover { color: var(--sc-blue); }

/* Responsive */
@media (max-width: 960px) {
	.sc-explorer__layout, .sc-single__layout { grid-template-columns: 1fr; }
	.sc-single__side { position: static; }
	.sc-filters {
		position: fixed; inset: 0 auto 0 0; width: min(360px, 92vw); max-height: none; height: 100%;
		z-index: 1000; border-radius: 0 var(--sc-radius) var(--sc-radius) 0; transform: translateX(-105%);
		transition: transform .25s ease; top: 0;
	}
	.sc-filters.is-open { transform: none; }
	.sc-filters__close { display: block; }
	.sc-filters-toggle.sc-btn { display: inline-flex; }
	body.sc-filters-open::after { content: ""; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 999; }
}
@media (max-width: 600px) {
	.sc-grid { grid-template-columns: 1fr; }
	.sc-dl { grid-template-columns: 1fr; gap: 2px 0; }
	.sc-dl dd { margin-bottom: 10px; }
	.sc-section { padding: 18px; }
	.sc-results__tools { width: 100%; }
	.sc-results__tools .sc-sort { flex: 1; }
	.sc-results__tools .sc-sort select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.sc-card, .sc-btn, .sc-filters { transition: none; }
}
