.gotop {
    bottom: 30px;
}

/* Explore — sort buttons trong .gsort row */
.tb-1 .gsort .gsort-btn {
	align-items: center;
	background: transparent;
	border: 0;
	cursor: pointer;
	display: inline-flex;
	justify-content: center;
	line-height: 0;
	opacity: 0.5;
	padding: 4px;
	transition: opacity 0.15s, transform 0.15s;
}
.tb-1 .gsort .gsort-btn:hover {
	opacity: 1;
}
.tb-1 .gsort .gsort-btn.is-asc,
.tb-1 .gsort .gsort-btn.is-desc {
	opacity: 1;
}
.tb-1 .gsort .gsort-btn img {
	display: block;
}
.tb-1 thead .clcolor.is-sort-active .gcolor {
	position: relative;
}
.tb-1 thead .clcolor.is-sort-active .gcolor::before {
	border: 1px solid var(--pillar-color, #10346b);
	border-radius: 50px;
	bottom: -5px;
	content: "";
	left: -5px;
	position: absolute;
	right: -5px;
	top: -5px;
}

#rgss-ranking-form .rgss-ranking-field-hint {
	font-size: 13px;
	color: #555;
	margin: -6px 0 12px;
	line-height: 1.45;
}

/* Score bars: −1 (left) … 0 (centre) … +1 (right) on location detail */
.grid-8.gprogress .progress-wrap--score-bipolar {
	overflow: visible;
}
.grid-8.gprogress .progress--score-bipolar {
	overflow: visible;
	position: relative;
}
.grid-8.gprogress .progress--score-bipolar .progress-zero {
	background: rgba(255, 255, 255, 0.55);
	height: 100%;
	left: 50%;
	position: absolute;
	top: 0;
	transform: translateX(-50%);
	width: 2px;
	z-index: 1;
}
.grid-8.gprogress .progress--score-bipolar .progress-scale-label {
	bottom: -13px;
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
	opacity: 0.9;
	position: absolute;
	white-space: nowrap;
	z-index: 2;
}
.grid-8.gprogress .progress--score-bipolar .progress-scale-label--min {
	left: 0;
	transform: none;
}
.grid-8.gprogress .progress--score-bipolar .progress-scale-label--mid {
	left: 50%;
	transform: translateX(-50%);
}
.grid-8.gprogress .progress--score-bipolar .progress-scale-label--max {
	left: auto;
	right: 0;
	transform: none;
}
.grid-8.gprogress .progress--score-bipolar .progress-bar--neg {
	border-radius: 20px 0 0 20px;
	height: 100%;
	position: absolute;
	right: 50%;
	top: 0;
}
/* Location detail: spacer ẩn khi FE không có hàng trung bình */
.grid-8.gprogress .rgss-pillar-avg-spacer {
	pointer-events: none;
	visibility: hidden;
}

.grid-8.gprogress .progress--score-bipolar .progress-bar--pos {
	border-radius: 0 20px 20px 0;
	height: 100%;
	left: 50%;
	position: absolute;
	top: 0;
}

/* Profiles directory (template-profiles.php) — layout mockup, theme colors */
.rgss-profiles-page .rgss-profiles-title {
	margin-bottom: 36px;
	text-align: center;
}
.rgss-profiles-page .rgss-profiles-toolbar {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-bottom: 40px;
}
.rgss-profiles-page .rgss-profiles-search {
	background: #fff;
	border: 2px solid #10346b;
	border-radius: 50px;
	display: block;
	margin-bottom: 0;
	position: relative;
}
.rgss-profiles-page .rgss-profiles-search-input {
	background: #fff !important;
	border: none !important;
	border-radius: 50px;
	box-shadow: none !important;
	color: #10346b !important;
	font-size: 16px;
	height: auto;
	line-height: 1.4;
	margin: 0;
	min-height: 48px;
	outline: none;
	padding: 12px 16px 12px 44px;
	width: 100%;
}
.rgss-profiles-page .rgss-profiles-search:focus-within {
	border-color: #10346b;
	box-shadow: 0 0 0 3px rgba(16, 52, 107, 0.15);
}
.rgss-profiles-page .rgss-profiles-search-input:focus {
	outline: none;
}
.rgss-profiles-page .rgss-profiles-search-icon {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3-3'/%3E%3C/svg%3E") center no-repeat;
	height: 18px;
	left: 16px;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
}
.rgss-profiles-page .rgss-profiles-alpha {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(27, minmax(0, 1fr));
	margin-bottom: 0;
}
.rgss-profiles-page .rgss-profiles-alpha-btn {
	align-items: center;
	aspect-ratio: 1;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-sizing: border-box;
	color: #10346b;
	cursor: pointer;
	display: inline-flex;
	font-size: 14px;
	font-weight: 600;
	height: auto;
	justify-content: center;
	line-height: 1;
	min-height: 0;
	min-width: 0;
	padding: 0;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
	width: 100%;
}
.rgss-profiles-page .rgss-profiles-alpha-btn[data-letter=""] {
	font-size: clamp(9px, 1vw, 12px);
	letter-spacing: -0.02em;
}
/* Tablet/laptop nhỏ (≤991px): chia 2 hàng (14 cột) */
@media (max-width: 991px) {
	.rgss-profiles-page .rgss-profiles-alpha {
		grid-template-columns: repeat(14, minmax(0, 1fr));
	}
	.rgss-profiles-page .rgss-profiles-alpha-btn[data-letter=""] {
		font-size: clamp(10px, 1.4vw, 12px);
	}
}
/* Mobile / tablet hẹp: xuống grid 11 cột (3 hàng) cho dễ nhìn */
@media (max-width: 767px) {
	.rgss-profiles-page .rgss-profiles-alpha {
		grid-template-columns: repeat(11, minmax(0, 1fr));
	}
	.rgss-profiles-page .rgss-profiles-alpha-btn[data-letter=""] {
		font-size: clamp(9px, 2.4vw, 11px);
	}
}
.rgss-profiles-page .rgss-profiles-alpha-btn:hover:not(:disabled) {
	background: #e8eef5;
	border-color: #10346b;
}
.rgss-profiles-page .rgss-profiles-alpha-btn.is-active {
	background: #10346b;
	border-color: #10346b;
	color: #fff;
}
.rgss-profiles-page .rgss-profiles-alpha-btn.is-disabled,
.rgss-profiles-page .rgss-profiles-alpha-btn:disabled {
	cursor: default;
	opacity: 0.35;
}
.rgss-profiles-page .rgss-profiles-status-row {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	justify-content: space-between;
	margin: 0;
	padding-top: 4px;
}
.rgss-profiles-page .rgss-profiles-count {
	color: #6b7280;
	font-size: 14px;
	margin: 0;
}
.rgss-profiles-page .rgss-profiles-cols-picker {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
}
.rgss-profiles-page .rgss-profiles-cols-label {
	color: #6b7280;
	font-size: 14px;
	margin-right: 10px;
}
.rgss-profiles-page .rgss-profiles-cols-btn {
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 0;
	color: #10346b;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	min-width: 44px;
	padding: 8px 14px;
}
.rgss-profiles-page .rgss-profiles-cols-btn:first-of-type {
	border-radius: 8px 0 0 8px;
}
.rgss-profiles-page .rgss-profiles-cols-btn:last-of-type {
	border-radius: 0 8px 8px 0;
}
.rgss-profiles-page .rgss-profiles-cols-btn + .rgss-profiles-cols-btn {
	margin-left: -1px;
}
.rgss-profiles-page .rgss-profiles-cols-btn.is-active {
	background: #10346b;
	border-color: #10346b;
	color: #fff;
	position: relative;
	z-index: 1;
}
.rgss-profiles-page .rgss-profiles-list {
	column-gap: 32px;
}
.rgss-profiles-page .rgss-profiles-list.rgss-profiles-cols-4 {
	column-count: 4;
}
.rgss-profiles-page .rgss-profiles-list.rgss-profiles-cols-5 {
	column-count: 5;
}
.rgss-profiles-page .rgss-profiles-list.rgss-profiles-cols-6 {
	column-count: 6;
}
.rgss-profiles-page .rgss-profiles-letter {
	break-inside: avoid;
	margin-bottom: 32px;
}
.rgss-profiles-page .rgss-profiles-letter.is-hidden {
	display: none;
}
.rgss-profiles-page .rgss-profiles-letter-h {
	border-bottom: 1px solid #e5e7eb;
	color: #10346b;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.04em;
	margin: 0 0 12px;
	padding-bottom: 8px;
}
.rgss-profiles-page .rgss-profiles-ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.rgss-profiles-page .rgss-profiles-item {
	margin: 0 0 11px;
	padding: 0;
}
.rgss-profiles-page .rgss-profiles-item.is-hidden {
	display: none;
}
.rgss-profiles-page .rgss-profiles-item a {
	color: #10346b;
	display: inline-block;
	font-size: 15px;
	line-height: 1.55;
	text-decoration: none;
}
.rgss-profiles-page .rgss-profiles-item a:hover {
	color: #bfa05a;
}
.rgss-profiles-page .rgss-profiles-empty,
.rgss-profiles-page .rgss-profiles-no-results {
	color: #6b7280;
	padding: 40px 0;
	text-align: center;
}
/* Column picker chỉ có ý nghĩa trên màn lớn — tablet/mobile luôn dùng layout responsive */
@media (max-width: 1199px) {
	.rgss-profiles-page .rgss-profiles-cols-picker {
		display: none !important;
	}
	.rgss-profiles-page .rgss-profiles-list.rgss-profiles-cols-6,
	.rgss-profiles-page .rgss-profiles-list.rgss-profiles-cols-5 {
		column-count: 4;
	}
}
@media (max-width: 991px) {
	.rgss-profiles-page .rgss-profiles-list.rgss-profiles-cols-6,
	.rgss-profiles-page .rgss-profiles-list.rgss-profiles-cols-5,
	.rgss-profiles-page .rgss-profiles-list.rgss-profiles-cols-4 {
		column-count: 2;
	}
}
@media (max-width: 575px) {
	.rgss-profiles-page .rgss-profiles-list {
		column-count: 1 !important;
	}
}

@media screen and (min-width: 1200px) {
    .grid-12 .gnum strong {
        font-size: 42px;
	}
}
