/* ============================================================================
   "Where Quality Speaks for Us" — homepage brand section        (2026-09-28)

   Markup: templates/_partials/home-quality.tpl, placed by index.tpl below the
   "Popular Products" rail. Loaded after home-premium.css, whose #index tokens
   (--sk-*) it uses.

   Direction: an editorial panel, not a card grid. Left, the brand statement;
   right, an index of what the company builds — numbered rows with a small
   photo, a one-line description and one arrow, separated by hairlines. Pink +
   white only (no gold, no gradients), Playfair for the one headline, Inter for
   everything else, 44px+ targets, hover effects only for real mouse pointers.

   MOBILE FIRST: the base rules are the phone layout; wider screens add to it.
     < 600px   one column; machine rows full width
     600-991   intro on top, machine rows in two columns underneath
     >= 992    two columns side by side (statement | index)
   ========================================================================== */

/* The section's own vertical rhythm — a little tighter than the other bands.
   Must out-rank home-premium.css `#index .page-home > section.sk-band`
   (0,3,1, !important). */
#index .page-home > section.sk-band.sk-wqs {
  /* The homepage's one band rhythm (home-align-premium.css sets the value). */
  padding-block: var(--sk-section-y, clamp(1.75rem, 3.4vw, 3rem)) !important;
  background: var(--sk-paper, #fff);
}

#index .sk-wqs__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--sk-pink-line, #f0dce8);
  border-radius: 16px;
  background: #fff;
}

/* ---------- Statement ---------- */
#index .sk-wqs__intro {
  position: relative;
  padding: 1.5rem 1.125rem 1rem;
}

/* One sharp pink stroke on the panel's top edge, above the statement only. */
#index .sk-wqs__intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.125rem;
  width: 56px;
  height: 3px;
  border-radius: 0 0 2px 2px;
  background: var(--sk-pink, #d50075);
}

#index .sk-wqs__eyebrow {
  margin: 0 0 0.6rem;
  color: var(--sk-pink, #d50075);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

#index .sk-wqs__title {
  margin: 0;
  color: var(--sk-ink, #1a0010);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.25rem);
  font-weight: 600;
  font-variant-numeric: lining-nums;
  letter-spacing: -0.015em;
  line-height: 1.12;
  text-wrap: balance;
}

#index .sk-wqs__title em {
  color: var(--sk-pink, #d50075);
  font-style: italic;
}

#index .sk-wqs__lead {
  margin: 0.6rem 0 0;
  color: var(--sk-ink, #1a0010);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
}

#index .sk-wqs__body {
  max-width: 46ch;
  margin: 0.4rem 0 0;
  color: var(--sk-ink-soft, #5c4453);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
}

#index .sk-wqs__pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0.9rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--sk-pink-line, #f0dce8);
  list-style: none;
}

#index .sk-wqs__pillars li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sk-ink, #1a0010);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

#index .sk-wqs__pillars li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--sk-pink, #d50075);
  transform: rotate(45deg);
}

#index .sk-wqs__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  margin-top: 0.25rem;
  color: var(--sk-pink, #d50075);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

#index .sk-wqs__more svg,
#index .sk-wqs__arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Index of machines ---------- */
#index .sk-wqs__range {
  padding: 0 1.125rem 0.25rem;
  border-top: 1px solid var(--sk-pink-line, #f0dce8);
}

#index .sk-wqs__label {
  margin: 1rem 0 0.1rem;
  color: var(--sk-ink-mute, #7d6473);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

#index .sk-wqs__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

#index .sk-wqs__row { margin: 0; }
#index .sk-wqs__row + .sk-wqs__row { border-top: 1px solid var(--sk-pink-line, #f0dce8); }

#index .sk-wqs__item {
  display: grid;
  grid-template-columns: auto 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 66px;
  padding: 0.5rem 0;
  border-radius: 12px;
  color: var(--sk-ink, #1a0010);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

#index .sk-wqs__num {
  width: 1.4rem;
  color: var(--sk-pink, #d50075);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

#index .sk-wqs__thumb {
  display: block;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid var(--sk-pink-line, #f0dce8);
  border-radius: 10px;
  background: #fff;
}

#index .sk-wqs__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 3px;
  object-fit: contain;
}

#index .sk-wqs__text { display: block; min-width: 0; }

#index .sk-wqs__name {
  display: block;
  color: var(--sk-ink, #1a0010);
  font-size: 0.9688rem;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.2s ease;
}

#index .sk-wqs__desc {
  display: block;
  margin-top: 0.15rem;
  color: var(--sk-ink-mute, #7d6473);
  font-size: 0.8125rem;
  line-height: 1.4;
}

#index .sk-wqs__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sk-pink, #d50075);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* On narrow phones the arrow alone carries the row; the words stay in the
   link's accessible name. */
#index .sk-wqs__cta-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#index .sk-wqs__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--sk-pink-line, #f0dce8);
  border-radius: 50%;
  background: #fff;
  color: var(--sk-pink, #d50075);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#index .sk-wqs__item:active .sk-wqs__arrow {
  background: var(--sk-pink, #d50075);
  border-color: var(--sk-pink, #d50075);
  color: #fff;
}

#index .sk-wqs__item:focus-visible,
#index .sk-wqs__more:focus-visible {
  outline: 2px solid var(--sk-pink, #d50075);
  outline-offset: 3px;
  border-radius: 10px;
}

@media (hover: hover) {
  #index .sk-wqs__item:hover .sk-wqs__name { color: var(--sk-pink, #d50075); }
  #index .sk-wqs__item:hover .sk-wqs__arrow {
    background: var(--sk-pink, #d50075);
    border-color: var(--sk-pink, #d50075);
    color: #fff;
    transform: translateX(2px);
  }
  #index .sk-wqs__more:hover { color: var(--sk-pink-dark, #9e0056); }
}

/* ---------- Small phones ---------- */
@media (max-width: 359.98px) {
  #index .sk-wqs__num { display: none; }
  #index .sk-wqs__item { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 0.7rem; }
}

/* ---------- Larger phones / small tablets: words beside the arrow ---------- */
@media (min-width: 480px) {
  #index .sk-wqs__cta-label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
}

/* ---------- Tablets: machines in two columns under the statement ---------- */
@media (min-width: 600px) {
  #index .sk-wqs__intro { padding: 2rem 2rem 1.25rem; }
  #index .sk-wqs__intro::before { left: 2rem; }
  #index .sk-wqs__range { padding: 0 2rem 0.5rem; }
  #index .sk-wqs__item { grid-template-columns: auto 56px minmax(0, 1fr) auto; gap: 0.85rem; min-height: 74px; }
  #index .sk-wqs__thumb { width: 56px; height: 56px; }
}

@media (min-width: 720px) {
  #index .sk-wqs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
  /* In two columns the hairline sits on every row but the first of each column. */
  #index .sk-wqs__row + .sk-wqs__row { border-top: 0; }
  #index .sk-wqs__row:nth-child(n+3) { border-top: 1px solid var(--sk-pink-line, #f0dce8); }
  #index .sk-wqs__cta-label { display: none; }
}

/* ---------- Desktop: statement | index, side by side ---------- */
@media (min-width: 992px) {
  #index .sk-wqs__panel { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  #index .sk-wqs__intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.75rem 2.75rem 2.5rem;
  }
  #index .sk-wqs__intro::before { left: 2.75rem; }
  #index .sk-wqs__range {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2.75rem;
    border-top: 0;
    border-left: 1px solid var(--sk-pink-line, #f0dce8);
    background: var(--sk-wash, #fdfbfc);
  }
  #index .sk-wqs__label { margin-top: 0; }
  #index .sk-wqs__list { grid-template-columns: minmax(0, 1fr); }
  #index .sk-wqs__row:nth-child(n+3) { border-top: 0; }
  #index .sk-wqs__row + .sk-wqs__row { border-top: 1px solid var(--sk-pink-line, #f0dce8); }
  #index .sk-wqs__item { grid-template-columns: auto 68px minmax(0, 1fr) auto; min-height: 86px; }
  #index .sk-wqs__thumb { width: 68px; height: 68px; }
  #index .sk-wqs__cta-label { display: inline; }
}

@media (min-width: 1200px) {
  #index .sk-wqs__intro { padding: 3rem 3.5rem 2.75rem; }
  #index .sk-wqs__intro::before { left: 3.5rem; }
  #index .sk-wqs__range { padding: 2.25rem 3.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  #index .sk-wqs__arrow,
  #index .sk-wqs__name { transition: none; }
  #index .sk-wqs__item:hover .sk-wqs__arrow { transform: none; }
}
