/* WeCode KC Candidate Tracker. Everything is scoped to .wct-root so a theme can't leak in and the tracker can't leak out. */
.wct-root {
	--ink: #17313e;
	--muted: #4f6672;
	--line: #d3dee4;
	--paper: #f4f7f8;
	--teal: #0b6e75;
	--teal-soft: #e3f1f1;
	--gold: #b8862b;
	--gold-soft: #fbf4e6;
	--red: #a23a1f;
	--radius: 8px;
	color: var(--ink);
	font: 15px/1.5 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
body.wct-body { margin: 0; background: #f4f7f8; }
.wct-root *, .wct-root *::before, .wct-root *::after { box-sizing: border-box; }
.wct-root h1, .wct-root h2, .wct-root h3 { color: inherit; font-family: inherit; letter-spacing: 0; text-transform: none; }
.wct-root h1 { font-size: 26px; line-height: 1.2; margin: 0; font-weight: 650; }
.wct-root h2 { font-size: 20px; line-height: 1.3; margin: 0 0 12px; font-weight: 650; }
.wct-root h3 { font-size: 15px; margin: 26px 0 10px; font-weight: 650; }
.wct-root p { margin: 0 0 10px; }
.wct-root a { color: var(--teal); }
.wct-root button, .wct-root input, .wct-root select, .wct-root textarea { font: inherit; color: inherit; }
.wct-root :focus-visible { outline: 3px solid #6fb7bc; outline-offset: 2px; }

/* Header */
.wct-top { background: var(--ink); color: #fff; }
.wct-top-in { max-width: 1320px; margin: 0 auto; padding: 18px 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.wct-top-row { padding-top: 14px; padding-bottom: 14px; }
.wct-brand { display: flex; gap: 14px; align-items: center; }
.wct-mark { width: 38px; height: 38px; border-radius: 9px; background: conic-gradient(from 210deg, var(--teal) 0 50%, var(--gold) 50% 75%, #e7eef1 75%); flex: none; }
.wct-kicker { margin: 0 0 2px !important; font-size: 13px; color: #a9c6cf; }
.wct-top .wct-kicker { color: #a9c6cf; }
.wct-me { display: flex; gap: 12px; align-items: center; font-size: 14px; flex-wrap: wrap; }
.wct-who { font-weight: 600; }
.wct-badge { background: rgba(255, 255, 255, .12); border-radius: 20px; padding: 3px 10px; font-size: 13px; }
.wct-link-light { color: #cfe6ea !important; }
.wct-metrics { display: flex; gap: 22px; flex-wrap: wrap; color: #cfe0e5; font-size: 14px; }
.wct-metrics b { color: #fff; font-size: 22px; font-weight: 650; margin-right: 2px; font-variant-numeric: tabular-nums; }
.wct-status { font-size: 13px; color: #cfe0e5; }
.wct-status.is-ok { color: #9fe1d6; }
.wct-status.is-error { color: #ffc9b8; font-weight: 600; }
.wct-tabs { background: #12282f; }
.wct-tabs .wct-top-in { padding-top: 0; gap: 2px; justify-content: flex-start; }
.wct-tabs button { background: none; border: 0; color: #b9cfd5; padding: 12px 16px; cursor: pointer; border-bottom: 3px solid transparent; }
.wct-tabs button[aria-selected="true"] { color: #fff; border-bottom-color: var(--gold); }
.wct-tabs button:hover { color: #fff; }

/* Layout */
.wct-main { max-width: 1320px; margin: 0 auto; padding: 20px 24px 60px; }
.wct-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.wct-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 20px; }
.wct-side { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.wct-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.wct-week { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }

/* Controls */
.wct-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 9px 14px; border-radius: var(--radius); cursor: pointer; text-decoration: none; font-size: 14px; line-height: 1.2; }
.wct-btn:hover { border-color: #9fb6c0; }
.wct-btn:disabled { opacity: .6; cursor: progress; }
.wct-primary { background: var(--teal); border-color: var(--teal); color: #fff !important; }
.wct-primary:hover { background: #095d63; }
.wct-btn-danger { color: var(--red); border-color: #e2b8ab; }
.wct-linkbtn { background: none; border: 0; padding: 0; color: var(--teal); text-decoration: underline; cursor: pointer; font-weight: 600; }
.wct-lab { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.wct-root input:not([type=checkbox]):not([type=hidden]), .wct-root select, .wct-root textarea {
	display: block; width: 100%; margin-top: 5px; padding: 9px 10px; border: 1px solid #bccbd3; border-radius: 6px; background: #fff; font-size: 14px; line-height: 1.45; font-weight: 400; color: var(--ink); box-shadow: none; min-height: 40px;
}
.wct-root textarea { min-height: 88px; resize: vertical; }
.wct-root [disabled] { background: #f2f5f6 !important; color: #3d5360 !important; cursor: default; }
.wct-root .wct-shared > input:not([disabled]):not([type=checkbox]), .wct-root .wct-shared > select:not([disabled]), .wct-root .wct-shared > textarea:not([disabled]) { border-left: 4px solid var(--gold); }
.wct-hint { color: var(--muted); font-size: 13px; }
.wct-small { font-size: 13px; color: var(--muted); }
.wct-note { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 10px 14px; border-radius: 6px; font-size: 14px; }
.wct-note.is-warn { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wct-error { background: #fbeae4; border-left: 4px solid var(--red); padding: 10px 14px; border-radius: 6px; color: #6d2513; }
.wct-late { color: var(--red); font-weight: 600; }

/* Candidate list */
.wct-gh { display: flex; justify-content: space-between; font-size: 13px !important; color: var(--muted); margin: 18px 0 6px !important; }
.wct-gh span { font-weight: 400; }
.wct-cand { display: block; width: 100%; text-align: left; margin: 0 0 8px; padding: 11px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.wct-cand:hover { border-color: #9fb6c0; }
.wct-cand.is-active { border: 2px solid var(--teal); background: var(--teal-soft); padding: 10px 11px; }
.wct-cand b { display: block; font-weight: 650; }
.wct-cand small { display: block; color: var(--muted); font-size: 13px; margin: 1px 0 6px; }
.wct-pill { display: inline-block; padding: 2px 9px; border-radius: 20px; background: var(--teal-soft); font-size: 12px; color: #0a4f54; }
.wct-add { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }

/* Editor */
.wct-ed-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 4px; }
.wct-ed-head h2 { font-size: 24px; margin-bottom: 4px; }
.wct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.wct-wide { grid-column: 1 / -1; }
.wct-checks { display: flex; flex-wrap: wrap; gap: 10px; }
.wct-checks label { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--paper); border-radius: 6px; font-size: 14px; border: 1px solid transparent; }
.wct-checks label.wct-shared { border-color: #e7d3a8; }
.wct-checks input { width: 17px; height: 17px; margin: 0; accent-color: var(--teal); }
.wct-qs { background: var(--paper); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 12px; font-size: 14px; }
.wct-qs summary { cursor: pointer; font-weight: 600; }
.wct-qs li { margin-bottom: 4px; }
.wct-noteform { display: flex; gap: 12px; align-items: flex-end; }
.wct-noteform .wct-lab { flex: 1; margin: 0; }
.wct-noteform textarea { min-height: 60px !important; }
.wct-danger { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Feeds and lists */
.wct-feed { list-style: none; margin: 12px 0 0; padding: 0; }
.wct-feed li { padding: 10px 0 10px 14px; border-left: 3px solid var(--line); margin-bottom: 4px; }
.wct-feed li p { margin: 0; white-space: pre-wrap; }
.wct-feed li small { color: var(--muted); font-size: 12px; }
.wct-feed .wct-feed-note { border-left-color: var(--gold); }
.wct-feed .wct-feed-create, .wct-feed .wct-feed-account { border-left-color: var(--teal); }
.wct-plain { list-style: none; padding: 0; margin: 0; }
.wct-plain li { padding: 8px 0; border-bottom: 1px solid #e9eff2; }
.wct-plain li:last-child { border-bottom: 0; }
.wct-bullets li { padding-left: 0; }
.wct-steps { margin: 0; padding-left: 20px; }
.wct-steps li { margin-bottom: 8px; }

/* Drafts and tables */
.wct-drafts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wct-drafts h3 { margin-top: 0; }
.wct-root pre { white-space: pre-wrap; font: 14px/1.6 inherit; font-family: inherit; background: var(--paper); padding: 16px; border-radius: var(--radius); margin: 0 0 10px; }
.wct-scroll { overflow-x: auto; }
.wct-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.wct-table th, .wct-table td { text-align: left; padding: 11px 12px; border: 1px solid var(--line); vertical-align: top; }
.wct-table th { background: #eaf1f3; }

/* Sign in and sign up */
.wct-card { max-width: 460px; margin: 8vh auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.wct-auth h1 { margin-bottom: 8px; }
.wct-auth .wct-kicker { color: var(--teal); font-weight: 600; }
.wct-auth form p { margin: 0 0 14px; }
.wct-auth form label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.wct-auth #wct-login label { margin-bottom: 0; }
.wct-auth .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--ink); }
.wct-auth .login-remember input { width: auto; min-height: 0; margin: 0; }
.wct-auth input[type=submit], .wct-auth button[type=submit] { width: 100%; justify-content: center; background: var(--teal); color: #fff; border: 0; border-radius: var(--radius); padding: 12px; font-size: 15px; font-weight: 600; cursor: pointer; }
.wct-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.wct-loading { padding: 80px 24px; text-align: center; color: var(--muted); }

@media (max-width: 900px) {
	.wct-layout, .wct-grid, .wct-week, .wct-drafts { grid-template-columns: 1fr; }
	.wct-side { position: static; max-height: none; }
	.wct-main, .wct-top-in { padding-left: 14px; padding-right: 14px; }
	.wct-tabs .wct-top-in { overflow-x: auto; flex-wrap: nowrap; }
	.wct-tabs button { white-space: nowrap; }
	.wct-metrics { gap: 4px 16px; }
	.wct-metrics b { font-size: 18px; }
	.wct-root h1 { font-size: 22px; }
	.wct-noteform { flex-direction: column; align-items: stretch; }
	.wct-card { margin: 4vh 14px; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .wct-root * { scroll-behavior: auto !important; } }

/* Printing an interview report */
#wct-report { display: none; }
@media print {
	body.wct-printing > *:not(#wct-report) { display: none !important; }
	body.wct-printing #wct-report { display: block !important; font: 12pt/1.5 Georgia, serif; color: #000; }
	#wct-report h1 { font-size: 20pt; }
	#wct-report h3 { font-size: 12pt; margin: 14pt 0 3pt; }
	#wct-report p { white-space: pre-wrap; margin: 0; }
}
