/* Shared typography for the public site, administration and sign-in. */
@font-face { font-family: "NST Montserrat"; src: url("/fonts/Montserrat-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "NST Montserrat"; src: url("/fonts/Montserrat-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "NST Montserrat"; src: url("/fonts/Montserrat-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "NST Montserrat"; src: url("/fonts/Montserrat-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --font-body: "NST Montserrat", "Segoe UI", Arial, sans-serif;
  --font-heading: var(--font-body);
  --type-body: 1rem;
  --type-control: .875rem;
  --type-label: .875rem;
  --type-meta: .8125rem;
  --type-card: 1.125rem;
  --type-lead: 1.125rem;
  --type-hero: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --type-page: clamp(1.875rem, 1.5rem + 1.5vw, 2.625rem);
  --type-section: clamp(1.625rem, 1.25rem + 1.3vw, 2.25rem);
  --leading-body: 1.65;
  --leading-control: 1.5;
  --weight-body: 400;
  --weight-control: 500;
  --weight-heading: 600;
}

/* Bootstrap's 10px root must not shrink admin rem units relative to sign-in. */
html.nst-typography { font-size: 100%; }
body { font-family: var(--font-body); font-size: var(--type-body); font-weight: var(--weight-body); line-height: var(--leading-body); letter-spacing: normal; }
button, input, select, textarea { font-family: var(--font-body); letter-spacing: normal; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: var(--weight-heading); }
h1 { font-size: var(--type-page); line-height: 1.25; letter-spacing: -.02em; }
h2 { font-size: var(--type-section); line-height: 1.3; letter-spacing: -.015em; }
h3 { font-size: 1.25rem; line-height: 1.4; letter-spacing: normal; }
h4 { font-size: var(--type-card); line-height: 1.4; letter-spacing: normal; }

/* Public hierarchy: the same roles keep their size across all three languages. */
.hero-copy h1 { font-size: var(--type-hero); line-height: 1.18; letter-spacing: -.025em; }
.page-intro h1, .article-header h1, .product-heading h1, .product-intro h1 {
  font-size: var(--type-page); line-height: 1.25; letter-spacing: -.02em;
}
.product-heading h1 { overflow-wrap: anywhere; }
.lead, .page-intro > p, .hero-copy > p:not(.eyebrow), .request-layout > div > p:not(.eyebrow) {
  font-size: var(--type-lead); line-height: var(--leading-body); font-weight: var(--weight-body);
}
.eyebrow { font-size: var(--type-label); line-height: var(--leading-control); font-weight: var(--weight-heading); letter-spacing: .04em; }
.eyebrow-brand { letter-spacing: normal; text-transform: none; }
.hero .eyebrow { font-size: var(--type-label); letter-spacing: normal; }
.hero-process strong { font-size: var(--type-body); line-height: var(--leading-control); font-weight: var(--weight-control); }
.hero-process li > span { font-size: var(--type-meta); }
.hero-visual figcaption { font-size: var(--type-label); line-height: 1.6; }
.hero-visual figcaption a { font-size: var(--type-body); line-height: var(--leading-control); font-weight: var(--weight-heading); }

.category-card h3, .product-body h3, .step-card h3, .step-card h2, .news-body h2 {
  font-size: var(--type-card); line-height: 1.45; font-weight: var(--weight-heading); letter-spacing: normal;
}
.category-card p, .step-card p, .news-body p, .product-summary, .section-heading p {
  font-size: var(--type-body); line-height: var(--leading-body); font-weight: var(--weight-body);
}
.product-category { font-size: var(--type-label); line-height: var(--leading-control); font-weight: var(--weight-control); }
.product-heading .eyebrow { font-size: var(--type-label); line-height: var(--leading-control); font-weight: var(--weight-control); }

.button, .site-nav a, .text-link { font-size: var(--type-body); line-height: var(--leading-control); font-weight: var(--weight-control); letter-spacing: normal; }
.button-small, .header-action .button, .menu-toggle, .languages a {
  font-size: var(--type-control); line-height: var(--leading-control); font-weight: var(--weight-control);
}
.header-contact, .header-contact small, .breadcrumbs ol, .catalog-meta, .catalog-filters,
.category-all, .category-row > a, .category-children a, .form-note, .form-feedback,
.feature-image figcaption, .footer-bottom { font-size: var(--type-label); line-height: 1.6; }
.catalog-filters a, .pagination a, .pagination span { font-size: var(--type-control); line-height: var(--leading-control); font-weight: var(--weight-control); }
.field label, .catalog-search > label { font-size: var(--type-label); font-weight: var(--weight-control); line-height: var(--leading-control); }
.field input, .field textarea, .field select, .catalog-search input { font-size: var(--type-body); line-height: var(--leading-control); }
.request-dialog h2, .request-card h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); line-height: 1.3; }
.request-dialog > p, .request-card > p, .request-dialog [data-request-context]:not(:empty) { font-size: var(--type-body); line-height: var(--leading-body); }
.news-body time, .article-header time { font-size: var(--type-meta); line-height: var(--leading-control); font-variant-numeric: tabular-nums; }
.footer-grid p, .footer-grid a:not(.brand) { font-size: var(--type-body); line-height: var(--leading-body); }
.footer-grid h2, .footer-grid h3 { font-size: var(--type-body); line-height: var(--leading-control); letter-spacing: normal; }

/* Formatting pasted from document editors must not switch the prose typeface. */
.rich-text { font-family: var(--font-body); font-size: var(--type-body); line-height: 1.8; letter-spacing: normal; }
.rich-text :is(h1, h2, h3, h4, h5, h6, p, div, span, font, a, b, strong, i, em, u, ul, ol, li, table, th, td, blockquote) { font-family: inherit !important; }
.rich-text h2 { font-size: 1.625rem; line-height: 1.35; }
.rich-text h3 { font-size: 1.25rem; line-height: 1.4; }
.rich-text h4 { font-size: var(--type-card); line-height: 1.4; }
.rich-text h5, .rich-text h6 { font-size: var(--type-body); line-height: var(--leading-control); }
.rich-text table { font-size: var(--type-label); line-height: var(--leading-control); }
.rich-text strong, .rich-text b { font-weight: 700; }

.company-materials .document-card .document-action { font-size: var(--type-control); line-height: var(--leading-control); font-weight: var(--weight-control); }
.media-viewer-caption { font-size: var(--type-body); line-height: var(--leading-control); font-weight: var(--weight-heading); }
.media-viewer-close, .media-viewer-control { font-size: var(--type-control); line-height: var(--leading-control); font-weight: var(--weight-control); }
.media-viewer-status { font-size: var(--type-label); line-height: var(--leading-control); }
body .nst-geography .section-title { font-size: var(--type-section); line-height: 1.3; letter-spacing: -.015em; }
body .nst-geography .nst-geo-panel h3 { font-size: var(--type-card); line-height: 1.45; letter-spacing: normal; }
body .nst-geography .nst-geo-objects p { font-size: var(--type-body); line-height: var(--leading-body); }
body .nst-geography .nst-geo-objects .nst-geo-description { font-size: var(--type-label); line-height: 1.6; }
body .nst-geography .nst-geo-selector label { font-size: var(--type-label); line-height: var(--leading-control); font-weight: var(--weight-control); }
body .nst-geography .nst-geo-selector select { font-size: var(--type-body); line-height: var(--leading-control); }
body .nst-geography .nst-geo-navigation button { font-size: var(--type-control); line-height: var(--leading-control); font-weight: var(--weight-control); }
body .nst-geography .nst-geo-map .nst-geo-label { font-size: var(--type-label); line-height: 1.4; font-weight: var(--weight-heading); }

@media print {
  body { font-size: 11pt; }
}
