/* PURK Studio Theme 5.5 / Plugin 5.4 compatibility.
 * Content-size-first: no fixed height on multilingual headings or article media.
 * Intentionally scoped: does not modify editor data, WordPress content or galleries.
 */

/* Intrinsic text layout across the original homepage, pages, and new plugin templates. */
body{overflow-x:clip}
#main, #main-content{min-width:0;max-width:100%}
#main img, #main-content img{max-width:100%}
#main h1,#main h2,#main h3,#main-content h1,#main-content h2,#main-content h3{max-width:100%;overflow-wrap:break-word;hyphens:auto}
#main .page-intro h1,#main .purk-custom-page h1{letter-spacing:-.02em;line-height:1.15}
#main .page-intro,#main .entries,#main .wrap,#main .purk-added-sections{min-width:0}
#main .entry-card,#main .program-grid>* ,#main .discover-grid>*{min-width:0}
#main .entry-copy h2,#main .discover-grid h3,#main .program-grid h3{overflow-wrap:anywhere;letter-spacing:normal}

/* Home banner: natural vertical height even when the language uses longer phrases. */
#main .hero{height:auto;min-height:clamp(610px,65vh,780px);display:flex;flex-direction:column;isolation:isolate}
#main .hero-content{flex:1 0 auto;min-width:0;width:100%;max-width:min(840px,100%);padding-bottom:clamp(60px,6vw,90px)}
#main .hero h1{font-size:clamp(2.7rem,5.4vw,5rem);letter-spacing:-.025em;line-height:1.12;overflow-wrap:anywhere}
#main .hero-foot{position:relative;bottom:auto;left:auto;right:auto;margin:0 6%;flex:0 0 auto}
#main .hero-photo,#main .hero-shade{height:100%}
@media(max-width:720px){
 #main .hero-content{padding-top:42px;padding-bottom:44px}
 #main .hero h1{font-size:clamp(2.35rem,8vw,3.3rem);letter-spacing:-.018em}
 #main .hero-foot{gap:15px;flex-wrap:wrap}
}

/* The original theme had header{height:100px;display:flex;position:sticky}.
   The global selector wrongly targeted plugin <header> elements inside <main>.
   These overrides keep the listings and articles in normal document flow. */
.purk-v52-main{width:100%;max-width:100%;overflow:visible}
.purk-v52-main .purk-v52-container{min-width:0;max-width:100%}
.purk-v52-main header.purk-v52-heading,
.purk-v52-main header.purk-v52-article-heading{
 display:block!important;position:static!important;inset:auto!important;top:auto!important;
 width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
 padding:0!important;background:transparent!important;border:0!important;
 flex:none!important;overflow:visible!important;z-index:auto!important;
}
.purk-v52-main header.purk-v52-heading{margin:0 0 clamp(25px,4vw,42px)!important}
.purk-v52-main header.purk-v52-article-heading{max-width:820px!important;margin:0 auto clamp(22px,3.5vw,34px)!important}
.purk-v52-main .purk-v52-heading .purk-v52-eyebrow,
.purk-v52-main .purk-v52-article-heading .purk-v52-eyebrow{display:block;margin:0 0 13px;font-size:.75rem;line-height:1.5;letter-spacing:.13em}
.purk-v52-main header.purk-v52-heading h1,
.purk-v52-main header.purk-v52-article-heading h1{
 display:block!important;position:static!important;width:auto!important;max-width:100%!important;
 min-height:0!important;height:auto!important;max-height:none!important;
 margin:0!important;padding:0!important;
 font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif!important;
 font-size:clamp(1.9rem,4vw,3.45rem)!important;line-height:1.19!important;
 font-weight:730!important;letter-spacing:normal!important;word-spacing:normal!important;
 white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
 text-transform:none!important;hyphens:auto;
}
.purk-v52-main header.purk-v52-article-heading .purk-v52-meta{display:block;margin:14px 0 0;line-height:1.6}
.purk-v52-main .purk-v52-article-container{width:min(920px,100%);min-width:0;margin:0 auto}
.purk-v52-main .purk-v52-back{display:inline-block;position:static!important;clear:both;margin:0 0 clamp(22px,3vw,34px)}
.purk-v52-main .purk-v52-hero-media{display:flex;position:relative;clear:both;width:min(690px,100%);max-width:100%;max-height:none;height:auto;min-height:0;margin:0 auto clamp(26px,4vw,38px);overflow:hidden}
.purk-v52-main .purk-v52-hero-media img{display:block;width:auto;height:auto;max-width:100%;max-height:min(60vh,430px);object-fit:contain}
.purk-v52-main .purk-v52-article-container>.purk-v52-intro,
.purk-v52-main .purk-v52-report,
.purk-v52-main .purk-v52-gallery{position:relative;clear:both;overflow-wrap:break-word}
.purk-v52-main .purk-v52-report img{max-width:100%;height:auto}
.purk-v52-main .purk-v52-gallery-tiles>*{min-width:0}
.purk-v52-main .purk-v52-card{min-width:0}
.purk-v52-main .purk-v52-card-title,
.purk-v52-main .purk-v52-card-title a{line-height:1.38!important;letter-spacing:normal!important;overflow-wrap:anywhere!important;hyphens:auto}
@media(max-width:610px){
 .purk-v52-main header.purk-v52-heading h1,.purk-v52-main header.purk-v52-article-heading h1{font-size:clamp(1.65rem,7vw,2.6rem)!important}
 .purk-v52-main .purk-v52-back{margin-bottom:21px}
 .purk-v52-main .purk-v52-hero-media img{max-height:min(55vh,350px)}
}
