/*
 * Giganeed UI: the home page design direction applied to every inner page.
 * Loaded after style.css and pages.css, only on body.gn-shell. See DESIGN.md.
 *
 * Flat and minimal, one orange accent, hairlines instead of shadows, Sora headlines set
 * tight and ending in the round orange dot, mono labels with an orange bar.
 */
body.gn-shell {
  --jacket: #f3f2ee;
  --rule: #d8d7d0;
  --rule-strong: #c8c7bf;
  --radius: 3px;
  --shadow: none;
  --paper: #fff;
}

/* ---------- Type ---------- */
body.gn-shell :is(h1, h2) { letter-spacing: -.03em; line-height: 1.06; }
body.gn-shell h1 { font-size: clamp(34px, 4.6vw, 62px); letter-spacing: -.035em; }
body.gn-shell h2 { font-size: clamp(28px, 3.3vw, 48px); }
body.gn-shell h3 { letter-spacing: -.02em; }
body.gn-shell :is(h1, h2, h3) .stop, body.gn-shell .stop {
  display: inline-block; width: .17em; height: .17em; margin-left: .05em; border-radius: 50%;
  background: var(--signal); color: transparent; overflow: hidden; vertical-align: baseline; line-height: 0;
}

/* ---------- Labels: a short orange bar, then clean Sentence-case label ---------- */
body.gn-shell .gn-eyebrow { gap: 10px; color: var(--graphite); font-family: var(--body); font-weight: 600; font-size: 13px; letter-spacing: 0; text-transform: none; }
body.gn-shell .gn-eyebrow::before { width: 21px; height: 3px; border-radius: 0; }
body.gn-shell .gn-tab-bar { border-radius: 0; height: 5px; }

/* ---------- Surfaces: square corners, hairlines, no shadows ---------- */
body.gn-shell :is(
  .gn-family, .gn-card, .gn-subcat, .gn-filters, .gn-empty, .gn-gallery, .gn-gallery-thumbs button, .gn-chips li, .gn-contact-card,
  .gn-ph-media img, .gn-ph-media .gn-map, .gn-split figure img, .gn-line, .gn-points .gn-pt-ico, .gn-chiprow li, .gn-steps li,
  .gn-speccard, .gn-jump a, .gn-sit-start a, .gn-sit-media > img, .gn-sit-media .gn-sit-kit, .gn-ctaband, .gn-callout,
  .gn-why-ico, .gn-sol-photo, .gn-elite-card, .gn-elite-help, .gn-notice, .gn-pagination .page-numbers, .gn-pdf, .gn-ref, code
) { border-radius: 3px; }
body.gn-shell :is(.gn-regions li, .gn-famnav-sub a) { border-radius: 3px; }
body.gn-shell :is(.gn-ph-media .gn-map, .gn-contact-card, .gn-sit-media .gn-sit-kit) { box-shadow: none; }
body.gn-shell .gn-sit-media .gn-sit-kit { border: 0; outline: 1px solid var(--rule); outline-offset: -1px; }
body.gn-shell .gn-callout { border-radius: 0; border-left: 4px solid var(--signal); background: #fff; }

/* Hover: a darker hairline and an orange top edge, instead of a lift and a shadow. */
body.gn-shell :is(.gn-family, .gn-card, .gn-subcat, .gn-speccard, .gn-sit-start a) { transition: border-color .2s ease; }
body.gn-shell :is(.gn-family, .gn-card, .gn-subcat, .gn-speccard, .gn-sit-start a):hover { transform: none; box-shadow: none; border-color: #b9b4a9; border-top-color: var(--signal); }
body.gn-shell .gn-jump a { transition: opacity .2s; }
body.gn-shell .gn-jump a:hover { opacity: .92; }

/* ---------- Page headers ---------- */
body.gn-shell :is(.gn-page-header, .gn-cat-header) { background: #f3f2ee; }
body.gn-shell :is(.gn-page-header, .gn-cat-header) p { color: #5a5954; }
body.gn-shell .gn-ph-lede { color: #5a5954; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; }
body.gn-shell .gn-pg-band { background: #f3f2ee; }
body.gn-shell .gn-pg-head > p { color: #5a5954; }

/* ---------- Figures ---------- */
body.gn-shell .gn-statline b { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; }
body.gn-shell .gn-sit-num, body.gn-shell .gn-sit-label { color: var(--conduit); }

/* ---------- Bands ---------- */
body.gn-shell .gn-ctaband { border-radius: 0; border-left: 4px solid var(--signal); background: #1d1e1b; }
body.gn-shell .gn-ctaband h2 { color: #fff; }
body.gn-shell .gn-line--elite { background: #1d1e1b; border-color: #1d1e1b; }
body.gn-shell .gn-steps li::before { font-family: var(--mono); }

/* ---------- Product and catalogue ---------- */
body.gn-shell .gn-gallery { background: #f3f2ee; }
body.gn-shell .gn-gallery-thumbs button[aria-current="true"] { box-shadow: inset 0 -3px 0 var(--signal); }
body.gn-shell .gn-keyspec { border-radius: 0; }
body.gn-shell .gn-spec-table th { font-family: var(--body); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 13.5px; }
body.gn-shell .gn-filters { background: #faf9f6; }
body.gn-shell .gn-filters .gn-btn-primary { width: 100%; }
body.gn-shell .gn-results-count { font-family: var(--body); font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 13px; font-variant-numeric: tabular-nums; }
body.gn-shell .gn-pagination .page-numbers.current { background: var(--graphite); border-color: var(--graphite); color: #fff; }

/* ---------- Buttons: the home button ---------- */
body.gn-shell .gn-btn { border-radius: 8px; }
body.gn-shell .gn-btn-primary { background: #f83800; }
body.gn-shell .gn-btn-primary:hover { background: #c42c00; }
body.gn-shell .gn-btn-secondary { background: transparent; }
body.gn-shell .gn-pdf { border-radius: 8px; }

/* ---------- Breadcrumbs ---------- */
body.gn-shell .gn-breadcrumbs { font-family: var(--body); font-weight: 500; font-size: 13px; letter-spacing: 0; text-transform: none; }
body.gn-shell :is(.gn-ph, .gn-cat-header) h1 { font-size: clamp(32px, 4.1vw, 58px); max-width: 17ch; }
body.gn-shell .gn-ph .gn-ph-grid h1 { max-width: 15ch; }

/* Working headings (filters, product copy, FAQs) stay modest; page headlines are the large ones. */
body.gn-shell :is(.gn-filters, .gn-product-copy, .gn-prose, .gn-faq-item, .gn-related) :is(h2, h3) { font-size: clamp(20px, 1.9vw, 27px); letter-spacing: -.02em; line-height: 1.18; }
body.gn-shell .gn-filters :is(h2, h3, h4) { font-size: 15px; letter-spacing: -.01em; }
body.gn-shell .gn-filters > h2, body.gn-shell .gn-filters > h3 { font: 600 12.5px/1.4 var(--body); letter-spacing: 0; text-transform: none; color: var(--conduit); }
body.gn-shell .gn-product-head h1 { font-size: clamp(28px, 3.3vw, 46px); max-width: 20ch; }
body.gn-shell .gn-related h2 { font-size: clamp(24px, 2.6vw, 38px); }

/* ---------- One frame for every page: the home page's margins ---------- */
body.gn-shell { --frame: min(100% - clamp(40px, 9vw, 160px), 1500px); }
body.gn-shell .wrap { width: var(--frame); max-width: none; margin-inline: auto; padding-inline: 0; }
body.gn-shell .wrap .wrap { width: auto; }
body.gn-shell .gn-contact, body.gn-shell [id] { scroll-margin-top: 96px; }

/* ---------- Product page: the text sits beside a reference card, not in a lonely column ---------- */
body.gn-shell .gn-product-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(32px, 5vw, 88px); align-items: start; }
body.gn-shell .gn-product-main .gn-prose, body.gn-shell .gn-product-main > * { max-width: none; }
body.gn-shell .gn-product-main { max-width: 820px; padding-block: clamp(36px, 4.5vw, 64px); font-size: 17px; line-height: 1.65; }
body.gn-shell .gn-product-main :is(h2) { margin-top: 1.9em; padding-top: 1.2em; border-top: 1px solid var(--rule); font-size: clamp(22px, 2.2vw, 30px); }
body.gn-shell .gn-product-main :is(h2):first-child { margin-top: 0; padding-top: 0; border-top: 0; }
body.gn-shell .gn-product-aside { position: sticky; top: 104px; margin-block: clamp(36px, 4.5vw, 64px); padding: 24px; display: grid; gap: 12px; background: #faf9f6; border: 1px solid var(--rule); border-top: 3px solid var(--signal); }
body.gn-shell .gn-product-aside p { margin: 0; }
body.gn-shell .gn-aside-k { font: 600 12.5px/1.4 var(--body); letter-spacing: 0; text-transform: none; color: var(--conduit); }
body.gn-shell .gn-aside-ref { font: 600 20px/1.2 var(--mono); letter-spacing: -.015em; color: var(--graphite); overflow-wrap: anywhere; }
body.gn-shell .gn-aside-name { margin-bottom: 6px !important; font-size: 15px; color: var(--steel); }
body.gn-shell .gn-aside-list { list-style: none; margin: 8px 0 0; padding: 14px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 9px; font-size: 14px; color: var(--steel); }
body.gn-shell .gn-aside-list li { position: relative; padding-left: 18px; }
body.gn-shell .gn-aside-list li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
body.gn-shell .gn-aside-more { font-weight: 600; font-size: 14px; }
@media (max-width: 960px) { body.gn-shell .gn-product-body { grid-template-columns: minmax(0, 1fr); } body.gn-shell .gn-product-aside { position: static; margin-top: 0; } }

/* ---------- About: where Giganeed works ---------- */
body.gn-shell .gn-places { list-style: none; margin: clamp(32px, 4vw, 52px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #b9b4a9; }
body.gn-shell .gn-places li { position: relative; padding: 22px 20px 4px 0; }
body.gn-shell .gn-places li + li { padding-left: 22px; border-left: 1px solid var(--rule-strong); }
body.gn-shell .gn-places li::before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
body.gn-shell .gn-places li + li::before { left: 22px; }
body.gn-shell .gn-places span { display: block; font: 600 12.5px/1.4 var(--body); letter-spacing: 0; text-transform: none; color: var(--conduit); }
body.gn-shell .gn-places b { display: block; margin: 8px 0 2px; font: 700 clamp(22px, 2.2vw, 32px)/1.12 var(--display); letter-spacing: -.025em; color: var(--graphite); }
body.gn-shell .gn-places small { font-size: 14.5px; color: var(--steel); }
@media (max-width: 760px) { body.gn-shell .gn-places { grid-template-columns: repeat(2, minmax(0, 1fr)); } body.gn-shell .gn-places li:nth-child(3) { padding-left: 0; border-left: 0; } body.gn-shell .gn-places li:nth-child(3)::before { left: 0; } body.gn-shell .gn-places li:nth-child(n + 3) { border-top: 1px solid var(--rule-strong); margin-top: 20px; } }

/* ---------- Supply: regions as a proper grid ---------- */
body.gn-shell .gn-regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
body.gn-shell .gn-regions li { justify-content: flex-start; min-height: 64px; padding: 14px 18px; background: #fff; border: 1px solid var(--rule); font: 500 14px/1.25 var(--body); letter-spacing: 0; text-transform: none; color: var(--graphite); }
@media (max-width: 560px) { body.gn-shell .gn-regions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Key specs: six facts in three columns, never an empty cell. */
body.gn-shell .gn-keyspec { grid-template-columns: repeat(3, minmax(0, 1fr)); background: transparent; border: 1px solid var(--rule); }
body.gn-shell .gn-keyspec li { background: #fff; }
@media (max-width: 560px) { body.gn-shell .gn-keyspec { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- About: how a cable is made (template-parts/about-build.php) ---------- */
body.gn-shell .gn-build { display: grid; gap: 14px; padding: clamp(16px, 1.8vw, 24px); background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--signal); --p: 100%; }
body.gn-shell .gn-build-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 600 12.5px/1.4 var(--body); letter-spacing: 0; text-transform: none; }
body.gn-shell .gn-build-k { color: var(--graphite); }
body.gn-shell .gn-build-n { color: #b23711; font-variant-numeric: tabular-nums; }
body.gn-shell .gn-build-svg { display: block; width: min(100%, 330px); height: auto; margin-inline: auto; }
body.gn-shell .gn-build-svg .gb-layer { transition: opacity .45s ease, transform .55s cubic-bezier(.3, .8, .3, 1); transform-box: fill-box; transform-origin: center; }
body.gn-shell .gn-build.is-live .gb-layer:not(.on) { opacity: 0; transform: scale(.82); }
body.gn-shell .gn-build-svg .gb-twist { transition: transform 1.1s cubic-bezier(.45, 0, .2, 1); transform-box: fill-box; transform-origin: center; transform: rotate(180deg); }
body.gn-shell .gn-build.is-live:not(.is-twisted) .gb-twist { transform: rotate(0deg); }
body.gn-shell .gn-build-cap { min-height: 5.6em; }
body.gn-shell .gn-build-cap h3 { margin: 0 0 6px; font-size: clamp(20px, 1.9vw, 26px); letter-spacing: -.02em; }
body.gn-shell .gn-build-cap p { margin: 0; color: #5a5954; font-size: 15px; line-height: 1.5; }
body.gn-shell .gn-build-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; }
body.gn-shell .gn-build-steps li { display: block; }
body.gn-shell .gn-build-desc { margin: 4px 0 12px; font-size: 14px; color: #5a5954; }
body.gn-shell .gn-build.is-live .gn-build-desc { display: none; }
body.gn-shell .gn-build:not(.is-live) .gn-build-steps { grid-template-columns: 1fr; }
body.gn-shell .gn-build:not(.is-live) .gn-build-steps button { display: flex; gap: 10px; padding: 8px 0 0; }
body.gn-shell .gn-build-steps button { position: relative; display: grid; gap: 4px; width: 100%; padding: 12px 2px 0; border: 0; border-top: 2px solid #dad8d0; background: none; color: var(--graphite); text-align: left; cursor: pointer; font: inherit; transition: border-color .3s ease; }
body.gn-shell .gn-build-steps button span { font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--conduit); }
body.gn-shell .gn-build-steps button em { font: 600 12.5px/1.2 var(--body); font-style: normal; }
body.gn-shell .gn-build-steps button::before { content: ''; position: absolute; left: 0; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: #dad8d0; transition: background .3s ease, transform .3s ease; }
body.gn-shell .gn-build-steps button.is-done { border-top-color: var(--signal); }
body.gn-shell .gn-build-steps button.is-done::before { background: var(--signal); }
body.gn-shell .gn-build-steps button[aria-current=step]::before { transform: scale(1.35); box-shadow: 0 0 0 4px #f8380026; }
body.gn-shell .gn-build-steps button[aria-current=step] span { color: #b23711; }
body.gn-shell .gn-build-steps button:hover em { color: #b23711; }
body.gn-shell .gn-build-note { margin: 0; font: 500 12px/1.4 var(--body); letter-spacing: 0; text-transform: none; color: var(--conduit); }
@media (max-width: 560px) {
  body.gn-shell .gn-build-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 16px; }
  body.gn-shell .gn-build-steps button { padding-right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  body.gn-shell .gn-build-svg .gb-layer, body.gn-shell .gn-build-svg .gb-twist { transition: none; }
}
