/* Committees and Cells: /committee (index) and /committee/{id}/{slug} (one committee). Site theme orange (#ff8a24 → #ff6500 → #ec4e00). */
.kr-cmte {
	--cmte-deep: #e65c00;
	--cmte-grad: linear-gradient(135deg, #ff8a24 0%, #ff6500 58%, #ec4e00 100%);
	--cmte-orange: #ff6500;
	--cmte-orange-2: #ff9a32;
	--cmte-orange-soft: #fff2e7;
	--cmte-ink: #0f172a;
	--cmte-text: #334155;
	--cmte-muted: #64748b;
	--cmte-line: #f3e3d4;
	padding: 56px 0 72px;
}

/* Heading */
.kr-cmte__head { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.kr-cmte__title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; color: var(--cmte-deep); line-height: 1.15; margin: 0; }

/* Index cards: scoped to the listing so committee detail views stay unchanged. */
.kr-cmte--index .kr-cmte__head { margin-bottom: 36px; }
.kr-cmte--index .kr-cmte__title { color: #991737; font-size: clamp(26px, 3vw, 34px); }
.kr-cmte--index .kr-cmte__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 0; margin: 0; list-style: none; }
.kr-cmte--index .kr-cmte__grid > li { display: flex; min-width: 0; }
.kr-cmte--index .kr-cmte__tile { display: flex; flex-direction: column; width: 100%; overflow: hidden; border-top: 5px solid #991737; background: var(--cmte-orange-soft); color: var(--cmte-ink); text-decoration: none; box-shadow: 0 3px 12px rgba(153,23,55,.07); transition: transform .2s, box-shadow .2s; }
.kr-cmte--index .kr-cmte__tile:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(153,23,55,.15); text-decoration: none; }
.kr-cmte--index .kr-cmte__tile:focus-visible { outline: 3px solid #991737; outline-offset: 5px; }
.kr-cmte--index .kr-cmte__tile-body { position: relative; isolation: isolate; overflow: hidden; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; min-height: 218px; padding: 26px 24px 20px; text-align: center; }
.kr-cmte--index .kr-cmte__tile-body::before, .kr-cmte--index .kr-cmte__tile-body::after { content: ''; position: absolute; z-index: -1; width: 116px; height: 116px; border: 12px solid rgba(255,101,0,.07); border-radius: 50%; pointer-events: none; }
.kr-cmte--index .kr-cmte__tile-body::before { top: -54px; right: -30px; box-shadow: 0 0 0 12px rgba(255,101,0,.045), 0 0 0 24px rgba(255,101,0,.035); }
.kr-cmte--index .kr-cmte__tile-body::after { bottom: -65px; left: -62px; }
.kr-cmte--index .kr-cmte__tile-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; margin-bottom: 14px; border: 2px solid var(--cmte-orange-2); border-radius: 50%; color: #991737; font-size: 24px; background: #fff8f1; }
.kr-cmte--index .kr-cmte__tile-title { max-width: 290px; margin: 0; color: #7e1830; font-size: 17px; font-weight: 800; line-height: 1.4; letter-spacing: .025em; text-transform: uppercase; text-align: center; text-align-last: center; hyphens: none; overflow-wrap: anywhere; }
.kr-cmte--index .kr-cmte__tile-count { margin-top: 12px; color: #95421b; font-size: 13px; line-height: 1.5; }
.kr-cmte--index .kr-cmte__tile-action { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 16px; border-top: 4px solid #ffad32; background: var(--cmte-grad); color: #fff; font-size: 13px; font-weight: 800; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 991.98px) {
	.kr-cmte--index .kr-cmte__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 575.98px) {
	.kr-cmte--index .kr-cmte__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.kr-cmte--index .kr-cmte__tile { transition: none; }
	.kr-cmte--index .kr-cmte__tile:hover { transform: none; }
}

/* Table card */
.kr-cmte__card { background: #fff; border: 1px solid var(--cmte-line); border-radius: 16px; overflow: hidden; box-shadow: 0 12px 34px rgba(255,101,0,.10); }
.kr-cmte__card .table-responsive { margin: 0; }
.kr-cmte__table { width: 100%; margin: 0; border-collapse: collapse; font-size: 15px; }
.kr-cmte .kr-cmte__table thead th { background: var(--cmte-grad); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 15px 18px; border: 0; border-bottom: 3px solid #c74300; box-shadow: 0 6px 16px -6px rgba(255,101,0,.5); white-space: nowrap; vertical-align: middle; }
.kr-cmte__table td { padding: 14px 18px; border: 0; border-top: 1px solid var(--cmte-line); color: var(--cmte-text); vertical-align: middle; }
.kr-cmte__table tbody tr:first-child td { border-top: 0; }
.kr-cmte__table tbody tr:nth-child(even) { background: #fffaf5; }
.kr-cmte__table tbody tr { transition: background .2s; }
.kr-cmte__table tbody tr:hover { background: var(--cmte-orange-soft); }
.kr-cmte__sr { width: 80px; text-align: center; font-weight: 700; color: var(--cmte-orange) !important; }
.kr-cmte .kr-cmte__table thead th.kr-cmte__sr { color: #fff !important; }
.kr-cmte__name { font-weight: 700; color: var(--cmte-ink) !important; }
.kr-cmte__center { text-align: center; }
.kr-cmte__count { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: var(--cmte-orange-soft); color: #c2410c; font-size: 13px; font-weight: 700; white-space: nowrap; }
.kr-cmte__table a.kr-cmte__mail { color: var(--cmte-deep); text-decoration: none; overflow-wrap: anywhere; }
.kr-cmte__table a.kr-cmte__mail:hover { color: #c74300; text-decoration: underline; }

/* Buttons */
.kr-cmte__btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.kr-cmte__btn--primary { background: var(--cmte-grad); color: #fff; box-shadow: 0 8px 18px rgba(255,101,0,.28); }
.kr-cmte__btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(255,101,0,.36); }
.kr-cmte__btn--ghost { border: 1px solid var(--cmte-line); color: var(--cmte-deep); background: #fff; }
.kr-cmte__btn--ghost:hover { border-color: var(--cmte-orange); color: var(--cmte-orange); }
.kr-cmte__btn--pdf { border: 1px solid rgba(220,38,38,.3); color: #b91c1c; background: #fff; }
.kr-cmte__btn--pdf:hover { background: #fef2f2; color: #991b1b; }

/* Detail page toolbar + empty state */
.kr-cmte__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.kr-cmte__empty { padding: 48px 20px; text-align: center; color: var(--cmte-muted); }
.kr-cmte__empty i { display: block; font-size: 30px; color: var(--cmte-orange); margin-bottom: 12px; opacity: .8; }

@media (max-width: 767.98px) {
	.kr-cmte { padding: 36px 0 52px; }
	.kr-cmte__table thead th, .kr-cmte__table td { padding: 12px 12px; font-size: 14px; }
	.kr-cmte__sr { width: 56px; }
	.kr-cmte__table--members { min-width: 640px; }
	.kr-cmte__table--index { min-width: 520px; }
}

/* Committee page: academic year sidebar card */
.kr-cmte__side { position: sticky; top: 110px; background: #fff; border: 1px solid var(--cmte-line); border-radius: 16px; overflow: hidden; box-shadow: 0 12px 34px rgba(255,101,0,.10); }
.kr-cmte__side-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; background: var(--cmte-grad); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-bottom: 3px solid #c74300; }
.kr-cmte__side-list { list-style: none; margin: 0; padding: 8px; }
.kr-cmte__side-list li + li { margin-top: 4px; }
.kr-cmte__side-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 10px; color: var(--cmte-ink); font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s, color .2s, padding .2s; }
.kr-cmte__side-list a i { font-size: 15px; color: var(--cmte-orange); opacity: .6; transition: opacity .2s, transform .2s; }
.kr-cmte__side-list a:hover { background: var(--cmte-orange-soft); color: var(--cmte-deep); padding-left: 18px; }
.kr-cmte__side-list a:hover i { opacity: 1; transform: translateX(2px); }
.kr-cmte__side-list a.is-active { background: var(--cmte-grad); color: #fff; box-shadow: 0 8px 18px rgba(255,101,0,.3); }
.kr-cmte__side-list a.is-active i { color: #fff; opacity: 1; }
.kr-cmte__year-title { font-size: 20px; font-weight: 800; color: var(--cmte-ink); margin: 0 0 14px; }
.kr-cmte__year-title span { display: inline-block; margin-left: 6px; padding: 2px 12px; border-radius: 999px; background: var(--cmte-orange-soft); color: var(--cmte-deep); font-size: 15px; vertical-align: middle; }
@media (max-width: 991.98px) {
	.kr-cmte__side { position: static; }
	/* Years sit side by side above the table on smaller screens */
	.kr-cmte__side-list { display: flex; gap: 6px; overflow-x: auto; }
	.kr-cmte__side-list li + li { margin-top: 0; }
	.kr-cmte__side-list li { flex: 1 0 auto; }
	.kr-cmte__side-list a { justify-content: center; }
	.kr-cmte__side-list a { gap: 8px; }
}

/* Student Cell: three cards per row beside the Student Corner sidebar */
.kr-cmte--index .kr-cmte__grid--with-side { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kr-cmte--index .kr-cmte__grid--with-side .kr-cmte__tile-body { min-height: 190px; padding: 22px 14px 16px; }
.kr-cmte--index .kr-cmte__grid--with-side .kr-cmte__tile-title { font-size: 15px; }
.kr-cmte--index .kr-cmte__grid--with-side .kr-cmte__tile-action { gap: 8px; padding: 10px 12px; font-size: 12px; }
@media (max-width: 767.98px) {
	.kr-cmte--index .kr-cmte__grid--with-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
	.kr-cmte--index .kr-cmte__grid--with-side { grid-template-columns: minmax(0, 1fr); }
}
