/*
 * RGOWS Rangoli Gardens — main stylesheet
 * Built to the client-approved home-page design.
 *
 * Contents
 *  1. Design tokens
 *  2. Base and helpers
 *  3. Buttons
 *  4. Top bar
 *  5. Header and navigation
 *  6. Hero slideshow
 *  7. Home cards grid
 *  8. Card shell
 *  9. Notices
 * 10. Events
 * 11. Facility tiles
 * 12. Information row
 * 13. Footer
 * 14. Inner pages
 * 15. Forms
 * 16. Responsive
 */

/* ------------------------------------------------------------------ 1. Tokens */
:root {
	--rg-green-900: #052b15;
	--rg-green-800: #0b3b23;
	--rg-green-700: #14532d;
	--rg-green-600: #1e7a45;
	--rg-green-050: #eef3ec;

	--rg-red: #c81e1e;
	--rg-red-600: #d32f2f;

	--rg-bg: #f7f8f5;
	--rg-card: #ffffff;
	--rg-flat: #fafbf8;
	--rg-chip: #f1f4ee;
	--rg-text: #1e2a22;
	--rg-heading: #16281d;
	--rg-muted: #6a7a70;
	--rg-border: #e6eae4;
	--rg-border-soft: #eef1ec;

	--rg-pill-green: #4d8a3f;
	--rg-pill-purple: #7b3fb8;
	--rg-pill-blue: #2f7fd1;
	--rg-pill-olive: #5d7a43;
	--rg-pill-amber: #e0a413;
	--rg-pill-red: #c8402f;
	--rg-pill-teal: #16867a;
	--rg-pill-grey: #6a7a70;

	--rg-radius: 12px;
	--rg-radius-sm: 8px;
	--rg-shadow: 0 1px 2px rgba(16, 42, 27, .05), 0 6px 18px rgba(16, 42, 27, .05);
	--rg-max: 1440px;
	--rg-gutter: 20px;

	--rg-font: "Poppins", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Devanagari", sans-serif;
}

/* ------------------------------------------------------- 2. Base and helpers */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--rg-bg);
	color: var(--rg-text);
	font-family: var(--rg-font);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rg-green-700); text-decoration: none; }
a:hover,
a:focus-visible { text-decoration: underline; }

h1, h2, h3, h4 {
	margin: 0 0 .5em;
	color: var(--rg-heading);
	font-weight: 700;
	line-height: 1.25;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

:focus-visible {
	outline: 2px solid var(--rg-green-600);
	outline-offset: 2px;
	border-radius: 3px;
}

.rg-container {
	width: 100%;
	max-width: var(--rg-max);
	margin-inline: auto;
	padding-inline: var(--rg-gutter);
}

.rg-icon { flex: none; vertical-align: middle; }
.rg-icon--flip { transform: scaleX(-1); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.rg-skip-link:focus {
	position: fixed !important;
	top: 8px; left: 8px;
	z-index: 999;
	width: auto; height: auto;
	margin: 0; padding: 10px 16px;
	clip: auto; clip-path: none;
	background: var(--rg-green-800);
	color: #fff;
	border-radius: var(--rg-radius-sm);
}

.rg-empty {
	margin: 12px 0;
	padding: 16px;
	background: var(--rg-chip);
	border-radius: var(--rg-radius-sm);
	color: var(--rg-muted);
	font-size: 13.5px;
}

/* --------------------------------------------------------------- 3. Buttons */
.rg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 20px;
	border: 1px solid transparent;
	border-radius: var(--rg-radius-sm);
	background: var(--rg-green-800);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.rg-btn:hover,
.rg-btn:focus-visible {
	background: var(--rg-green-700);
	color: #fff;
	text-decoration: none;
}

.rg-btn--primary { background: var(--rg-green-800); }
.rg-btn--sm { padding: 8px 16px; font-size: 13px; }
.rg-btn--block { display: flex; width: 100%; margin-top: 12px; }

.rg-btn--outline {
	background: transparent;
	border-color: var(--rg-border);
	color: var(--rg-green-700);
}
.rg-btn--outline:hover,
.rg-btn--outline:focus-visible {
	background: var(--rg-green-050);
	border-color: var(--rg-green-600);
	color: var(--rg-green-700);
}

.rg-btn--hero {
	margin-top: 18px;
	padding: 12px 24px;
	background: var(--rg-green-700);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}
.rg-btn--hero:hover,
.rg-btn--hero:focus-visible { background: var(--rg-green-600); }

/* --------------------------------------------------------------- 4. Top bar */
.rg-topbar {
	background: var(--rg-green-900);
	color: #e7efe9;
	font-size: 13px;
}

.rg-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 38px;
	padding-block: 6px;
}

.rg-topbar__contact,
.rg-topbar__links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

.rg-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #e7efe9;
	line-height: 1.3;
}
.rg-topbar__item:hover,
.rg-topbar__item:focus-visible { color: #fff; text-decoration: none; }
.rg-topbar__item .rg-icon { opacity: .9; }

/* ------------------------------------------------- 5. Header and navigation */
.rg-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: #fff;
	border-bottom: 1px solid var(--rg-border);
}

.rg-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 72px;
	padding-block: 8px;
}

.rg-brand { display: flex; align-items: center; gap: 14px; color: inherit; flex: none; }
.rg-brand:hover, .rg-brand:focus-visible { text-decoration: none; }

.rg-brand__logo { flex: none; }
.rg-brand__img { width: 56px; height: 56px; object-fit: contain; }

.rg-brand__title {
	display: block;
	color: var(--rg-green-700);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
}

.rg-brand__address {
	display: block;
	margin-top: 2px;
	color: var(--rg-muted);
	font-size: 12.5px;
	line-height: 1.35;
}

.rg-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	padding: 0;
	border: 1px solid var(--rg-border);
	border-radius: var(--rg-radius-sm);
	background: #fff;
	color: var(--rg-green-700);
	cursor: pointer;
}
.rg-nav-toggle__close { display: none; }
.rg-nav-toggle[aria-expanded="true"] .rg-nav-toggle__open { display: none; }
.rg-nav-toggle[aria-expanded="true"] .rg-nav-toggle__close { display: inline-flex; }

.rg-nav__list {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rg-nav__list > li { position: relative; }

.rg-nav__list a {
	display: block;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
	color: var(--rg-heading);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	white-space: nowrap;
}

.rg-nav__list a:hover,
.rg-nav__list a:focus-visible {
	color: var(--rg-green-700);
	border-bottom-color: var(--rg-green-600);
	text-decoration: none;
}

.rg-nav__list .current-menu-item > a,
.rg-nav__list .current_page_item > a,
.rg-nav__list .current-menu-ancestor > a,
.rg-nav__list .current-menu-parent > a {
	color: var(--rg-green-700);
	border-bottom-color: var(--rg-green-700);
}

/* Sub menus */
.rg-nav__list .sub-menu {
	position: absolute;
	top: 100%; left: 0;
	z-index: 20;
	min-width: 210px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--rg-border);
	border-radius: var(--rg-radius-sm);
	box-shadow: var(--rg-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s;
}

.rg-nav__list li:hover > .sub-menu,
.rg-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.rg-nav__list .sub-menu a {
	padding: 8px 10px;
	border-bottom: 0;
	border-radius: 6px;
	font-size: 12.5px;
	text-transform: none;
	letter-spacing: 0;
	white-space: normal;
}
.rg-nav__list .sub-menu a:hover { background: var(--rg-green-050); }

/* -------------------------------------------------------- 6. Hero slideshow */
.rg-hero {
	position: relative;
	background: var(--rg-green-800);
	isolation: isolate;
}

.rg-hero__viewport {
	position: relative;
	display: grid;
}

.rg-hero__slide {
	position: relative;
	grid-area: 1 / 1;
	display: flex;
	align-items: center;
	min-height: clamp(300px, 25vw, 370px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .6s ease, visibility .6s;
}

.rg-hero__slide.is-active { opacity: 1; visibility: visible; }

.rg-hero__media { position: absolute; inset: 0; overflow: hidden; }

.rg-hero__img {
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: center 55%;
}

.rg-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg,
		rgba(5, 28, 15, .82) 0%,
		rgba(5, 28, 15, .62) 38%,
		rgba(5, 28, 15, .22) 70%,
		rgba(5, 28, 15, .12) 100%);
}
.rg-hero__media--light::after {
	background: linear-gradient(90deg, rgba(5, 28, 15, .68) 0%, rgba(5, 28, 15, .4) 40%, rgba(5, 28, 15, .05) 100%);
}
.rg-hero__media--strong::after {
	background: linear-gradient(90deg, rgba(5, 28, 15, .9) 0%, rgba(5, 28, 15, .74) 42%, rgba(5, 28, 15, .35) 100%);
}

.rg-hero__inner { position: relative; z-index: 2; padding-block: 38px 46px; }
.rg-hero__text { max-width: 640px; color: #fff; }

.rg-hero__title {
	margin: 0 0 6px;
	color: #fff;
	font-size: clamp(24px, 2.7vw, 40px);
	font-weight: 700;
	line-height: 1.1;
	text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

.rg-hero__sub {
	margin: 0 0 20px;
	color: #eaf2ec;
	font-size: clamp(16px, 1.55vw, 22px);
	font-weight: 600;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.rg-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 34px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rg-stat { display: flex; align-items: center; gap: 10px; color: #fff; }
.rg-stat__icon { display: inline-flex; opacity: .95; }
.rg-stat__text { display: flex; flex-direction: column; line-height: 1.2; }
.rg-stat__value { font-size: 16px; font-weight: 600; }
.rg-stat__label { font-size: 16px; font-weight: 500; color: #e3ece5; }

.rg-hero__dots {
	position: absolute;
	bottom: 14px;
	left: 0; right: 0;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.rg-hero__dot {
	width: 9px; height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .5);
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}
.rg-hero__dot:hover { background: rgba(255, 255, 255, .8); }
.rg-hero__dot.is-active { background: #fff; transform: scale(1.15); }

/* ---------------------------------------------------- 7. Home cards grid */
.rg-home-cards { padding: 18px 0 0; }

.rg-cards-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) minmax(0, 1.13fr);
	gap: 16px;
	align-items: stretch;
}

.rg-info { padding: 16px 0 24px; }

.rg-info-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.42fr) minmax(0, 1fr);
	gap: 16px;
	align-items: stretch;
}

/* ------------------------------------------------------------ 8. Card shell */
.rg-card {
	padding: 16px 18px 18px;
	background: var(--rg-card);
	border: 1px solid var(--rg-border-soft);
	border-radius: var(--rg-radius);
	box-shadow: var(--rg-shadow);
}

.rg-card--flat {
	background: var(--rg-flat);
	box-shadow: none;
	border-color: var(--rg-border);
}

.rg-card--wide { padding: 8px 18px; }

/* The three home cards share a row, so they share a height. */
.rg-card--events,
.rg-card--facilities { display: flex; flex-direction: column; }
.rg-card--events .rg-list--events { flex: 1 1 auto; }

.rg-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 12px;
	margin-bottom: 4px;
}

.rg-card__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	color: var(--rg-green-700);
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.rg-card__title--sm { font-size: 14px; margin-bottom: 12px; }
.rg-card__title--alert { color: var(--rg-red-600); }
.rg-card__icon { display: inline-flex; color: currentColor; }

.rg-card__more {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--rg-muted);
	font-size: 12.5px;
	font-weight: 500;
	white-space: nowrap;
}
.rg-card__more:hover,
.rg-card__more:focus-visible { color: var(--rg-green-700); text-decoration: none; }

.rg-list { margin: 0; padding: 0; list-style: none; }

/* -------------------------------------------------------------- 9. Notices */
.rg-notice {
	display: grid;
	grid-template-columns: 68px minmax(0, 1fr) 78px;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid var(--rg-border-soft);
}
.rg-list--notices > .rg-notice:first-child { border-top: 0; }

.rg-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 7px 3px;
	background: var(--rg-chip);
	border-radius: var(--rg-radius-sm);
	text-align: center;
}

.rg-date__day {
	color: var(--rg-green-700);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.1;
}

.rg-date__rest {
	color: var(--rg-muted);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .02em;
}

.rg-date--event { min-width: 58px; }
.rg-date--event .rg-date__rest { text-transform: uppercase; letter-spacing: .06em; }

.rg-notice__body { min-width: 0; }

.rg-notice__title {
	margin: 0 0 2px;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.35;
}
.rg-notice__title a { color: var(--rg-heading); }
.rg-notice__title a:hover,
.rg-notice__title a:focus-visible { color: var(--rg-green-700); text-decoration: none; }

.rg-notice__text {
	margin: 0;
	color: var(--rg-muted);
	font-size: 13px;
	line-height: 1.45;
}

.rg-notice__meta {
	color: var(--rg-muted);
	font-size: 12px;
	text-align: right;
	line-height: 1.35;
}

.rg-new {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 9px;
	border-radius: 999px;
	background: var(--rg-red);
	vertical-align: 2px;
	color: #fff;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .02em;
	line-height: 1.5;
}

.rg-tag-plain { color: var(--rg-muted); }

/* --------------------------------------------------------------- 10. Events */
.rg-event {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr) auto 54px;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-top: 1px solid var(--rg-border-soft);
}
.rg-list--events > .rg-event:first-child { border-top: 0; }

.rg-event__body { min-width: 0; }

.rg-event__title {
	margin: 0 0 3px;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.3;
}
.rg-event__title a { color: var(--rg-heading); }
.rg-event__title a:hover,
.rg-event__title a:focus-visible { color: var(--rg-green-700); text-decoration: none; }

.rg-event__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: var(--rg-muted);
	font-size: 12.5px;
	line-height: 1.5;
}

.rg-event__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px; height: 54px;
}

.rg-event__img {
	width: 54px; height: 54px;
	object-fit: contain;
	border-radius: var(--rg-radius-sm);
}

.rg-event__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px; height: 48px;
	border-radius: 50%;
	background: var(--rg-chip);
	color: var(--rg-green-600);
}

.rg-pill {
	display: inline-block;
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--rg-pill-grey);
	color: #fff;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

.rg-pill--green  { background: var(--rg-pill-green); }
.rg-pill--purple { background: var(--rg-pill-purple); }
.rg-pill--blue   { background: var(--rg-pill-blue); }
.rg-pill--olive  { background: var(--rg-pill-olive); }
.rg-pill--amber  { background: var(--rg-pill-amber); color: #3d2c00; }
.rg-pill--red    { background: var(--rg-pill-red); }
.rg-pill--teal   { background: var(--rg-pill-teal); }
.rg-pill--grey   { background: var(--rg-pill-grey); }

/* -------------------------------------------------------- 11. Facility tiles */
.rg-tiles {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rg-tile--wide { grid-column: 1 / -1; }

.rg-tile__link {
	position: relative;
	display: block;
	aspect-ratio: 1.9;
	min-height: 78px;
	overflow: hidden;
	border-radius: var(--rg-radius-sm);
	background: linear-gradient(150deg, var(--rg-green-700), var(--rg-green-900));
}
.rg-tile--wide .rg-tile__link { aspect-ratio: 6.2; min-height: 78px; }

.rg-tile__img {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.rg-tile__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(8, 30, 17, .3) 0%, rgba(8, 30, 17, .62) 100%);
}

.rg-tile__content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 6px;
	color: #fff;
	text-align: center;
}

.rg-tile__icon { display: inline-flex; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }
.rg-tile__icon .rg-icon { width: 26px; height: 26px; }

.rg-tile__label {
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.2;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
}

.rg-tile__link:hover .rg-tile__img,
.rg-tile__link:focus-visible .rg-tile__img { transform: scale(1.06); }
.rg-tile__link:hover, .rg-tile__link:focus-visible { text-decoration: none; }

/* ---------------------------------------------------- 12. Information row */
.rg-contacts { margin: 0; padding: 0; list-style: none; }

.rg-contact {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	padding: 4px 0;
	font-size: 13px;
}

.rg-contact__label { color: var(--rg-text); }
.rg-contact__label small { display: block; color: var(--rg-muted); font-size: 12px; }
.rg-contact__value { color: var(--rg-text); white-space: nowrap; }

.rg-card--emergency .rg-contact__label { font-weight: 600; }

.rg-location { display: grid; grid-template-columns: minmax(0, 1fr) 1fr; gap: 14px; align-items: start; }

.rg-location__address {
	margin: 0;
	color: var(--rg-text);
	font-size: 13px;
	font-style: normal;
	line-height: 1.6;
}

.rg-location__map {
	overflow: hidden;
	border-radius: var(--rg-radius-sm);
	border: 1px solid var(--rg-border);
	background: var(--rg-chip);
	min-height: 110px;
}
.rg-location__map iframe { display: block; width: 100%; height: 100%; min-height: 110px; border: 0; }

.rg-location__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 100%;
	min-height: 110px;
	padding: 10px;
	color: var(--rg-green-700);
	font-size: 12.5px;
	font-weight: 500;
	text-align: center;
}
.rg-location__link:hover { background: var(--rg-green-050); text-decoration: none; }

.rg-connect { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.rg-connect__text { font-size: 13.5px; }
.rg-connect__text p { margin: 0 0 12px; line-height: 1.6; }
.rg-connect__icon { flex: none; color: #cfd6d1; }

/* ---------------------------------------------------------------- 13. Footer */
.rg-footer {
	margin-top: 8px;
	background: var(--rg-green-800);
	background-image: radial-gradient(120% 140% at 50% -20%, #14532d 0%, #0b3b23 55%, #062d18 100%);
	color: #d9e4dc;
	font-size: 13.5px;
}

.rg-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
	gap: 26px 30px;
	padding-block: 34px 28px;
}

.rg-footer__name { margin: 0 0 8px; color: #fff; font-size: 16px; font-weight: 700; }
.rg-footer__tagline { margin: 0 0 16px; color: #bcd0c2; font-size: 13px; }

.rg-footer__heading {
	margin: 0 0 12px;
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.rg-footer__list { margin: 0; padding: 0; list-style: none; }
.rg-footer__list li { margin-bottom: 8px; }
.rg-footer__list a { color: #d9e4dc; }
.rg-footer__list a:hover,
.rg-footer__list a:focus-visible { color: #fff; text-decoration: underline; }

.rg-footer__contact-item { display: flex; align-items: flex-start; gap: 9px; line-height: 1.55; }
.rg-footer__contact-item .rg-icon { margin-top: 3px; opacity: .8; }

.rg-social { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }

.rg-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px; height: 32px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 50%;
	color: #fff;
	transition: background-color .18s ease, border-color .18s ease;
}
.rg-social__link:hover,
.rg-social__link:focus-visible { background: rgba(255, 255, 255, .14); border-color: #fff; }

.rg-footer__bar { border-top: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .18); }

.rg-footer__bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding-block: 12px;
}

.rg-footer__copy,
.rg-footer__credit { margin: 0; color: #c5d5c9; font-size: 12.5px; }

/* ----------------------------------------------------------- 14. Inner pages */
.rg-pagehead {
	padding: 34px 0 30px;
	background: var(--rg-green-800);
	background-image: radial-gradient(120% 160% at 20% 0%, #17603a 0%, #0b3b23 60%);
	color: #fff;
}

.rg-pagehead__title { margin: 0; color: #fff; font-size: clamp(24px, 3vw, 34px); }
.rg-pagehead__sub { margin: 8px 0 0; color: #cfe0d4; font-size: 15px; }

.rg-section { padding: 26px 0 44px; }

.rg-panel {
	padding: 26px 28px;
	background: var(--rg-card);
	border: 1px solid var(--rg-border-soft);
	border-radius: var(--rg-radius);
	box-shadow: var(--rg-shadow);
}

.rg-panel__image { margin: 0 0 20px; border-radius: var(--rg-radius-sm); }

.rg-prose { font-size: 15.5px; line-height: 1.75; }
.rg-prose h2 { margin-top: 1.6em; font-size: 22px; color: var(--rg-green-700); }
.rg-prose h3 { margin-top: 1.4em; font-size: 18px; }
.rg-prose > :first-child { margin-top: 0; }
.rg-prose img { border-radius: var(--rg-radius-sm); }
.rg-prose .rg-lead { font-size: 17px; font-weight: 600; color: var(--rg-green-700); }
.rg-prose blockquote {
	margin: 1.4em 0;
	padding: 4px 0 4px 18px;
	border-left: 3px solid var(--rg-green-600);
	color: var(--rg-muted);
}

.rg-prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rg-prose th, .rg-prose td { padding: 10px 12px; border-bottom: 1px solid var(--rg-border); text-align: left; vertical-align: top; }
.rg-prose thead th { background: var(--rg-chip); color: var(--rg-green-700); }
.rg-prose .wp-block-table { overflow-x: auto; }

.rg-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.rg-post {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--rg-card);
	border: 1px solid var(--rg-border-soft);
	border-radius: var(--rg-radius);
	box-shadow: var(--rg-shadow);
}
.rg-post__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.rg-post__body { padding: 16px 18px 18px; }
.rg-post__title { margin: 0 0 4px; font-size: 17px; }
.rg-post__date { margin: 0 0 8px; color: var(--rg-muted); font-size: 12.5px; }
.rg-post__excerpt { margin: 0; color: var(--rg-muted); font-size: 14px; }

.rg-facility-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.rg-facility {
	overflow: hidden;
	background: var(--rg-card);
	border: 1px solid var(--rg-border-soft);
	border-radius: var(--rg-radius);
	box-shadow: var(--rg-shadow);
}

.rg-facility__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: linear-gradient(150deg, var(--rg-green-700), var(--rg-green-900));
}
.rg-facility__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rg-facility__icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .5));
}
.rg-facility__body { padding: 14px 18px 18px; }
.rg-facility__title { margin: 0 0 4px; font-size: 17px; }
.rg-facility__text { margin: 0; color: var(--rg-muted); font-size: 14px; }

.rg-doc {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	padding: 14px 0;
	border-top: 1px solid var(--rg-border-soft);
}
.rg-list--docs > .rg-doc:first-child { border-top: 0; }
.rg-doc__icon { color: var(--rg-green-600); }
.rg-doc__title { margin: 0 0 2px; font-size: 15.5px; }
.rg-doc__text, .rg-doc__date { margin: 0; color: var(--rg-muted); font-size: 13px; }

.rg-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; }
.rg-meta-item { display: inline-flex; align-items: center; gap: 6px; color: var(--rg-muted); font-size: 13.5px; }

.rg-back { margin: 20px 0 0; }
.rg-intro-link { margin: 0 0 16px; }
.rg-intro-link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

.rg-home-extra { padding: 0 0 34px; }
.rg-home-extra .rg-prose { padding: 26px 28px; background: var(--rg-card); border-radius: var(--rg-radius); border: 1px solid var(--rg-border-soft); }

.pagination { margin-top: 26px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px; height: 38px;
	padding: 0 10px;
	border: 1px solid var(--rg-border);
	border-radius: var(--rg-radius-sm);
	background: #fff;
	color: var(--rg-text);
	font-size: 14px;
}
.pagination .page-numbers:hover { background: var(--rg-green-050); text-decoration: none; }
.pagination .page-numbers.current { background: var(--rg-green-800); border-color: var(--rg-green-800); color: #fff; }

/* ----------------------------------------------------------------- 15. Forms */
.rg-form-wrap { margin: 8px 0 24px; }
.rg-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.rg-form__row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.rg-form__row--full { grid-column: 1 / -1; }
.rg-form__row label { font-size: 13.5px; font-weight: 600; }
.rg-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rg-req { color: var(--rg-red); }

.rg-form input,
.rg-form textarea,
.rg-search__input {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--rg-border);
	border-radius: var(--rg-radius-sm);
	background: #fff;
	color: var(--rg-text);
	font: inherit;
	font-size: 15px;
}
.rg-form input:focus,
.rg-form textarea:focus { border-color: var(--rg-green-600); outline: none; box-shadow: 0 0 0 3px rgba(30, 122, 69, .15); }
.rg-form textarea { resize: vertical; min-height: 140px; }
.rg-form__actions { margin: 4px 0 0; }

.rg-alert {
	margin: 0 0 18px;
	padding: 14px 16px;
	border-radius: var(--rg-radius-sm);
	font-size: 14.5px;
}
.rg-alert--ok { background: var(--rg-green-050); border: 1px solid #cfe3d5; color: var(--rg-green-700); }
.rg-alert--error { background: #fdecec; border: 1px solid #f5c6c6; color: #9c2020; }

.rg-search { display: flex; gap: 8px; max-width: 520px; }
.rg-searchbar { margin-bottom: 22px; }
.rg-search__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	border: 0;
	border-radius: var(--rg-radius-sm);
	background: var(--rg-green-800);
	color: #fff;
	cursor: pointer;
}
.rg-search__btn:hover { background: var(--rg-green-700); }

.widget { margin-bottom: 26px; }
.widget-title { font-size: 16px; }

/* ------------------------------------------------------------ 16. Responsive */
/* Facility tiles fill the height the row gives them. */
@media (min-width: 1061px) {
	.rg-card--facilities .rg-tiles { flex: 1 1 auto; grid-auto-rows: 1fr; }
	.rg-card--facilities .rg-tile__link { aspect-ratio: auto; height: 100%; }
}

/* Between 901px and 1360px the events column is too narrow for four tracks,
   so the category pill moves under the event details rather than beside them.
   Every element of the approved design stays on screen. */
@media (min-width: 901px) and (max-width: 1360px) {
	.rg-event {
		grid-template-columns: 58px minmax(0, 1fr) 46px;
		grid-template-rows: auto auto;
		row-gap: 4px;
	}
	.rg-event > .rg-date { grid-area: 1 / 1 / 3 / 2; }
	.rg-event__body { grid-area: 1 / 2 / 2 / 3; }
	.rg-event__tag { grid-area: 2 / 2 / 3 / 3; }
	.rg-event__thumb { grid-area: 1 / 3 / 3 / 4; width: 46px; height: 46px; }
	.rg-event__img { width: 46px; height: 46px; }
	.rg-event__icon { width: 42px; height: 42px; }
}

@media (max-width: 1240px) {
	.rg-brand__address { display: none; }
	.rg-nav__list { gap: 14px; }
}

@media (max-width: 1120px) {
	.rg-nav-toggle { display: inline-flex; }

	.rg-nav {
		position: absolute;
		top: 100%; left: 0; right: 0;
		z-index: 70;
		display: none;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
		background: #fff;
		border-bottom: 1px solid var(--rg-border);
		box-shadow: 0 12px 24px rgba(16, 42, 27, .12);
	}
	.rg-nav.is-open { display: block; }

	.rg-header { position: relative; }
	.rg-header__inner { position: static; }

	.rg-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px var(--rg-gutter) 16px;
	}
	.rg-nav__list a {
		padding: 12px 0;
		border-bottom: 1px solid var(--rg-border-soft);
		font-size: 13.5px;
	}
	.rg-nav__list .current-menu-item > a,
	.rg-nav__list .current_page_item > a { border-bottom-color: var(--rg-green-700); }

	.rg-nav__list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding: 0 0 0 14px;
	}

	.rg-brand__address { display: block; }
}

@media (max-width: 1060px) {
	.rg-cards-grid { grid-template-columns: 1fr 1fr; }
	.rg-card--facilities { grid-column: 1 / -1; }
	.rg-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.rg-tile--wide { grid-column: 1 / -1; }
	.rg-tile--wide .rg-tile__link { aspect-ratio: 64 / 10; }

	.rg-info-grid { grid-template-columns: 1fr 1fr; }
	.rg-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 900px) {
	/* The list cards read better full width once the row gets narrow. */
	.rg-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
	.rg-post-grid,
	.rg-facility-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rg-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.rg-tile--wide .rg-tile__link { aspect-ratio: 40 / 10; }
	.rg-hero__inner { padding-block: 40px 46px; }
}

@media (max-width: 720px) {
	:root { --rg-gutter: 16px; }

	.rg-topbar { font-size: 12.5px; }
	.rg-topbar__inner { flex-direction: column; align-items: flex-start; gap: 4px; }
	.rg-topbar__contact, .rg-topbar__links { gap: 18px; }

	.rg-brand__img { width: 46px; height: 46px; }
	.rg-brand__title { font-size: 17px; }
	.rg-brand__address { font-size: 11.5px; }

	.rg-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rg-tile--wide .rg-tile__link { aspect-ratio: 30 / 10; }

	.rg-footer__grid { grid-template-columns: 1fr 1fr; }
	.rg-footer__bar-inner { flex-direction: column; align-items: flex-start; gap: 4px; }

	.rg-panel { padding: 20px 18px; }
	.rg-form__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	.rg-hero__slide { min-height: 340px; }
	.rg-hero__stats { gap: 10px 20px; }
	.rg-stat__value, .rg-stat__label { font-size: 14px; }

	.rg-notice { grid-template-columns: 62px minmax(0, 1fr); gap: 12px; }
	.rg-notice__meta { grid-column: 2; text-align: left; }

	.rg-event { grid-template-columns: 56px minmax(0, 1fr) auto; }
	.rg-event__thumb { display: none; }

	.rg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rg-tile--wide .rg-tile__link { aspect-ratio: 20 / 10; }

	.rg-info-grid { grid-template-columns: 1fr; }
	.rg-location { grid-template-columns: 1fr; }
	.rg-connect__icon { display: none; }

	.rg-post-grid, .rg-facility-grid { grid-template-columns: 1fr; }
	.rg-doc { grid-template-columns: auto minmax(0, 1fr); }
	.rg-doc .rg-btn { grid-column: 2; justify-self: start; }
}

@media (max-width: 400px) {
	.rg-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

@media print {
	.rg-topbar, .rg-nav, .rg-nav-toggle, .rg-hero__dots, .rg-footer__bar, .rg-social { display: none !important; }
	body { background: #fff; font-size: 12pt; }
	.rg-card, .rg-panel { box-shadow: none; border: 1px solid #ccc; }
}

/* ------------------------------------------------------------- 17. Gallery */
/* Added in 5.1: Gallery page, album pages, event carousel and lightbox. */

.rg-gallery-intro { margin-bottom: 18px; color: var(--rg-muted); }
.rg-gallery-intro > :last-child { margin-bottom: 0; }

/* Filters */
.rg-gfilter {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 16px;
	margin: 0 0 18px;
	padding: 14px 18px;
	background: var(--rg-card);
	border: 1px solid var(--rg-border-soft);
	border-radius: var(--rg-radius);
	box-shadow: var(--rg-shadow);
}

.rg-gfilter__field { display: flex; flex-direction: column; gap: 4px; min-width: 190px; }

.rg-gfilter__label {
	color: var(--rg-muted);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.rg-gfilter select {
	-webkit-appearance: none;
	appearance: none;
	padding: 9px 38px 9px 12px;
	border: 1px solid var(--rg-border);
	border-radius: var(--rg-radius-sm);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314532d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center / 16px;
	color: var(--rg-text);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}
.rg-gfilter select:focus { border-color: var(--rg-green-600); outline: none; box-shadow: 0 0 0 3px rgba(30, 122, 69, .15); }

.rg-gfilter__reset { align-self: flex-end; padding-bottom: 10px; font-size: 13.5px; font-weight: 600; }
.rg-gfilter__submit[hidden] { display: none; }

.rg-gallery-summary { margin: 0 0 12px; color: var(--rg-muted); font-size: 13.5px; }

/* Album cards */
.rg-album-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.rg-album {
	overflow: hidden;
	background: var(--rg-card);
	border: 1px solid var(--rg-border-soft);
	border-radius: var(--rg-radius);
	box-shadow: var(--rg-shadow);
	transition: transform .2s ease, box-shadow .2s ease;
}
.rg-album:hover,
.rg-album:focus-within {
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgba(16, 42, 27, .06), 0 14px 30px rgba(16, 42, 27, .1);
}

.rg-album__link { display: block; height: 100%; color: inherit; }
.rg-album__link:hover,
.rg-album__link:focus-visible { text-decoration: none; }

.rg-album__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: linear-gradient(150deg, var(--rg-green-700), var(--rg-green-900));
}

.rg-album__img {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .45s ease;
}
.rg-album__link:hover .rg-album__img { transform: scale(1.05); }

.rg-album__count {
	position: absolute;
	left: 10px; bottom: 10px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(5, 28, 15, .74);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
}

.rg-album__type {
	position: absolute;
	top: 10px; left: 10px;
	padding: 3px 9px;
	border-radius: 999px;
	background: #fff;
	color: var(--rg-green-700);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.rg-album__body { display: block; padding: 12px 14px 14px; }

.rg-album__title {
	display: block;
	margin-bottom: 6px;
	color: var(--rg-heading);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.3;
}

.rg-album__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--rg-muted); font-size: 13px; }
.rg-album__meta .rg-pill { padding: 2px 9px; font-size: 11px; }

/* Album page */
.rg-crumbs { margin: 0 0 12px; font-size: 13.5px; }
.rg-crumbs a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }

.rg-album-head { margin-bottom: 18px; }
.rg-album-head .rg-meta-row { margin-bottom: 8px; }
.rg-album-head__text { max-width: 760px; margin: 0 0 8px; font-size: 15px; }
.rg-album-head__link { margin: 0; }
.rg-album-head__link a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }

/* Photo grid */
.rg-pgrid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.rg-pgrid__cell { min-width: 0; }
.rg-pgrid__caption { margin: 6px 2px 0; color: var(--rg-muted); font-size: 12.5px; line-height: 1.4; }

.rg-gitem {
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--rg-radius-sm);
	background: var(--rg-chip);
}
.rg-gitem:focus-visible { outline-offset: 3px; }

.rg-gitem__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.rg-pgrid .rg-gitem:hover .rg-gitem__img,
.rg-pgrid .rg-gitem:focus-visible .rg-gitem__img { transform: scale(1.05); }

.rg-gitem__play {
	position: absolute;
	top: 50%; left: 50%;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px; height: 56px;
	margin: -28px 0 0 -28px;
	padding-left: 3px;
	border-radius: 50%;
	background: rgba(5, 28, 15, .74);
	color: #fff;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
	transition: transform .2s ease, background-color .2s ease;
}
.rg-gitem__play--lg { width: 78px; height: 78px; margin: -39px 0 0 -39px; }
.rg-gitem:hover .rg-gitem__play { transform: scale(1.08); background: var(--rg-green-700); }

/* Event carousel */
.rg-event-gallery {
	margin-top: 22px;
	padding: 18px 20px 20px;
	background: var(--rg-card);
	border: 1px solid var(--rg-border-soft);
	border-radius: var(--rg-radius);
	box-shadow: var(--rg-shadow);
}

.rg-event-gallery__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 14px;
}

.rg-event-gallery__meta { display: flex; align-items: center; gap: 16px; margin: 0; color: var(--rg-muted); font-size: 13.5px; }

.rg-carousel__viewport {
	position: relative;
	overflow: hidden;
	border-radius: var(--rg-radius-sm);
	background: #0e1b13;
}

.rg-carousel__track {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	transition: transform .45s cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
}

.rg-carousel__slide { flex: 0 0 100%; min-width: 0; }

.rg-carousel .rg-gitem { aspect-ratio: 16 / 9; max-height: min(72vh, 620px); width: 100%; border-radius: 0; background: #0e1b13; }
.rg-carousel .rg-gitem .rg-carousel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: none; }

.rg-carousel__caption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 34px 20px 14px;
	background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .7));
	color: #fff;
	font-size: 14px;
}

.rg-carousel__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px; height: 46px;
	margin-top: -23px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--rg-green-800);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	cursor: pointer;
	transition: background-color .18s ease, transform .18s ease;
}
.rg-carousel__nav:hover { background: #fff; transform: scale(1.06); }
.rg-carousel__nav--prev { left: 14px; }
.rg-carousel__nav--next { right: 14px; }

.rg-carousel__counter {
	position: absolute;
	top: 12px; right: 12px;
	z-index: 2;
	margin: 0;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(5, 28, 15, .74);
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.rg-carousel__thumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	padding: 2px 2px 6px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}

.rg-carousel__thumb {
	position: relative;
	flex: 0 0 auto;
	width: 92px; height: 64px;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 6px;
	background: var(--rg-chip);
	opacity: .65;
	cursor: pointer;
	scroll-snap-align: center;
	transition: opacity .18s ease, border-color .18s ease;
}
.rg-carousel__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rg-carousel__thumb:hover,
.rg-carousel__thumb:focus-visible,
.rg-carousel__thumb.is-active { opacity: 1; }
.rg-carousel__thumb.is-active { border-color: var(--rg-green-600); }
.rg-carousel__thumb--video::after {
	content: "";
	position: absolute;
	top: 50%; left: 50%;
	margin: -7px 0 0 -4px;
	border-style: solid;
	border-width: 7px 0 7px 11px;
	border-color: transparent transparent transparent #fff;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7));
}

/* Lightbox */
html.rg-lightbox-open { overflow: hidden; }

.rg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(4, 14, 8, .95);
	color: #fff;
	animation: rg-fade .18s ease;
}
.rg-lightbox[hidden],
.rg-lightbox [hidden] { display: none !important; }

.rg-lightbox__stage {
	position: absolute;
	inset: 58px 76px 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	touch-action: pan-y;
}

.rg-lightbox__img {
	max-width: 100%;
	max-height: 100%;
	width: auto; height: auto;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
	-webkit-user-select: none;
	user-select: none;
}

.rg-lightbox__video { position: relative; width: min(100%, calc((100vh - 140px) * 16 / 9)); aspect-ratio: 16 / 9; }
.rg-lightbox__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 4px; }

.rg-lightbox__close,
.rg-lightbox__nav {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	cursor: pointer;
	transition: background-color .18s ease;
}
.rg-lightbox__close:hover,
.rg-lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.rg-lightbox__close:focus-visible,
.rg-lightbox__nav:focus-visible { outline-color: #fff; }

.rg-lightbox__close { top: 10px; right: 12px; width: 44px; height: 44px; }
.rg-lightbox__nav { top: 50%; width: 54px; height: 54px; margin-top: -27px; }
.rg-lightbox__nav--prev { left: 12px; }
.rg-lightbox__nav--next { right: 12px; }

.rg-lightbox__footer {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 56px;
	padding: 10px 22px;
}
.rg-lightbox__caption { margin: 0; color: #e6efe9; font-size: 14px; }
.rg-lightbox__counter { margin: 0 0 0 auto; color: #b9c9be; font-size: 13px; font-variant-numeric: tabular-nums; }

@keyframes rg-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1060px) {
	.rg-album-grid,
	.rg-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
	.rg-album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.rg-gfilter { padding: 12px 14px; }
	.rg-gfilter__field { flex: 1 1 140px; min-width: 0; }
	.rg-carousel .rg-gitem { aspect-ratio: 4 / 3; }
	.rg-carousel__nav { width: 38px; height: 38px; margin-top: -19px; }
	.rg-carousel__nav--prev { left: 8px; }
	.rg-carousel__nav--next { right: 8px; }

	.rg-lightbox__stage { inset: 58px 6px 70px; }
	.rg-lightbox__nav { top: auto; bottom: 8px; width: 46px; height: 46px; margin-top: 0; }
	.rg-lightbox__footer { padding: 10px 66px; justify-content: center; text-align: center; flex-direction: column; gap: 2px; }
	.rg-lightbox__counter { margin: 0; }
}

@media (max-width: 560px) {
	.rg-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	.rg-album__body { padding: 10px 12px 12px; }
	.rg-album__title { font-size: 14.5px; }
	.rg-event-gallery { padding: 14px; }
	.rg-event-gallery__meta { gap: 10px; }
	.rg-carousel__thumb { width: 72px; height: 52px; }
}

@media (max-width: 400px) {
	.rg-album-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------- 18. Management Committee */
/* Added in 5.2: member cards and the profile popup. Replaces the 5.0 .rg-member rules. */

.rg-committee-intro { max-width: 820px; margin: 0 0 22px; }

.rg-committee-intro__term {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--rg-green-050);
	color: var(--rg-green-700);
	font-size: 13.5px;
	font-weight: 600;
}

.rg-committee-intro__text { margin: 0; color: var(--rg-text); font-size: 15px; line-height: 1.7; }

/* Cards */
.rg-committee-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.rg-person {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--rg-card);
	border: 1px solid var(--rg-border-soft);
	border-radius: var(--rg-radius);
	box-shadow: var(--rg-shadow);
	transition: transform .2s ease, box-shadow .2s ease;
}
.rg-person:hover,
.rg-person:focus-within {
	transform: translateY(-3px);
	box-shadow: 0 2px 4px rgba(16, 42, 27, .06), 0 16px 32px rgba(16, 42, 27, .12);
}

.rg-person__photo {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: linear-gradient(155deg, var(--rg-green-600) 0%, var(--rg-green-800) 70%, var(--rg-green-900) 100%);
}

.rg-person__img {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: center 22%;
	transition: transform .45s ease;
}
.rg-person:hover .rg-person__img { transform: scale(1.04); }

.rg-person__initials {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, .92);
	font-size: clamp(34px, 4vw, 48px);
	font-weight: 600;
	letter-spacing: .04em;
}

.rg-person__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	padding: 14px 14px 16px;
	text-align: center;
}

.rg-person__name { margin: 0 0 4px; font-size: 16.5px; line-height: 1.3; }
.rg-person__open { color: var(--rg-heading); }
.rg-person__open:hover,
.rg-person__open:focus-visible { color: var(--rg-green-700); text-decoration: none; }

/* The name link covers the whole card, so a click anywhere opens the profile. */
.rg-person__open::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--rg-radius);
}
.rg-person__open:focus-visible { outline: none; }
.rg-person__open:focus-visible::after { outline: 2px solid var(--rg-green-600); outline-offset: -3px; }

.rg-person__role {
	margin: 0 0 10px;
	color: var(--rg-green-700);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

/* The phone stays tappable above the card-wide link. */
.rg-person__phone { position: relative; z-index: 2; margin: 0 0 10px; }
.rg-person__phone a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--rg-chip);
	color: var(--rg-text);
	font-size: 13.5px;
	font-weight: 500;
	white-space: nowrap;
}
.rg-person__phone a:hover,
.rg-person__phone a:focus-visible { background: var(--rg-green-050); color: var(--rg-green-700); text-decoration: none; }
.rg-person__phone .rg-icon { color: var(--rg-green-600); }

.rg-person__more {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: auto;
	color: var(--rg-muted);
	font-size: 12.5px;
	font-weight: 500;
	transition: color .18s ease, gap .18s ease;
}
.rg-person:hover .rg-person__more { gap: 8px; color: var(--rg-green-700); }

/* Popup */
html.rg-dialog-open { overflow: hidden; }

.rg-dialog {
	width: min(880px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--rg-text);
	overflow: visible;
}
.rg-dialog::backdrop { background: rgba(4, 20, 11, .66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.rg-dialog[open] { animation: rg-pop .22s ease; }

.rg-dialog__panel {
	position: relative;
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	overflow: auto;
	background: var(--rg-card);
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
	overscroll-behavior: contain;
}

.rg-dialog__close {
	position: absolute;
	top: 12px; right: 12px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	padding: 0;
	border: 1px solid var(--rg-border);
	border-radius: 50%;
	background: rgba(255, 255, 255, .94);
	color: var(--rg-heading);
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease;
}
.rg-dialog__close:hover,
.rg-dialog__close:focus-visible { background: var(--rg-green-800); border-color: var(--rg-green-800); color: #fff; }

@keyframes rg-pop {
	from { opacity: 0; transform: translateY(14px) scale(.98); }
	to { opacity: 1; transform: none; }
}

/* Profile, shared by the popup and the profile page */
.rg-profile { display: grid; grid-template-columns: 300px minmax(0, 1fr); }

.rg-profile__media {
	position: relative;
	min-height: 375px;
	overflow: hidden;
	background: linear-gradient(155deg, var(--rg-green-600) 0%, var(--rg-green-800) 70%, var(--rg-green-900) 100%);
}
.rg-profile__media .rg-person__img { transition: none; }
.rg-profile__media .rg-person__initials { font-size: 64px; }

.rg-profile__body { padding: 30px 34px 30px 32px; }

.rg-profile__role {
	display: inline-block;
	margin: 0 0 10px;
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--rg-green-050);
	color: var(--rg-green-700);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.rg-profile__name { margin: 0 44px 18px 0; color: var(--rg-heading); font-size: 26px; line-height: 1.2; }

.rg-profile__facts { margin: 0 0 18px; border-top: 1px solid var(--rg-border-soft); }

.rg-profile__fact {
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr);
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--rg-border-soft);
	font-size: 14.5px;
}
.rg-profile__fact dt { display: flex; align-items: center; gap: 8px; color: var(--rg-muted); font-weight: 500; }
.rg-profile__fact dt .rg-icon { color: var(--rg-green-600); }
.rg-profile__fact dd { margin: 0; color: var(--rg-text); font-weight: 500; overflow-wrap: anywhere; }

.rg-profile__bio { margin: 0 0 20px; font-size: 15px; line-height: 1.7; }
.rg-profile__bio > :last-child { margin-bottom: 0; }

.rg-profile__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Profile as a page */
.rg-profile-page { padding: 0; overflow: hidden; }
.rg-profile-page .rg-profile { grid-template-columns: 360px minmax(0, 1fr); }
.rg-profile-page .rg-profile__media { min-height: 450px; }

@media (max-width: 1060px) {
	.rg-committee-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
	.rg-committee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.rg-person__body { padding: 12px 10px 14px; }
	.rg-person__name { font-size: 15px; }
	.rg-person__role { font-size: 11px; }
	.rg-person__phone a { padding: 4px 10px; font-size: 12.5px; }

	.rg-dialog { width: calc(100vw - 20px); }
	.rg-dialog,
	.rg-dialog__panel { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }

	.rg-profile,
	.rg-profile-page .rg-profile { grid-template-columns: 1fr; }
	.rg-profile__media,
	.rg-profile-page .rg-profile__media { min-height: 0; height: 230px; }
	.rg-dialog .rg-dialog__close { top: 10px; right: 10px; }
	.rg-profile__body { padding: 20px 20px 22px; }
	.rg-profile__name { margin-right: 0; font-size: 22px; }
	.rg-profile__fact { grid-template-columns: 130px minmax(0, 1fr); font-size: 14px; }
}

@media (max-width: 400px) {
	.rg-profile__fact { grid-template-columns: 1fr; gap: 2px; }
	.rg-profile__actions .rg-btn { flex: 1 1 auto; }
}

@media (max-width: 340px) {
	.rg-committee-grid { grid-template-columns: 1fr; }
}
