/* Locally hosted Latin fonts; other languages retain their existing stacks. */
@font-face{font-family:"RPB DM Serif Display";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/dm-serif-display-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"RPB Manrope";font-style:normal;font-weight:400 700;font-display:swap;src:url("/assets/fonts/manrope-latin-variable.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
.global-site{--muted:#59634f}
.global-site .knowledge-inquiry{margin-block:2.5rem;padding:clamp(1.25rem,3vw,2rem);border:1px solid #c8d3c1;border-inline-start:4px solid #2c513a;border-radius:8px;background:#edf1e8;max-width:74rem;margin-inline:auto;overflow-wrap:anywhere}
.global-site .knowledge-inquiry .knowledge-inquiry-topic{font-size:.85rem;color:#4c6149;margin:0 0 .6rem}
.global-site .knowledge-inquiry h2{font-family:var(--serif);font-size:clamp(1.35rem,2.5vw,1.8rem);margin:0 0 .65rem}
.global-site .knowledge-inquiry p{color:#46553f;margin:0}
.knowledge-inquiry-actions{display:flex;align-items:center;flex-wrap:wrap;gap:1rem 1.5rem;margin-block-start:1.25rem}
.knowledge-inquiry-actions .button{gap:.6rem;text-align:center;white-space:normal;max-width:100%;min-height:44px}
.knowledge-inquiry-actions .text-button{min-height:44px;display:inline-flex;align-items:center;white-space:normal}
.global-site .product-gallery figcaption,.global-site .english-trade-name,.global-site .product-facts dt,.global-site .buying-intent,.global-site .source-note,.global-site .hero-visual figcaption,.global-site .rail-note,.global-site .search-result small,.global-site .search-result>span{color:#59634f}
.global-site .skip{left:auto;inset-inline-start:1rem;max-width:calc(100vw - 2rem);z-index:1000}
.global-site .skip:focus{color:white;outline:3px solid #ad6420;outline-offset:2px}
@media(max-width:540px){.knowledge-inquiry-actions{align-items:stretch;flex-direction:column;gap:.5rem}.knowledge-inquiry-actions .text-button{align-self:flex-start}.global-site main>.knowledge-inquiry{margin-inline:5%}}
@media print{.knowledge-inquiry{display:none}}

/* English screen typography, inspired by the supplied editorial reference.
   DM Serif Display uses its real display weight; Manrope supplies 400–700.
   Colour declarations remain those of the approved site palette. */
@media screen {
  html[lang="en"] .global-site {
    --sans: "RPB Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --serif: "RPB DM Serif Display", Georgia, "Times New Roman", serif;
    --en-copy: clamp(1.0625rem, .98rem + .25vw, 1.1875rem);
    --en-card-copy: clamp(1rem, .97rem + .15vw, 1.0625rem);
    --en-muted: #59634f;
    font-family: var(--sans);
    font-size: var(--en-copy);
    font-weight: 400;
    line-height: 1.75;
  }

  /* Readable prose: these explicit selectors replace 11–15px component rules. */
  html[lang="en"] .global-site :is(
    .global-hero :where(.lead), .article-lede,
    .library-header > p:where(:not(.eyebrow)), .product-definition, .product-editorial p, .product-editorial li,
    .family-guide-sections p, .prose p, .term-section > p,
    .dictionary-prose p, .dictionary-prose li, .collection-intro p,
    .field-guide-section > p, .field-guide-checks li, .field-guide-next > p,
    .field-guide-entry p, .process-article p, .process-article li,
    .about-page > p, .inquiry-callout p, .inquiry-panel > p,
    .inquiry-success p, .global-home-guide p, .global-home-guide details p,
    .knowledge-inquiry p, .product-material-guidance > p,
    .process-material-extra > p, .paper-data-example > p, .dieline-section p
  ) { font-size: var(--en-copy); font-weight: 400; line-height: 1.8; }

  html[lang="en"] .global-site :is(
    .product-card > p:last-child, .global-process-grid p, .knowledge-grid p,
    .dictionary-card p, .knowledge-guide-card p, .collection-card p,
    .finish-term-card p, .finish-comparison p, .dictionary-preview > p,
    .section-heading > p, .feature-list p, .process-route-grid > div > p:last-child
  ) { font-size: var(--en-card-copy); line-height: 1.7; color: #46553f; }

  /* Major titles retain serif character; working subheads retain their family. */
  html[lang="en"] .global-site :is(h1, h2) {
    font-family: var(--serif);
    font-weight: 400;
    font-synthesis: none;
    letter-spacing: -.025em;
    text-wrap: pretty;
  }
  html[lang="en"] .global-site :is(
    .global-hero h1, .library-header h1, .dictionary-header h1,
    .dictionary-term-head h1, .dictionary-term-header h1, .term-header h1, .field-guide-header h1,
    .family-guide > h1, .about-page h1, .inquiry-page > h1
  ) { font-size: clamp(2.5rem, 1.8rem + 2.8vw, 4.5rem); line-height: 1.08; }
  html[lang="en"] .global-site :is(.product-title > h1, .chapter-article > h1, .process-article > header h1) {
    font-size: clamp(2.375rem, 1.7rem + 1.8vw, 3.5rem);
    line-height: 1.12;
  }
  html[lang="en"] .global-site :is(
    .section-heading h2, .product-editorial h2, .family-guide-sections h2,
    .dictionary-prose h2, .term-section h2, .process-article h2,
    .field-guide-section h2, .field-guide-next h2, .global-home-guide h2,
    .about-page h2, .inquiry-panel h2, .inquiry-callout h2,
    .knowledge-guides > h2, .dictionary-browse-heading h2,
    .finish-guide-section > h2, .product-material-guidance > h2,
    .dieline-section h2, .collection-guides h2
  ) { font-size: clamp(1.875rem, 1.5rem + 1vw, 2.5rem); line-height: 1.18; }
  html[lang="en"] .global-site :is(.field-guide-entry h2, .knowledge-inquiry h2, .dictionary-pitfalls h2) {
    font-size: clamp(1.75rem, 1.4rem + .7vw, 2.125rem); line-height: 1.22;
  }
  html[lang="en"] .global-site h3 { font-weight: 600; line-height: 1.4; }
  html[lang="en"] .global-site :is(.product-card h3, .global-process-grid h3, .knowledge-grid h2, .collection-card h2) {
    font-family: var(--serif); font-size: 1.625rem; font-weight: 400; font-synthesis: none; line-height: 1.2;
  }
  html[lang="en"] .global-site :is(.dictionary-card h3, .knowledge-guide-card h3, .process-article h3) {
    font-size: 1.25rem; font-weight: 600; line-height: 1.4;
  }
  html[lang="en"] .global-site :is(.feature-list h3, .field-guide-checks h3, .finish-term-card h3) {
    font-size: 1.125rem; font-weight: 600; line-height: 1.45;
  }

  /* Navigation stays readable at every width; mobile can scroll horizontally. */
  html[lang="en"] .global-site :is(
    .global-header nav a, .language-menu summary, .language-menu a,
    .chapter-sidebar nav a, .chapter-sidebar .text-button, .process-all-link,
    .dictionary-sidebar a, .dictionary-toc, .article-toc, .article-toc .text-button,
    .field-guide-toc a, .product-editorial aside, .process-in-page,
    .dictionary-browse-jump, .filter-bar button, .dictionary-preview-topics a,
    .product-references > a, .source-link, .source-list,
    .process-references p, .process-references li, .chapter-pagination
  ) { font-size: .9375rem; line-height: 1.6; }
  html[lang="en"] .global-site :is(
    .global-header nav a, .language-menu summary, .chapter-sidebar nav a,
    .dictionary-sidebar a, .dictionary-toc a, .field-guide-toc a,
    .process-in-page a, .filter-bar button, .button, .text-button,
    .dictionary-preview-topics a, .inquiry-field, .product-brief label,
    .project-label, .dieline-inputs label, .dieline-download label
  ) { font-weight: 600; }
  html[lang="en"] .global-site :is(
    .global-header nav a[aria-current], .chapter-sidebar nav a[aria-current],
    .dictionary-sidebar a[aria-current], .language-menu a[aria-current],
    .filter-bar button[aria-pressed="true"], .route-tabs button[aria-selected="true"]
  ) { font-weight: 700; }
  html[lang="en"] .global-site :is(.button, .text-button, .global-hero .button, .global-hero .text-button, .product-brief button, .inquiry-float, .dieline-fold-buttons button) {
    font-family: var(--sans); font-size: 1rem; font-weight: 700; line-height: 1.5;
    white-space: normal;
  }
  html[lang="en"] .global-site .button { min-height: 50px; }
  html[lang="en"] .global-site :is(summary, .global-home-guide summary, .product-faq summary, .process-problem summary) {
    font-size: var(--en-copy); font-weight: 600; line-height: 1.55;
  }
  html[lang="en"] .global-site .process-term-group summary { font-size: 1rem; }

  /* Metadata is smaller, but never the former 7–12px hairline type. */
  html[lang="en"] .global-site :is(
    .eyebrow, .product-card .eyebrow, .dictionary-card .eyebrow,
    .product-photo > span, .global-process-grid > a > span,
    .knowledge-guide-number, .knowledge-grid > a > span,
    .chapter-sidebar > small, .chapter-sidebar nav a > span,
    .chapter-sidebar nav b, .chapter-pagination small, .article-toc > span,
    .dictionary-stages a span:first-child, .filter-bar small,
    .global-stats > span, .global-header .brand small, footer .brand small
  ) { font-size: .8125rem; font-weight: 500; line-height: 1.5; letter-spacing: .035em; color: var(--en-muted); }
  html[lang="en"] .global-site :is(
    .global-hero figcaption, .product-gallery figcaption, .term-header figcaption,
    .dictionary-term-head figcaption, .dictionary-term-header figcaption, .dictionary-context-photo figcaption p,
    .term-real-photo figcaption p, .field-guide-illustration figcaption,
    .process-photo figcaption p, .process-video figcaption, .process-video figcaption p,
    .process-video figcaption a, .finish-comparison small, .finish-panel-labels,
    .dieline-previews figcaption, .dieline-range, .dieline-inputs small,
    .dictionary-card small, .dictionary-aliases, .english-trade-name,
    .library-status, .breadcrumb, .pill, .product-title .pill,
    .process-term-group .pill, .process-term-group summary small,
    .inquiry-field > span, .inquiry-field-requirement,
    .inquiry-data-note, .process-intro-note, .process-parameter-note,
    .finish-table-scroll th small,
    .knowledge-inquiry .knowledge-inquiry-topic
  ) { font-size: .875rem; font-weight: 400; line-height: 1.65; color: var(--en-muted); }
  html[lang="en"] .global-site :is(.global-home-guide p.eyebrow, .global-home-guide p) { color: #e0e7d9; }
  html[lang="en"] .global-site :is(.process-handover p.eyebrow, .process-handover p, .process-handover li) { color: #e0e7d9; }
  html[lang="en"] .global-site .global-toast { font-size: .875rem; font-weight: 400; line-height: 1.65; color: white; }
  html[lang="en"] .global-site .global-header .brand span { font-size: .9375rem; font-weight: 700; letter-spacing: .05em; }
  html[lang="en"] .global-site .global-header .brand small { letter-spacing: 0; }
  html[lang="en"] .global-site footer > div { font-family: var(--sans); font-size: .875rem; line-height: 1.65; color: var(--en-muted); }
  html[lang="en"] .global-site :is(.source-note, .inquiry-consent, .inquiry-privacy, .inquiry-data-note p) {
    font-size: .875rem !important; line-height: 1.75 !important; font-weight: 400; color: var(--en-muted);
  }
  html[lang="en"] .global-site :is(.buying-intent, .inquiry-status) { font-size: 1rem !important; line-height: 1.75; }

  /* Specifications and form entries remain easy to scan without zooming. */
  html[lang="en"] .global-site :is(.spec-table, .process-table-scroll table, .finish-table-scroll table, .product-facts > div, .process-equipment dt, .process-equipment dd) {
    font-size: 1rem; line-height: 1.7;
  }
  html[lang="en"] .global-site :is(.spec-table th, .product-facts dt, .process-equipment dt) { font-weight: 600; color: #46553f; }
  html[lang="en"] .global-site :is(.spec-table td, .product-facts dd, .process-equipment dd, .process-table-scroll td) { color: #46553f; }
  html[lang="en"] .global-site :is(.inquiry-field, .product-brief label, .project-label, .dieline-download label) { font-size: .9375rem; }
  html[lang="en"] .global-site :is(input, textarea, select) {
    font-family: var(--sans); font-size: 1rem; font-weight: 400; line-height: 1.5;
  }

  /* Allow more text to occupy the same editorial layout, rather than shrinking it. */
  html[lang="en"] .global-site :is(.dictionary-card p, .knowledge-guide-card p) { -webkit-line-clamp: 4; }
  html[lang="en"] .global-site :is(.product-card h3, .dictionary-card h3, .knowledge-guide-card h3) { overflow-wrap: break-word; }
  html[lang="en"] .global-site .global-header { column-gap: 24px; }
  html[lang="en"] .global-site .global-header nav { gap: clamp(16px, 1.8vw, 26px); }
  html[lang="en"] .global-site .global-header nav a { flex-shrink: 0; }
  html[lang="en"] .global-site .language-menu summary { max-width: none; }
  html[lang="en"] .global-site .language-menu > div { top: calc(100% + 8px); }
  html[lang="en"] .global-site .global-process-grid p { max-width: 36ch; }
  html[lang="en"] .global-site .global-hero .lead { max-width: 54ch; }
  html[lang="en"] .global-site :is(.field-guide-section > p, .family-guide-sections p, .product-editorial > div > section > p, .process-article > section > p) { max-width: 72ch; }
  html[lang="en"] .global-site .product-facts > div { grid-template-columns: minmax(125px, .34fr) minmax(0, 1fr); }
  html[lang="en"] .global-site .inquiry-field-requirement { white-space: normal; }

  /* Homepage guide invitation was flush left: centre the card, keep prose left aligned. */
  html[lang="en"] .global-site main > .field-guide-entry {
    width: 90%; max-width: 1224px; margin-inline: auto;
  }
}

@media screen and (max-width: 1280px) {
  html[lang="en"] .global-site .global-header { flex-wrap: wrap; }
  html[lang="en"] .global-site .global-header nav { order: 3; width: 100%; max-width: none; justify-content: center; }
  html[lang="en"] .global-site .global-header .language-menu { margin-inline-start: auto; }
  html[lang="en"] .global-site .global-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (max-width: 760px) {
  html[lang="en"] .global-site .global-header nav { justify-content: flex-start; gap: 22px; }
  html[lang="en"] .global-site .global-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  html[lang="en"] .global-site .product-card h3 { font-size: 1.375rem; }
  html[lang="en"] .global-site :is(.spec-table, .process-table-scroll table, .finish-table-scroll table) { font-size: .9375rem; }
  html[lang="en"] .global-site .global-stats { gap: 18px; }
  html[lang="en"] .global-site .global-stats > span + span { padding-inline-start: 18px; }
}
@media screen and (max-width: 480px) {
  html[lang="en"] .global-site :is(.global-product-grid, .global-process-grid, .dictionary-preview-topics) { grid-template-columns: 1fr; }
  html[lang="en"] .global-site .global-process-grid > a { padding: 22px; }
  html[lang="en"] .global-site .product-facts > div { grid-template-columns: 1fr; gap: 4px; }
  html[lang="en"] .global-site .global-hero figcaption { flex-wrap: wrap; }
  html[lang="en"] .global-site .global-stats { gap: 12px; }
  html[lang="en"] .global-site .global-stats > span + span { padding-inline-start: 12px; }
}

.global-site main > .field-guide-entry{width:90%;max-width:1224px;margin-inline:auto}
html[lang="en"] .global-site .company-attribution{font-size:.875rem;font-weight:500}

.global-site #main:focus{outline:none}

@media screen {
  html[lang="en"] .global-site .global-hero h1 { font-size: clamp(3rem, 6.2vw, 6.25rem); line-height: 1.01; letter-spacing: -.035em; text-wrap: balance; }
  html[lang="en"] .global-site .global-hero .lead { font-size: clamp(1.125rem, 1rem + .42vw, 1.375rem); line-height: 1.75; }
  html[lang="en"] .global-site .eyebrow { font-family: var(--sans); font-weight: 700; letter-spacing: .13em; line-height: 1.6; }
  html[lang="en"] .global-site .global-hero .eyebrow { font-size: clamp(.75rem, .69rem + .2vw, .875rem); }
}

/* A direct sales link above the English desktop navigation. */
html[lang="en"] .global-header { position: relative; padding-top: 2.25rem; }
html[lang="en"] .header-sales-contact { position: absolute; inset-block-start: .3rem; inset-inline-end: 2rem; display: flex; align-items: center; gap: 1rem; font: 600 .875rem/1.5 var(--sans,Arial,sans-serif); }
html[lang="en"] .header-sales-contact a { text-decoration: underline; text-underline-offset: .18em; }
html[lang="en"] .header-sales-contact button { padding: .1rem .3rem; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
html[lang="en"] .header-sales-contact button:hover { text-decoration: underline; }
html[lang="en"] .header-sales-contact :is(a,button):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
html[lang="en"] .header-sales-feedback { position: absolute; inset-block-start: 100%; inset-inline-end: 0; z-index: 20; max-width: 22rem; padding: .6rem .8rem; border: 1px solid #c4cec3; border-radius: .3rem; background: #f8f7f1; font-weight: 400; box-shadow: 0 4px 14px #203d311c; }
@media screen and (max-width: 1000px) {
  html[lang="en"] .global-header { padding-top: 1rem; }
  html[lang="en"] .header-sales-contact { position: relative; inset: auto; flex: 0 0 100%; order: -1; justify-content: center; flex-wrap: wrap; column-gap: .8rem; row-gap: .2rem; text-align: center; }
}

/* Translated chapter titles must wrap inside the mobile two-column navigation. */
@media screen and (max-width: 1000px) {
  .global-site .process-edition .chapter-sidebar nav a {
    white-space: normal; min-width: 0; align-items: flex-start; gap: .5rem;
  }
  .global-site .process-edition .chapter-sidebar nav a > span { flex: 0 0 auto; }
}

/* Shared sales contact for the other editions; English rules above stay intact.
   A full flex row accommodates translated labels without overlapping navigation. */
html:not([lang="en"]) .global-site .global-header { flex-wrap: wrap; }
html:not([lang="en"]) .global-site .header-sales-contact {
  position: relative; flex: 0 0 100%; order: -1; min-width: 0; max-width: 100%;
  display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap;
  column-gap: 1rem; row-gap: .2rem; font-size: .875rem; font-weight: 600; line-height: 1.5;
  overflow-wrap: anywhere;
}
html:not([lang="en"]) .global-site .header-sales-contact a {
  direction: ltr; unicode-bidi: isolate; max-width: 100%;
  text-decoration: underline; text-underline-offset: .18em;
}
html:not([lang="en"]) .global-site .header-sales-contact button {
  padding: .1rem .3rem; border: 0; background: transparent; color: inherit;
  font: inherit; cursor: pointer; max-width: 100%; overflow-wrap: anywhere;
}
html:not([lang="en"]) .global-site .header-sales-contact button:hover { text-decoration: underline; }
html:not([lang="en"]) .global-site .header-sales-contact :is(a,button):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
html:not([lang="en"]) .global-site .header-sales-feedback {
  position: absolute; inset-block-start: 100%; inset-inline-end: 0; z-index: 20;
  width: max-content; max-width: min(22rem, calc(100vw - 2rem)); text-align: start;
  padding: .6rem .8rem; border: 1px solid #c4cec3; border-radius: .3rem;
  background: #f8f7f1; font-weight: 400; box-shadow: 0 4px 14px #203d311c;
}
@media screen and (max-width: 1000px) {
  html:not([lang="en"]) .global-site .header-sales-contact { justify-content: center; column-gap: .8rem; text-align: center; }
}

@media screen and (max-width: 600px) {
  html:not([lang="en"]) .global-site .global-process-grid { grid-template-columns: minmax(0, 1fr); }
  html:not([lang="en"]) .global-site .global-process-grid > a { min-width: 0; }
}
