/* ==========================================================================
   Arihant AI - Unified Display & Editorial Typography System
   High-legibility Schibsted Grotesk headings + Plus Jakarta Sans body
   ========================================================================== */

:root {
  --erp-font-display: 'Schibsted Grotesk', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --erp-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --erp-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body {
  font-family: var(--erp-font-body);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Core Heading Hierarchy */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.erp-hero-title,
.erp-section-title,
.erp-suite-title,
.erp-ind-title,
.erp-cta-title,
.erp-card-title,
.op-panel-title,
.blog-featured-title,
.blog-card-title,
.blog-article-title,
.blog-related-title,
.blog-sub-title,
.blog-dispatch-form-title,
.blog-consultation-title,
.footer-brand-title {
  font-family: var(--erp-font-display) !important;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* Display Hero Titles (Homepage, Solutions, Pricing, Industry, Blog Hero) */
.erp-hero-title,
.erp-ind-title {
  font-weight: 700 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.015em !important;
  text-wrap: balance;
}

/* Section & Band Titles */
.erp-section-title,
.erp-suite-title,
.erp-cta-title,
.op-panel-title,
.blog-consultation-title,
.blog-sub-title {
  font-weight: 700 !important;
  line-height: 1.24 !important;
  letter-spacing: -0.012em !important;
  text-wrap: balance;
}

/* Card & Component Titles */
.erp-card-title,
.erp-industry-card-item .industry-name,
.blog-related-title,
.blog-dispatch-form-title {
  font-weight: 600 !important;
  line-height: 1.32 !important;
  letter-spacing: -0.005em !important;
}

/* Replace low-contrast / blurry clipped gradient text with solid crisp ink */
.erp-hero-modern h1 span[style*="text-fill-color"],
.erp-ind-accent,
.footer-brand-title .brand-ai {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #60a5fa !important;
  color: #60a5fa !important;
  font-weight: 700 !important;
}

.footer-brand-title {
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
}

.blog-infographic-title,
.blog-slides-title {
  font-family: var(--erp-font-display) !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #0f172a !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

/* Blog Listing Titles */
.blog-featured-title {
  font-size: clamp(1.38rem, 2.2vw, 1.9rem) !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.28 !important;
  letter-spacing: -0.012em !important;
  text-wrap: balance;
}

.blog-card-title {
  font-size: clamp(1.1rem, 1.3vw, 1.22rem) !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.38 !important;
  letter-spacing: -0.006em !important;
  text-wrap: balance;
  -webkit-line-clamp: 3 !important;
}

/* Single Blog Article Title & Body Heading Hierarchy */
.blog-article-title {
  font-size: clamp(1.85rem, 3.5vw, 2.65rem) !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.22 !important;
  letter-spacing: -0.014em !important;
  text-wrap: balance;
}

.blog-article-subtitle {
  font-family: var(--erp-font-body) !important;
  font-size: 1.125rem !important;
  line-height: 1.68 !important;
  color: #334155 !important;
  max-width: 68ch;
}

#o_wblog_post_content,
#o_wblog_post_content .ag-guide {
  font-family: var(--erp-font-body) !important;
}

#o_wblog_post_content h2,
#o_wblog_post_content .ag-guide h2 {
  font-family: var(--erp-font-display) !important;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
  color: #0b1b33 !important;
  text-wrap: balance;
}

#o_wblog_post_content h3,
#o_wblog_post_content .ag-guide h3 {
  font-family: var(--erp-font-display) !important;
  font-size: clamp(1.14rem, 1.7vw, 1.36rem) !important;
  font-weight: 600 !important;
  line-height: 1.36 !important;
  letter-spacing: -0.006em !important;
  color: #0f172a !important;
}

#o_wblog_post_content h4,
#o_wblog_post_content .ag-guide h4 {
  font-family: var(--erp-font-display) !important;
  font-size: 1.12rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
}

/* Normalize invalid fractional weights (650/750/850) to clean discrete webfont steps */
.blog-author-name-mini,
.blog-read-arrow-btn,
.blog-card-link-action,
.blog-author-avatar-badge,
#o_wblog_post_content table th,
.blog-card-tag-badge {
  font-weight: 700 !important;
}

.blog-mini-tag,
#o_wblog_post_content strong,
#o_wblog_post_content b {
  font-weight: 600 !important;
}

/* Keep dark callout boxes crisp white inside article bodies */
#o_wblog_post_content .ag-hero h2,
#o_wblog_post_content .ag-hero h3,
#o_wblog_post_content .ag-cta h2,
#o_wblog_post_content .ag-cta h3,
#o_wblog_post_content .gatepass-hero-canvas h1,
#o_wblog_post_content .gatepass-hero-canvas h2,
.blog-consultation-title,
.erp-hero-modern h1,
.erp-hero-modern h2,
.erp-cta-modern h2,
.erp-cta-title {
  color: #ffffff !important;
}

/* Uniform clean image framing across all 16:9 covers (Featured Split, Grid Card, Detail Frame) */
.blog-card-cover-featured {
  aspect-ratio: 16 / 9;
  min-height: 360px;
  background-color: #081426;
  background-size: cover;
  background-position: center;
}

.blog-card-cover {
  background-color: #081426;
  background-size: cover;
  background-position: center;
}

.blog-cover-frame {
  background: #081426;
}

.blog-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Keep blog cards immediately crisp without washed-out scroll-reveal opacity haze */
.blog-featured-wrapper[data-reveal],
.blog-grid-cards > div[data-reveal],
.blog-grid-cards article {
  opacity: 1 !important;
  transform: none !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
}

/* Keep in-body .ag-hero banner visually subordinate to the main page H1 */
#o_wblog_post_content .ag-hero h1,
#o_wblog_post_content .ag-hero h2 {
  font-family: var(--erp-font-display) !important;
  font-size: clamp(1.3rem, 2.1vw, 1.65rem) !important;
  font-weight: 700 !important;
  line-height: 1.28 !important;
  letter-spacing: -0.01em !important;
  color: #ffffff !important;
}

@media (max-width: 767.98px) {
  .blog-article-title {
    font-size: 1.65rem !important;
    line-height: 1.26 !important;
  }
  .blog-featured-title {
    font-size: 1.32rem !important;
  }
  .blog-card-title {
    font-size: 1.12rem !important;
  }
}
