/* FM Station Search
 * Table rules are copied value-for-value from fm-station-list.css so the search
 * results are identical to the station lists, whether or not
 * fm-station-profile.css happens to be loaded on the same page.
 */

.fm-station-profile.fm-ss {
	--fm-ink: #16202B;
	--fm-slate: #5B6675;
	--fm-surface: #FFFFFF;
	--fm-teal: #0E7C86;
	--fm-teal-dark: #0A5A62;
	--fm-line: #E4E4DF;
	--fm-row: #F7F7F5;

	width: 100%;
	max-width: 100%;
	font-family: 'IBM Plex Sans', Arial, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: var(--fm-ink);
}

.fm-ss a:link,
.fm-ss a:visited {
	color: var(--fm-teal-dark);
	text-decoration: none;
}

.fm-ss a:hover {
	text-decoration: underline;
}

/* Section heading — same treatment as .fm-sp-section */
.fm-ss .fm-ss-heading {
	margin: 0 0 10px;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 500;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--fm-slate);
}

/* Form */
.fm-ss .fm-ss-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: flex-end;
	margin: 0 0 14px;
}

.fm-ss .fm-ss-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.fm-ss .fm-ss-field-text {
	flex: 2 1 260px;
}

.fm-ss .fm-ss-field-country {
	flex: 1 1 180px;
}

.fm-ss .fm-ss-field-submit {
	flex: 0 0 auto;
}

.fm-ss .fm-ss-label {
	margin-bottom: 4px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--fm-ink);
}

.fm-ss input[type="search"],
.fm-ss select {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--fm-line);
	border-radius: 10px;
	background: var(--fm-surface);
	/* px, not rem: themes that set html{font-size:62.5%} would shrink rem values to ~10px.
	   font-family: inherit picks up IBM Plex Sans instead of the browser default. */
	font-family: inherit;
	font-size: 16px;
	line-height: 36px;
	color: var(--fm-ink);
}

.fm-ss input[type="search"]:focus,
.fm-ss select:focus,
.fm-ss .fm-ss-button:focus-visible {
	outline: 2px solid var(--fm-teal-dark);
	outline-offset: 1px;
}

.fm-ss .fm-ss-button {
	height: 38px;
	padding: 0 20px;
	border: 1px solid var(--fm-teal-dark);
	border-radius: 10px;
	background: var(--fm-teal-dark);
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	cursor: pointer;
}

.fm-ss .fm-ss-button:hover {
	background: #084A51;
}

/* Results */
.fm-ss .fm-ss-count {
	margin: 0 0 10px;
	padding: 0;
	color: var(--fm-slate);
	font-size: 13px;
}

/* Card wrapper — .fm-sp-card */
.fm-ss .fm-ss-results {
	background: var(--fm-surface);
	border: 1px solid var(--fm-line);
	border-radius: 10px;
	overflow: hidden;
	box-sizing: border-box;
}

/* Shared table look */
.fm-ss .fm-ss-table {
	width: 100%;
	border-collapse: collapse;
	border: none;
	table-layout: fixed;
}

.fm-ss .fm-ss-table td,
.fm-ss .fm-ss-table th,
.fm-ss .fm-ss-table tr {
	padding: 6px 12px;
	text-align: left;
	font-size: 13px;
	border: none;
	word-wrap: break-word;
}

.fm-ss .fm-ss-table thead th {
	background: #EFEFEB;
	color: var(--fm-ink);
	font-weight: 600;
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: .03em;
}

.fm-ss .fm-ss-table tbody tr:nth-child(odd) {
	background: var(--fm-row);
}

/* Station name — .fm-sp-site treatment */
.fm-ss .fm-ss-table td.fm-ss-col-name {
	font-family: 'IBM Plex Sans', sans-serif;
	font-weight: 500;
	font-size: 13px;
}

/* Market, in parentheses after the station name */
.fm-ss .fm-ss-market {
	font-weight: 400;
	color: var(--fm-slate);
}

/* Country flag — .fm-sp-flag */
.fm-ss .fm-ss-flag {
	width: 14px;
	vertical-align: -2px;
	margin-right: 5px;
}

/* Column positions, as in .fm-station-profile.fm-sl */
.fm-ss .fm-ss-table th:nth-child(1),
.fm-ss .fm-ss-table td:nth-child(1) {
	width: 53%;
}

.fm-ss .fm-ss-table th:nth-child(2),
.fm-ss .fm-ss-table td:nth-child(2) {
	width: 47%;
}

/* Pagination */
.fm-ss .fm-ss-pager {
	display: flex;
	gap: 16px;
	margin: 10px 0 0;
	font-size: 13px;
}

@media (max-width: 600px) {
	.fm-ss .fm-ss-field-submit,
	.fm-ss .fm-ss-button {
		width: 100%;
	}

	.fm-ss .fm-ss-table td,
	.fm-ss .fm-ss-table th {
		padding: 6px 8px;
	}
}
