/**
 * Typography sync for every HTML template except the home page.
 *
 * The scale and rhythm below are taken from css/home/*.css. This file is
 * intentionally loaded last so the old page-specific typography remains
 * available and can be restored by removing one enqueue call.
 */

/*
 * Keep the original page-specific mobile typography. Long headings and
 * compact cards on these templates were tuned independently below 769px.
 */
@media (min-width: 769px) {

body.hubox-html-template:not(.hubox-template-home) {
  --hx-type-display-xl-size: 84px;
  --hx-type-display-xl-line: 67.2px;
  --hx-type-display-lg-size: 60px;
  --hx-type-display-lg-line: 54px;
  --hx-type-heading-size: 28px;
  --hx-type-heading-line: 25.2px;
  --hx-type-subheading-size: 24px;
  --hx-type-subheading-line: 26.4px;
  --hx-type-body-size: 14px;
  --hx-type-body-line: 18.2px;
  --hx-type-caption-size: 12px;
  --hx-type-caption-line: 15.6px;
  --hx-type-small-heading-size: 18px;
  --hx-type-small-heading-line: 23.4px;
  --hx-type-ui-size: 14px;
  --hx-type-ui-line: 18px;

  font-family: var(--ff-base, 'TTNorms', Arial, Helvetica, sans-serif);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.2px;
}
.cat-section-title{
    font-size:80px!important;
}
/* Display hierarchy: mirrors the home hero and section-title rhythm. */


.fetr-app-title, .fetr-app-title1, .fetr-types-title, .fetr-types-title1 {
  font-family: var(--ff-display, 'TTFirsNeue', Arial, Helvetica, sans-serif) !important;
  font-size: var(--hx-type-display-lg-size) !important;
  font-weight: 500 !important;
  line-height: var(--hx-type-display-lg-line) !important;
  letter-spacing: -0.7px !important;
  text-wrap: balance;
}
.flat-item-title{
    font-size:20px!important;
    text-align: center;
}
body.hubox-html-template:not(.hubox-template-home) h3 {
  font-family: var(--ff-display, 'TTFirsNeue', Arial, Helvetica, sans-serif) !important;
  font-size: var(--hx-type-heading-size);
  font-weight: 500 !important;
  line-height: var(--hx-type-heading-line) !important;
  letter-spacing: -0.7px !important;
  text-wrap: balance;
}

body.hubox-html-template:not(.hubox-template-home) h4 {
  font-family: var(--ff-display, 'TTFirsNeue', Arial, Helvetica, sans-serif) !important;
  font-size: var(--hx-type-subheading-size) !important;
  font-weight: 500 !important;
  line-height: var(--hx-type-subheading-line) !important;
  letter-spacing: -0.3px !important;
  text-wrap: balance;
}

body.hubox-html-template:not(.hubox-template-home) h5,
body.hubox-html-template:not(.hubox-template-home) h6 {
  font-family: var(--ff-display, 'TTFirsNeue', Arial, Helvetica, sans-serif) !important;
  font-size: var(--hx-type-small-heading-size) !important;
  font-weight: 500 !important;
  line-height: var(--hx-type-small-heading-line) !important;
  letter-spacing: -0.2px !important;
  text-wrap: balance;
}

/* Body copy and lists use the 14/18.2 rhythm repeated across the home page. */
body.hubox-html-template:not(.hubox-template-home) main p,
body.hubox-html-template:not(.hubox-template-home) main li,
body.hubox-html-template:not(.hubox-template-home) main dt,
body.hubox-html-template:not(.hubox-template-home) main dd,
body.hubox-html-template:not(.hubox-template-home) main blockquote {
  font-family: var(--ff-base, 'TTNorms', Arial, Helvetica, sans-serif) !important;
  font-size: var(--hx-type-body-size) !important;
  line-height: var(--hx-type-body-line) !important;
  letter-spacing: -0.2px !important;
  text-wrap: pretty;
}

body.hubox-html-template:not(.hubox-template-home) main p,
body.hubox-html-template:not(.hubox-template-home) main dd,
body.hubox-html-template:not(.hubox-template-home) main blockquote {
  font-weight: 400 !important;
}

body.hubox-html-template:not(.hubox-template-home) main li,
body.hubox-html-template:not(.hubox-template-home) main dt {
  font-weight: 500 !important;
}

body.hubox-html-template:not(.hubox-template-home) main small,
body.hubox-html-template:not(.hubox-template-home) main figcaption,
body.hubox-html-template:not(.hubox-template-home) main .caption,
body.hubox-html-template:not(.hubox-template-home) main [class*='caption'] {
  font-family: var(--ff-base, 'TTNorms', Arial, Helvetica, sans-serif) !important;
  font-size: var(--hx-type-caption-size) !important;
  font-weight: 400 !important;
  line-height: var(--hx-type-caption-line) !important;
  letter-spacing: -0.2px !important;
}

/* Keep controls on the same UI text level as the home buttons and navigation. */
body.hubox-html-template:not(.hubox-template-home) main button,
body.hubox-html-template:not(.hubox-template-home) main input,
body.hubox-html-template:not(.hubox-template-home) main select,
body.hubox-html-template:not(.hubox-template-home) main textarea,
body.hubox-html-template:not(.hubox-template-home) main [class*='btn'] {
  font-family: var(--ff-base, 'TTNorms', Arial, Helvetica, sans-serif) !important;
  font-size: var(--hx-type-ui-size) !important;
  font-weight: 500 !important;
  line-height: var(--hx-type-ui-line) !important;
  letter-spacing: -0.2px !important;
}

/* Legal templates use the same scale, with an editorial H1 rather than a hero H1. */
body:is(
    .hubox-template-agreement,
    .hubox-template-cookie,
    .hubox-template-privacy,
    .hubox-template-terms
  ) h1 {
  font-size: var(--hx-type-display-lg-size) !important;
  font-weight: 500 !important;
  line-height: var(--hx-type-display-lg-line) !important;
  letter-spacing: -0.7px !important;
}

body:is(
    .hubox-template-agreement,
    .hubox-template-cookie,
    .hubox-template-privacy,
    .hubox-template-terms
  ) h2 {
  font-size: var(--hx-type-heading-size) !important;
  line-height: var(--hx-type-heading-line) !important;
}

@media (max-width: 1199px) {
  body.hubox-html-template:not(.hubox-template-home) {
    --hx-type-display-xl-size: 60px;
    --hx-type-display-xl-line: 48px;
    --hx-type-display-lg-size: 48px;
    --hx-type-display-lg-line: 43.2px;
    --hx-type-heading-size: 24px;
    --hx-type-heading-line: 21.6px;
  }

}

/**
 * These templates cancel the global body zoom on .main-content. Use the
 * calculated pixel values from js/home/main.js to retain the home-page type
 * scale while leaving every section, grid and image at its existing size.
 */
body.hubox-html-template:is(
    .hubox-template-walls,
    .hubox-template-fetr,
    .hubox-template-designers,
    .hubox-template-agreement,
    .hubox-template-cookie,
    .hubox-template-privacy,
    .hubox-template-terms
  ) {
  --hx-type-display-xl-size: var(--hx-scaled-display-xl-size, 84px);
  --hx-type-display-xl-line: var(--hx-scaled-display-xl-line, 67.2px);
  --hx-type-display-lg-size: var(--hx-scaled-display-lg-size, 60px);
  --hx-type-display-lg-line: var(--hx-scaled-display-lg-line, 54px);
  --hx-type-heading-size: var(--hx-scaled-heading-size, 28px);
  --hx-type-heading-line: var(--hx-scaled-heading-line, 25.2px);
  --hx-type-subheading-size: var(--hx-scaled-subheading-size, 24px);
  --hx-type-subheading-line: var(--hx-scaled-subheading-line, 26.4px);
  --hx-type-body-size: var(--hx-scaled-body-size, 14px);
  --hx-type-body-line: var(--hx-scaled-body-line, 18.2px);
  --hx-type-caption-size: var(--hx-scaled-caption-size, 12px);
  --hx-type-caption-line: var(--hx-scaled-caption-line, 15.6px);
  --hx-type-small-heading-size: var(--hx-scaled-small-heading-size, 18px);
  --hx-type-small-heading-line: var(--hx-scaled-small-heading-line, 23.4px);
  --hx-type-ui-size: var(--hx-scaled-ui-size, 14px);
  --hx-type-ui-line: var(--hx-scaled-ui-line, 18px);
}

/* One-off exception from the supplied screenshot: only this heading stays 60px. */
body.hubox-html-template.hubox-template-designers h2.noise-title {
  font-size: 60px !important;
  line-height: 54px !important;
}

@media (max-width: 1199px) {
  body.hubox-html-template.hubox-template-designers h2.noise-title {
    font-size: 48px !important;
    line-height: 43.2px !important;
  }
}

}
