/* Úrslit – Race Results. Inherits Soledad theme accent + fonts. */
.fifres {
	--fifres-accent: var(--pcaccent-cl, #6eb48c);
}

.fifres-search {
	display: flex;
	gap: 8px;
	margin: 0 0 1.4em;
}
.fifres-search input[type="search"] {
	flex: 1;
	max-width: 340px;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 15px;
}
.fifres-search button {
	padding: 8px 18px;
	border: 0;
	border-radius: 4px;
	background: var(--fifres-accent);
	color: #fff;
	cursor: pointer;
	font-family: "Raleway", sans-serif;
	font-weight: 600;
}
.fifres-search button:hover {
	opacity: 0.9;
}

.fifres-crumbs {
	font-size: 13px;
	color: #888;
	margin-bottom: 0.6em;
}
.fifres-crumbs a {
	color: var(--fifres-accent);
	text-decoration: none;
}

.fifres-years {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.fifres-year {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 96px;
	padding: 14px 10px;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	text-decoration: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.fifres-year:hover {
	border-color: var(--fifres-accent);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.fifres-year-num {
	font-family: "Raleway", sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: var(--fifres-accent);
}
.fifres-year-meta {
	font-size: 12px;
	color: #888;
}

.fifres-racelist {
	list-style: none;
	margin: 0;
	padding: 0;
}
.fifres-racelist li {
	padding: 10px 2px;
	border-bottom: 1px solid #eee;
}
.fifres-racelist a {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}
.fifres-racelist a:hover {
	color: var(--fifres-accent);
}
.fifres-race-meta {
	display: block;
	font-size: 12.5px;
	color: #888;
	margin-top: 2px;
}
.fifres-badge {
	display: inline-block;
	background: var(--fifres-accent);
	color: #fff;
	font-size: 11px;
	padding: 1px 7px;
	border-radius: 9px;
	vertical-align: middle;
}

.fifres-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 18px;
}
.fifres-chip {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid #e5e5e5;
	border-radius: 18px;
	font-family: "Raleway", sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	color: #444;
	text-decoration: none;
	transition: border-color 0.15s;
}
.fifres-chip span {
	font-weight: 400;
	color: #999;
	font-size: 11px;
}
.fifres-chip:hover {
	border-color: var(--fifres-accent);
	color: var(--fifres-accent);
}
.fifres-chip.is-active {
	background: var(--fifres-accent);
	border-color: var(--fifres-accent);
	color: #fff;
}
.fifres-chip.is-active span {
	color: rgba(255, 255, 255, 0.75);
}

.fifres-top1 td {
	background: #f4faf6;
}
.fifres-top1 td:first-child {
	box-shadow: inset 3px 0 0 var(--fifres-accent);
}

.fifres-star {
	color: var(--fifres-accent);
	font-weight: 700;
	cursor: help;
}
.fifres-note {
	font-size: 13px;
	color: #777;
	font-style: italic;
	margin: 0.2em 0 0.8em;
}

.fifres-race-sub {
	color: #888;
	font-size: 14px;
	margin-top: -0.4em;
}
.fifres-group {
	margin: 1.6em 0 0.4em;
	padding-bottom: 4px;
	border-bottom: 2px solid var(--fifres-accent);
	font-family: "Raleway", sans-serif;
}

.fifres-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	margin: 0 0 1em;
}
.fifres-table th {
	text-align: left;
	font-family: "Raleway", sans-serif;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #666;
	padding: 6px 8px;
	border-bottom: 1px solid #ddd;
}
.fifres-table td {
	padding: 6px 8px;
	border-bottom: 1px solid #f0f0f0;
}
.fifres-table tr:hover td {
	background: #fafcfb;
}
.fifres-table .num {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.fifres-table td a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px dotted #bbb;
}
.fifres-table td a:hover {
	color: var(--fifres-accent);
	border-bottom-color: var(--fifres-accent);
}

@media (max-width: 600px) {
	.fifres-table {
		font-size: 12.5px;
	}
	.fifres-table th,
	.fifres-table td {
		padding: 5px 5px;
	}
}

.fifres-print {
	margin: 1.8em 0 0.5em;
}
.fifres-print button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
	color: #555;
	font: 600 12.5px "Raleway", sans-serif;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
}
.fifres-print button:hover {
	border-color: var(--fifres-accent);
	color: var(--fifres-accent);
}

@media print {
	body * {
		visibility: hidden;
	}
	.fifres, .fifres * {
		visibility: visible;
	}
	.fifres {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		padding: 0;
	}
	.fifres-search, .fifres-crumbs, .fifres-print, .fifres-chips {
		display: none !important;
	}
	.fifres-table {
		font-size: 11.5px;
	}
	.fifres-table td, .fifres-table th {
		color: #000 !important;
		border-bottom: 1px solid #ccc;
	}
	.fifres-table tr {
		page-break-inside: avoid;
	}
	.fifres-group {
		page-break-after: avoid;
		border-bottom: 2px solid #000;
		color: #000;
	}
	.fifres-table td a {
		border-bottom: none;
		color: #000;
	}
	.fifres-star {
		color: #000;
	}
	.fifres-note {
		color: #000;
	}
	.fifres-top1 td {
		background: none;
		box-shadow: none;
	}
}
