/* Ray Service Tabs */
.ray-service-tabs{width:100%;}

/* Flex so a short row of tabs centres instead of stretching to fill 6 columns */
.ray-service-tabs .rst-tabs{
	display:flex;
	flex-wrap:wrap;
	justify-content:center;
	gap:14px;
	align-items:stretch;
}
.ray-service-tabs .rst-tab{
	/* Small basis so many tabs stay on one line; grow to share the row but cap
	   the width so a short row still reads as centred rather than stretched. */
	flex:1 1 150px;
	max-width:220px;
	border:0;
	cursor:pointer;
	padding:18px 14px;
	font-family: Merriweather, serif;
	font-size:15px;
	line-height:1.35;
	color:#1f1a17;
	text-align:center;
	border-radius:2px;
	box-shadow:0px 0px 6px rgba(0,0,0,0.02),0px 2px 4px rgba(0,0,0,0.08);
	transition:background .2s ease;
}
.ray-service-tabs .rst-tab:hover{background:#faf7f4;}

.ray-service-tabs .rst-button-wrap{text-align:center;margin:34px 0;}
.ray-service-tabs .rst-button{
	display:inline-block;
	padding:14px 30px;
	border-radius:3px;
	font-size:15px;
	text-decoration:none;
	transition:opacity .2s ease;
}
.ray-service-tabs .rst-button:hover{opacity:.9;text-decoration:none;}

.ray-service-tabs .rst-panel{
	display:grid;
	grid-template-columns:minmax(0,70fr) minmax(0,27fr);
	gap:46px;
	padding:46px;
	box-sizing:border-box;
	box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.02), 0px 2px 4px rgba(0, 0, 0, 0.08);
}

.commercial .ray-service-tabs .rst-panel{border-radius:20px;}
.commercial .ray-service-tabs .rst-title{text-align:center;}
/* Tabs with no images use the full panel width */
.ray-service-tabs .rst-panel.rst-no-media{grid-template-columns:1fr;}
.ray-service-tabs .rst-hidden{display:none;}

/* Description accepts HTML, so style the tags it may contain */
.ray-service-tabs .rst-description p{margin:0 0 16px;}
.ray-service-tabs .rst-description p:last-child{margin-bottom:0;}
.ray-service-tabs .rst-description ul,
.ray-service-tabs .rst-description ol{margin:0 0 16px;padding-left:22px;}
.ray-service-tabs .rst-description li{list-style:disc;margin:0 0 8px;}
.ray-service-tabs .rst-description ol li{list-style:decimal;}
.ray-service-tabs .rst-description strong{color:#1f1a17;}

.ray-service-tabs .rst-title{margin:0 0 30px;font-size:24px;line-height:1.3;color:#1f1a17;}
.ray-service-tabs .rst-title em{font-style:italic;}
.ray-service-tabs .rst-description{margin:0 0 24px;font-size:15px;line-height:1.75;color:#4a4038;}
.ray-service-tabs .rst-list-heading{margin:0 0 14px;font-size:15px;color:#1f1a17;}

.ray-service-tabs .rst-list{list-style:none;margin:0;padding:0;}
.ray-service-tabs .rst-list li{
	display:flex;
	align-items:flex-start;
	gap:12px;
	margin:0 0 14px;
	font-size:15px;
	line-height:1.6;
	color:#4a4038;
}
.ray-service-tabs .rst-list li:last-child{margin-bottom:0;}
.ray-service-tabs .rst-check{flex:0 0 18px;line-height:0;margin-top:3px;}

/* Footnote rows (Timeline, Note, Materials, ...) — icon is chosen per row */
.ray-service-tabs .rst-notes{margin:26px 0 0;}
.ray-service-tabs .rst-note{
	display:flex;
	align-items:flex-start;
	gap:12px;
	margin:0 0 16px;
	font-size:15px;
	line-height:1.6;
	color:#4a4038;
}
.ray-service-tabs .rst-note:last-child{margin-bottom:0;}
.ray-service-tabs .rst-note-icon{
	flex:0 0 22px;
	width:22px;
	height:22px;
	display:flex;
	align-items:center;
	justify-content:center;
	line-height:1;
	margin-top:2px;
}
/* Glyph takes the per-row Icon Colour, set inline on .rst-note-icon */
.ray-service-tabs .rst-note-icon [class^="sow-icon-"]{color:inherit;font-size:20px;line-height:1;}
.ray-service-tabs .rst-note-icon svg{width:20px;height:20px;display:block;}

.ray-service-tabs .rst-panel-media{display:flex;flex-direction:column;gap:1em;}
.ray-service-tabs .rst-panel-media img{width:100%;height:auto;display:block;border-radius:2px;}

@media (max-width:1024px){
	.ray-service-tabs .rst-tab{flex:1 1 130px;max-width:200px;}
	.ray-service-tabs .rst-panel{grid-template-columns:1fr;gap:30px;padding:32px;}
}
@media (max-width:600px){
	.ray-service-tabs .rst-tabs{gap:10px;}
	.ray-service-tabs .rst-tab{flex:1 1 calc(50% - 5px);padding:14px 10px;font-size:14px;}
	.ray-service-tabs .rst-panel{padding:24px;}
	.ray-service-tabs .rst-title{font-size:22px;}
}
