/*
Theme Name: Geopark
Description: Block theme for the Khanbogd–Shar Tsav Geopark site (MN/EN). Colours, fonts and sizes live in theme.json and can be changed in Appearance → Editor → Styles; this file only holds what theme.json cannot express: the header behaviour, the phone menu, the language switcher and the cards.
Version: 1.9.2
Requires at least: 6.7
Requires PHP: 7.4
Author: DEM
Text Domain: geopark
*/

/* Base (from Twenty Twenty-Five) */
/* Accessibility: visible keyboard focus everywhere; focused items never hide under the sticky header */
html{scroll-padding-top:calc(var(--wp-admin--admin-bar--height,0px) + 6rem)}
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid currentColor;outline-offset:2px}
a{text-decoration-thickness:1px;text-underline-offset:.1em}
:where(.wp-site-blocks *:focus){outline-width:2px;outline-style:solid}
h1,h2,h3,h4,h5,h6,blockquote,caption,figcaption,p{text-wrap:pretty}
.more-link{display:block}
:where(pre){overflow-x:auto}

/* Detail pages and pills (pill colours come from the Geopark Core plugin) */
.geosite-meta{gap:.75rem 1.25rem;align-items:center;margin-bottom:var(--wp--preset--spacing--40)}
.geosite-soum{font-size:var(--wp--preset--font-size--small);color:var(--wp--preset--color--muted)}
.geosite-categories a{display:inline-block;padding:.15em .75em;border-radius:999px;border:1px solid transparent;text-decoration:none;font-size:var(--wp--preset--font-size--small);color:var(--wp--preset--color--contrast);background:color-mix(in srgb,currentColor 10%,transparent)}
.geosite-categories a:hover{border-color:currentColor}
.geopark-sites-link,.geopark-map__link{font-size:var(--wp--preset--font-size--small)}
.geopark-sites-link{margin-bottom:var(--wp--preset--spacing--30)}
.geopark-sites-link a{text-decoration:none}
.geopark-map__link{margin-top:.5rem}
.geopark-map__coords{opacity:.6;margin-left:.5rem}
.wp-block-term-description{max-width:60ch;opacity:.85}

/* Cards */
.geosite-card{height:100%}
.geosite-card .wp-block-post-featured-image img{border-radius:12px}
.geosite-card .wp-block-post-title{margin-top:var(--wp--preset--spacing--20)}
.geosite-card .wp-block-post-title a{text-decoration:none}
.geosite-card .wp-block-post-excerpt__excerpt,.geosite-card .wp-block-post-date{font-size:var(--wp--preset--font-size--small)}
.geosite-card .wp-block-post-date{opacity:.7}
/* A news section with a single post shows it as one wide card. */
@media (min-width:782px){
	.home-section .wp-block-post-template:has(> li:only-child){display:block}
	.home-section .wp-block-post-template > li:only-child .geosite-card{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-rows:1fr auto auto auto 1fr;column-gap:3rem;row-gap:.5rem}
	.home-section .wp-block-post-template > li:only-child .geosite-card > *{grid-column:2}
	.home-section .wp-block-post-template > li:only-child .geosite-card > .wp-block-post-featured-image{grid-column:1;grid-row:1 / -1;align-self:center;margin:0}
	.home-section .wp-block-post-template > li:only-child .geosite-card > .wp-block-post-date{grid-row:2}
	.home-section .wp-block-post-template > li:only-child .geosite-card > .wp-block-post-title{grid-row:3;margin:0}
	.home-section .wp-block-post-template > li:only-child .geosite-card > .wp-block-post-excerpt{grid-row:4}
	.home-section .wp-block-post-template > li:only-child .wp-block-post-featured-image img{aspect-ratio:3/2;object-fit:cover;width:100%;height:auto}
}

/* Home sections */
.home-section{padding-top:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--70)}
.home-section.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)){max-width:var(--wp--style--global--wide-size)}
/* Home hero, same as the original site: full screen, text block 768px wide on the page grid, 24px side padding,
   scroll hint at the bottom, text fades in. */
.wp-block-cover.home-hero{min-height:100vh;padding:0 1.5rem}
.home-hero .wp-block-cover__inner-container{width:100%;max-width:var(--wp--style--global--wide-size);animation:geopark-hero-in .8s ease-out both}
.has-overlay-header .home-hero .wp-block-cover__inner-container{padding-top:5rem}
.home-hero .wp-block-cover__inner-container > *{max-width:48rem;margin-left:0;margin-right:0}
.home-hero h1.wp-block-heading{margin:0 0 1.5rem;font-size:2.25rem;line-height:1.25;letter-spacing:0}
.home-hero .wp-block-cover__inner-container > p{margin:0 0 2.5rem;font-size:1.25rem!important;font-weight:300;line-height:1.625;opacity:.9}
.home-hero .wp-block-buttons{flex-direction:column;align-items:stretch;gap:1rem}
.home-hero .wp-block-button{display:flex;margin:0}
.home-hero .wp-block-button__link{flex:1;box-sizing:border-box;border-radius:9999px;padding:1rem 2rem;font-weight:700;line-height:1.5;text-align:center;transition:background-color .15s ease}
.home-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link{background:var(--wp--preset--color--tan);border:0;color:var(--wp--preset--color--base);box-shadow:0 10px 15px -3px rgba(0,0,0,.06),0 4px 6px -4px rgba(0,0,0,.05)}
.home-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover{background:color-mix(in srgb,var(--wp--preset--color--tan) 90%,transparent)}
.home-hero .is-style-outline .wp-block-button__link{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.3);color:var(--wp--preset--color--base);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.home-hero .is-style-outline .wp-block-button__link:hover{background:rgba(255,255,255,.2)}
.home-hero::after{content:"";position:absolute;z-index:1;left:calc(50% - 12px);bottom:2.5rem;width:24px;height:40px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='40'%3E%3Crect x='1' y='1' width='22' height='38' rx='11' fill='none' stroke='white' stroke-opacity='.3' stroke-width='2'/%3E%3Crect x='10' y='6' width='4' height='8' rx='2' fill='white'/%3E%3C/svg%3E") no-repeat;animation:geopark-bounce 1s infinite;pointer-events:none}
@keyframes geopark-bounce{0%,100%{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}
@keyframes geopark-hero-in{from{opacity:0;transform:translateY(30px)}}
@media (min-width:640px){
	.home-hero .wp-block-buttons{flex-direction:row}
	.home-hero .wp-block-button__link{flex:0 1 auto}
}
@media (min-width:768px){
	.has-overlay-header .home-hero .wp-block-cover__inner-container{padding-top:0}
	.home-hero h1.wp-block-heading{font-size:4.5rem;line-height:1}
	.home-hero .wp-block-cover__inner-container > p{font-size:1.5rem!important;line-height:2rem}
}

/* Home page sections (1.9.1), like the original site. The classes home-intro, home-sites, home-cta, home-heritage and
   home-news are set on the blocks of the home pages (Advanced → Additional CSS class). Card labels are added here because
   the card blocks do not print them. */
.home{--gp-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");--gp-chevron-accent:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23826140' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");--gp-soft:color-mix(in srgb,var(--wp--preset--color--contrast) 60%,transparent)}
.home .entry-content > *{margin-block-start:0}
.home .home-section{padding-top:6rem;padding-bottom:6rem}
.home .home-section > *{margin-block-start:0}
.home .home-section .wp-block-buttons .wp-block-button .wp-block-button__link{line-height:1.5;transition:background-color .15s ease,color .15s ease}
/* Intro */
.home-intro .wp-block-columns{gap:4rem}
.home-intro h2.wp-block-heading{margin:0 0 2rem;line-height:1}
.home-intro .wp-block-column > p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden;margin:0 0 2rem;line-height:1.625;color:color-mix(in srgb,var(--wp--preset--color--contrast) 70%,transparent)}
.home-intro .wp-block-buttons .wp-block-button .wp-block-button__link{display:inline-flex;align-items:center;gap:.5rem;padding:0;border:0;border-radius:0;background:none;color:var(--wp--preset--color--accent);font-weight:700}
.home-intro .wp-block-button__link::after,.home-sites .wp-block-button__link::after{content:"";flex:none;width:1.5rem;height:1.5rem;background:currentColor;-webkit-mask:var(--gp-chevron) center/contain no-repeat;mask:var(--gp-chevron) center/contain no-repeat;transition:transform .15s ease}
.home-intro .wp-block-button__link:hover::after{transform:translateX(.25rem)}
.home-intro .wp-block-image{position:relative;aspect-ratio:1;margin:0;border-radius:1rem;overflow:hidden;box-shadow:0 25px 50px -12px rgba(0,0,0,.25)}
.home .home-intro .wp-block-column .wp-block-image img{display:block;width:100%;max-width:none;height:100%;margin:0;object-fit:cover;border-radius:0!important}
.home-intro .wp-block-image::after{content:"";position:absolute;inset:0;border:16px solid rgba(255,255,255,.2);pointer-events:none}
/* Sites */
.home-sites > h2.wp-block-heading{max-width:48rem;margin:0 auto 1.5rem;line-height:1;text-align:center}
.home-sites > p{max-width:48rem;margin:0 auto 4rem;line-height:1.75rem;text-align:center;color:var(--gp-soft)}
.home :is(.home-sites,.home-heritage) .geopark-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:2rem}
.home :is(.home-sites,.home-heritage,.home-news) .geosite-card{position:relative;height:auto;background:var(--wp--preset--color--base);transition:box-shadow .15s ease}
.home-sites .geosite-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid color-mix(in srgb,var(--wp--preset--color--tan) 5%,transparent);border-radius:1rem;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.home-sites .geosite-card:hover{box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1)}
.home :is(.home-sites,.home-heritage) .geosite-card__image{display:block;overflow:hidden}
.home-sites .geosite-card__image{height:12rem}
.home :is(.home-sites,.home-heritage) .geosite-card__image img{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;border-radius:0;transition:transform .5s ease}
.home-sites .geosite-card:hover .geosite-card__image img{transform:scale(1.1)}
.home-sites .geosite-categories{display:none}
.home :is(.home-sites,.home-heritage) .geosite-card__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:1.25rem;line-height:1.75rem}
.home :is(.home-sites,.home-heritage,.home-news) :is(.geosite-card__title,.wp-block-post-title) a{text-decoration:none}
.home :is(.home-sites,.home-heritage,.home-news) :is(.geosite-card__title,.wp-block-post-title) a::before{content:"";position:absolute;inset:0;z-index:1}
.home :is(.home-sites,.home-heritage) .geosite-card__excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:.875rem;line-height:1.25rem;color:var(--gp-soft)}
.home-sites .geosite-card__title{margin:1.5rem 1.5rem .75rem}
.home-sites .geosite-card__excerpt{margin:0 1.5rem 1rem}
.home-sites .geosite-card::after{content:"\0421\0443\0434\043B\0430\0445";align-self:flex-start;margin:0 1.5rem 1.5rem;padding-right:1.125rem;background:var(--gp-chevron-accent) right center/.875rem no-repeat;color:var(--wp--preset--color--accent);font-size:.75rem;font-weight:700;letter-spacing:.1em;line-height:1rem;text-transform:uppercase}
html:lang(en) .home-sites .geosite-card::after,html:lang(en) .home-heritage .geosite-card::after{content:"Explore"}
.home-sites > .wp-block-buttons{justify-content:center;margin-top:3rem!important}
.home-sites .wp-block-buttons .wp-block-button .wp-block-button__link{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1.5rem;border:0;border-radius:9999px;background:var(--wp--preset--color--tan);color:var(--wp--preset--color--base);font-weight:600}
.home-sites .wp-block-buttons .wp-block-button .wp-block-button__link:hover{background:var(--wp--preset--color--contrast)}
.home-sites .wp-block-button__link::after{width:1.125rem;height:1.125rem}
/* Journey */
.wp-block-cover.home-cta{min-height:0!important;padding:6rem 1.5rem}
.home-cta .wp-block-cover__inner-container{max-width:48rem}
.home-cta .wp-block-cover__inner-container::before{content:"";display:block;width:4rem;height:4rem;margin:0 auto 2rem;background:var(--wp--preset--color--tan);-webkit-mask:var(--gp-compass) center/contain no-repeat;mask:var(--gp-compass) center/contain no-repeat;--gp-compass:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolygon points='16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76'/%3E%3C/svg%3E")}
.home-cta h2.wp-block-heading{margin:0 0 2rem;font-size:2.25rem!important;line-height:2.5rem}
.home-cta .wp-block-cover__inner-container > p{margin:0 0 2.5rem;font-size:1.25rem!important;line-height:1.625;opacity:.8}
.home-cta .wp-block-buttons .wp-block-button .wp-block-button__link{padding:1.25rem 2.5rem;border-radius:9999px;background:var(--wp--preset--color--tan);color:var(--wp--preset--color--base);font-weight:700;line-height:1.5;box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);transition:background-color .15s ease,color .15s ease}
.home-cta .wp-block-buttons .wp-block-button .wp-block-button__link:hover{background:var(--wp--preset--color--base);color:var(--wp--preset--color--contrast)}
/* Intangible heritage */
.home-heritage{position:relative}
.home-heritage > h2.wp-block-heading{margin:0 0 2.5rem;font-size:2.25rem!important;line-height:2.5rem}
.home-heritage .geosite-card{padding:1rem;border-radius:1rem;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.home-heritage .geosite-card:hover{box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1)}
.home-heritage .geosite-card__image{aspect-ratio:4/3;margin-bottom:1.5rem;border-radius:.75rem}
.home-heritage .geosite-categories{margin:0 0 .5rem;font-size:0;line-height:0}
.home-heritage .geosite-categories a{display:none}
.home-heritage .geosite-categories::before{content:"\0411\0438\0435\0442  \0431\0443\0441  \04E9\0432";display:block;color:var(--wp--preset--color--accent);font-size:.625rem;font-weight:700;letter-spacing:.1em;line-height:.9375rem;text-transform:uppercase;white-space:pre}
html:lang(en) .home-heritage .geosite-categories::before{content:"Intangible Heritage"}
.home-heritage .geosite-card__title{margin:0 0 .5rem}
.home-heritage .geosite-card__excerpt{margin:0 0 1rem}
.home-heritage .geosite-card::after{content:"\0421\0443\0434\043B\0430\0445";display:block;width:fit-content;padding-right:1.125rem;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' x2='21' y1='14' y2='3'/%3E%3C/svg%3E") right center/.875rem no-repeat;color:var(--wp--preset--color--contrast);font-size:.875rem;font-weight:700;line-height:1.25rem}
.home-heritage > .wp-block-buttons{margin-top:2.5rem!important}
.home-heritage .wp-block-buttons .wp-block-button{flex:1}
.home-heritage .wp-block-buttons .wp-block-button .wp-block-button__link{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:1rem;border:2px solid var(--wp--preset--color--accent);border-radius:9999px;background:none;color:var(--wp--preset--color--accent);font-weight:700}
/* News */
.home-news > h2.wp-block-heading{position:relative;margin:0 0 4rem;padding-bottom:1.25rem;font-size:2.25rem!important;line-height:2.5rem;text-align:center}
.home-news > h2.wp-block-heading::after{content:"";position:absolute;left:calc(50% - 2.5rem);bottom:0;width:5rem;height:.25rem;background:var(--wp--preset--color--tan)}
.home-news .wp-block-post-template{gap:3rem}
.home-news .geosite-card{display:flex;flex-direction:column;height:100%;background:none}
.home-news .wp-block-post-featured-image{margin:0 0 1.5rem;border-radius:1rem;overflow:hidden;box-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1)}
.home-news .wp-block-post-featured-image img{display:block;aspect-ratio:16/9!important;border-radius:0;transition:transform .5s ease}
.home-news .geosite-card:hover .wp-block-post-featured-image img{transform:scale(1.05)}
.home-news .wp-block-post-date{margin:0 0 .75rem;padding-left:1.375rem;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23686868' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") left center/.875rem no-repeat;color:var(--wp--preset--color--muted);font-size:.75rem!important;line-height:1rem;opacity:1}
.home-news .wp-block-post-title{margin:0 0 1rem;font-size:1.5rem!important;line-height:2rem}
.home-news .geosite-card:hover .wp-block-post-title a{color:var(--wp--preset--color--accent)}
.home-news .wp-block-post-excerpt{margin:0 0 1.5rem}
.home-news .wp-block-post-excerpt__excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:0;font-size:1rem;line-height:1.5;color:var(--gp-soft)}
.home-news .geosite-card::after{content:"\0414\044D\043B\0433\044D\0440\044D\043D\0433\04AF\0439";align-self:flex-start;margin-top:auto;padding-right:1.25rem;background:var(--gp-chevron-accent) right center/1rem no-repeat;color:var(--wp--preset--color--accent);font-weight:700;line-height:1.5}
html:lang(en) .home-news .geosite-card::after{content:"Read More"}
.home-news > .wp-block-buttons{justify-content:center;margin-top:4rem!important}
.home-news .wp-block-buttons .wp-block-button .wp-block-button__link{padding:1rem 2rem;border:0;border-radius:9999px;background:var(--wp--preset--color--contrast);color:var(--wp--preset--color--base);font-weight:700}
.home-news .wp-block-buttons .wp-block-button .wp-block-button__link:hover{background:var(--wp--preset--color--tan)}
@media (min-width:768px){
	.home :is(.home-sites,.home-heritage) .geopark-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
	.home .home-heritage .geopark-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
	.home-cta h2.wp-block-heading{font-size:3.75rem!important;line-height:1}
	.home-heritage > h2.wp-block-heading{margin-bottom:4rem}
	.home-heritage > .wp-block-buttons{position:absolute;top:6.5rem;right:max(1.5rem,calc((100% - var(--wp--style--global--wide-size))/2));margin:0!important}
	.home-heritage .wp-block-buttons .wp-block-button .wp-block-button__link{padding:0;border:0;border-radius:0}
	.home-heritage .wp-block-buttons .wp-block-button .wp-block-button__link:hover{text-decoration:underline}
	.home-heritage .wp-block-button__link::after{content:"";flex:none;width:1.25rem;height:1.25rem;background:currentColor;-webkit-mask:var(--gp-chevron) center/contain no-repeat;mask:var(--gp-chevron) center/contain no-repeat}
}
@media (min-width:1024px){
	.home .home-sites .geopark-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:639px){
	.home-news .wp-block-post-title{font-size:1.25rem!important;line-height:1.5625rem}
}

/* Footer */
.site-footer a{color:inherit}
.site-footer :where(h2,h3,h4){color:var(--wp--preset--color--base)}
.site-footer a:where(:not(.wp-element-button)){text-decoration:none}
.site-footer a:where(:not(.wp-element-button)):hover{text-decoration:underline}
.wp-block-list.is-style-plain{list-style:none;padding-left:0}
.site-footer .wp-block-site-logo img{max-height:64px;width:auto}

/* Page hero (templates/page.html): featured image under a dark shade, kicker + title at the bottom left;
   height 42% of the screen, 260–480px, like the original */
.wp-block-cover.page-hero{min-height:clamp(260px,42vh,480px);align-items:flex-end;padding-left:var(--wp--style--root--padding-left);padding-right:var(--wp--style--root--padding-right)}
.page-hero:not(:has(.wp-block-cover__image-background)){background-color:var(--wp--preset--color--forest)}
.page-hero .wp-block-cover__inner-container{padding-bottom:clamp(2.5rem,4.4vw,3.5rem)}
.page-hero .page-hero__kicker{margin:0 0 .75rem;font-family:var(--wp--preset--font-family--inter);font-size:.625rem;font-weight:700;letter-spacing:.22em;line-height:1.4;text-transform:uppercase;color:var(--wp--preset--color--sand)}
.page-hero .wp-block-post-title{margin:0}
/* Page without a featured image (functions.php adds .page-hero--band): compact dark band like the original site */
.wp-block-cover.page-hero--band{min-height:0;padding-top:1rem;padding-bottom:1rem;background:linear-gradient(to bottom,var(--wp--preset--color--contrast),color-mix(in srgb,var(--wp--preset--color--contrast) 88%,var(--wp--preset--color--accent)));--wp--preset--font-size--display:1.25rem}
.page-hero--band .wp-block-cover__background{display:none}
.page-hero--band .wp-block-cover__inner-container{padding-bottom:0}
.page-hero--band .page-hero__kicker{margin-bottom:.125rem;font-size:.625rem;font-weight:600;letter-spacing:.2em}
.page-hero--band .wp-block-post-title{line-height:1.25}
@media (min-width:782px){
	.wp-block-cover.page-hero--band{padding-top:2rem;padding-bottom:2rem;--wp--preset--font-size--display:1.875rem}
	.page-hero--band .page-hero__kicker{margin-bottom:.25rem;font-size:.6875rem}
}

/* Block styles (functions.php): Card, Kicker, Raised image */
.wp-block-group.is-style-card{position:relative;overflow:hidden;box-sizing:border-box;height:100%;padding:clamp(1.75rem,3vw,2.5rem);border:1px solid color-mix(in srgb,var(--wp--preset--color--accent) 20%,transparent);border-radius:24px;background:linear-gradient(to bottom right,var(--wp--preset--color--cream),var(--wp--preset--color--base))}
.wp-block-group.is-style-card::before{content:"";position:absolute;top:0;right:0;width:8rem;height:8rem;border-radius:50%;background:color-mix(in srgb,var(--wp--preset--color--accent) 10%,transparent);transform:translate(50%,-50%);pointer-events:none}
.wp-block-column + .wp-block-column > .wp-block-group.is-style-card::before{top:auto;right:auto;bottom:0;left:0;transform:translate(-50%,50%)}
.wp-block-group.is-style-card > *{position:relative}
.wp-block-group.is-style-card > p{font-size:var(--wp--preset--font-size--medium);line-height:1.75}
.is-style-kicker{display:flex;align-items:center;gap:.75rem;margin:0 0 1.25rem;font-family:var(--wp--preset--font-family--inter);font-size:.75rem;font-weight:700;letter-spacing:.18em;line-height:1.3;text-transform:uppercase;color:var(--wp--preset--color--accent)}
.is-style-kicker::before{content:"";flex:0 0 1.5rem;height:2px;border-radius:2px;background:currentColor}
.wp-block-image.is-style-raised{max-width:28rem;margin-inline:auto}
.wp-block-image.is-style-raised img{border-radius:20px;background:var(--wp--preset--color--base);box-shadow:0 20px 25px -5px color-mix(in srgb,var(--wp--preset--color--contrast) 6%,transparent),0 8px 10px -6px color-mix(in srgb,var(--wp--preset--color--contrast) 5%,transparent)}

/* Language switcher, like the original site: only the other language, as a small pill */
.header-language-switcher{width:auto!important;flex:0 0 auto!important;min-width:0}
.header-language-switcher ul,ul.header-language-switcher{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:0}
.header-language-switcher li{margin:0;padding:0;display:flex;align-items:center}
.header-language-switcher li.current-lang{display:none}
.header-language-switcher a{display:block;padding:.25rem .75rem;border:1px solid currentColor;border-radius:9999px;color:var(--wp--preset--color--accent);font-size:.75rem;font-weight:700;line-height:1rem;text-decoration:none;text-transform:uppercase;white-space:nowrap;transition:background-color .15s ease,color .15s ease}
.header-language-switcher a:hover{background:var(--wp--preset--color--accent);border-color:var(--wp--preset--color--accent);color:var(--wp--preset--color--base)}
.has-overlay-header:not(.is-scrolled) .header-language-switcher a:not(:hover){color:inherit}

/* Header: solid bar that stays on top while scrolling */
.site-header{background:var(--wp--preset--color--base);color:var(--wp--preset--color--contrast);border-bottom:1px solid color-mix(in srgb,var(--wp--preset--color--contrast) 8%,transparent)}
.wp-site-blocks > header.wp-block-template-part{position:sticky;top:0;z-index:50}
.admin-bar .wp-site-blocks > header.wp-block-template-part{top:var(--wp-admin--admin-bar--height,32px)}
/* Like the original site: 56px logo (40px on phones), 12px bar padding (8px on phones; 24px over the home hero), 14px medium menu */
.site-header .wp-block-site-logo img{width:auto!important;height:2.5rem!important;max-width:none}
.site-header .wp-block-group.alignwide{padding-top:.5rem!important;padding-bottom:.5rem!important;transition:padding .3s ease}
.site-header .wp-block-navigation{font-size:var(--wp--preset--font-size--small);font-weight:500}
@media (max-width:767px){
	.site-header > .wp-block-group{padding-left:1rem;padding-right:1rem}
}
@media (min-width:768px){
	.site-header .wp-block-site-logo img{height:3.5rem!important}
	.site-header .wp-block-group.alignwide{padding-top:.75rem!important;padding-bottom:.75rem!important}
}
.site-header .wp-block-navigation-item__content{text-decoration:none}
.site-header .wp-block-navigation__submenu-container{min-width:16rem}
.site-header .wp-block-navigation__responsive-container-open{padding:.4rem;margin-right:.25rem}
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child){margin-bottom:3px}
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content{outline-offset:4px}
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content{outline-offset:0}
.wp-block-navigation .wp-block-navigation-submenu__toggle:focus{outline:none}
.wp-block-navigation .wp-block-navigation-submenu__toggle:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:4px}
.site-header .gp-nav-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:28px;height:28px;border-radius:9px;background:color-mix(in srgb,var(--wp--preset--color--accent) 11%,transparent);color:var(--wp--preset--color--accent);transition:background-color .15s ease,color .15s ease}
.site-header .gp-nav-icon svg{display:block}
.site-header .gp-nav-current>.wp-block-navigation-item__content{color:var(--wp--preset--color--accent)}
.site-header .gp-nav-current>.wp-block-navigation-item__content .gp-nav-icon{background:var(--wp--preset--color--accent);color:var(--wp--preset--color--base)}

/* Front page: transparent header over the hero, solid after scrolling (body.is-scrolled from functions.php) */
.has-overlay-header .site-header{position:fixed;top:0;left:0;right:0;z-index:50;background:transparent;border-bottom:0;color:var(--wp--preset--color--base);--geopark-chip:18%;transition:background-color .25s ease,box-shadow .25s ease,color .25s ease}
.has-overlay-header.is-scrolled .site-header{background:var(--wp--preset--color--base);color:var(--wp--preset--color--contrast);--geopark-chip:8%;box-shadow:0 1px 0 color-mix(in srgb,var(--wp--preset--color--contrast) 8%,transparent),0 6px 24px color-mix(in srgb,var(--wp--preset--color--contrast) 6%,transparent)}
.admin-bar.has-overlay-header .site-header{top:var(--wp-admin--admin-bar--height,32px)}
.has-overlay-header .site-header .wp-block-navigation__responsive-container.is-menu-open{background:var(--wp--preset--color--base);color:var(--wp--preset--color--contrast)}
.logo-swap .logo-swap__dark,.has-overlay-header.is-scrolled .logo-swap .logo-swap__light{display:none}
/* Over the hero the bar is clear and taller, as on the original site (the photo already sits under a 50% shade) */
@media (min-width:768px){
	.has-overlay-header:not(.is-scrolled) .site-header .wp-block-group.alignwide{padding-top:1.5rem!important;padding-bottom:1.5rem!important}
}
@media (min-width:1024px){
	/* Frosted bar. Desktop only: on phones and tablets a backdrop filter would trap the full-screen menu inside the bar. */
	.site-header,.has-overlay-header.is-scrolled .site-header{background:color-mix(in srgb,var(--wp--preset--color--base) 80%,transparent);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
	.has-overlay-header:not(.is-scrolled) .site-header{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
}
.has-overlay-header.is-scrolled .logo-swap .logo-swap__dark{display:inline-block}

/* Desktop: one-line menu, dropdowns as cards */
@media (min-width:1024px){
	.site-header .wp-block-navigation{flex-shrink:0}
	.site-header .wp-block-navigation__container{flex-wrap:nowrap}
	/* Dropdown cards. The icon tiles and the group headings of the long list come from geopark-core. */
	.site-header .wp-block-navigation .has-child .wp-block-navigation__submenu-container{border:1px solid color-mix(in srgb,var(--wp--preset--color--contrast) 6%,transparent);border-radius:20px;box-shadow:0 24px 48px -12px color-mix(in srgb,var(--wp--preset--color--contrast) 24%,transparent);padding:.75rem;margin-top:.6rem;background:var(--wp--preset--color--base);color:var(--wp--preset--color--contrast)}
	.site-header .wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container{min-width:15rem}
	.site-header .wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content{align-items:center;gap:.65rem;padding:.375rem .5rem;border-radius:12px;white-space:nowrap;line-height:1.25;font-size:.875rem;transition:background-color .15s ease,color .15s ease}
	.site-header .wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content:is(:hover,:focus-visible){background:color-mix(in srgb,var(--wp--preset--color--accent) 9%,transparent);color:var(--wp--preset--color--accent)}
	.site-header .wp-block-navigation .has-child .wp-block-navigation__submenu-container>.gp-nav-current>.wp-block-navigation-item__content{color:var(--wp--preset--color--accent)}
	.site-header .wp-block-navigation-item__content:is(:hover,:focus-visible) .gp-nav-icon{background:var(--wp--preset--color--accent);color:var(--wp--preset--color--base)}
	/* "Танилцах / Explore": groups in two columns (the second starts at the services heading) */
	.site-header .wp-block-navigation .has-child .wp-block-navigation__submenu-container.gp-nav-grouped{display:block;columns:2;column-gap:1.25rem;padding:1.25rem 1rem 1rem}
	.site-header .wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.gp-nav-grouped{width:31rem}
	.site-header .wp-block-navigation .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container.gp-nav-grouped{left:50%;right:auto;transform:translateX(-50%)}
	.site-header .gp-nav-grouped>li{break-inside:avoid}
	.site-header .gp-nav-grouped>.gp-nav-col2.is-first{break-before:column}
	.site-header .wp-block-navigation .has-child .gp-nav-grouped>.wp-block-navigation-item>.wp-block-navigation-item__content{white-space:normal}
	.site-header .gp-nav-heading{display:block;font-size:.625rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;line-height:1.3;color:var(--wp--preset--color--accent);padding:1rem .5rem .375rem}
	.site-header .gp-nav-heading.is-first{padding-top:0}
}

/* Phones and tablets: hamburger + full-screen menu with grouped sections */
@media (max-width:1023px){
	.site-header .wp-block-navigation__responsive-container:not(.is-menu-open){display:none}
	.site-header .wp-block-navigation__responsive-container-open{display:flex}
	.site-header .wp-block-navigation{order:2}
	.header-language-switcher{order:1}
	.header-language-switcher,.header-language-switcher ul{width:auto}
	.site-header .is-menu-open{padding:1.25rem 1.5rem 2.5rem}
	.site-header .is-menu-open :is(.items-justified-right,.wp-block-navigation__container,.wp-block-navigation__submenu-container){--navigation-layout-justification-setting:flex-start;--navigation-layout-justify:flex-start;align-items:stretch;gap:0}
	.site-header .is-menu-open .wp-block-navigation-item{align-items:stretch;width:100%;text-align:left}
	.site-header .is-menu-open .wp-block-navigation-item__content{text-align:left}
	.site-header .is-menu-open .wp-block-navigation__container > .has-child{margin-top:1.25rem}
	.site-header .is-menu-open .wp-block-navigation__container > .has-child > :is(.wp-block-navigation-item__content,button){font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;opacity:.55;padding:0 0 .35rem;pointer-events:none;font-weight:600}
	.site-header .is-menu-open .has-child > .wp-block-navigation__submenu-icon{display:none}
	.site-header .is-menu-open .wp-block-navigation__submenu-container{margin:0;border-left:0}
	.site-header .is-menu-open .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content{display:flex;align-items:center;gap:.75rem;padding:.4rem 0;font-size:1.05rem;line-height:1.3}
	.site-header .is-menu-open .gp-nav-icon{width:32px;height:32px;border-radius:10px}
	.site-header .is-menu-open .gp-nav-heading{display:none}
	.site-header .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:not(.has-child) > .wp-block-navigation-item__content{display:block;padding:.75rem 0;margin-top:1rem;font-size:1.05rem;font-weight:600;border-top:1px solid color-mix(in srgb,currentColor 8%,transparent)}
	.site-header .is-menu-open .wp-block-navigation-item__content:focus{outline:none}
	.site-header .is-menu-open .wp-block-navigation-item__content:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:4px}
	.site-header .is-menu-open .wp-block-navigation__responsive-container-close{padding:.5rem}
}
@media (max-width:600px){
	.admin-bar .wp-site-blocks > header.wp-block-template-part,.admin-bar.has-overlay-header.is-scrolled .site-header{top:0}
}
@media (max-width:599px){
	.site-header .wp-block-group.alignwide,.site-header .wp-block-group.alignwide > .wp-block-group{gap:.5rem}
}

/* News page (1.6.0): cards like the original site — photo, date, title, excerpt, "Дэлгэрэнгүй" */
.news-card{height:100%;display:flex;flex-direction:column;border:1px solid color-mix(in srgb,var(--wp--preset--color--contrast) 10%,transparent);border-radius:16px;overflow:hidden;background:var(--wp--preset--color--base);box-shadow:0 1px 2px rgba(17,17,17,.04);transition:box-shadow .2s,border-color .2s}
.news-card:hover{box-shadow:0 8px 24px rgba(17,17,17,.08);border-color:color-mix(in srgb,var(--wp--preset--color--accent) 40%,transparent)}
.news-card .wp-block-post-featured-image{margin:0}
.news-card .wp-block-post-featured-image img{border-radius:0}
.news-card__body{flex:1;display:flex;flex-direction:column;padding:1.25rem 1.25rem 1.5rem}
.news-card .wp-block-post-date{font-size:var(--wp--preset--font-size--small);color:var(--wp--preset--color--muted)}
.news-card .wp-block-post-title{margin-top:.25rem;line-height:1.3}
.news-card .wp-block-post-title a{text-decoration:none}
.news-card .wp-block-post-excerpt{font-size:var(--wp--preset--font-size--small)}
.news-card .wp-block-post-excerpt__excerpt{margin:0}
.news-card .wp-block-read-more{margin-top:auto;padding-top:.75rem;color:var(--wp--preset--color--accent);font-weight:600;text-decoration:none}
.news-card .wp-block-read-more:hover{text-decoration:underline}

/* Header search (1.6.0): an icon that opens a field */
.header-search{margin:0}
.header-search .wp-block-search__inside-wrapper{align-items:center;border:0;padding:0;background:transparent}
.header-search .wp-block-search__button{margin:0;padding:.375rem;border:0;border-radius:999px;background:transparent;color:inherit;line-height:0}
.header-search .wp-block-search__button svg{width:22px;height:22px;min-width:22px;fill:currentColor}
.header-search .wp-block-search__input{border:1px solid color-mix(in srgb,var(--wp--preset--color--contrast) 20%,transparent);border-radius:999px;background:var(--wp--preset--color--base);color:var(--wp--preset--color--contrast);padding:.375rem .875rem;font-size:var(--wp--preset--font-size--small);line-height:1.4}
.header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input{width:min(15rem,52vw)}
@media (max-width:600px){
	.header-search:not(.wp-block-search__searchfield-hidden){position:absolute;left:var(--wp--style--root--padding-left);right:var(--wp--style--root--padding-right);z-index:20;background:var(--wp--preset--color--base);border-radius:999px;box-shadow:0 4px 16px rgba(17,17,17,.12)}
	.header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper{width:100%}
	.header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input{flex:1;width:auto;border:0}
	.header-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__button{color:var(--wp--preset--color--contrast)}
}
/* 320 px phones: the header row fits without sideways scrolling (WCAG 1.4.10 Reflow) */
@media (max-width:360px){
	.site-header .wp-block-site-logo img{height:auto!important;max-width:128px}
}

/* Footer links menu (1.6.0) */
.site-footer .footer-links .wp-block-navigation-item__content{padding:0}
.site-footer .footer-links a{color:inherit}
