/*
Theme Name: GRANITY Codex Shell
Theme URI: https://granityprecision.com/
Author: GRANITY / Codex
Description: Minimal production shell for Codex-managed GRANITY WordPress pages. The theme intentionally provides no starter navigation, no demo header, and no visual builder chrome.
Version: 1.2.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: granity-codex-shell
*/

:root {
  --granity-ink: #343c48;
  --granity-blue: #0f4c81;
  --granity-line: #d9dee5;
  --granity-soft: #f5f7fa;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  color: var(--granity-ink);
  background: #fff;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.granity-locale-zh-cn,
.granity-locale-zh-cn .granity-site-main,
.granity-locale-zh-cn .granity-global-header,
.granity-locale-zh-cn .granity-global-footer,
.granity-locale-zh-cn button,
.granity-locale-zh-cn input,
.granity-locale-zh-cn select,
.granity-locale-zh-cn textarea {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #e07a2f;
  outline-offset: 3px;
}

.granity-site-main {
  min-height: 100vh;
  overflow-x: clip;
}

.granity-site-main > :first-child {
  margin-top: 0;
}

.granity-skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 9999;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--granity-blue);
  color: #fff;
  font-weight: 800;
}

.granity-skip-link:focus {
  transform: translateY(0);
}

.granity-global-header,
.granity-global-footer {
  width: 100%;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: #101827;
}

.granity-global-header {
  position: relative;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #dde3ea;
  box-shadow: 0 8px 24px rgba(15, 32, 52, 0.06);
}

.granity-global-wrap,
.granity-footer-wrap {
  width: min(1520px, calc(100% - 48px));
  margin: 0 auto;
}

.granity-global-top {
  background: #071523;
  color: #edf3f7;
  font-size: 12px;
  font-weight: 750;
}

.granity-global-top .granity-global-wrap {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.granity-global-mail,
.granity-global-utility a,
.granity-global-nav a,
.granity-global-brand,
.granity-global-quote,
.granity-global-search,
.granity-mobile-panel a {
  text-decoration: none;
}

.granity-global-mail {
  color: #fff;
}

.granity-global-utility {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  margin-left: auto;
}

.granity-global-utility > a {
  position: relative;
  color: #edf3f7;
  padding: 0 14px;
  white-space: nowrap;
}

.granity-global-utility > a:last-of-type {
  padding-right: 0;
}

.granity-global-utility > a:not(:last-of-type)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%);
}

.granity-global-main {
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(270px, 330px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
}

.granity-global-top p,
.granity-global-main > p,
.granity-global-actions > p,
.granity-mobile-panel p,
.granity-global-footer p:empty {
  display: contents;
  margin: 0;
}

.granity-global-brand {
  display: flex;
  flex-direction: column;
  color: #24303c;
  line-height: 1;
}

.granity-global-logo {
  display: block;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #2c3743;
}

.granity-global-sub {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 3px;
  color: #75808b;
}

.granity-global-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 1.8vw, 30px);
  min-width: 0;
}

.granity-global-nav a {
  color: #122033;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
  white-space: nowrap;
}

.granity-global-nav a:hover,
.granity-global-utility > a:hover,
.granity-mobile-panel a:hover {
  color: #0f4c81;
}

.granity-language-switcher {
  position: relative;
  margin-left: 12px;
}

.granity-language-switcher summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 0 0 14px;
  color: #fff;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.granity-language-switcher summary::-webkit-details-marker {
  display: none;
}

.granity-language-switcher summary::after {
  content: "▾";
  font-size: 10px;
}

.granity-language-switcher[open] summary::after {
  transform: rotate(180deg);
}

.granity-language-menu {
  position: absolute;
  z-index: 120;
  right: 0;
  top: calc(100% + 5px);
  min-width: 150px;
  padding: 8px;
  border: 1px solid #dce3ea;
  background: #fff;
  box-shadow: 0 16px 32px rgba(7, 21, 35, 0.18);
}

.granity-language-menu a {
  display: block;
  padding: 9px 10px;
  color: #122033;
  text-decoration: none;
  font-weight: 800;
}

.granity-language-menu a:hover {
  color: #0f4c81;
  background: #f2f5f8;
}

.granity-global-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.granity-global-search {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #dce3ea;
  border-radius: 4px;
  color: #0f4c81;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  white-space: nowrap;
  background: #fff;
}

.granity-global-search:hover {
  border-color: #0f4c81;
  background: #f3f7fa;
}

.granity-global-quote {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 4px;
  color: #fff;
  background: #0f4c81;
  font-size: 15px;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(15, 76, 129, 0.18);
}

.granity-global-quote:hover {
  background: #09365d;
}

.granity-mobile-menu {
  display: none;
  position: relative;
}

.granity-mobile-menu summary {
  width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  border: 1px solid #dce3ea;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0;
  background: #fff;
}

.granity-mobile-menu summary::-webkit-details-marker {
  display: none;
}

.granity-mobile-menu summary::before {
  content: "";
  width: 18px;
  height: 2px;
  background: #122033;
  box-shadow: 0 -6px 0 #122033, 0 6px 0 #122033;
}

.granity-mobile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(280px, calc(100vw - 32px));
  padding: 10px;
  background: #fff;
  border: 1px solid #dce3ea;
  box-shadow: 0 18px 35px rgba(15, 32, 52, 0.14);
}

.granity-mobile-panel a {
  display: block;
  padding: 12px 10px;
  color: #122033;
  font-size: 14px;
  font-weight: 800;
}

.granity-global-footer {
  background: #071523;
  color: #dce5ee;
  padding: 48px 0 28px;
}

.granity-global-footer .granity-global-wrap,
.granity-global-footer .granity-footer-wrap {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(5, minmax(120px, 1fr));
  gap: 28px;
}

.granity-global-footer h2,
.granity-global-footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

.granity-global-footer h2 {
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.5px;
}

.granity-global-footer h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
}

.granity-global-footer p {
  margin: 0;
  max-width: 360px;
  color: #aebbc7;
  line-height: 1.65;
}

.granity-global-footer a {
  display: block;
  color: #dce5ee;
  text-decoration: none;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.granity-global-footer a:hover {
  color: #fff;
}

/*
 * GRANITY CTA contract.
 * WordPress/plugin styles can alter anchor colors after page CSS is registered.
 * Keep customer actions readable and consistent across every managed page.
 */
.granity-codex-shell .gce-primary,
.granity-codex-shell .gce-primary:visited,
.granity-codex-shell .g-primary,
.granity-codex-shell .g-primary:visited,
.granity-codex-shell .g-btn.primary,
.granity-codex-shell .g-btn.primary:visited,
.granity-codex-shell .granity-button.primary,
.granity-codex-shell .granity-button.primary:visited,
.granity-codex-shell .granity-btn.primary,
.granity-codex-shell .granity-btn.primary:visited,
.granity-codex-shell .gp-primary,
.granity-codex-shell .gp-primary:visited,
.granity-codex-shell .gt-primary,
.granity-codex-shell .gt-primary:visited,
.granity-codex-shell .gs-primary,
.granity-codex-shell .gs-primary:visited,
.granity-codex-shell .gsp-primary,
.granity-codex-shell .gsp-primary:visited,
.granity-codex-shell .gi-primary,
.granity-codex-shell .gi-primary:visited,
.granity-codex-shell .ges-primary,
.granity-codex-shell .ges-primary:visited,
.granity-codex-shell .gsg-primary,
.granity-codex-shell .gsg-primary:visited,
.granity-codex-shell .gc-primary,
.granity-codex-shell .gc-primary:visited,
.granity-codex-shell .contact-primary,
.granity-codex-shell .contact-primary:visited {
  color: #fff !important;
  background: #0f4c81 !important;
  border-color: #0f4c81 !important;
  text-decoration: none !important;
}

.granity-codex-shell .gce-secondary,
.granity-codex-shell .gce-secondary:visited,
.granity-codex-shell .g-secondary,
.granity-codex-shell .g-secondary:visited,
.granity-codex-shell .g-btn.secondary,
.granity-codex-shell .g-btn.secondary:visited,
.granity-codex-shell .granity-button.secondary,
.granity-codex-shell .granity-button.secondary:visited,
.granity-codex-shell .granity-btn.secondary,
.granity-codex-shell .granity-btn.secondary:visited,
.granity-codex-shell .gp-secondary,
.granity-codex-shell .gp-secondary:visited,
.granity-codex-shell .gt-secondary,
.granity-codex-shell .gt-secondary:visited,
.granity-codex-shell .gs-secondary,
.granity-codex-shell .gs-secondary:visited,
.granity-codex-shell .gsp-secondary,
.granity-codex-shell .gsp-secondary:visited,
.granity-codex-shell .gi-secondary,
.granity-codex-shell .gi-secondary:visited,
.granity-codex-shell .ges-secondary,
.granity-codex-shell .ges-secondary:visited,
.granity-codex-shell .gsg-secondary,
.granity-codex-shell .gsg-secondary:visited,
.granity-codex-shell .gc-secondary,
.granity-codex-shell .gc-secondary:visited,
.granity-codex-shell .contact-secondary,
.granity-codex-shell .contact-secondary:visited {
  color: #0f4c81 !important;
  background: #fff !important;
  border-color: #0f4c81 !important;
  text-decoration: none !important;
}

/*
 * Product center mobile integrity.
 * Product and product-group pages are engineering decision routes, so headings,
 * CTA rows, visual cards and use-case chips must never overflow the viewport.
 */
.granity-codex-shell .granity-page {
  max-width: 100%;
  overflow-x: clip;
}

.granity-codex-shell .granity-page h1,
.granity-codex-shell .granity-page h2,
.granity-codex-shell .granity-page h3,
.granity-codex-shell .granity-page p,
.granity-codex-shell .granity-card,
.granity-codex-shell .granity-band,
.granity-codex-shell .granity-path div {
  overflow-wrap: anywhere;
}

.granity-codex-shell .granity-products-center .granity-wrap {
  width: min(1180px, calc(100% - 48px));
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 0;
}

.granity-codex-shell .granity-products-center .granity-grid,
.granity-codex-shell .granity-products-center .granity-bands,
.granity-codex-shell .granity-products-center .granity-path {
  min-width: 0;
}

.granity-codex-shell .granity-products-center .granity-card {
  min-width: 0;
}

.granity-codex-shell .granity-products-center .granity-use-case {
  max-width: 100%;
}

.granity-codex-shell .granity-products-center .granity-use-case span {
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
}

@media (max-width: 680px) {
  .granity-codex-shell .granity-products-center .granity-wrap {
    width: min(100% - 32px, 1180px);
  }

  .granity-codex-shell .granity-products-center .granity-hero {
    padding-block: 34px !important;
  }

  .granity-codex-shell .granity-products-center .granity-hero h1 {
    max-width: min(330px, 100%) !important;
    font-size: 32px !important;
    line-height: 1.08 !important;
  }

  .granity-codex-shell .granity-products-center .granity-lead {
    max-width: min(330px, 100%) !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  .granity-codex-shell .granity-products-center .granity-section h2,
  .granity-codex-shell .granity-products-center .granity-cta h2 {
    font-size: 28px !important;
    line-height: 1.15 !important;
  }

  .granity-codex-shell .granity-products-center .granity-grid,
  .granity-codex-shell .granity-products-center .granity-bands,
  .granity-codex-shell .granity-products-center .granity-path {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .granity-codex-shell .granity-products-center .granity-card {
    padding: 18px !important;
  }

  .granity-codex-shell .granity-products-center .granity-card h3 {
    font-size: 25px !important;
  }

  .granity-codex-shell .granity-products-center .granity-card p {
    font-size: 15px !important;
  }

  .granity-codex-shell .granity-products-center .granity-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

.granity-codex-shell .granity-products-center .granity-btn {
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: 14px !important;
    white-space: normal !important;
    text-align: center !important;
  }
}

/* Product module pages share one mobile integrity contract:
   no clipped headings, no horizontal overflow, visible RFQ/CAD/engineering actions. */
.granity-codex-shell .granity-family-page {
  overflow-x: clip;
}

.granity-codex-shell .granity-family-page .granity-wrap,
.granity-codex-shell .granity-family-page .granity-hero-layout,
.granity-codex-shell .granity-family-page .granity-two,
.granity-codex-shell .granity-family-page .granity-category-grid,
.granity-codex-shell .granity-family-page .granity-list,
.granity-codex-shell .granity-family-page .granity-card {
  min-width: 0;
}

.granity-codex-shell .granity-family-page .granity-hero h1,
.granity-codex-shell .granity-family-page .granity-section h2,
.granity-codex-shell .granity-family-page .granity-card h3,
.granity-codex-shell .granity-family-page .granity-lead,
.granity-codex-shell .granity-family-page p,
.granity-codex-shell .granity-family-page a {
  overflow-wrap: anywhere;
}

.granity-codex-shell .granity-family-page .granity-hero-visual,
.granity-codex-shell .granity-family-page .granity-card figure {
  border-radius: 0;
}

.granity-codex-shell .granity-family-page .granity-hero-visual img,
.granity-codex-shell .granity-family-page .granity-card figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
}

@media (max-width: 680px) {
  .granity-codex-shell .granity-family-page .granity-wrap {
    width: min(100% - 32px, 1180px);
    padding-inline: 0 !important;
  }

  .granity-codex-shell .granity-family-page .granity-hero {
    padding-block: 34px !important;
  }

  .granity-codex-shell .granity-family-page .granity-breadcrumb {
    margin-bottom: 16px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  .granity-codex-shell .granity-family-page .granity-eyebrow {
    font-size: 12px !important;
    letter-spacing: 1.6px !important;
  }

  .granity-codex-shell .granity-family-page .granity-hero h1 {
    max-width: min(340px, 100%) !important;
    font-size: 32px !important;
    line-height: 1.08 !important;
  }

  .granity-codex-shell .granity-family-page .granity-lead {
    max-width: min(340px, 100%) !important;
    margin-top: 16px !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  .granity-codex-shell .granity-family-page .granity-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-top: 22px !important;
  }

  .granity-codex-shell .granity-family-page .granity-btn {
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: 14px !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .granity-codex-shell .granity-family-page .granity-hero-visual {
    margin-top: 26px !important;
  }

  .granity-codex-shell .granity-family-page .granity-hero-visual img,
  .granity-codex-shell .granity-family-page .granity-card figure img {
    aspect-ratio: 4 / 3 !important;
  }

  .granity-codex-shell .granity-family-page .granity-section {
    padding-block: 38px !important;
  }

  .granity-codex-shell .granity-family-page .granity-section h2,
  .granity-codex-shell .granity-family-page .granity-cta h2 {
    font-size: 27px !important;
    line-height: 1.14 !important;
  }

  .granity-codex-shell .granity-family-page .granity-two,
  .granity-codex-shell .granity-family-page .granity-category-grid,
  .granity-codex-shell .granity-family-page .granity-list {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .granity-codex-shell .granity-family-page .granity-card {
    padding: 18px !important;
  }

  .granity-codex-shell .granity-family-page .granity-card h3 {
    font-size: 24px !important;
    line-height: 1.14 !important;
  }

  .granity-codex-shell .granity-family-page .granity-card p {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }
}

/* Product family pages use the gp-* package structure. Keep every family page
   readable, image-safe and conversion-safe without per-page emergency patches. */
.granity-codex-shell .granity-product {
  overflow-x: clip;
}

.granity-codex-shell .granity-product .gp-wrap,
.granity-codex-shell .granity-product .gp-hero,
.granity-codex-shell .granity-product .gp-grid,
.granity-codex-shell .granity-product .gp-image-grid,
.granity-codex-shell .granity-product .gp-route-steps,
.granity-codex-shell .granity-product .gp-card,
.granity-codex-shell .granity-product .gp-image-card,
.granity-codex-shell .granity-product .gp-route-step {
  min-width: 0;
}

.granity-codex-shell .granity-product h1,
.granity-codex-shell .granity-product h2,
.granity-codex-shell .granity-product h3,
.granity-codex-shell .granity-product p,
.granity-codex-shell .granity-product a,
.granity-codex-shell .granity-product span,
.granity-codex-shell .granity-product strong {
  overflow-wrap: anywhere;
}

.granity-codex-shell .granity-product .gp-visual,
.granity-codex-shell .granity-product .gp-image-card {
  overflow: hidden;
}

.granity-codex-shell .granity-product .gp-visual img,
.granity-codex-shell .granity-product .gp-image-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 760px) {
  .granity-codex-shell .granity-product .gp-wrap {
    width: min(100% - 32px, 1180px) !important;
    padding-inline: 0 !important;
  }

  .granity-codex-shell .granity-product .gp-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
    padding-block: 34px !important;
  }

  .granity-codex-shell .granity-product .gp-hero h1 {
    max-width: min(340px, 100%) !important;
    font-size: 34px !important;
    line-height: 1.08 !important;
  }

  .granity-codex-shell .granity-product .gp-lead {
    max-width: min(340px, 100%) !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  .granity-codex-shell .granity-product .gp-status-panel,
  .granity-codex-shell .granity-product .gp-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .granity-codex-shell .granity-product .gp-primary,
  .granity-codex-shell .granity-product .gp-secondary {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .granity-codex-shell .granity-product .gp-visual img,
  .granity-codex-shell .granity-product .gp-image-card img {
    aspect-ratio: 4 / 3 !important;
  }

  .granity-codex-shell .granity-product .gp-section {
    padding-block: 38px !important;
  }

  .granity-codex-shell .granity-product .gp-heading {
    max-width: min(340px, 100%) !important;
  }

  .granity-codex-shell .granity-product .gp-heading h2,
  .granity-codex-shell .granity-product .gp-band h2 {
    font-size: 28px !important;
    line-height: 1.14 !important;
  }

  .granity-codex-shell .granity-product .gp-heading p,
  .granity-codex-shell .granity-product .gp-section > p,
  .granity-codex-shell .granity-product .gp-card p,
  .granity-codex-shell .granity-product .gp-route-step span {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  .granity-codex-shell .granity-product .gp-grid,
  .granity-codex-shell .granity-product .gp-grid.two,
  .granity-codex-shell .granity-product .gp-grid.three,
  .granity-codex-shell .granity-product .gp-image-grid,
  .granity-codex-shell .granity-product .gp-route-steps {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .granity-codex-shell .granity-product .gp-card,
  .granity-codex-shell .granity-product .gp-route-step {
    padding: 18px !important;
  }

  .granity-codex-shell .granity-product .gp-card h3 {
    font-size: 23px !important;
    line-height: 1.14 !important;
  }
}

/* Heading rhythm is a release invariant across every page family and locale.
   Long URLs and body copy may break for safety; headings must retain complete
   words or natural Chinese phrases and use balanced line boxes instead. */
.granity-codex-shell .granity-site-main :is(h1, h2, h3, [role="heading"]),
.granity-codex-shell .granity-page :is(h1, h2, h3, [role="heading"]) {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  text-wrap: pretty;
}

.granity-locale-zh-cn .granity-site-main :is(h1, h2, h3, [role="heading"]),
.granity-locale-zh-cn .granity-page :is(h1, h2, h3, [role="heading"]) {
  line-break: strict;
  word-break: auto-phrase !important;
  text-wrap: pretty !important;
}

/* German industrial terms form long compounds. Permit language-aware
   hyphenation so complete content remains visible at every viewport. */
.granity-locale-de .granity-site-main :is(h1, h2, h3, [role="heading"]),
.granity-locale-de .granity-page :is(h1, h2, h3, [role="heading"]) {
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  hyphens: auto !important;
  text-wrap: pretty !important;
}

.granity-locale-de .granity-site-main :is(p, li, dd),
.granity-locale-de .granity-page :is(p, li, dd) {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

/* Technical Center and CAD Library pages are conversion resources. Keep their
   cards, visuals and CTAs readable in the WordPress shell on narrow screens. */
.granity-codex-shell .granity-tech,
.granity-codex-shell .granity-page {
  overflow-x: clip;
}

.granity-codex-shell .granity-tech .gt-wrap,
.granity-codex-shell .granity-tech .gt-hero,
.granity-codex-shell .granity-tech .gt-grid,
.granity-codex-shell .granity-tech .gt-path,
.granity-codex-shell .granity-tech .gt-card,
.granity-codex-shell .granity-page .granity-wrap,
.granity-codex-shell .granity-page .g-hero,
.granity-codex-shell .granity-page .g-grid,
.granity-codex-shell .granity-page .g-process,
.granity-codex-shell .granity-page .g-route-card,
.granity-codex-shell .granity-page .g-next {
  min-width: 0;
}

.granity-codex-shell .granity-tech img,
.granity-codex-shell .granity-page img {
  max-width: 100%;
}

.granity-codex-shell .granity-tech h1,
.granity-codex-shell .granity-tech h2,
.granity-codex-shell .granity-tech h3,
.granity-codex-shell .granity-tech p,
.granity-codex-shell .granity-tech a,
.granity-codex-shell .granity-page h1,
.granity-codex-shell .granity-page h2,
.granity-codex-shell .granity-page h3,
.granity-codex-shell .granity-page p,
.granity-codex-shell .granity-page a {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .granity-codex-shell .granity-tech .gt-wrap,
  .granity-codex-shell .granity-page .granity-wrap {
    width: min(100% - 32px, 1180px) !important;
    padding-inline: 0 !important;
  }

  .granity-codex-shell .granity-tech .gt-hero,
  .granity-codex-shell .granity-page .g-hero {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
    padding-block: 34px !important;
  }

  .granity-codex-shell .granity-tech .gt-hero h1,
  .granity-codex-shell .granity-page .g-hero h1 {
    max-width: min(340px, 100%) !important;
    font-size: 32px !important;
    line-height: 1.1 !important;
  }

  .granity-codex-shell .granity-tech .gt-lead,
  .granity-codex-shell .granity-page .g-lead,
  .granity-codex-shell .granity-page .g-hero p:not(.g-eyebrow) {
    max-width: min(340px, 100%) !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  .granity-codex-shell .granity-tech .gt-actions,
  .granity-codex-shell .granity-page .g-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .granity-codex-shell .granity-tech .gt-primary,
  .granity-codex-shell .granity-tech .gt-secondary,
  .granity-codex-shell .granity-page .g-primary,
  .granity-codex-shell .granity-page .g-secondary {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .granity-codex-shell .granity-tech .gt-visual img,
  .granity-codex-shell .granity-tech .gt-card img,
  .granity-codex-shell .granity-page .g-page-visual img {
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
  }

  .granity-codex-shell .granity-tech .gt-grid,
  .granity-codex-shell .granity-tech .gt-path,
  .granity-codex-shell .granity-tech .gt-signal-grid,
  .granity-codex-shell .granity-page .g-grid,
  .granity-codex-shell .granity-page .g-grid.three,
  .granity-codex-shell .granity-page .g-process,
  .granity-codex-shell .granity-page .g-signal-grid,
  .granity-codex-shell .granity-page .g-file-strip,
  .granity-codex-shell .granity-page .g-status-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .granity-codex-shell .granity-tech .gt-heading,
  .granity-codex-shell .granity-tech .gt-proof,
  .granity-codex-shell .granity-page .g-heading,
  .granity-codex-shell .granity-page .g-resource-path,
  .granity-codex-shell .granity-page .g-proof-band,
  .granity-codex-shell .granity-page .g-next {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .granity-codex-shell .granity-tech .gt-heading h2,
  .granity-codex-shell .granity-tech .gt-band h2,
  .granity-codex-shell .granity-page .g-heading h2,
  .granity-codex-shell .granity-page .g-next h2 {
    font-size: 27px !important;
    line-height: 1.14 !important;
  }
}

/* Industry solution pages connect application intent to product-family routing.
   Keep the full journey readable in the clean WordPress shell. */
.granity-codex-shell .granity-industry-index,
.granity-codex-shell .granity-industry-page {
  overflow-x: clip;
}

.granity-codex-shell .granity-page .gi-wrap,
.granity-codex-shell .granity-page .gi-hero,
.granity-codex-shell .granity-page .gi-hero-grid,
.granity-codex-shell .granity-page .gi-grid,
.granity-codex-shell .granity-page .gi-route-grid,
.granity-codex-shell .granity-page .gi-flow,
.granity-codex-shell .granity-page .gi-card,
.granity-codex-shell .granity-page .gi-route-card,
.granity-codex-shell .granity-page .gi-band {
  min-width: 0;
}

.granity-codex-shell .granity-page .gi-visual img,
.granity-codex-shell .granity-page .gi-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.granity-codex-shell .granity-page .gi-hero h1,
.granity-codex-shell .granity-page .gi-heading h2,
.granity-codex-shell .granity-page .gi-card h3,
.granity-codex-shell .granity-page .gi-route-card h3,
.granity-codex-shell .granity-page .gi-band h2,
.granity-codex-shell .granity-page .gi-lead,
.granity-codex-shell .granity-page .gi-card p,
.granity-codex-shell .granity-page .gi-route-card p,
.granity-codex-shell .granity-page .gi-band p,
.granity-codex-shell .granity-page .gi-primary,
.granity-codex-shell .granity-page .gi-secondary {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .granity-codex-shell .granity-page .gi-wrap {
    width: min(100% - 32px, 1180px) !important;
    padding-inline: 0 !important;
  }

  .granity-codex-shell .granity-page .gi-hero,
  .granity-codex-shell .granity-page .gi-hero-grid,
  .granity-codex-shell .granity-page .gi-heading,
  .granity-codex-shell .granity-page .gi-grid,
  .granity-codex-shell .granity-page .gi-grid.three,
  .granity-codex-shell .granity-page .gi-grid.four,
  .granity-codex-shell .granity-page .gi-route-grid,
  .granity-codex-shell .granity-page .gi-flow {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .granity-codex-shell .granity-page .gi-hero,
  .granity-codex-shell .granity-page .gi-hero-grid {
    gap: 28px !important;
  }

  .granity-codex-shell .granity-page .gi-hero h1 {
    max-width: min(340px, 100%) !important;
    font-size: 32px !important;
    line-height: 1.1 !important;
  }

  .granity-codex-shell .granity-page .gi-lead {
    max-width: min(340px, 100%) !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  .granity-codex-shell .granity-page .gi-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .granity-codex-shell .granity-page .gi-primary,
  .granity-codex-shell .granity-page .gi-secondary {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .granity-codex-shell .granity-page .gi-visual img,
  .granity-codex-shell .granity-page .gi-card img {
    aspect-ratio: 4 / 3 !important;
  }

  .granity-codex-shell .granity-page .gi-section {
    padding-top: 38px !important;
  }

  .granity-codex-shell .granity-page .gi-heading {
    gap: 14px !important;
    margin-bottom: 20px !important;
  }

  .granity-codex-shell .granity-page .gi-heading h2,
  .granity-codex-shell .granity-page .gi-band h2 {
    font-size: 27px !important;
    line-height: 1.14 !important;
  }

  .granity-codex-shell .granity-page .gi-card {
    min-height: auto !important;
    padding: 18px !important;
  }

  .granity-codex-shell .granity-page .gi-card figure {
    margin: -18px -18px 16px !important;
  }

  .granity-codex-shell .granity-page .gi-card h3,
  .granity-codex-shell .granity-page .gi-route-card h3 {
    font-size: 22px !important;
  }

  .granity-codex-shell .granity-page .gi-flow div {
    min-height: auto !important;
  }
}

/* Trust, contact, partnership and services pages are conversion-support pages.
   Keep card media, CTA rows and long engineering copy inside the clean shell. */
.granity-codex-shell .granity-company,
.granity-codex-shell .granity-contact,
.granity-codex-shell .granity-service,
.granity-codex-shell .granity-service-page {
  max-width: 100%;
  overflow-x: clip;
}

.granity-codex-shell .granity-company .gc-wrap,
.granity-codex-shell .granity-company .gc-hero,
.granity-codex-shell .granity-company .gc-grid,
.granity-codex-shell .granity-company .gc-card,
.granity-codex-shell .granity-company .gc-media,
.granity-codex-shell .granity-company .gc-media-grid,
.granity-codex-shell .granity-contact .gc-wrap,
.granity-codex-shell .granity-contact .gc-hero,
.granity-codex-shell .granity-contact .gc-grid,
.granity-codex-shell .granity-contact .gc-card,
.granity-codex-shell .granity-service .gs-wrap,
.granity-codex-shell .granity-service .gs-hero,
.granity-codex-shell .granity-service .gs-grid,
.granity-codex-shell .granity-service .gs-card,
.granity-codex-shell .granity-service .gs-path,
.granity-codex-shell .granity-service .gs-cta,
.granity-codex-shell .granity-service-page .gsp-wrap,
.granity-codex-shell .granity-service-page .gsp-hero,
.granity-codex-shell .granity-service-page .gsp-grid,
.granity-codex-shell .granity-service-page .gsp-card,
.granity-codex-shell .granity-service-page .gsp-section,
.granity-codex-shell .granity-page .g-grid article {
  min-width: 0;
}

.granity-codex-shell .granity-company img,
.granity-codex-shell .granity-contact img,
.granity-codex-shell .granity-service img,
.granity-codex-shell .granity-service-page img,
.granity-codex-shell .granity-page .g-card-visual,
.granity-codex-shell .granity-page .g-grid article img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.granity-codex-shell .granity-company .g-card-visual,
.granity-codex-shell .granity-contact .g-card-visual,
.granity-codex-shell .granity-service .g-card-visual,
.granity-codex-shell .granity-service-page .g-card-visual,
.granity-codex-shell .granity-page .g-card-visual,
.granity-codex-shell .granity-page .g-grid article img,
.granity-codex-shell .granity-service .gs-card img {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 18px !important;
}

.granity-codex-shell .granity-page .g-grid article img,
.granity-codex-shell .granity-service .gs-card img {
  margin-bottom: 22px !important;
}

/* Blog and knowledge articles drive SEO discovery and engineering trust.
   Keep article media and CTA paths stable across desktop and mobile. */
.granity-codex-shell .granity-blog,
.granity-codex-shell .granity-article {
  max-width: 100%;
  overflow-x: clip;
}

.granity-codex-shell .granity-blog .gb-wrap,
.granity-codex-shell .granity-blog .gb-hero,
.granity-codex-shell .granity-blog .gb-topic-grid,
.granity-codex-shell .granity-blog .gb-grid,
.granity-codex-shell .granity-blog .gb-card,
.granity-codex-shell .granity-blog .gb-cta,
.granity-codex-shell .granity-article .ga-wrap,
.granity-codex-shell .granity-article .ga-box,
.granity-codex-shell .granity-article .ga-media-band,
.granity-codex-shell .granity-article .ga-media-note,
.granity-codex-shell .granity-article .ga-path,
.granity-codex-shell .granity-article .ga-path-grid,
.granity-codex-shell .granity-article .ga-path-card,
.granity-codex-shell .granity-article .ga-cta {
  min-width: 0;
}

.granity-codex-shell .granity-blog img,
.granity-codex-shell .granity-article img {
  display: block;
  max-width: 100% !important;
  height: auto;
  object-fit: cover;
}

.granity-codex-shell .granity-blog .g-card-visual,
.granity-codex-shell .granity-article .g-card-visual {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 18px !important;
}

.granity-codex-shell .granity-blog h1,
.granity-codex-shell .granity-blog h2,
.granity-codex-shell .granity-blog h3,
.granity-codex-shell .granity-blog p,
.granity-codex-shell .granity-blog a,
.granity-codex-shell .granity-article h1,
.granity-codex-shell .granity-article h2,
.granity-codex-shell .granity-article h3,
.granity-codex-shell .granity-article p,
.granity-codex-shell .granity-article li,
.granity-codex-shell .granity-article a {
  overflow-wrap: anywhere;
}

.granity-codex-shell .granity-company h1,
.granity-codex-shell .granity-company h2,
.granity-codex-shell .granity-company h3,
.granity-codex-shell .granity-company p,
.granity-codex-shell .granity-company a,
.granity-codex-shell .granity-contact h1,
.granity-codex-shell .granity-contact h2,
.granity-codex-shell .granity-contact h3,
.granity-codex-shell .granity-contact p,
.granity-codex-shell .granity-contact a,
.granity-codex-shell .granity-service h1,
.granity-codex-shell .granity-service h2,
.granity-codex-shell .granity-service h3,
.granity-codex-shell .granity-service p,
.granity-codex-shell .granity-service a,
.granity-codex-shell .granity-service-page h1,
.granity-codex-shell .granity-service-page h2,
.granity-codex-shell .granity-service-page h3,
.granity-codex-shell .granity-service-page p,
.granity-codex-shell .granity-service-page a {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .granity-codex-shell .granity-company .gc-wrap,
  .granity-codex-shell .granity-contact .gc-wrap,
  .granity-codex-shell .granity-service .gs-wrap,
  .granity-codex-shell .granity-service-page .gsp-wrap {
    width: min(100% - 32px, 1180px) !important;
    padding-inline: 0 !important;
  }

  .granity-codex-shell .granity-company .gc-hero,
  .granity-codex-shell .granity-company .gc-grid,
  .granity-codex-shell .granity-company .gc-media-grid,
  .granity-codex-shell .granity-contact .gc-hero,
  .granity-codex-shell .granity-contact .gc-grid,
  .granity-codex-shell .granity-service .gs-hero,
  .granity-codex-shell .granity-service .gs-grid,
  .granity-codex-shell .granity-service .gs-path,
  .granity-codex-shell .granity-service-page .gsp-hero,
  .granity-codex-shell .granity-service-page .gsp-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .granity-codex-shell .granity-company .gc-hero,
  .granity-codex-shell .granity-contact .gc-hero,
  .granity-codex-shell .granity-service .gs-hero,
  .granity-codex-shell .granity-service-page .gsp-hero {
    gap: 28px !important;
  }

  .granity-codex-shell .granity-company h1,
  .granity-codex-shell .granity-contact h1,
  .granity-codex-shell .granity-service h1,
  .granity-codex-shell .granity-service-page h1 {
    max-width: min(340px, 100%) !important;
    font-size: 32px !important;
    line-height: 1.1 !important;
  }

  .granity-codex-shell .granity-company .gc-lead,
  .granity-codex-shell .granity-contact .gc-lead,
  .granity-codex-shell .granity-service .gs-lead,
  .granity-codex-shell .granity-service-page .gsp-lead {
    max-width: min(340px, 100%) !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  .granity-codex-shell .granity-company .gc-actions,
  .granity-codex-shell .granity-contact .gc-actions,
  .granity-codex-shell .granity-service .gs-actions,
  .granity-codex-shell .granity-service-page .gsp-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .granity-codex-shell .granity-company .gc-primary,
  .granity-codex-shell .granity-company .gc-secondary,
  .granity-codex-shell .granity-contact .gc-primary,
  .granity-codex-shell .granity-contact .gc-secondary,
  .granity-codex-shell .granity-service .gs-primary,
  .granity-codex-shell .granity-service .gs-secondary,
  .granity-codex-shell .granity-service-page .gsp-primary,
  .granity-codex-shell .granity-service-page .gsp-secondary {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .granity-codex-shell .granity-company .gc-visual img,
  .granity-codex-shell .granity-company .g-card-visual,
  .granity-codex-shell .granity-contact .g-page-visual img,
  .granity-codex-shell .granity-contact .g-card-visual,
  .granity-codex-shell .granity-service .gs-hero-visual img,
  .granity-codex-shell .granity-service .gs-card img,
  .granity-codex-shell .granity-service-page .gsp-visual img,
  .granity-codex-shell .granity-service-page .g-card-visual,
  .granity-codex-shell .granity-page .g-grid article img {
    aspect-ratio: 4 / 3 !important;
  }

  .granity-codex-shell .granity-company .gc-section,
  .granity-codex-shell .granity-contact .gc-section,
  .granity-codex-shell .granity-service-page .gsp-section {
    padding-top: 38px !important;
  }

  .granity-codex-shell .granity-company .gc-card,
  .granity-codex-shell .granity-contact .gc-card,
  .granity-codex-shell .granity-service .gs-card,
  .granity-codex-shell .granity-service-page .gsp-card {
    min-height: auto !important;
    padding: 18px !important;
  }

  .granity-codex-shell .granity-company h2,
  .granity-codex-shell .granity-contact h2,
  .granity-codex-shell .granity-service h2,
  .granity-codex-shell .granity-service-page h2 {
    font-size: 27px !important;
    line-height: 1.14 !important;
  }

  .granity-codex-shell .granity-blog .gb-wrap,
  .granity-codex-shell .granity-article .ga-wrap {
    width: min(100% - 32px, 980px) !important;
    padding-inline: 0 !important;
  }

  .granity-codex-shell .granity-blog .gb-hero,
  .granity-codex-shell .granity-blog .gb-topic-grid,
  .granity-codex-shell .granity-blog .gb-grid,
  .granity-codex-shell .granity-article .ga-media-band,
  .granity-codex-shell .granity-article .ga-path-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .granity-codex-shell .granity-blog h1,
  .granity-codex-shell .granity-article h1 {
    max-width: min(340px, 100%) !important;
    font-size: 32px !important;
    line-height: 1.1 !important;
  }

  .granity-codex-shell .granity-blog .gb-lead,
  .granity-codex-shell .granity-article .ga-lead {
    max-width: min(340px, 100%) !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  .granity-codex-shell .granity-blog .gb-card,
  .granity-codex-shell .granity-blog .gb-topic,
  .granity-codex-shell .granity-article .ga-box,
  .granity-codex-shell .granity-article .ga-path,
  .granity-codex-shell .granity-article .ga-path-card,
  .granity-codex-shell .granity-article .ga-media-note {
    padding: 18px !important;
  }

  .granity-codex-shell .granity-blog .gb-card,
  .granity-codex-shell .granity-blog .gb-topic,
  .granity-codex-shell .granity-article .ga-path-card {
    min-height: auto !important;
  }

  .granity-codex-shell .granity-blog .gb-resource,
  .granity-codex-shell .granity-blog .gb-cta,
  .granity-codex-shell .granity-article .ga-cta {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .granity-codex-shell .granity-blog .gb-resource a,
  .granity-codex-shell .granity-blog .gb-cta a,
  .granity-codex-shell .granity-article .ga-cta a {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .granity-codex-shell .granity-blog .gb-hero-visual img,
  .granity-codex-shell .granity-blog .g-card-visual,
  .granity-codex-shell .granity-article .ga-hero-visual img,
  .granity-codex-shell .granity-article .ga-media-band img {
    aspect-ratio: 4 / 3 !important;
  }
}

@media (max-width: 1180px) {
  .granity-global-main {
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 18px;
  }

  .granity-global-nav {
    display: none;
  }

  .granity-mobile-menu {
    display: block;
  }
}

@media (max-width: 760px) {
  .granity-global-wrap {
    width: min(100% - 32px, 1520px);
  }

  .granity-global-top .granity-global-wrap {
    min-height: 34px;
  }

  .granity-global-mail {
    max-width: 185px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .granity-global-utility > a {
    display: none;
  }

  .granity-language-switcher {
    margin-left: 0;
  }

  .granity-language-switcher summary {
    padding-left: 0;
  }

  .granity-global-main {
    min-height: 76px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .granity-global-brand {
    min-width: 0;
  }

  .granity-global-logo {
    font-size: 26px;
  }

  .granity-global-sub {
    margin-top: 6px;
    font-size: 7px;
    letter-spacing: 1.25px;
  }

  .granity-global-search {
    display: none;
  }

  .granity-global-quote {
    display: none;
  }

  .granity-global-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 42px;
  }

  .granity-mobile-menu summary {
    width: 38px;
    min-height: 38px;
  }

  .granity-global-footer .granity-global-wrap,
  .granity-global-footer .granity-footer-wrap {
    grid-template-columns: 1fr;
  }
}
