/* Krongor — WordPress adjustments.
   site.css is the untouched original stylesheet; this file only
   (1) neutralises WordPress block defaults, (2) replaces the original
   inline styles with classes, and (3) adds the bits WordPress needs. */

/* 1. Block defaults ------------------------------------------------ */
/* :where(main) keeps these at class-level specificity so the original
   site.css rules and the utilities below still win. */
:where(main) .wp-block-image{margin:0;}
:where(main) .wp-block-image img{vertical-align:top;}
:where(main) .wp-block-group{box-sizing:border-box;}
:where(main) .wp-block-quote{margin:0;padding:0;border:0;}
:where(main) .wp-block-quote p{font:inherit;line-height:inherit;}
a:where(:not(.wp-element-button)){text-decoration:none;}

/* Images keep the original crop behaviour inside their frames. */
.hero .hero-bg{position:absolute;inset:0;z-index:0;}
/* Dark fade over the photo (was an empty div in the original). */
.hero::before{content:"";position:absolute;inset:0;z-index:1;background:var(--gradient-fade);pointer-events:none;}
.hero .content{z-index:2;}
.hero .hero-bg img{position:absolute;inset:0;height:100%;width:100%;object-fit:cover;}
.pillar .img-wrap img,
.wp-block-image.feature-img img{height:100%;width:100%;object-fit:cover;}
/* The original page renders this photo at its 960px height attribute. */
.about-grid .wp-block-image img{width:100%;height:960px;object-fit:cover;}

/* 2. Original inline styles, as classes ---------------------------- */
.mb-025{margin-bottom:.25rem;}
.mb-1{margin-bottom:1rem;}
.mb-15{margin-bottom:1.5rem;}
.mb-2{margin-bottom:2rem;}
.mb-4{margin-bottom:4rem;}
.pb-4{padding-bottom:4rem;}
.pb-5{padding-bottom:5rem;}
.pb-8{padding-bottom:8rem;}
.lh-105{line-height:1.05;}
.lh-16{line-height:1.6;}
.mw-36{max-width:36rem;}
.text-center{text-align:center;}
.quote-by{margin-top:2rem;font-size:.875rem;}
.link-dark{color:var(--foreground);border-color:var(--foreground);}
.sub-copy{font-size:1.125rem;max-width:28rem;}
.fields-section{padding:6rem 1.5rem;}
.fields-head{margin-bottom:3.5rem;}
.eyebrow-dim{color:color-mix(in oklab,var(--foreground) 60%,transparent);}
.aside-note{font-size:.875rem;color:color-mix(in oklab,var(--foreground) 60%,transparent);}
.aside-note a{text-decoration:underline;text-underline-offset:4px;color:var(--foreground);}
.contact-section{padding:8rem 1.5rem;}
.page-hero.pb-4{padding-bottom:4rem;}
.page-hero.pb-5{padding-bottom:5rem;}

/* Ventures / Insights lists are groups rather than <ul> in WordPress. */
/* The number was a <span>; as a paragraph it must dodge ".value p". */
.value .row .num{margin-top:0;line-height:1.5;max-width:none;color:var(--accent);}
.fields .field:last-child{border-bottom:1px solid var(--border);}
.thoughts .thought{display:flex;gap:1.5rem;padding:2.5rem 0;border-top:1px solid color-mix(in oklab,var(--border) 60%,transparent);}
.thoughts .thought:last-child{border-bottom:1px solid color-mix(in oklab,var(--border) 60%,transparent);}
@media(min-width:768px){.thoughts .thought{gap:2.5rem;}}
.thoughts .thought a:hover{color:var(--accent);}

/* Arrow icons, previously inline SVGs inside the links. */
.btn-pill::after,
.btn-pill-dark::after{
	content:"";width:16px;height:16px;flex:none;background:currentColor;transition:transform .2s;
	-webkit-mask: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%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: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%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") center/contain no-repeat;
}
.btn-pill:hover::after{transform:translateX(4px);}

/* Circle icon above each pillar heading, previously an inline SVG. */
.pillar h3::before{
	content:"";display:block;width:1.5rem;height:1.5rem;margin-bottom:calc(.75rem + 6px);background:var(--accent); /* +6px = the inline SVG's line box in the original */
	-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E") center/contain no-repeat;
	mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E") center/contain no-repeat;
}
.pillar h3{margin-top:0;}

/* 3. WordPress-only bits ------------------------------------------- */
/* Reveal animation only when JS is running, so content never stays hidden. */
html:not(.js) .reveal{opacity:1;transform:none;}
@media (prefers-reduced-motion: reduce){.reveal{opacity:1;transform:none;transition:none;}}

/* Keep the fixed header below the admin bar when logged in. */
.admin-bar .site-header{top:32px;}
@media screen and (max-width:782px){.admin-bar .site-header{top:46px;}}

.skip-link{position:absolute;left:-9999px;top:0;z-index:100;background:var(--ink);color:var(--cream);padding:.75rem 1rem;}
.skip-link:focus{left:1rem;top:1rem;}

/* Contact form */
.form-card form{margin:0;}
.hp-field{position:absolute !important;left:-9999px !important;height:1px;width:1px;overflow:hidden;}
.form-error{margin-bottom:1.25rem;padding:.75rem 1rem;border-radius:.5rem;background:color-mix(in oklab,var(--accent) 12%,transparent);font-size:.875rem;}

/* Plain pages and posts written without the Krongor sections. */
.entry-prose{font-size:1.125rem;line-height:1.7;color:color-mix(in oklab,var(--foreground) 85%,transparent);}
.entry-prose > * + *{margin-top:1.25em;}
.entry-prose h2,.entry-prose h3{margin-top:2em;color:var(--foreground);}
.entry-prose a{text-decoration:underline;text-underline-offset:3px;}
.entry-prose ul{list-style:disc;padding-left:1.25em;}
.entry-prose ol{padding-left:1.25em;}
.nav-links{display:flex;gap:1rem;margin-top:3rem;}
