/* === Ratings Section === */
.ratings_section {
    background: var(--cream-light);
  	padding: 2.25rem 1rem 2.75rem;
  	font-family: 'roasterregular', sans-serif;
}

.ratings_inner {
  	max-width: 1200px;
  	margin: 0 auto;
  	display: flex;
  	flex-direction: column;
  	gap: 1.75rem;
	align-items: center;
	text-align: left;
}

.ratings_description {
	text-align: center;
	color: var(--text-light);
	line-height: 1.75rem;
	margin-top: 0;
}

.rating_group.overall-rating { 
	display: flex; 
	align-items: center; 
	gap: 1rem; 
	position: relative; 
	flex-wrap: nowrap; 
}

.overall_score_row {
	display: inline-flex; 
	align-items: baseline; 
	gap: .1rem;
  	font-size: clamp(1.8rem, 3.2vw, 2.2rem);
	font-weight: 600; 
	color: var(--text-dark); 
	line-height: 1;
}

.overall_score { letter-spacing: .02em; }

.overall_scale { 
    font-size: clamp(0.95rem, 1.5vw, 1.05rem); 
    font-weight: 500; 
    color: var(--text-dark); 
}

.overall_divider { 
    font-size: clamp(1rem, 1.8vw, 1.1rem); 
    font-weight: 400; 
    margin-inline: .05rem; 
}

.overall_meta {
	display: inline-flex;
  	align-items: center;
  	gap: .55rem;
  	min-width: auto;
}

.overall_label {
	font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  	font-weight: 600;
  	color: var(--text-dark);
  	letter-spacing: 0;
}

.overall_reviews { 
    font-size: .8rem; 
    font-weight: 500; 
    color:#222; 
    letter-spacing: 0; 
}

.ratings_info_btn {
	background: transparent; 
	border: none; 
    color: var(--text-dark); 
	font-size: .95rem; 
	cursor: pointer;
  	display: inline-flex; 
	align-items: center; 
	gap: .25rem; 
	padding: 0; 
	transition: color .25s ease, transform .25s ease;
}

.ratings_info_btn:hover, .ratings_info_btn:focus-visible { 
    color: var(--primary-color); 
    transform: translateY(-2px); 
    outline: none; 
}

.overall_separator { 
	width: 1px; 
	height: 36px; 
	background: rgba(0,0,0,.6); 
	flex-shrink: 0; 
	margin-left:.8rem; 
}

.ratings_sources_row {
  	display: inline-flex;
  	align-items: center;
  	justify-content: center;
  	gap: clamp(2rem, 6vw, 4rem);
  	flex-wrap: nowrap;
  	width: 100%;
}

.rating_source { 
    display: flex; 
    flex-direction: column; 
    gap:.25rem; 
    min-width: auto; 
}

.source_name { 
    font-size: .9rem; 
    font-weight: 600; 
    color: var(--text-dark); 
    letter-spacing: .02em;
}

.source_score { 
    font-size: 1.2rem; 
    font-weight: 600; 
    color: var(--text-dark); 
    line-height: 1; 
}

.source_scale { 
    font-size: .85rem; 
    font-weight: 500; 
    color: var(--text-dark); 
    margin-left: .1rem; 
}

/* Popover Panel */
.ratings_detail_panel { 
    position: absolute; 
    top: 0; 
    left: 0; 
    z-index: 60; 
}

.detail_panel_inner {
  	position: relative; 
	background: #fff; 
	border: 1px solid rgba(0,0,0,.12);
	border-radius: .6rem;
  	box-shadow: 0 14px 46px -10px rgba(0,0,0,.25), 0 6px 16px -4px rgba(0,0,0,.18);
  	padding: 1.15rem 1.3rem 1.2rem; 
	width: min(340px, 94vw); 
	animation: ratingsPanelFade .28s ease;
}

.source_icon_img {
	width: 18px;
  	height: 18px;
  	object-fit: contain;
  	display: inline-block !important;
  	margin-right: 0.2rem;
	vertical-align: middle;
}

@keyframes ratingsPanelFade { from { opacity: 0; transform:translateY(8px);} to { opacity:1; transform:translateY(0);} }

.detail_title { 
    margin: 0 0 .85rem; 
    font-size: 1.06rem; 
    font-weight: 700; 
    color: var(--text-dark); 
    letter-spacing: .02em; 
}

.detail_list { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    display: grid; 
    gap: .55rem; 
}

.detail_item { 
    display: grid; 
    grid-template-columns: 1fr auto; 
    align-items: center; 
    gap: .35rem .75rem; 
    font-size: .87rem; 
}
.detail_name { 
    font-weight: 700; 
    color: var(--text-dark); 
}
.detail_reviews { 
    font-weight: 500; 
    color: #555; 
    font-size: .75rem; 
    grid-column: 1; 
    margin-top: -2px; 
}
.detail_score { 
    grid-column: 2; 
    font-weight: 700; 
    font-size: .95rem; 
    color: var(--text-dark); 
}
.detail_scale { 
    font-weight: 500; 
    font-size: .7rem; 
    margin-left: .1rem; 
}
.detail_close_btn {
	position:absolute; 
	top: .35rem; 
	right: .35rem; 
	background: transparent; 
	border: none; 
	color: var(--text-dark); 
	font-size: 1.1rem;
	cursor: pointer; 
	padding: .25rem; 
	transition: color .25s ease, transform .25s ease;
}
.detail_close_btn:hover, .detail_close_btn:focus-visible { 
    color: var(--primary-color); 
    transform: scale(1.12); 
    outline: none; 
}

.detail_panel_arrow {
	position: absolute; 
	left: 30px; 
	bottom: -12px; 
	width: 22px; 
	height: 22px; 
	background:#fff; 
	transform: rotate(45deg);
	border-left: 1px solid rgba(0,0,0,.12); 
	border-bottom: 1px solid rgba(0,0,0,.12); 
	box-shadow: 0 4px 14px -4px rgba(0,0,0,.18);
	z-index: -1; 
	clip-path: polygon(0 0,100% 0,100% 100%,0 100%);
}

/* == Reviews Button Toggle == */
.reviews_toggle_row { 
    display: flex; 
    justify-content: center; 
    margin-top: .75rem; 
}

.reviews_toggle_btn {
	display: inline-flex; 
	align-items: center; 
	gap: .5rem;
	background: transparent; 
	border: none; 
	color: var(--text-dark);
	font-weight: 700; 
	letter-spacing: .02em; 
	cursor: pointer;
}

.reviews_toggle_btn:hover { 
    color: var(--primary-color); 
    outline: none; 
    transition: transform .25s ease; 
}

.reviews_toggle_btn .toggle_icon { transition: transform .25s ease; }

.reviews_toggle_btn[aria-expanded="true"] .toggle_icon { transform: rotate(180deg); }

/* == Reviews Expanded Section == */
.reviews_expanded .reviews_header { 
    text-align: center; 
    display: grid; 
    gap: .3rem; 
    margin-bottom: 1rem; 
}

.reviews_eyebrow { 
    font-size: .8rem; 
    letter-spacing: .2em; 
    text-transform: uppercase; 
    color: var(--text-light); 
}

.reviews_title { 
    font-size: clamp(1.8rem, 4.5vw, 2.4rem); 
    font-weight: 800; 
    color: var(--text-dark); 
}

.reviews_subtitle { 
    font-size: .95rem; 
    color: var(--text-light); 
}

.testimonials_swiper { 
	margin-top: .25rem; 
	position: relative; 
	padding: 0 0 4.5rem; 
	overflow: visible;
	--swiper-navigation-size: 16px; 
}

.testimonials_swiper .swiper-wrapper { align-items: stretch; }

.testimonials_swiper .swiper-slide {
	display: flex;
	justify-content: stretch;
	align-items: stretch;
	padding: .5rem; 
}

.testimonial_card {
	width: 100%;
	max-width: none;
	background: #fff; 
	border: 1px solid rgba(0,0,0,.08); 
	border-radius: .6rem;
	box-shadow: 0 10px 26px rgba(0,0,0,.06);
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: .2rem;
	padding: .75rem; 
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.testimonial_card:hover {
  	transform: translateY(-4px);
  	box-shadow: 0 18px 36px -10px rgba(0,0,0,.20), 0 6px 14px -4px rgba(0,0,0,.16);
  	border-color: rgba(0,0,0,.12);
}

.testimonial_stars { 
    color: var(--primary-color); 
    display: flex; 
    gap: .12rem; 
    margin: .05rem 0 .15rem; 
    font-size: .95rem; 
}

.testimonial_title { 
	font-size: 1rem; 
	font-weight: 800; 
	color: var(--text-dark); 
	margin: .15rem 0 .1rem; 
	text-transform: uppercase; 
	text-align: left;
}
.testimonial_text { 
	margin: .1rem 0 .1rem;
	font-size: .92rem;
	line-height: 1.45rem;
	color: var(--text-dark);
	opacity: .95;
	text-align: left;
}

.testimonial_source_row { 
	display: flex; 
	align-items: center; 
	gap: .4rem; 
	margin-top: .25rem; 
}

.testimonial_source_icon { 
    width: 30px; 
    height: 30px; 
    object-fit: contain; 
    display: block; 
}

.testimonial_byline { 
    font-size: .88rem; 
    color: var(--text-dark); 
}

.byline_name { font-weight: 700; }

.byline_source { 
    color: var(--primary-color); 
    font-weight: 700; 
}

.byline_sep { color: #999; }

/* Controls */
.reviews_actions {
	display: flex;
  	justify-content: center;
  	margin-top: 2rem;
	margin-bottom: 0rem;
}
.reviews_actions .reviews_btn {
	background: transparent;
	color: var(--text-dark);
	border: 1px solid var(--text-dark);
	letter-spacing: .12em;
	font-size: .75rem;
	padding: .9rem 2.2rem;
	border-radius: 4px;
	transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.reviews_actions .reviews_btn:hover {
	background: var(--primary-color);
	color: #fff;
	box-shadow: 0 8px 26px -6px rgba(0,0,0,.25);
}

/* Mobile Layout for Ratings */
@media (max-width: 860px) {
	.rating_group.overall-rating {
		flex-wrap: wrap;
    	justify-content: center;
    	gap: .75rem 1rem;
  	}

	.overall_score_row { order: 1; }

	.overall_meta { 
		order: 2;
    	width: 100%;
    	justify-content: center;
    	flex-wrap: wrap;
    	row-gap: .35rem;
  	}

	.overall_separator { display: none; }
	
	.ratings_sources_row {
		order: 3;
		width: 100%;
    	justify-content: center;
    	flex-wrap: wrap;
    	gap: 1rem 1.25rem;
    	margin-top: .35rem;
  	}
	
	.rating_source {
		min-width: 120px;
    	align-items: center;
    	text-align: center;
  	}
}

@media (max-width: 560px) {
	.overall_score_row { font-size: clamp(1.6rem, 5.6vw, 1.9rem); }
  	.overall_scale { font-size: .95rem; }
  	.overall_label { font-size: .95rem; }
  	.source_score { font-size: 1.1rem; }
  	.source_name { font-size: .85rem; }
}

/* Mobile Layout for Reviews */
@media (max-width: 900px) {
	.testimonials_swiper { padding-bottom: 5.25rem; }
	.testimonials_swiper .swiper-slide { padding: .4rem; }
}