/* Video Spaces — front end. Everything is scoped under .frh-vs so it never
   touches the site's menu bar or theme (the player overlay is the one
   exception: it sits on <body> so it covers the theme header too). */

.frh-vs {
	font-family: 'Roboto', sans-serif;
	max-width: 1060px;
	width: 100%;
	margin: 0 auto;
	color: #2b2b2b;
	line-height: 1.5;
	box-sizing: border-box;
	padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.frh-vs, .frh-vs * { box-sizing: border-box; }
@media (max-width: 1100px) { .frh-vs { padding-left: 12px; padding-right: 12px; } }

.frh-vs .frh-vs-title {
	font-family: 'Gelasio', Georgia, serif; font-weight: 600; color: #1f4b3f;
	text-align: center; background: none; margin: 0 0 18px;
}
.frh-vs .frh-vs-note { color: #55635c; font-size: 15px; }
.frh-vs a.frh-vs-btn {
	display: inline-block; background: #2f6f57; color: #fff; text-decoration: none;
	padding: 9px 18px; border-radius: 3px; font-size: 15px; margin-top: 10px;
}
.frh-vs a.frh-vs-btn:hover { background: #24584a; color: #fff; }
.frh-vs > a.frh-vs-btn:last-child { margin-top: 22px; }
.frh-vs-login p { text-align: center; font-size: 17px; }

/* ---------- Hide Intro button + intro text ---------- */
.frh-vs .frh-vs-intro { margin: 4px 0 22px; }
.frh-vs .frh-vs-intro-toggle {
	display: inline-flex; align-items: center; gap: 10px;
	background: #fff; color: #1f6b4f; border: 2px solid #1f6b4f; border-radius: 6px;
	padding: 9px 16px; margin: 0; font-size: 15px; font-weight: 500; line-height: 1; cursor: pointer; font-family: inherit;
}
.frh-vs .frh-vs-intro-toggle:hover { background: #f1f7f4; }
.frh-vs .frh-vs-intro-box {
	width: 18px; height: 18px; border: 2px solid #1f6b4f; border-radius: 3px;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 13px; line-height: 1; color: #fff;
}
.frh-vs .frh-vs-intro-toggle[aria-pressed="true"] .frh-vs-intro-box { background: #1f6b4f; }
.frh-vs .frh-vs-intro-toggle[aria-pressed="true"] .frh-vs-intro-box::after { content: '\2713'; }
.frh-vs .frh-vs-intro-panel { margin-top: 18px; color: #2b3a33; }
.frh-vs .frh-vs-intro-panel[hidden] { display: none; }
.frh-vs .frh-vs-intro-panel p, .frh-vs .frh-vs-intro-panel li { font-size: 16px; line-height: 1.6; }
.frh-vs .frh-vs-intro-panel p { margin: 0 0 14px; }
.frh-vs .frh-vs-intro-panel h3 {
	font-family: 'Gelasio', Georgia, serif; font-weight: 600; font-size: 24px;
	color: #1f4b3f; text-align: center; margin: 0 0 18px; background: none;
}
.frh-vs .frh-vs-intro-panel h4 {
	font-family: 'Gelasio', Georgia, serif; font-weight: 600; font-size: 19px; color: #1f4b3f; margin: 0 0 6px;
}
.frh-vs .frh-vs-intro-panel blockquote {
	margin: 0 0 16px; padding: 0; border: 0;
	background: none; font-style: normal; font-size: 17px; line-height: 1.55; color: #2b3a33; quotes: none;
}
.frh-vs .frh-vs-intro-panel blockquote::before, .frh-vs .frh-vs-intro-panel blockquote::after { content: none; }
.frh-vs .frh-vs-intro-panel blockquote p { margin: 0 0 6px; font-size: 17px; }
.frh-vs .frh-vs-intro-panel blockquote cite { display: block; font-style: normal; font-size: 14px; color: #55635c; margin-top: 4px; }
.frh-vs .frh-vs-intro-panel blockquote cite strong { color: #1f4b3f; font-weight: 500; }
.frh-vs .frh-vs-intro-panel .irt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 20px; }
.frh-vs .frh-vs-intro-panel .irt-col p:last-child { margin-bottom: 0; }
.frh-vs .frh-vs-intro-panel ol.irt-steps { list-style: none; counter-reset: frhstep; padding: 0; margin: 0 0 20px; }
.frh-vs .frh-vs-intro-panel ol.irt-steps li { counter-increment: frhstep; position: relative; padding: 0 0 10px 40px; margin: 0; }
.frh-vs .frh-vs-intro-panel ol.irt-steps li::before {
	content: counter(frhstep); position: absolute; left: 0; top: 1px; width: 26px; height: 26px;
	border-radius: 50%; background: #1f6b4f; color: #fff; font-size: 13px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}
.frh-vs .frh-vs-intro-panel ol.irt-steps strong { color: #1f4b3f; font-weight: 500; }
.frh-vs .frh-vs-intro-panel a { color: #2a5f8a; }
.frh-vs .frh-vs-intro-panel a.irt-cta {
	display: inline-block; margin-top: 4px; background: #1f6b4f; color: #fff;
	text-decoration: none; padding: 11px 20px; border-radius: 6px; font-weight: 500;
}
.frh-vs .frh-vs-intro-panel a.irt-cta:hover { background: #18573f; color: #fff; }
@media (max-width: 640px) { .frh-vs .frh-vs-intro-panel .irt-cols { grid-template-columns: 1fr; } }

/* ---------- Boxes: videos, topics, Spaces ---------- */
.frh-vs .frh-vs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
@media (max-width: 780px) { .frh-vs .frh-vs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .frh-vs .frh-vs-grid { grid-template-columns: 1fr; } }
.frh-vs .frh-vs-card { display: flex; flex-direction: column; min-width: 0; }
.frh-vs .frh-vs-tile {
	position: relative; display: flex; flex-direction: column; justify-content: flex-end;
	aspect-ratio: 16 / 9; border: 1px solid #d8dfdc; border-radius: 6px;
	background-color: #1f4b3f; background-size: cover; background-position: center;
	overflow: hidden; cursor: pointer; padding: 0; margin: 0; text-decoration: none;
}
.frh-vs .frh-vs-tile:hover { box-shadow: 0 3px 12px rgba(0,0,0,.18); }
.frh-vs .frh-vs-tile-blank { background-color: #2a5f8a; }
.frh-vs .frh-vs-tile::before {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,0) 55%);
}
.frh-vs .frh-vs-num {
	position: absolute; top: 6px; left: 6px; z-index: 1;
	background: rgba(255,255,255,.92); color: #1f4b3f; font-size: 12px; font-weight: 700;
	line-height: 1; padding: 4px 7px; border-radius: 3px;
}
.frh-vs .frh-vs-count {
	position: absolute; top: 6px; right: 6px; z-index: 1;
	background: rgba(31,75,63,.9); color: #fff; font-size: 12px; font-weight: 500;
	line-height: 1; padding: 4px 8px; border-radius: 3px;
}
.frh-vs .frh-vs-play {
	position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
	border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.frh-vs .frh-vs-play::after {
	content: ''; position: absolute; top: 50%; left: 54%; width: 0; height: 0; margin: -9px 0 0 -6px;
	border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #1f4b3f;
}
.frh-vs .frh-vs-tile:hover .frh-vs-play { background: #fff; }
.frh-vs .frh-vs-tile-title {
	position: relative; color: #fff; font-size: 18px; font-weight: 500; text-align: left; padding: 8px 10px; line-height: 1.25;
}
.frh-vs .frh-vs-folder .frh-vs-tile-title { font-size: 17px; font-weight: 600; }
.frh-vs .frh-vs-desc { margin: 8px 2px 0; font-size: 14px; line-height: 1.5; color: #2b3a33; }
.frh-vs .frh-vs-desc-full { margin: 16px 0 0; }
.frh-vs .frh-vs-desc-full p { font-size: 16px; line-height: 1.6; margin: 0 0 12px; }

/* ---------- One video on its own page ---------- */
.frh-vs .frh-vs-single-title { color: #1f4b3f; margin: 16px 0 12px; }
.frh-vs .frh-vs-single-media { margin-bottom: 8px; }

/* ---------- Player (also used inline on a single-video page) ---------- */
.frh-vs-media { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.frh-vs-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frh-vs-media-file { aspect-ratio: auto; display: flex; flex-direction: column; min-height: 0; }
.frh-vs-media-file video { width: 100%; height: auto; display: block; background: #000; }
.frh-vs-controls { display: flex; align-items: center; gap: 8px; background: #17251f; padding: 8px 10px; flex-shrink: 0; }
.frh-vs-controls button {
	background: transparent; border: none; color: #fff; font-size: 17px; line-height: 1;
	cursor: pointer; padding: 4px 6px; margin: 0;
}
.frh-vs-controls input[type="range"] { flex: 1; accent-color: #2f6f57; }
.frh-vs-controls .frh-vs-time { color: #fff; font-size: 12px; white-space: nowrap; padding: 0 2px; font-family: 'Roboto', sans-serif; }
.frh-vs-controls[hidden] { display: none; }

/* ---------- Stage: video, image + audio, or an embed (Play All, and image + audio pages) ---------- */
.frh-vs-player { width: 100%; background: #000; }
.frh-vs-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.frh-vs-stage > video, .frh-vs-stage > img, .frh-vs-stage > iframe {
	position: absolute; inset: 0; width: 100%; height: 100%; border: 0; margin: 0; padding: 0;
	max-width: none; object-fit: contain; background: #000; display: block;
}
.frh-vs-stage > img { z-index: 1; }
.frh-vs-stage > iframe { z-index: 2; }
.frh-vs-stage > [hidden] { display: none; }
.frh-vs-stage:fullscreen { aspect-ratio: auto; width: 100%; height: 100%; }
.frh-vs-stage:-webkit-full-screen { aspect-ratio: auto; width: 100%; height: 100%; }

/* ---------- Badge on an image + audio box ---------- */
.frh-vs .frh-vs-kind { background: rgba(122, 90, 52, .92); }

/* ---------- Play All button ---------- */
.frh-vs .frh-vs-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.frh-vs .frh-vs-toolbar[hidden], .frh-vs .frh-vs-grid[hidden] { display: none; }
.frh-vs .frh-vs-toolbar-note { color: #55635c; font-size: 14px; }
.frh-vs button.frh-vs-playall-btn {
	display: inline-flex; align-items: center; gap: 10px;
	background: #1f6b4f; color: #fff; border: 2px solid #1f6b4f; border-radius: 6px;
	padding: 10px 20px; margin: 0; font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1;
	cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: none;
}
.frh-vs button.frh-vs-playall-btn:hover, .frh-vs button.frh-vs-playall-btn:focus { background: #18573f; border-color: #18573f; color: #fff; }
.frh-vs .frh-vs-playall-icon {
	width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px;
	border-color: transparent transparent transparent #fff;
}

/* ---------- Play All player ---------- */
.frh-vs .frh-vs-playall { border: 1px solid #d8dfdc; border-radius: 8px; padding: 16px; margin: 0 0 18px; background: #fff; scroll-margin-top: 90px; }
.frh-vs .frh-vs-pa-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 6px; }
.frh-vs .frh-vs-pa-pos { color: #2a5f8a; font-size: 14px; font-weight: 500; }
.frh-vs .frh-vs-pa-title { font-family: 'Gelasio', Georgia, serif; font-weight: 600; color: #1f4b3f; font-size: 22px; margin: 0 0 12px; background: none; }
.frh-vs button.frh-vs-pa-btn {
	display: inline-flex; align-items: center; gap: 6px;
	background: #fff; color: #1f6b4f; border: 2px solid #1f6b4f; border-radius: 6px;
	padding: 8px 14px; margin: 0; font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1;
	cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: none;
}
.frh-vs button.frh-vs-pa-btn:hover, .frh-vs button.frh-vs-pa-btn:focus { background: #f1f7f4; color: #1f6b4f; }
.frh-vs button.frh-vs-pa-btn:disabled { opacity: .4; cursor: default; background: #fff; }
.frh-vs button.frh-vs-pa-main { background: #1f6b4f; color: #fff; }
.frh-vs button.frh-vs-pa-main:hover, .frh-vs button.frh-vs-pa-main:focus { background: #18573f; color: #fff; }
.frh-vs button.frh-vs-pa-close { border-color: #c9d3cf; color: #55635c; padding: 6px 12px; font-size: 14px; }
.frh-vs .frh-vs-pa-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; }
.frh-vs .frh-vs-pa-auto { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #2b3a33; margin: 0 0 0 auto; cursor: pointer; }
.frh-vs .frh-vs-pa-auto input { margin: 0; accent-color: #1f6b4f; }
.frh-vs .frh-vs-pa-note { margin: 10px 0 0; padding: 8px 12px; border-left: 4px solid #2a5f8a; background: #f2f6fa; font-size: 14px; color: #2b3a33; }
.frh-vs .frh-vs-pa-note[hidden] { display: none; }
.frh-vs .frh-vs-pa-qhead { font-family: 'Gelasio', Georgia, serif; font-weight: 600; font-size: 17px; color: #1f4b3f; margin: 18px 0 8px; }
.frh-vs ol.frh-vs-pa-queue { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; border-top: 1px solid #e3e8e6; }
.frh-vs ol.frh-vs-pa-queue li { margin: 0; padding: 0; border-bottom: 1px solid #e3e8e6; border-left: 4px solid transparent; }
.frh-vs ol.frh-vs-pa-queue li.is-current { border-left-color: #1f6b4f; background: #f1f7f4; }
.frh-vs ol.frh-vs-pa-queue button {
	display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
	background: transparent; border: 0; border-radius: 0; padding: 9px 10px; margin: 0;
	font-family: inherit; font-size: 15px; line-height: 1.3; color: #2b3a33; cursor: pointer;
	text-transform: none; letter-spacing: normal; box-shadow: none;
}
.frh-vs ol.frh-vs-pa-queue button:hover, .frh-vs ol.frh-vs-pa-queue button:focus { background: #f6f9f8; color: #2b3a33; }
.frh-vs ol.frh-vs-pa-queue li.is-done .frh-vs-pa-qtitle { color: #6b7a73; }
.frh-vs ol.frh-vs-pa-queue li.is-current .frh-vs-pa-qtitle { color: #1f4b3f; font-weight: 600; }
.frh-vs .frh-vs-pa-qnum { font-weight: 700; color: #1f4b3f; font-size: 13px; min-width: 22px; }
.frh-vs .frh-vs-pa-qtitle { flex: 1; min-width: 0; }
.frh-vs .frh-vs-pa-qkind { font-size: 12px; color: #7a5a34; white-space: nowrap; }
@media (max-width: 560px) {
	.frh-vs .frh-vs-playall { padding: 10px; }
	.frh-vs .frh-vs-pa-auto { margin-left: 0; }
	.frh-vs .frh-vs-pa-title { font-size: 19px; }
}
.frh-vs-controls input[type="range"] { min-width: 0; width: auto; }
@media (max-width: 480px) { .frh-vs-controls { gap: 4px; padding: 8px 6px; } .frh-vs-controls button { padding: 4px; } }
