/*
 * xinyaele.store — wire harness product line.
 *
 * Loaded by wp-content/mu-plugins/xinya-harness.php with the theme stylesheet
 * ("xinya") as a dependency, so every token below is inherited, not redeclared.
 *
 * Tokens used from style.css:
 *   --ink #0A1F33  --navy #0F2B46  --accent #FF6B1A  --paper #F4F6F8
 *   --line #D8DEE4 --muted #5B6B7A --rule 1px
 *   --font-head "Oswald"  --font-mono "JetBrains Mono"
 *
 * Breakpoints match the theme: 1700 / 1100 / 860 / 600.
 */

/* =========================================================================
   1. Harness hero
   ========================================================================= */

.shx-section--harness-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  padding: 66px 0 58px;
}
/* Same drafting-grid overlay the theme uses on .shx-hero, so the harness hub
   reads as part of the same system rather than a bolted-on page. */
.shx-section--harness-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 38px 38px;
}
.shx-section--harness-hero > .shx-container { position: relative; z-index: 1; }

.shx-harness-hero {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}

.shx-harness-hero__copy h1 {
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin: 0 0 16px;
  max-width: 22ch;
}
.shx-harness-hero__copy .shx-eyebrow { margin-bottom: 14px; }
.shx-harness-hero__copy .shx-eyebrow a { text-decoration: none; }
.shx-harness-hero__copy .shx-eyebrow a:hover { text-decoration: underline; }

.shx-harness-hero__sub {
  font-size: 17px;
  color: #C6D3DD;
  max-width: 68ch;
  margin: 0 0 26px;
}

.shx-harness-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin: 0 0 30px;
  padding: 20px 0 0;
  border-top: var(--rule) solid #2A4862;
}
.shx-harness-hero__stats > div { display: flex; flex-direction: column; gap: 2px; }
.shx-harness-hero__stats b {
  font-family: var(--font-head);
  font-size: 30px;
  line-height: 1;
  color: var(--white);
}
.shx-harness-hero__stats span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8FA6B8;
}

.shx-harness-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}
/* On the dark panel the theme's navy button disappears — accent it instead. */
.shx-harness-hero__cta .shx-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.shx-harness-hero__cta .shx-btn:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}
.shx-harness-hero__cta .shx-btn--ghost {
  background: transparent;
  border-color: #46617A;
  color: var(--white);
}
.shx-harness-hero__cta .shx-btn--ghost:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

/* The illustration is a line drawing, so it needs a light panel to stay
   legible — the accent colours are all mid-to-dark by design. */
.shx-harness-hero__art {
  background: var(--white);
  border: var(--rule) solid rgba(255,255,255,.22);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 22px 46px rgba(0,0,0,.32);
}
.shx-harness-hero__art .shx-harness-art { display: block; width: 100%; height: auto; }

@media (min-width: 1100px) {
  .shx-harness-hero { grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 52px; }
}
@media (min-width: 1700px) {
  .shx-harness-hero { grid-template-columns: minmax(0, 1.15fr) minmax(560px, .85fr); gap: 64px; }
  .shx-harness-hero__sub { font-size: 18px; max-width: 74ch; }
}

/* =========================================================================
   2. Prose block
   ========================================================================= */

.shx-harness-prose { max-width: 92ch; }
.shx-harness-prose p { margin: 0 0 20px; font-size: 16.5px; }
.shx-harness-prose p:last-child { margin-bottom: 0; }
.shx-harness-prose strong { color: var(--ink); }

/* =========================================================================
   3. Application group tiles
   ========================================================================= */

.shx-harness-types {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr));
}

.shx-harness-type {
  display: flex;
  flex-direction: column;
  border: var(--rule) solid var(--line);
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.shx-harness-type:hover {
  transform: translateY(-3px);
  border-color: var(--hx-accent, var(--accent));
  box-shadow: 0 14px 30px rgba(10,31,51,.10);
  color: var(--ink);
}

.shx-harness-type__art {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 20 / 13;
  padding: 14px;
  background: var(--paper);
  border-bottom: var(--rule) solid var(--line);
  overflow: hidden;
}
.shx-harness-type__art .shx-harness-art { display: block; width: 100%; height: 100%; }

.shx-harness-type__body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.shx-harness-type__name {
  font-family: var(--font-head);
  font-size: 19px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--ink);
  margin-bottom: 9px;
}
.shx-harness-type__text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 16px;
}
.shx-harness-type__meta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hx-accent, var(--accent));
}
.shx-harness-type__meta::after { content: " →"; }

/* Compact variant: the "other groups" rail on an application archive. */
.shx-harness-types--compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.shx-harness-type--compact { padding: 0; }
.shx-harness-type--compact:hover { transform: none; box-shadow: none; }
.shx-harness-type--compact .shx-harness-type__body { padding: 13px 15px; }
.shx-harness-type--compact .shx-harness-type__name { font-size: 13.5px; font-family: var(--font-mono); letter-spacing: .06em; margin-bottom: 5px; }
.shx-harness-type--compact .shx-harness-type__meta { font-size: 10px; }
.shx-harness-type--compact .shx-harness-type__meta::after { content: ""; }

/* =========================================================================
   4. Four-step order process
   ========================================================================= */

.shx-harness-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  counter-reset: none;
}
.shx-harness-steps > li {
  position: relative;
  border-top: 3px solid var(--ink);
  background: var(--white);
  padding: 20px 20px 22px;
}
.shx-harness-steps__n {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 10px;
}
.shx-harness-steps strong {
  display: block;
  font-family: var(--font-head);
  font-size: 19px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: 8px;
}
.shx-harness-steps p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* =========================================================================
   5. Wire-platform split (copy + quick facts)
   ========================================================================= */

.shx-harness-split {
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.shx-harness-split h2 {
  font-family: var(--font-head);
  font-size: 28px;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin: 0 0 14px;
}
.shx-harness-split p { margin: 0 0 18px; font-size: 16.5px; max-width: 88ch; }
.shx-harness-split p:last-child { margin-bottom: 0; }

.shx-harness-facts {
  border: var(--rule) solid var(--line);
  border-top: 3px solid var(--accent);
  background: var(--paper);
  padding: 22px 24px 24px;
}
.shx-harness-facts h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.shx-harness-facts dl { margin: 0; display: grid; gap: 0; }
.shx-harness-facts dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 0 2px;
  border-top: var(--rule) dotted var(--line);
}
.shx-harness-facts dt:first-of-type { border-top: 0; padding-top: 0; }
.shx-harness-facts dd { margin: 0; font-size: 15px; padding-bottom: 10px; }

@media (min-width: 1100px) {
  .shx-harness-split { grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 46px; }
}

/* =========================================================================
   6. Single harness line — figure, side block, wire list
   ========================================================================= */

.shx-harness-figure {
  border: var(--rule) solid var(--line);
  background: var(--paper);
  padding: 16px;
}
.shx-harness-figure .shx-harness-art { display: block; width: 100%; height: auto; }

.shx-harness-sideblock {
  margin-top: 24px;
  border: var(--rule) solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--paper);
  padding: 16px 18px 18px;
}
.shx-harness-sideblock h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 8px;
}
.shx-harness-sideblock p { margin: 0 0 10px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.shx-harness-sideblock a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
}
.shx-harness-sideblock a:hover { color: var(--accent); }

/* Two-column link list of the real wire lines each harness is built on. */
.shx-harness-wirelist {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.shx-harness-wirelist li {
  border: var(--rule) solid var(--line);
  background: var(--paper);
  padding: 11px 14px;
}
.shx-harness-wirelist a {
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
}
.shx-harness-wirelist a:hover { color: var(--accent); text-decoration: underline; }

/* Keep the full-bleed reading column in check, and mirror the wire page's
   three-column arrangement once the viewport is genuinely wide. */
@media (min-width: 1100px) {
  .shx-harness-single .shx-product-layout > div:first-child > .shx-product-description { max-width: 92ch; }
}
@media (min-width: 1700px) {
  .shx-harness-single .shx-product-layout > div:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 38px;
    align-items: start;
  }
  .shx-harness-single .shx-product-layout > div:first-child > .shx-harness-figure { grid-column: 1; grid-row: 1; }
  .shx-harness-single .shx-product-layout > div:first-child > .shx-notice        { grid-column: 1; grid-row: 2; }
  .shx-harness-single .shx-product-layout > div:first-child > .shx-product-description {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
    max-width: 92ch;
  }
  .shx-harness-figure .shx-harness-art { max-width: 720px; margin: 0 auto; }
}

/* =========================================================================
   7. FAQ
   ========================================================================= */

.shx-faq {
  max-width: 96ch;
  border-top: var(--rule) solid var(--line);
}
.shx-faq details { border-bottom: var(--rule) solid var(--line); background: var(--white); }
.shx-faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 17px 46px 17px 0;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}
.shx-faq summary::-webkit-details-marker { display: none; }
.shx-faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 15px;
  font-family: var(--font-mono);
  font-size: 19px;
  line-height: 1;
  color: var(--accent);
  transition: transform .18s ease;
}
.shx-faq details[open] summary::after { content: "\2212"; }
.shx-faq summary:hover { color: var(--navy); }
.shx-faq details > p {
  margin: 0;
  padding: 0 46px 20px 0;
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--muted);
}

/* =========================================================================
   8. Catalogue card overrides
   ========================================================================= */

.shx-card--harness .shx-card__family { color: var(--hx-accent, var(--accent)); }

.shx-card__media--art {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.shx-card__media--art a { display: flex; width: 100%; height: 100%; }
.shx-card__media--art .shx-harness-art { display: block; width: 100%; height: 100%; }
.shx-card--harness .shx-card__title a { display: block; }

/* The illustration carries its own accent, so the hover lift on an image is
   replaced with a border tint that matches the application group. */
.shx-card--harness:hover { border-color: var(--hx-accent, #C7D1DA); }

/* =========================================================================
   9. Responsive fallbacks
   ========================================================================= */

@media (max-width: 860px) {
  .shx-section--harness-hero { padding: 48px 0 44px; }
  .shx-harness-hero { gap: 30px; }
  .shx-harness-hero__art { box-shadow: 0 14px 30px rgba(0,0,0,.28); }
  .shx-harness-hero__stats { gap: 12px 28px; }
  .shx-harness-hero__stats b { font-size: 26px; }
  .shx-harness-prose p,
  .shx-harness-split p { font-size: 16px; }
}

@media (max-width: 600px) {
  .shx-section--harness-hero { padding: 38px 0 34px; }
  .shx-harness-hero { gap: 24px; }
  .shx-harness-hero__copy h1 { max-width: 100%; font-size: clamp(27px, 9vw, 34px); overflow-wrap: anywhere; }
  .shx-harness-hero__sub { font-size: 15.5px; }
  .shx-harness-hero__stats { gap: 10px 22px; padding-top: 16px; }
  .shx-harness-hero__stats b { font-size: 23px; }
  .shx-harness-hero__cta { flex-direction: column; align-items: stretch; }
  .shx-harness-hero__cta .shx-btn { width: 100%; text-align: center; }
  .shx-harness-hero__art { padding: 8px; border-radius: 12px; }

  .shx-harness-types,
  .shx-harness-types--compact,
  .shx-harness-steps,
  .shx-harness-wirelist { grid-template-columns: 1fr; }

  .shx-harness-steps > li { padding: 16px 16px 18px; }
  .shx-harness-split h2 { font-size: 24px; }
  .shx-harness-facts { padding: 18px 18px 20px; }

  .shx-faq summary { font-size: 15.5px; padding: 15px 40px 15px 0; }
  .shx-faq details > p { padding-right: 0; font-size: 15px; }
}

/* 10. Real photographs (media library, Oct 2026) -------------------- */
.shx-harness-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: var(--paper);
}
.shx-card__media--art .shx-harness-photo { border-radius: 10px; }
.shx-harness-hero__art .shx-harness-photo,
.shx-harness-figure .shx-harness-photo { border-radius: 14px; }

/* 11. Visible breadcrumb + application-page long-form copy (Oct 2026) */
.shx-breadcrumb {
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: .04em;
	margin: 0 0 20px;
}
.shx-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.shx-breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.shx-breadcrumb a {
	color: var(--muted);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}
.shx-breadcrumb a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.shx-breadcrumb [aria-current="page"] { color: var(--ink); }
.shx-breadcrumb__sep { color: var(--line); }

/* The same trail, inverted, on the dark harness hero. */
.shx-section--harness-hero .shx-breadcrumb a { color: #9FB3C4; }
.shx-section--harness-hero .shx-breadcrumb a:hover { color: var(--accent); }
.shx-section--harness-hero .shx-breadcrumb [aria-current="page"] { color: #EAF1F7; }
.shx-section--harness-hero .shx-breadcrumb__sep { color: #3B556E; }

/* Long-form application copy: a slightly shorter measure reads better at
   six paragraphs, with the opening paragraph set as a lead. */
.shx-harness-prose { max-width: 86ch; }
.shx-harness-prose p:first-child {
	font-size: 18.5px;
	line-height: 1.62;
	color: var(--navy);
}

@media (max-width: 860px) {
	.shx-breadcrumb { font-size: 11.5px; margin-bottom: 16px; }
	.shx-harness-prose p:first-child { font-size: 17px; }
}
