/* SBC Radio Site Map. Layout, list, pins and drawer come from the contractor
 * directory stylesheet (sbc-fi.css); this file adds only what radio sites need. */

.sbc-rs-panels {
	align-self: start;
}
.sbc-rs-source {
	margin: 0;
	font-size: 12px;
	color: #6b7280;
	line-height: 1.4;
}
.sbc-rs .sbc-fi-radius-status {
	margin-top: 6px;
}

/* No filter row in this tool, so the header sits beside search + source line. */
.sbc-rs .sbc-fi-header-title {
	font-size: 22px;
}

.sbc-rs .sbc-fi-item.is-active {
	background: #e6f0f4;
}
.sbc-rs .sbc-fi-item:focus-visible {
	outline: 2px solid #1d6680;
	outline-offset: -2px;
}

.sbc-rs-pin.is-active svg path {
	stroke: #0e1a2b;
}

/* Drawer additions */
.sbc-rs-coord {
	font-variant-numeric: tabular-nums;
}
.sbc-rs-code {
	display: inline-block;
	margin-left: 4px;
	padding: 0 5px;
	border: 1px solid #d9dde3;
	border-radius: 3px;
	font-size: 11px;
	color: #6b7280;
	line-height: 16px;
	vertical-align: 1px;
}
.sbc-rs-lic {
	border: 1px solid #d9dde3;
	border-radius: 6px;
	padding: 10px 12px 12px;
	margin-bottom: 12px;
	background: #ffffff;
}
.sbc-rs-lic-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid #eef1f5;
}
.sbc-rs-lic-name {
	font-weight: 700;
	color: #0e1a2b;
	line-height: 1.3;
}
.sbc-rs-callsign {
	flex-shrink: 0;
	font-weight: 700;
	font-size: 13px;
	color: #1d6680;
	letter-spacing: 0.03em;
}
.sbc-rs-freqwrap {
	overflow-x: auto;
	max-height: 260px;
	overflow-y: auto;
	border: 1px solid #eef1f5;
	border-radius: 4px;
}
.sbc-rs-freqs {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}
.sbc-rs-freqs th {
	position: sticky;
	top: 0;
	background: #f6f7f9;
	text-align: left;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #6b7280;
	padding: 6px 8px;
	white-space: nowrap;
}
.sbc-rs-freqs td {
	padding: 5px 8px;
	border-top: 1px solid #eef1f5;
	vertical-align: top;
}
.sbc-rs-freqs .sbc-rs-num {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.sbc-rs-freqs td.sbc-rs-num:last-child,
.sbc-rs-freqs th:last-child {
	text-align: right;
}
.sbc-rs-fcc {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
}

/* Members-only notice */
.sbc-rs-locked {
	background: #f0f5f9;
	border: 1px solid #d9dde3;
	border-radius: 6px;
	padding: 24px;
	text-align: center;
	color: #0e1a2b;
}
.sbc-rs-locked h3 {
	margin: 0 0 8px;
	color: #1d6680;
}
.sbc-rs-locked p {
	margin: 0 0 16px;
}
.sbc-rs-login {
	background: #1d6680;
	color: #ffffff;
	border: none;
	border-radius: 4px;
	padding: 10px 20px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.sbc-rs-login:hover,
.sbc-rs-login:focus-visible {
	background: #15526a;
}

/* 0.2.0: digital/analog, emission codes, control points, wide view */
.sbc-rs-mode {
	display: inline-block;
	font-weight: 600;
	white-space: nowrap;
}
.sbc-rs-mode.is-digital { color: #1d6680; }
.sbc-rs-mode.is-analog { color: #8a5a00; }
.sbc-rs-ems {
	display: block;
	font-size: 11px;
	color: #6b7280;
	line-height: 1.5;
}
.sbc-rs-em {
	white-space: nowrap;
}
.sbc-rs-note {
	margin: 6px 0 0;
	font-size: 12px;
	color: #6b7280;
	line-height: 1.45;
}
.sbc-rs-emlegend strong {
	color: #0e1a2b;
	font-weight: 600;
}
.sbc-rs-drawer.expanded .sbc-rs-lics {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 560px, 1fr ) );
	gap: 12px;
	align-items: start;
}
.sbc-rs-drawer.expanded .sbc-rs-lic {
	margin-bottom: 0;
}
.sbc-rs-drawer.expanded .sbc-rs-freqwrap {
	max-height: 420px;
}
/* Keep wide frequency tables inside the drawer (they scroll sideways on their own). */
.sbc-rs-lics,
.sbc-rs-lic,
.sbc-rs-lic .sbc-fi-drawer-row,
.sbc-rs-lic .sbc-fi-drawer-value {
	min-width: 0;
	max-width: 100%;
}
.sbc-rs-lic .sbc-fi-drawer-value {
	overflow-wrap: anywhere;
}
.sbc-rs-freqwrap {
	max-width: 100%;
}

/* 0.3.0: band filter panel shares the contractor map's filter styling. */
.sbc-rs-panels {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	align-items: flex-start;
}
.sbc-rs-panels > p {
	flex-basis: 100%;
}
.sbc-rs-band-n {
	color: #6b7280;
	white-space: nowrap;
}

/* 0.4.0: list below the map, full width; the map spans both columns. */
.sbc-fi.sbc-rs {
	grid-template-columns: 2fr 1fr;
	grid-template-rows: auto auto 560px auto auto;
	grid-template-areas:
		"filters header"
		"panels  header"
		"map     map"
		"sortbar sortbar"
		"list    list";
}
.sbc-rs .sbc-fi-cell-list .sbc-fi-list {
	flex: none;
	max-height: none;
	overflow: visible;
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 340px, 1fr ) );
	column-gap: 16px;
	align-items: start;
}
.sbc-rs .sbc-fi-list .sbc-fi-empty-list,
.sbc-rs .sbc-fi-list .sbc-rs-more-row {
	grid-column: 1 / -1;
}
.sbc-rs .sbc-fi-item:last-child {
	border-bottom: 1px solid #eef1f5;
}
.sbc-rs-more-row {
	text-align: center;
	padding: 12px 0 6px;
}
.sbc-rs-more {
	background: #ffffff;
	border: 1px solid #1d6680;
	color: #1d6680;
	border-radius: 4px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.sbc-rs-more:hover,
.sbc-rs-more:focus-visible {
	background: #1d6680;
	color: #ffffff;
}
.sbc-rs-cluster-inner {
	cursor: pointer;
}
@media ( max-width: 900px ) {
	.sbc-fi.sbc-rs {
		grid-template-columns: 1fr;
		grid-template-rows: none;
		grid-template-areas: none;
	}
	.sbc-rs .sbc-fi-cell-list .sbc-fi-list {
		grid-template-columns: 1fr;
		max-height: none;
	}
}

/* 0.5.0: State filter, agency panel, and the "narrow your search" prompt over 150 sites. */
.sbc-rs-agency-panel .sbc-fi-setaside-list {
	max-height: 320px;
	overflow-y: auto;
}
.sbc-rs-narrow {
	grid-column: 1 / -1;
	padding: 14px 10px 8px;
	font-size: 13px;
	color: #0e1a2b;
}
.sbc-rs-narrow-head {
	margin: 0 0 12px;
	line-height: 1.45;
}
.sbc-rs-narrow-group {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	padding: 8px 0;
	border-top: 1px solid #eef1f5;
}
.sbc-rs-narrow-label {
	flex: 0 0 130px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
}
.sbc-rs-chips {
	flex: 1 1 300px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.sbc-rs-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ffffff;
	border: 1px solid #d9dde3;
	border-radius: 14px;
	padding: 4px 10px;
	font-size: 12px;
	color: #0e1a2b;
	cursor: pointer;
}
.sbc-rs-chip span {
	font-variant-numeric: tabular-nums;
	color: #6b7280;
	font-weight: 600;
}
.sbc-rs-chip.is-fit {
	border-color: #3d8b3d;
}
.sbc-rs-chip.is-fit span {
	color: #2f6f2f;
}
.sbc-rs-chip:hover,
.sbc-rs-chip:focus-visible {
	border-color: #1d6680;
	background: #e6f0f4;
}
@media ( max-width: 900px ) {
	.sbc-rs-narrow-label {
		flex-basis: 100%;
	}
}

/* 0.5.6: search hint */
.sbc-rs-hint {
	margin: 0;
	font-size: 13px;
	color: #0e1a2b;
	line-height: 1.4;
	flex-basis: 100%;
}

/* 0.5.9: ⓘ tips placed by sbc-rs.js so they stay on screen; the shared
 * bubble from the contractor stylesheet is turned off inside the radio map. */
.sbc-rs [data-tip]::after,
.sbc-rs [data-tip]::before {
	display: none !important;
}
.sbc-rs .sbc-fi-info-icon {
	cursor: help;
}
.sbc-rs-tip {
	position: fixed;
	z-index: 100001;
	box-sizing: border-box;
	background: #0e1a2b;
	color: #ffffff;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: 0 4px 12px rgba( 0, 0, 0, 0.2 );
	overflow: auto;
	pointer-events: none;
}
