/* ALLHIR Round71 / 2.39.38
 * Unified public typography and editorial-blog presentation.
 * Loaded after all legacy layers. No component geometry or application logic.
 */

:root{
  --ah-font:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}

/* Match the clear Community hierarchy on every public page. */
body,
body button,
body input,
body textarea,
body select,
body option{
  font-family:var(--ah-font)!important;
  font-synthesis:none;
}
body main h1,
body main h2,
body main h3,
body main h4,
body main h5,
body main h6,
body main [class*="__title"],
body main [class*="__heading"]{
  font-family:var(--ah-font)!important;
  font-style:normal;
  font-weight:800!important;
  letter-spacing:-.025em;
}
body main h1{font-weight:850!important}
body main p,
body main li,
body main dd,
body main time,
body main input,
body main textarea,
body main select{
  font-weight:500;
  letter-spacing:0;
}
body main button,
body main [role="button"],
body main .btn,
body main [class*="button"],
body main [class*="__btn"],
body main [class*="__action"],
body main [class*="__more"],
body main nav a{
  font-family:var(--ah-font)!important;
  font-weight:750!important;
  letter-spacing:-.012em;
}
body main small,
body main [class*="eyebrow"],
body main [class*="__label"]{
  font-family:var(--ah-font)!important;
  font-weight:750;
}

/* Editorial blog index: balanced card rhythm and predictable media crops. */
body:not(#allhir-never) main .allhir-blog-content{
  padding-block:clamp(34px,5vw,68px)!important;
}
body:not(#allhir-never) main .allhir-blog-grid{
  gap:clamp(18px,2.4vw,28px)!important;
  align-items:stretch;
}
body:not(#allhir-never) main .allhir-blog-card{
  min-height:300px;
  border-radius:26px!important;
}
body:not(#allhir-never) main .allhir-blog-card .allhir-content-card__image{
  position:relative;
  overflow:hidden;
  background:rgba(14,16,20,.78)!important;
}
body:not(#allhir-never) main .allhir-blog-card .allhir-content-card__image img{
  width:100%!important;
  height:100%!important;
  min-height:100%;
  object-fit:cover!important;
  transition:transform .28s ease;
}
body:not(#allhir-never) main .allhir-blog-card:hover .allhir-content-card__image img{
  transform:scale(1.025);
}
body:not(#allhir-never) main .allhir-blog-card__body{
  padding:clamp(22px,3vw,32px)!important;
}
body:not(#allhir-never) main .allhir-blog-card__body h2{
  margin:12px 0 10px!important;
  line-height:1.18!important;
}
body:not(#allhir-never) main .allhir-blog-card__body p{
  font-size:15px;
  font-weight:500!important;
  line-height:1.65!important;
}

/* Single editorial post: readable measure, glass article surface and media system. */
body:not(#allhir-never) main.allhir-single-post .allhir-section-hero .container{
  width:min(980px,calc(100% - 32px));
}
body:not(#allhir-never) main.allhir-single-post .allhir-section-hero h1{
  max-width:900px;
  line-height:1.08!important;
}
body:not(#allhir-never) main .allhir-single-post__content{
  width:min(980px,calc(100% - 32px))!important;
  max-width:980px!important;
  margin:clamp(24px,4vw,44px) auto clamp(48px,7vw,88px)!important;
  padding:clamp(18px,3vw,34px)!important;
  border:1px solid var(--ah-gold-line-soft)!important;
  border-radius:30px!important;
  background:var(--ah-glass)!important;
  box-shadow:0 22px 52px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.04)!important;
  -webkit-backdrop-filter:blur(18px) saturate(112%);
  backdrop-filter:blur(18px) saturate(112%);
}
body:not(#allhir-never) main .allhir-single-post__image{
  margin:0 0 clamp(26px,4vw,42px)!important;
  border:1px solid var(--ah-gold-line-soft)!important;
  border-radius:24px!important;
  background:rgba(10,12,16,.72);
  box-shadow:0 16px 38px rgba(0,0,0,.24);
}
body:not(#allhir-never) main .allhir-single-post__image img{
  width:100%!important;
  max-height:620px;
  object-fit:cover;
}
body:not(#allhir-never) main .allhir-single-post__text{
  width:min(100%,800px);
  margin-inline:auto;
  color:var(--ah-copy)!important;
  font-size:clamp(16px,1.25vw,18px)!important;
  font-weight:500!important;
  line-height:1.72!important;
}
body:not(#allhir-never) main .allhir-single-post__text p{
  margin:0 0 1.35em!important;
  font-weight:500!important;
}
body:not(#allhir-never) main .allhir-single-post__text h2,
body:not(#allhir-never) main .allhir-single-post__text h3,
body:not(#allhir-never) main .allhir-single-post__text h4{
  margin:1.8em 0 .65em!important;
  line-height:1.2!important;
}
body:not(#allhir-never) main .allhir-single-post__text ul,
body:not(#allhir-never) main .allhir-single-post__text ol{
  margin:0 0 1.5em!important;
  padding-left:1.4em!important;
}
body:not(#allhir-never) main .allhir-single-post__text li{
  margin:.55em 0!important;
  line-height:1.62!important;
}
body:not(#allhir-never) main .allhir-single-post__text hr{
  height:1px;
  margin:clamp(26px,4vw,42px) 0!important;
  border:0!important;
  background:var(--ah-gold-line-soft)!important;
}
body:not(#allhir-never) main .allhir-single-post__text blockquote{
  margin:1.6em 0!important;
  padding:18px 22px!important;
  border:1px solid var(--ah-gold-line-soft)!important;
  border-left:3px solid var(--ah-gold-muted)!important;
  border-radius:16px!important;
  background:rgba(23,25,31,.62)!important;
}

/* WordPress blocks and legacy article images share one clean presentation. */
body:not(#allhir-never) main .allhir-single-post__text figure,
body:not(#allhir-never) main .allhir-single-post__text .wp-block-image,
body:not(#allhir-never) main .allhir-single-post__text p:has(> img){
  width:100%!important;
  max-width:800px!important;
  margin:clamp(24px,4vw,38px) auto!important;
}
body:not(#allhir-never) main .allhir-single-post__text img{
  display:block!important;
  width:100%!important;
  max-width:800px!important;
  height:auto!important;
  margin-inline:auto!important;
  border:1px solid var(--ah-gold-line-soft)!important;
  border-radius:20px!important;
  background:rgba(12,14,18,.82)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.24)!important;
  object-fit:contain!important;
}
body:not(#allhir-never) main .allhir-single-post__text figcaption{
  margin:9px auto 0!important;
  color:var(--ah-copy)!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:1.45!important;
  text-align:center;
}
body:not(#allhir-never) main .allhir-single-post__text .wp-block-gallery,
body:not(#allhir-never) main .allhir-single-post__text .gallery{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  margin:clamp(24px,4vw,38px) 0!important;
}
body:not(#allhir-never) main .allhir-single-post__text .wp-block-gallery figure,
body:not(#allhir-never) main .allhir-single-post__text .gallery-item{
  width:100%!important;
  margin:0!important;
}
body:not(#allhir-never) main .allhir-single-post__text .wp-block-gallery img,
body:not(#allhir-never) main .allhir-single-post__text .gallery img{
  height:100%!important;
  min-height:220px;
  aspect-ratio:4/3;
  object-fit:cover!important;
}

@media(max-width:760px){
  body:not(#allhir-never) main .allhir-blog-card,
  body:not(#allhir-never) main .allhir-blog-card--featured{
    min-height:0;
  }
  body:not(#allhir-never) main .allhir-blog-card .allhir-content-card__image{
    aspect-ratio:16/9!important;
  }
  body:not(#allhir-never) main .allhir-single-post__content{
    width:min(100% - 22px,980px)!important;
    padding:16px!important;
    border-radius:22px!important;
  }
  body:not(#allhir-never) main .allhir-single-post__image,
  body:not(#allhir-never) main .allhir-single-post__text img{
    border-radius:16px!important;
  }
  body:not(#allhir-never) main .allhir-single-post__text .wp-block-gallery,
  body:not(#allhir-never) main .allhir-single-post__text .gallery{
    grid-template-columns:1fr!important;
  }
  body:not(#allhir-never) main .allhir-single-post__text .wp-block-gallery img,
  body:not(#allhir-never) main .allhir-single-post__text .gallery img{
    min-height:0;
  }
}

@media(prefers-reduced-motion:reduce){
  body:not(#allhir-never) main .allhir-blog-card .allhir-content-card__image img{transition:none}
  body:not(#allhir-never) main .allhir-blog-card:hover .allhir-content-card__image img{transform:none}
}
