/* Customization hub (custom, decoration, fabrics, trims, labels-packaging, custom-sizing).
   Spec Sheet direction: numbered codes, mono labels, hard rules, one blue accent.
   Every selector is scoped to cz-* classes rendered only by these templates. */

/* ---------- hero: what, for whom, where, price basis, how ---------- */
.cz-hero { padding-block: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 48px); }
.cz-hero .crumbs ol { margin-bottom: clamp(14px, 2vw, 22px); align-items: center; }
/* Touch rules give the crumb link a 44px box; keep the "/" and current page on its center line. */
.cz-hero .crumbs li { display: inline-flex; align-items: center; }
.cz-hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.cz-hero h1.display { font-size: clamp(2rem, 4.3vw, 3.4rem); max-width: 18ch; }
.cz-line { margin: 18px 0 0; padding-left: 14px; border-left: 3px solid var(--accent); max-width: 58ch; font-size: clamp(1.08rem, 1.6vw, 1.26rem); line-height: 1.5; font-weight: 500; color: var(--ink); }
.cz-lede { margin: 12px 0 0; padding-left: 17px; max-width: 60ch; font-size: .98rem; color: var(--ink-2); }
.cz-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cz-hero .custom-strip-lg { margin-top: 20px; }

.cz-sheet { background: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cz-sheet-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--navy); color: #dfe6f2; font: 500 .66rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.cz-sheet-head span:last-child { color: #9db6ff; text-align: right; }
.cz-sheet dl { margin: 0; }
.cz-sheet dl div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 10px 14px; border-top: 1px solid var(--rule); }
.cz-sheet dl div:first-child { border-top: 0; }
.cz-sheet dt { padding-top: 2px; font: 500 .64rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.cz-sheet dd { margin: 0; font-size: .88rem; line-height: 1.45; color: var(--ink); }
.cz-sheet .is-key { background: var(--accent-soft); }
.cz-sheet .is-key dt { color: var(--accent-ink); }
.cz-sheet .is-key dd { font-weight: 600; }

.cz-how { list-style: none; margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 20px; }
.cz-how li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-content: start; padding-top: 14px; border-top: 2px solid var(--ink); }
.cz-how .n { grid-row: span 2; font: 600 .76rem/1.5 var(--f-mono); color: var(--accent-ink); }
.cz-how b { font: 600 1rem/1.3 var(--f-display); }
.cz-how .t { font-size: .86rem; line-height: 1.45; color: var(--ink-2); }

@media (max-width: 960px) {
  .cz-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .cz-sheet { max-width: 640px; }
  .cz-how { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
}
@media (max-width: 520px) {
  .cz-line { padding-left: 12px; }
  .cz-lede { padding-left: 15px; }
  .cz-cta .btn { flex: 1 1 100%; justify-content: center; }
  .cz-sheet dl div { grid-template-columns: 78px minmax(0, 1fr); gap: 10px; padding: 9px 12px; }
  .cz-sheet-head { padding: 9px 12px; }
  .cz-sheet-head span:last-child { display: none; }
  .cz-how { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

.cz-sec-h { margin-bottom: 18px; }
.cz-sec-h .eyebrow { margin-bottom: 8px; }
.cz-sec-h h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }

/* ---------- decoration methods ---------- */
.cz-filter { margin-bottom: 4px; }
.cz-group { margin-top: clamp(24px, 3.5vw, 40px); }
.cz-group[hidden] { display: none; }
.cz-group-h { display: flex; align-items: baseline; gap: 14px; padding-bottom: 10px; margin-bottom: 16px; border-bottom: 1px solid var(--ink); }
.cz-group-h .n { font: 600 .8rem/1 var(--f-mono); color: var(--accent-ink); }
.cz-group-h h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.cz-group-h .c { margin-left: auto; font: 500 .68rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }

.cz-methods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cz-method { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.cz-method-img { position: relative; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; }
.cz-method-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cz-method-ph { position: absolute; inset: 0; display: grid; place-items: center; font: 600 1.6rem/1 var(--f-mono); color: var(--rule-strong); background-image: radial-gradient(var(--rule) 1px, transparent 1.4px); background-size: 10px 10px; }
.cz-code { position: absolute; left: 10px; top: 10px; padding: 4px 7px; border-radius: 4px; background: rgba(255, 255, 255, .94); color: var(--ink); font: 600 .64rem/1 var(--f-mono); letter-spacing: .06em; }
.cz-method-body { padding: 14px 16px 16px; display: grid; gap: 10px; align-content: start; }
.cz-method-body h3 { font-size: 1.04rem; line-height: 1.25; }
.cz-method-body dl { margin: 0; display: grid; }
.cz-method-body dl div { display: grid; gap: 3px; padding: 8px 0; border-top: 1px dashed var(--rule-strong); }
.cz-method-body dl div:last-child { padding-bottom: 0; }
.cz-method-body dt { font: 500 .6rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.cz-method-body dd { margin: 0; font-size: .86rem; line-height: 1.45; color: var(--ink-2); }
.cz-method-body .is-limit dt { color: var(--warn); }
.cz-method-body .is-limit dd { color: var(--ink); }

@media (max-width: 1100px) { .cz-methods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .cz-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .cz-methods { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cz-method { display: grid; grid-template-columns: 112px minmax(0, 1fr); border-radius: var(--radius); }
  .cz-method-img { aspect-ratio: auto; min-height: 112px; }
  .cz-method-img img { position: absolute; inset: 0; }
  .cz-code { left: 6px; top: 6px; font-size: .58rem; padding: 3px 5px; }
  .cz-method-body { padding: 12px 14px; gap: 6px; }
  .cz-method-body dl div { padding: 6px 0; }
  .cz-method-body dd { font-size: .82rem; }
}

.cz-table td { white-space: normal; }
.cz-table td:first-child { font-weight: 500; color: var(--ink); }

/* ---------- fabric library ---------- */
.cz-fab { padding: 0; display: flex; flex-direction: column; }
.cz-fab[hidden] { display: none; }
.cz-fab-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--rule); background: var(--surface-2); }
.cz-fab-head .code { flex: none; white-space: nowrap; font: 600 .74rem/1 var(--f-mono); color: var(--accent-ink); }
.cz-fab-head .tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.cz-fab-head i { font: 500 .6rem/1 var(--f-mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px; border: 1px solid var(--rule-strong); border-radius: 4px; background: var(--surface); color: var(--ink-2); }
.cz-fab-head i.is-sub { background: var(--accent-soft); border-color: #c4d2f6; color: var(--accent-ink); }
.cz-fab-top { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px 16px 6px; align-items: start; }
.fabric-card.cz-fab .cz-fab-top img { width: 72px; height: 72px; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.cz-swatch { width: 72px; height: 72px; border-radius: 8px; border: 1px solid var(--rule); background-color: var(--surface-2); }
.cz-swatch.is-knit { background-image: radial-gradient(var(--rule-strong) 1.2px, transparent 1.6px); background-size: 7px 7px; }
.cz-swatch.is-woven { background-image: repeating-linear-gradient(0deg, var(--rule) 0 1px, transparent 1px 6px), repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 6px); }
.cz-swatch.is-bonded { background-image: repeating-linear-gradient(0deg, var(--rule-strong) 0 1px, transparent 1px 10px); }
.cz-fab-top .h3 { font-size: 1.1rem; }
.cz-fab-top p { margin: 4px 0 0; font-size: .88rem; line-height: 1.45; color: var(--ink-2); }
.cz-gsm { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 16px; }
.cz-gsm .l { font: 500 .6rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.cz-gsm .bar { position: relative; height: 6px; border-radius: 3px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--rule); }
.cz-gsm .bar i { position: absolute; top: 0; bottom: 0; left: var(--a); right: calc(100% - var(--b)); min-width: 6px; border-radius: 3px; background: var(--accent); }
.cz-gsm b { font: 600 .82rem/1 var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cz-gsm small { font-weight: 500; color: var(--ink-2); }
.cz-fab .kv { padding: 0 16px 10px; margin-top: auto; }
.cz-fab .kv div { font-size: .84rem; gap: 12px; }
.cz-fab .kv dd { max-width: 66%; }

/* ---------- spec cards (trims, labels, sizing, finishes) ---------- */
.cz-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.cz-cards-fin { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; }
.cz-card { min-width: 0; padding: 18px 20px 20px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.band-alt .cz-card { background: var(--bg); box-shadow: none; }
.cz-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.cz-card-head .code { font: 600 .72rem/1 var(--f-mono); color: var(--accent-ink); }
.cz-card-head .c { font: 500 .62rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.cz-card .h3, .cz-card h3 { margin: 14px 0 8px; font-size: 1.16rem; }
.cz-card > p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.cz-list { list-style: none; margin: 0; padding: 0; }
.cz-list li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule); font-size: .92rem; line-height: 1.45; }
.cz-list li:first-child { border-top: 0; }
.cz-list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .55em; background: var(--accent); }
@media (max-width: 1000px) { .cz-cards-fin { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cz-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cz-cards, .cz-cards-fin { grid-template-columns: minmax(0, 1fr); gap: 10px; } .cz-card { padding: 16px; } }

/* ---------- hover, only for real pointers and motion-OK users ----------
   The lift uses the individual translate property, not transform: GSAP reveals leave an
   inline transform on these cards, which would cancel a transform-based lift. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cz-method, .cz-card, .cz-fab { transition: border-color .2s, box-shadow .3s, translate .3s var(--ease); }
  .cz-method-img img { transition: transform .5s var(--ease); }
  .cz-method:hover, .cz-card:hover, .cz-fab:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); translate: 0 -3px; }
  .cz-method:hover .cz-method-img img { transform: scale(1.04); }
}
