/*
Theme Name: God’s Holy Mountain
Description: Russian and English ministry pages for Twenty Twenty-Five.
Template: twentytwentyfive
Version: 1.1.1
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: gods-holy-mountain
*/

.ghm-site {
	--ghm-ink: #182e4b;
	--ghm-soft: #435d72;
	--ghm-line: #cad9e3;
	--ghm-paper: #fbfdfe;
	--ghm-font: "Segoe UI", Arial, sans-serif;
	--ghm-serif: Georgia, "Times New Roman", serif;
	--ghm-gutter: clamp(1.1rem, 5vw, 4.5rem);
	background: var(--ghm-paper);
	color: var(--ghm-ink);
	font: 400 1.0625rem/1.6 var(--ghm-font);
	letter-spacing: normal;
	min-height: 100vh;
	padding: 0;
}
.ghm-site *, .ghm-site *::before { box-sizing: border-box; }
.ghm-site :where(h1, h2, p, figure, blockquote, nav) { margin: 0; }
/* WordPress supplies paired text and background colors for its Button block. */
.ghm-site :where(h1, h2, blockquote, cite, :is(a, button):not(.wp-block-button__link)) { color: inherit; }
.ghm-site a { text-underline-offset: .2em; }
.ghm-site :is(a,button):focus-visible { outline: 3px solid #176087; outline-offset: 4px; }
.ghm-site h1, .ghm-site h2 { font-family: var(--ghm-serif); font-weight: 400; letter-spacing: -.025em; }
.ghm-head { border-bottom: 1px solid var(--ghm-line); }
.ghm-head-inner, .ghm-hero, .ghm-intro {
	width: min(100%, 76rem);
	margin-inline: auto;
	padding-inline: var(--ghm-gutter);
}
.ghm-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }
.ghm-name { font: 400 clamp(1.125rem, 2.2vw, 1.65rem)/1.14 var(--ghm-serif); letter-spacing: -.025em; }
.ghm-brand { display: flex; align-items: center; gap: clamp(.6rem, 1.5vw, 1rem); text-decoration: none; }
.ghm-brand img { width: clamp(3rem, 6vw, 4.25rem); height: auto; border-radius: 50%; flex: none; }
.ghm-languages { display: flex; align-items: center; gap: .25rem; font-size: .875rem; letter-spacing: .04em; }
.ghm-languages :is(span, a) { display: grid; place-items: center; min-width: 2.5rem; min-height: 2.75rem; }
.ghm-languages [aria-current] { font-weight: 700; text-decoration: underline; text-underline-offset: .4em; }
.ghm-languages a { color: var(--ghm-soft); text-decoration: none; }
.ghm-site a:hover { text-decoration: underline; }
.ghm-site .wp-block-post-content, .ghm-site main { margin-block: 0; }
.ghm-hero { padding-block: clamp(1.6rem, 3.8vw, 3.4rem) clamp(1.4rem, 2.7vw, 2.25rem); }
.ghm-site .ghm-verses { margin: 0; }
.ghm-site .ghm-verses .wp-block-quote {
	display: flex; flex-direction: column; gap: .75rem; border: 0; margin: 0; padding: 0;
	font: 400 clamp(1.65rem, 3.6vw, 3rem)/1.19 var(--ghm-serif); letter-spacing: -.025em;
	max-width: 36ch;
}
.ghm-site .ghm-verses .wp-block-quote p { font: inherit; margin: 0; text-wrap: pretty; }
.ghm-site .ghm-verses .wp-block-quote cite {
	display: flex; align-items: center; gap: .7rem; order: -1; margin: 0;
	font: 600 .875rem/1.4 var(--ghm-font); color: var(--ghm-soft); letter-spacing: .035em;
}
.ghm-verses cite::before { content: ""; height: 2px; width: 1.8rem; background: #719aad; }
.ghm-site .ghm-verses .wp-block-quote[hidden],
.ghm-site .ghm-hero:not(.ghm-ready) .wp-block-quote ~ .wp-block-quote,
.ghm-site .ghm-hero:not(.ghm-ready) .ghm-next-controls { display: none; }
.ghm-site .ghm-next-controls { margin: .25rem 0 0; }
.ghm-site .ghm-next .wp-block-button__link {
	border: 0; border-radius: 0; background: none; color: var(--ghm-soft); padding: .45rem 0; min-height: 2.75rem;
	font: 500 .9375rem/1.3 var(--ghm-font); text-decoration: underline; text-underline-offset: .22em; cursor: pointer;
}
.ghm-site .ghm-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: stretch; margin-block: 1rem 0; }
.ghm-link { display: inline-flex; }
.ghm-site .ghm-actions > .ghm-link { margin-block: 0; }
.ghm-site .ghm-cta {
	display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem;
	padding: .72rem 1.2rem; border: 1px solid var(--ghm-ink); border-radius: .35rem;
	background: var(--ghm-ink); color: #fff; font: 600 1rem/1.35 var(--ghm-font); text-align: center; text-decoration: none;
}
.ghm-site .ghm-outline .ghm-cta { background: transparent; color: var(--ghm-ink); }
.ghm-site .ghm-cta:hover { background: #294965; color: white; text-decoration: none; }
.ghm-site .ghm-panorama { width: min(100%, 83rem); margin: 0 auto; }
.ghm-panorama picture, .ghm-panorama img { display: block; width: 100%; }
.ghm-panorama img { height: clamp(6.75rem, 14vw, 11.5rem); object-fit: cover; object-position: 50% 25%; }
.ghm-site .ghm-intro { margin: 0 auto; padding-block: clamp(1.35rem, 2.8vw, 2.4rem); }
.ghm-intro h2, .ghm-reading h2 { font-size: clamp(1.55rem, 2.5vw, 2.1rem); line-height: 1.2; }
.ghm-intro p { max-width: 64ch; margin-top: .55rem; color: var(--ghm-soft); }
.ghm-reading { max-width: 48rem; margin-inline: auto; padding: clamp(1.6rem, 4.5vw, 4rem) var(--ghm-gutter) 1rem; box-sizing: content-box; }
.ghm-reading h1 { font-size: clamp(2rem, 4.8vw, 3.3rem); line-height: 1.12; margin-bottom: 1.5rem; }
.ghm-reading .wp-block-post-content > * + * { margin-block-start: 1rem; }
.ghm-reading .wp-block-post-content > h2 { margin-block-start: 2rem; }
.ghm-reading .wp-block-post-content > .ghm-actions { margin-block-start: 1.75rem; }
.ghm-reading .ghm-note { border-inline-start: 3px solid #7093a9; padding: .65rem 1rem; background: #edf4f8; font-size: 1rem; }
.ghm-reading details { border: 1px solid var(--ghm-line); border-radius: .35rem; background: white; }
.ghm-reading summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 600; }
.ghm-reading summary:focus-visible { outline: 3px solid #176087; outline-offset: 2px; }
.ghm-reading details[open] summary { border-bottom: 1px solid var(--ghm-line); }
.ghm-demo { padding: 1rem 1.1rem 1.25rem; }
.ghm-form-help { color: var(--ghm-soft); font-size: .95rem; }
.ghm-field { display: grid; gap: .3rem; margin: 1rem 0; }
.ghm-field span { font-weight: 600; }
.ghm-field :is(select,textarea) { box-sizing: border-box; width: 100%; padding: .6rem; border: 1px solid #778c9e; border-radius: .25rem; background: white; color: var(--ghm-ink); font: inherit; }
.ghm-field textarea { resize: vertical; }
.ghm-demo button { cursor: pointer; }
.ghm-demo [hidden] { display: none; }
.ghm-head-inner { position: relative; }
.ghm-head-tools { display: flex; flex: none; align-items: center; gap: clamp(.3rem, 2vw, 1.5rem); }
.ghm-menu { margin: 0; font: 500 .95rem/1.4 var(--ghm-font); }
.ghm-menu summary { cursor: pointer; white-space: nowrap; padding: .65rem .35rem; min-height: 2.75rem; }
.ghm-menu summary:focus-visible { outline: 3px solid #176087; outline-offset: 2px; }
.ghm-menu-panel { position: absolute; z-index: 5; top: 100%; right: var(--ghm-gutter); width: min(34rem, calc(100% - 2 * var(--ghm-gutter))); background: white; border: 1px solid var(--ghm-line); border-radius: .35rem; padding: .65rem; box-shadow: 0 .75rem 1.75rem #182e4b1c; }
.ghm-site :is(.ghm-menu-panel,.ghm-directory,.ghm-foot,.ghm-graduates) ul { list-style: none; margin: 0; padding: 0; }
.ghm-menu-panel ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.ghm-menu-panel a { display: flex; align-items: center; min-height: 2.75rem; padding: .4rem .65rem; text-decoration: none; }
.ghm-menu-panel a[aria-current], .ghm-menu-panel a:hover { background: #eaf2f7; }
.ghm-site .ghm-directory { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem 2.25rem; width: min(100%,76rem); padding: .5rem var(--ghm-gutter) 2.5rem; margin: 0 auto; }
.ghm-directory section { border-top: 1px solid var(--ghm-line); padding-top: 1rem; }
.ghm-directory h2, .ghm-graduates h2 { font-size: clamp(1.4rem,2.3vw,1.8rem); line-height: 1.2; margin: 0 0 .6rem; }
.ghm-directory a, .ghm-foot a, .ghm-graduates a { display: inline-block; padding: .35rem 0; }
.ghm-site .ghm-foot { border-top: 1px solid var(--ghm-line); background: #edf4f8; margin: 1.5rem 0 0; }
.ghm-foot nav { max-width: 76rem; margin: 0 auto; padding: 1rem var(--ghm-gutter); font-size: .95rem; }
.ghm-foot ul { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1.5rem; }
.ghm-foot .ghm-telegram { border: 1px solid #8fa8b8; border-radius: 1.3rem; padding: .35rem .9rem; text-decoration: none; }
.ghm-site .ghm-graduates { padding: 1.25rem 0; margin-top: 2rem; border-block-start: 1px solid var(--ghm-line); }
.ghm-graduates p { margin: .4rem 0; }
#mentor-application { scroll-margin-top: 2.25rem; }
.ghm-try-again { background: none; border: 0; padding: .65rem 0; min-height: 2.75rem; text-decoration: underline; font: inherit; }
@media (max-width: 36rem) {
	.ghm-site .ghm-actions { display: grid; gap: .55rem; }
	.ghm-site .ghm-cta { width: 100%; }
	.ghm-head-inner { gap: .35rem; }
	.ghm-languages { gap: 0; }
	.ghm-site .ghm-directory { grid-template-columns: 1fr; gap: 1rem; }
	.ghm-menu-panel { max-height: 65vh; overflow-y: auto; }
	.ghm-languages :is(span,a) { min-width: 2rem; }
	.ghm-head-tools { gap: .1rem; }
}
