/* CASINO-AGG P31 — readable editorial typography across all 12 locales. */
/* Existing headings were visually compressed by negative tracking up to -.074em.
   Keep the original typeface, sizes, colors, and weights; adjust spacing only. */
#main :is(h1, h2, h3, h4, h5, h6) { font-kerning: normal; }
#main h1 { letter-spacing: -.022em; line-height: 1.12; }
#main h2 { letter-spacing: -.014em; line-height: 1.22; }
#main h3 { letter-spacing: 0; line-height: 1.30; }
#main :is(h4, h5, h6) { letter-spacing: 0; line-height: 1.34; }

/* Cyrillic needs a little more air at larger sizes than the Latin headlines. */
html:lang(ru) #main h1 { letter-spacing: -.008em; }
html:lang(ru) #main h2 { letter-spacing: 0; }
html:lang(ru) #main h3 { letter-spacing: .004em; }

/* Do not force Latin-style negative tracking on CJK or Arabic type. */
html:lang(zh) #main :is(h1, h2, h3, h4, h5, h6),
html:lang(ko) #main :is(h1, h2, h3, h4, h5, h6),
html:lang(ja) #main :is(h1, h2, h3, h4, h5, h6),
html:lang(ar) #main :is(h1, h2, h3, h4, h5, h6) { letter-spacing: 0; }
html:lang(zh) #main :is(h1, h2),
html:lang(ko) #main :is(h1, h2),
html:lang(ja) #main :is(h1, h2),
html:lang(ar) #main :is(h1, h2) { line-height: 1.27; }

/* Article cards without repetitive ARTICLE / СТАТЬЯ eyebrow labels.
   Maintain natural headline-to-lead rhythm and aligned Read more links. */
#main .resource-card { display: flex; flex-direction: column; align-items: flex-start; }
#main .resource-card h2 { margin: 0 0 18px; letter-spacing: -.012em; line-height: 1.25; }
#main .resource-card p { margin: 0 0 20px; }
#main .resource-card .resource-card-link { margin-top: auto; }
html:lang(ru) #main .resource-card h2 { letter-spacing: 0; }

@media (max-width: 700px) {
  #main h1 { line-height: 1.15; }
  #main h2 { line-height: 1.25; }
  #main .resource-card h2 { margin-bottom: 16px; line-height: 1.28; }
}

/* CASINO-AGG P36 — calmer H1/H2 scale and consistent card-copy geometry.
 * P31 readable letter spacing and all H3/H4+ font sizes are preserved.
 */

/* Headline size adjustment only; the existing typeface, weight and tracking stay put. */
#main h1 { font-size: clamp(47px, 5.2vw, 80px); }
#main h2 { font-size: clamp(28px, 3.2vw, 45px); }
#main .hero h1 { font-size: clamp(47px, 5.2vw, 80px); }
#main .page-hero h1 { font-size: clamp(40px, 5vw, 71px); }
#main .provider-profile-intro h1 { font-size: clamp(56px, 6vw, 92px); }
#main .contact-hero h1 { font-size: clamp(45px, 4.95vw, 77px); }
#main .k-article-hero h1 { font-size: clamp(40px, 4.85vw, 70px); }
#main .article-page h1 { font-size: clamp(36px, 4.2vw, 59px); }

#main .story-heading h2,
#main .section-heading h2,
#main .provider-heading h2,
#main .knowledge-copy h2,
#main .cta-content h2 { font-size: clamp(35px, 4.16vw, 59px); }
#main .content-section-head h2 { font-size: clamp(31px, 3.68vw, 51px); }
#main .knowledge-topic-intro h2,
#main .knowledge-articles-title { font-size: clamp(30px, 2.94vw, 44px); }
#main .provider-profile-section h2,
#main .provider-profile-cta h2 { font-size: clamp(34px, 3.94vw, 55px); }
#main .content-provider-empty h2 { font-size: clamp(32px, 3.68vw, 51px); }
#main .step h2 { font-size: clamp(22px, 2.3vw, 31px); }
#main .empty-state h2 { font-size: 29px; }
#main .resource-card h2 { font-size: clamp(22px, 2.12vw, 29px); }
#main .feature h2 { font-size: clamp(20px, 1.85vw, 24px); }
#main .k-chapter h2 { font-size: clamp(26px, 2.45vw, 36px); }
#main .k-article-sources h2 { font-size: clamp(24px, 2.3vw, 33px); }
#main .k-article-cta h2 { font-size: clamp(25px, 2.3vw, 35px); }
#main .contact-form-heading h2 { font-size: clamp(29px, 2.88vw, 43px); }
#main .contact-aside h2 { font-size: clamp(31px, 2.75vw, 42px); }
#main .quick-contact-header h2 { font-size: clamp(28px, 2.75vw, 39px); }

/* Equal start lines for content, illustrations, headlines and descriptions.
 * IMPORTANT: no change to H3 font sizes; reserve only the needed text space.
 */
#main .feature-grid .feature-with-icon > :is(h2, h3) {
  margin: 18px 0 12px;
}
#main .knowledge-topic-grid .knowledge-topic > h3 {
  margin: 12px 0 11px;
  padding-top: 0;
}
#main .content-process-grid .content-process-item > h3 {
  margin: clamp(34px, 4.2vw, 55px) 0 12px;
  padding-top: 0;
}

@media (min-width: 701px) {
  #main .feature-grid .feature-with-icon > :is(h2, h3),
  #main .knowledge-topic-grid .knowledge-topic > h3,
  #main .content-card-grid:not(.agg-filter-category-grid) > .content-card:not(.agg-filter-category-card) > h3,
  #main .content-process-grid .content-process-item > h3 {
    min-block-size: 2.6em; /* common two-line title zone */
  }
}

/* Provider format tiles remain fully clickable, but no longer jump on hover. */
#main .provider-profile-format-card-link {
  transition: background-color .2s ease, box-shadow .2s ease;
}
#main .provider-profile-format-card-link:hover,
#main .provider-profile-format-card-link:focus-visible {
  transform: none;
  box-shadow: 0 12px 28px rgba(1, 8, 20, .22);
}
#main .provider-profile-format-card-link:hover .provider-profile-format-arrow,
#main .provider-profile-format-card-link:focus-visible .provider-profile-format-arrow {
  transform: none;
}

@media (max-width: 780px) {
  #main .provider-profile-intro h1 { font-size: clamp(54px, 8.2vw, 77px); }
}
@media (max-width: 700px) {
  #main .hero h1 { font-size: clamp(45px, 9.9vw, 67px); }
  #main .contact-hero h1 { font-size: clamp(38px, 9.6vw, 54px); }
  #main .k-article-hero h1 { font-size: clamp(34px, 8.7vw, 50px); }
  #main .content-process-grid .content-process-item > h3 { margin-top: 27px; }
}
@media (max-width: 540px) {
  #main .provider-profile-intro h1 { font-size: clamp(49px, 13.3vw, 68px); }
  #main .provider-profile-section h2,
  #main .provider-profile-cta h2 { font-size: clamp(33px, 8.2vw, 42px); }
  #main .contact-form-heading h2 { font-size: 31px; }
  #main .quick-contact-header h2 { font-size: 29px; }
}
@media (max-width: 450px) {
  #main .hero h1 { font-size: clamp(42px, 10.1vw, 54px); }
  #main .cta-content h2 { font-size: clamp(33px, 7.4vw, 49px); }
}
