/*
 * Company pages: About, Worldwide supply, Solutions.
 * Loaded on those three pages only. Uses the theme's tokens and graphic kit.
 */

/* ==========================================================================
   Page hero: text and a picture, on Jacket Grey with the metre scale
   ========================================================================== */

.gn-ph { padding-block: clamp(36px, 5vw, 64px) calc(clamp(36px, 5vw, 64px) + 14px); }
.gn-ph-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.gn-ph h1 { max-width: 16ch; margin-bottom: .4em; }
.gn-ph-lede { font-size: clamp(17px, 1.4vw, 19px) !important; color: var(--steel) !important; max-width: 52ch; }
.gn-ph-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.gn-ph-media { position: relative; margin: 0; }
.gn-ph-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.gn-ph-media .gn-map { background: #fff; border-radius: 12px; padding: 18px 14px 10px; box-shadow: var(--shadow); }
@media (max-width: 900px) { .gn-ph-grid { grid-template-columns: minmax(0, 1fr); } .gn-ph h1 { max-width: none; } }

/* Jump cards in the Solutions hero: one per situation. */
.gn-jump { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gn-jump a { position: relative; display: block; overflow: hidden; border-radius: 10px; text-decoration: none; color: #fff; aspect-ratio: 4 / 3; background: var(--graphite); }
.gn-jump img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gn-jump a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,0) 35%, rgba(20,20,20,.82) 100%); }
.gn-jump span { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; gap: 4px; font: 600 16px/1.2 var(--display); letter-spacing: -.01em; }
.gn-jump small { font: 600 12px/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--amber); }
.gn-jump a:hover img { transform: scale(1.04); }

/* ==========================================================================
   Building blocks
   ========================================================================== */

.gn-pg-section { padding-block: clamp(52px, 6.5vw, 92px); }
.gn-pg-band { background: var(--jacket); }
.gn-pg-dark { background: var(--graphite); color: #D8D3CE; }
.gn-pg-dark h2, .gn-pg-dark h3 { color: #fff; }
.gn-pg-dark .gn-eyebrow { color: var(--amber); }
.gn-pg-dark :focus-visible { outline-color: var(--amber); }

/* Heading row: statement left, a line of context right. */
.gn-pg-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px clamp(32px, 5vw, 72px); align-items: end; margin-bottom: clamp(30px, 4vw, 48px); }
.gn-pg-head h2 { margin: 0; }
.gn-pg-head p { margin: 0; color: var(--steel); font-size: 17px; max-width: 56ch; }
.gn-pg-dark .gn-pg-head p { color: #CFCAC5; }
@media (max-width: 860px) { .gn-pg-head { grid-template-columns: minmax(0, 1fr); } }

/* Stat strip under the hero. */
.gn-statline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.gn-statline > div { padding: 26px 24px 26px 0; }
.gn-statline > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.gn-statline b { display: block; font: 600 clamp(28px, 3vw, 40px)/1 var(--display); letter-spacing: -.035em; color: var(--graphite); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.gn-statline span { font-size: 14.5px; color: var(--conduit); }
@media (max-width: 760px) {
  .gn-statline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gn-statline > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .gn-statline > div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}

/* Two columns: text and an aside or a picture. */
.gn-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.gn-split--center { align-items: center; }
.gn-split p { font-size: 17px; }
.gn-split figure { margin: 0; }
.gn-split figure img { display: block; width: 100%; height: auto; border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; }
.gn-split figcaption { margin-top: 10px; font: 400 12.5px/1.5 var(--mono); color: var(--conduit); }
@media (max-width: 900px) { .gn-split { grid-template-columns: minmax(0, 1fr); } }

/* Family rows: what we make, with counts and links. */
.gn-famrows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--graphite); }
.gn-famrows a { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--graphite); transition: background-color .15s ease; }
.gn-famrows a:hover { background: #fff; }
.gn-famrows .gn-tab-bar { width: 22px; }
.gn-famrows strong { display: block; font: 600 18px/1.25 var(--display); letter-spacing: -.012em; }
.gn-famrows small { display: block; margin-top: 3px; font-size: 14px; color: var(--conduit); }
.gn-famrows em { font: 500 12.5px/1 var(--mono); font-style: normal; color: var(--deep); white-space: nowrap; }

/* Two lines: standard and Elite, side by side. */
.gn-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gn-line { border: 1px solid var(--rule); border-radius: 12px; padding: clamp(24px, 3vw, 36px); background: #fff; display: flex; flex-direction: column; gap: 12px; }
.gn-line h3 { margin: 0; font-size: 22px; }
.gn-line p { margin: 0; color: var(--steel); }
.gn-line ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.gn-line li { position: relative; padding-left: 18px; font-size: 15px; color: var(--steel); }
.gn-line li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.gn-line .gn-line-links { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.gn-line .gn-line-links a { font-weight: 600; font-size: 15px; text-decoration: none; }
.gn-line .gn-line-links a:hover { text-decoration: underline; }
.gn-line--elite { background: var(--graphite); border-color: var(--graphite); color: #D8D3CE; }
.gn-line--elite h3 { color: #fff; }
.gn-line--elite p, .gn-line--elite li { color: #CFCAC5; }
.gn-line--elite .gn-line-links a { color: var(--amber); }
.gn-line-tag { font: 600 12.5px/1.2 var(--body); letter-spacing: 0; text-transform: none; color: var(--conduit); }
.gn-line--elite .gn-line-tag { color: var(--amber); }
@media (max-width: 760px) { .gn-lines { grid-template-columns: minmax(0, 1fr); } }

/* Points: icon tile, title, text. */
.gn-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.gn-points li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; }
.gn-points .gn-pt-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--jacket); color: var(--graphite); }
.gn-pg-band .gn-points .gn-pt-ico { background: #fff; }
.gn-points .gn-pt-ico .gn-icon { width: 40px; height: 40px; }
.gn-points h3 { margin: 2px 0 4px; font-size: 18px; }
.gn-points p { margin: 0; font-size: 15.5px !important; color: var(--steel); }

.gn-chiprow { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gn-chiprow li { font: 500 13px/1 var(--body); letter-spacing: 0; padding: 9px 11px; border-radius: 6px; background: #fff; border: 1px solid var(--rule-strong); color: var(--graphite); }
.gn-pg-dark .gn-chiprow li { background: transparent; border-color: #55514D; color: #E9E5E1; }

/* Callout, as the datasheet's conductor note: Copper Amber rule. */
.gn-callout { margin: 26px 0 0; padding: 18px 22px; border-left: 3px solid var(--amber); background: #fff; border-radius: 0 8px 8px 0; font-size: 15.5px; color: var(--steel); }
.gn-pg-band .gn-callout { background: #fff; }
.gn-callout strong { color: var(--graphite); }

/* Numbered steps. */
.gn-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.gn-steps li { counter-increment: step; position: relative; padding: 24px 22px 26px; border-radius: 12px; background: #fff; border: 1px solid var(--rule); }
.gn-steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 600 13px/1 var(--body); letter-spacing: .02em; color: var(--deep); margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.gn-steps h3 { margin: 0 0 8px; font-size: 18px; }
.gn-steps p { margin: 0; font-size: 15px; color: var(--steel); }
@media (max-width: 1000px) { .gn-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gn-steps { grid-template-columns: minmax(0, 1fr); } }

/* Spec cards: what gets specified most often. */
.gn-speccards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.gn-speccard { display: flex; flex-direction: column; gap: 12px; overflow: hidden; border-radius: 12px; border: 1px solid var(--rule); background: #fff; text-decoration: none; color: inherit; transition: box-shadow .15s ease, transform .15s ease; }
.gn-speccard:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.gn-speccard img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--jacket); }
.gn-speccard-body { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 20px; flex: 1; }
.gn-speccard h3 { margin: 0; font-size: 18px; }
.gn-speccard p { margin: 0; font-size: 15px; color: var(--steel); }
.gn-speccard em { margin-top: auto; padding-top: 4px; font: 600 14.5px/1 var(--body); font-style: normal; color: var(--deep); }
@media (max-width: 1000px) { .gn-speccards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gn-speccards { grid-template-columns: minmax(0, 1fr); } }

.gn-twocol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gn-twocol .gn-callout { margin: 0; }
.gn-twocol h3 { margin: 0 0 8px; font-size: 19px; }
@media (max-width: 760px) { .gn-twocol { grid-template-columns: minmax(0, 1fr); } }

.gn-regions { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gn-regions li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--rule-strong); font: 600 14.5px/1 var(--body); color: var(--graphite); }
.gn-regions li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }

/* ==========================================================================
   Solutions: one section per situation
   ========================================================================== */

.gn-sit { padding-block: clamp(52px, 6.5vw, 92px); scroll-margin-top: 90px; }
.gn-sit + .gn-sit { border-top: 1px solid var(--rule); }
.gn-sit:nth-of-type(even) { background: var(--jacket); }
.gn-sit-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.gn-sit:nth-of-type(even) .gn-sit-media { order: -1; }
.gn-sit-num { display: block; font: 600 12.5px/1 var(--body); letter-spacing: .02em; color: var(--deep); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.gn-sit h2 { margin: 0 0 12px; }
.gn-sit-lead { font-size: 18px; color: var(--graphite); margin: 0 0 22px; }
.gn-sit-points { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 14px; }
.gn-sit-points li { position: relative; padding-left: 22px; font-size: 16px; color: var(--steel); }
.gn-sit-points li::before { content: ""; position: absolute; left: 1px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.gn-sit-label { font: 600 12.5px/1.2 var(--body); letter-spacing: 0; text-transform: none; color: var(--conduit); margin: 0 0 10px; }
.gn-sit-start { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gn-sit-start a { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 16px; border-radius: 8px; border: 1px solid var(--rule); background: #fff; text-decoration: none; color: var(--graphite); font-weight: 600; transition: border-color .15s ease, box-shadow .15s ease; }
.gn-sit-start a:hover { border-color: var(--graphite); box-shadow: var(--shadow); }
.gn-sit-start .gn-tab-bar { width: 20px; }
.gn-sit-start em { font: 500 12px/1 var(--mono); font-style: normal; color: var(--conduit); }
.gn-sit-media { position: relative; margin: 0; }
.gn-sit-media > img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 12px; }
.gn-sit-media .gn-sit-kit { position: absolute; right: -14px; bottom: -22px; width: 42%; border-radius: 10px; border: 4px solid #fff; box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; background: #111; }
.gn-sit:nth-of-type(even) .gn-sit-kit { right: auto; left: -14px; border-color: var(--jacket); }
.gn-sit-media .gn-chiprow { position: absolute; left: 16px; top: 16px; margin: 0; }
.gn-sit-media .gn-chiprow li { background: rgba(255,255,255,.94); border-color: transparent; }
@media (max-width: 900px) {
  .gn-sit-grid { grid-template-columns: minmax(0, 1fr); }
  .gn-sit:nth-of-type(even) .gn-sit-media { order: 0; }
  .gn-sit-media .gn-sit-kit, .gn-sit:nth-of-type(even) .gn-sit-kit { right: 12px; left: auto; bottom: -18px; width: 34%; }
}

/* ==========================================================================
   Closing band
   ========================================================================== */

.gn-ctaband { background: var(--graphite); color: #D8D3CE; border-radius: 14px; padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: center; }
.gn-ctaband h2 { color: #fff; margin: 0 0 8px; font-size: clamp(22px, 2.4vw, 30px); }
.gn-ctaband p { margin: 0; color: #CFCAC5; max-width: 64ch; }
.gn-ctaband :focus-visible { outline-color: var(--amber); }
@media (max-width: 760px) { .gn-ctaband { grid-template-columns: minmax(0, 1fr); } }

/* On white sections a callout sits on Jacket Grey. */
.gn-pg-section:not(.gn-pg-band) .gn-callout { background: var(--jacket); }
.gn-callout h3 { margin: 0 0 8px; font-size: 19px; }
.gn-callout p { margin: 0; }
