/* RP In-Season Charting Tracker — styled to match receptionperception.com (Salient theme).
   Fonts (Bebas Neue, Inter) are already loaded by the site, so nothing extra is requested. */
.rpct {
	--rp-green: #123e3b;
	--rp-teal: #37716d;
	--rp-red: #d72638;
	--rp-ink: #222222;
	--rp-muted: #777777;
	--rp-line: #e4e4e4;
	--rp-bg: #f5f5f5;
	--rp-above: #2e8540;
	--rp-above-bg: #e5f3e8;
	--rp-at: #e0a800;
	--rp-at-ink: #7a5a00;
	--rp-at-bg: #fdf3cf;
	--rp-below: #d72638;
	--rp-below-bg: #fbe7e9;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--rp-ink);
	max-width: 860px;
	margin: 0 auto;
	line-height: 1.6;
	font-weight: 400;
	text-align: left !important;
	width: 100%;
}
.rpct *, .rpct *::before, .rpct *::after { box-sizing: border-box; }
.rpct button, .rpct input, .rpct select { font: inherit; color: inherit; margin: 0; }
.rpct ul { list-style: none; margin: 0; padding: 0; }

/* Header block */
.rpct-top {
	background: var(--rp-green); color: #fff; border-radius: 16px 16px 0 0;
	padding: 20px 16px 14px;
}
.rpct-title {
	font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif; font-weight: 400;
	font-size: 34px; line-height: 1; letter-spacing: .5px; color: #fff !important;
	margin: 0 0 14px; padding: 0; text-transform: none;
}
.rpct-search { position: relative; }
.rpct-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: rgba(255,255,255,.6); pointer-events: none; }
.rpct .rpct-search input {
	width: 100%; height: 44px; border: 1px solid rgba(255,255,255,.18) !important; border-radius: 200px;
	background: rgba(255,255,255,.1) !important; color: #fff !important; padding: 0 16px 0 42px !important;
	font-size: 16px; box-shadow: none; margin: 0;
}
.rpct .rpct-search input::placeholder { color: rgba(255,255,255,.6); }
.rpct .rpct-search input:focus { outline: 2px solid #fff; outline-offset: 1px; background: rgba(255,255,255,.16) !important; }

.rpct-filters { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.rpct-chips { display: flex; gap: 6px; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; }
.rpct-chips::-webkit-scrollbar { display: none; }
.rpct .rpct-chip {
	flex: 0 0 auto; height: 34px; padding: 0 14px; border-radius: 200px; cursor: pointer;
	border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff;
	font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	display: inline-flex; align-items: center; gap: 6px;
}
.rpct .rpct-chip span { opacity: .65; font-weight: 500; }
.rpct .rpct-chip.is-on { background: #fff; color: var(--rp-green); border-color: #fff; }
.rpct .rpct-chip--above.is-on { background: #2e8540; color: #fff; border-color: #2e8540; }
.rpct .rpct-chip--at.is-on { background: #f2c230; color: #3a2c00; border-color: #f2c230; }
.rpct .rpct-chip--below.is-on { background: var(--rp-red); color: #fff; border-color: var(--rp-red); }
.rpct .rpct-filters select {
	flex: 0 0 auto; height: 34px; border-radius: 200px; padding: 0 30px 0 14px; cursor: pointer;
	border: 1px solid rgba(255,255,255,.25); background-color: transparent; color: #fff;
	font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	-webkit-appearance: none; appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 7.5L10 12l4.5-4.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
}
.rpct .rpct-filters select option { color: #222; }

/* Rows */
.rpct .rpct-list { display: block !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; text-align: left; }
.rpct-list { background: #fff; border: 1px solid var(--rp-line); border-top: 0; border-radius: 0 0 16px 16px; overflow: hidden; }
.rpct-row { display: block; width: 100%; border-top: 1px solid var(--rp-line); margin: 0 !important; padding: 0 !important; }
.rpct-row:first-child { border-top: 0; }
.rpct-row[hidden] { display: none; }
.rpct-row--above { --tier: var(--rp-above); --tier-ink: var(--rp-above); --tier-bg: var(--rp-above-bg); }
.rpct-row--at    { --tier: var(--rp-at);    --tier-ink: var(--rp-at-ink); --tier-bg: var(--rp-at-bg); }
.rpct-row--below { --tier: var(--rp-below); --tier-ink: var(--rp-below); --tier-bg: var(--rp-below-bg); }

.rpct summary {
	display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 14px 12px 12px;
	cursor: pointer; list-style: none; position: relative; -webkit-tap-highlight-color: transparent;
}
.rpct summary::-webkit-details-marker { display: none; }
.rpct summary::marker { content: ""; }
.rpct summary::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tier); }
.rpct summary:hover { background: #fafafa; }
.rpct summary:focus-visible { outline: 2px solid var(--rp-green); outline-offset: -2px; }

.rpct-avatar {
	flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
	background: var(--rp-bg); border: 2px solid var(--tier); margin-left: 4px;
}
.rpct-avatar { position: relative; }
/* ESPN headshots are wide head-and-shoulders shots: anchor the shoulders to the bottom
   of the circle and scale so the head sits centered, like a standard profile photo. */
.rpct .rpct-avatar img {
	position: absolute !important; left: 50% !important; bottom: 0 !important; top: auto !important;
	transform: translateX(-50%) !important;
	width: 130% !important; max-width: none !important; height: auto !important; min-height: 0 !important;
	margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
	box-shadow: none !important; object-fit: fill !important;
}
.rpct-id { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.rpct-name { font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--rp-ink); }
.rpct-weeks { font-size: 12px; font-weight: 500; color: var(--rp-muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

.rpct-tag {
	flex: 0 0 auto; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
	padding: 6px 11px; border-radius: 200px; background: var(--tier-bg); color: var(--tier-ink); white-space: nowrap;
}
.rpct-tag-full { display: none; }
.rpct-chev { flex: 0 0 20px; width: 20px; height: 20px; color: #aaa; transition: transform .2s; }
.rpct details[open] .rpct-chev { transform: rotate(180deg); color: var(--rp-green); }
.rpct details[open] summary { background: #fafafa; }

.rpct-body { padding: 4px 18px 20px 20px; background: #fafafa; }
.rpct-body p { margin: 0 0 16px; font-size: 15px; line-height: 1.7; color: #333; font-weight: 400; text-align: left; }
.rpct-body p:last-child { margin-bottom: 0; }
.rpct .rpct-btn {
	display: inline-flex; align-items: center; gap: 8px; background: var(--rp-red); color: #fff !important;
	text-decoration: none !important; border-radius: 200px; padding: 11px 22px;
	font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
	transition: opacity .15s;
}
.rpct .rpct-btn:hover { opacity: .88; }

.rpct-none, .rpct-empty { padding: 32px 16px; text-align: center; color: var(--rp-muted); background: #fff; border: 1px solid var(--rp-line); border-top: 0; border-radius: 0 0 16px 16px; margin: 0; }
.rpct-none[hidden] { display: none; }

@media (min-width: 640px) {
	.rpct-top { padding: 26px 24px 18px; }
	.rpct-title { font-size: 44px; }
	.rpct summary { padding: 14px 20px 14px 18px; gap: 16px; }
	.rpct-avatar { flex-basis: 56px; width: 56px; height: 56px; }
	.rpct-name { font-size: 17px; }
	.rpct-tag-full { display: inline; }
	.rpct-body { padding: 4px 28px 24px 94px; }
}

/* Salient theme overrides its own input/select styles with high specificity; hold our shape. */
.rpct .rpct-search input { border-radius: 200px !important; height: 44px !important; line-height: 44px !important; }
.rpct .rpct-filters select {
	width: auto !important; border-radius: 200px !important; height: 34px !important; min-height: 0 !important;
	padding: 0 30px 0 14px !important; background-color: transparent !important; box-shadow: none !important;
	border: 1px solid rgba(255,255,255,.25) !important; color: #fff !important; font-size: 12px !important; line-height: 32px !important;
}

/* Editor-only health line under the tracker. */
.rpct-admin { margin: 10px 4px 0; font-size: 12px; color: #555; text-align: left; }
.rpct-admin.is-bad { color: #a11d2b; background: #fbe7e9; padding: 8px 12px; border-radius: 8px; }
.rpct-admin a { color: inherit; text-decoration: underline; font-weight: 600; }
