/* WasherPilot v7.29 — Error Code UX Compression
   Scan-first hubs + one consistent exact-code visual shell. */

/* Main error-code catalog: cards are lookup rows, not mini articles. */
.code-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.code-grid--compact article,
.code-grid--compact article:nth-child(3n + 1) {
  min-height: 118px;
  padding: 14px 15px 13px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  border: 1px solid #d8e6f0;
  box-shadow: none;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
}
.code-grid--compact article:hover,
.code-grid--compact article:nth-child(3n + 1):hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(13,53,80,.08);
}
.code-grid--compact article span,
.code-grid--compact article:nth-child(3n + 1) span {
  color: #39769f;
  font-size: 10px;
  letter-spacing: .8px;
}
.code-grid--compact article h3,
.code-grid--compact article:nth-child(3n + 1) h3 {
  margin: 5px 0 4px;
  color: #123954;
  font: 800 21px/1.05 "Manrope", sans-serif;
}
.code-grid--compact article p,
.code-grid--compact article:nth-child(3n + 1) p {
  margin: 0;
  color: #5a7387;
  font-size: 12.5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.code-grid--compact article p b,
.code-grid--compact article:nth-child(3n + 1) p b { color: #244a64; }
.code-grid--compact article a,
.code-grid--compact article:nth-child(3n + 1) a {
  margin-top: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

/* Brand catalogs: dense, predictable and visually identical across brands. */
.brand-code-list--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.brand-code-list--compact > a,
.brand-hub--samsung .brand-code-list--compact > a:nth-child(odd),
.brand-hub--whirlpool .brand-code-list--compact > a:nth-child(3n + 1) {
  min-height: 108px;
  padding: 14px 15px 13px;
  border-radius: 12px;
  border: 1px solid #d8e6f0;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto 1fr;
  column-gap: 10px;
  align-content: start;
}
.brand-code-list--compact > a:hover,
.brand-hub--samsung .brand-code-list--compact > a:nth-child(odd):hover,
.brand-hub--whirlpool .brand-code-list--compact > a:nth-child(3n + 1):hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(13,53,80,.08);
}
.brand-code-list--compact > a::after {
  content: "→";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: #77a8c8;
  font-weight: 800;
}
.brand-code-list--compact > a span,
.brand-hub--samsung .brand-code-list--compact > a:nth-child(odd) span,
.brand-hub--whirlpool .brand-code-list--compact > a:nth-child(3n + 1) span {
  grid-column: 1;
  color: #39769f;
  font-size: 9.5px;
  letter-spacing: .75px;
}
.brand-code-list--compact > a strong {
  grid-column: 1;
  margin: 5px 0 4px;
  color: #123954;
  font: 800 22px/1.05 "Manrope", sans-serif;
}
.brand-code-list--compact > a p,
.brand-hub--samsung .brand-code-list--compact > a:nth-child(odd) p,
.brand-hub--whirlpool .brand-code-list--compact > a:nth-child(3n + 1) p {
  grid-column: 1 / -1;
  margin: 0;
  color: #5a7387;
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Exact-code pages: one compact identity system across every supported code. */
.error-code-shell-v729 {
  width: min(920px, 90vw);
}
.error-code-banner--v729 {
  grid-template-columns: minmax(190px, .62fr) minmax(0, 1.38fr);
  min-height: 0;
  margin-bottom: 18px;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 12px 28px rgba(10,40,66,.12);
}
.error-code-banner--v729 .error-code-banner__identity {
  min-height: 132px;
  padding: 20px 24px;
}
.error-code-banner--v729 .error-code-banner__code {
  margin-top: 8px;
  font-size: clamp(2.45rem, 5.2vw, 4rem);
}
.error-code-banner--v729 .error-code-banner__copy {
  padding: 20px 24px;
}
.error-code-banner--v729 .error-code-banner__copy b {
  margin-top: 6px;
  font-size: 1.08rem;
  line-height: 1.2;
}
.error-code-banner--v729 .error-code-banner__copy p {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.42;
}
.error-code-banner--v729 .error-code-banner__pills { display: none; }
.error-code-shell-v729 .breadcrumbs { margin-top: 0; }
.error-code-shell-v729 > .eyebrow { margin-top: 16px; }
.error-code-shell-v729 > h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 43px);
  line-height: 1.08;
  letter-spacing: -1.45px;
}
.error-code-shell-v729 > .article-lead {
  max-width: 800px;
  margin-bottom: 12px;
  color: #3c5a6f;
  font-size: 16px;
  line-height: 1.55;
}
.error-code-quicknav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 24px;
  padding: 8px;
  border: 1px solid #d8e7f1;
  border-radius: 13px;
  background: #f5faff;
}
.error-code-quicknav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 11px;
  border-radius: 9px;
  background: #fff;
  color: #1b557a;
  text-decoration: none;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #e0ecf4;
}
.error-code-quicknav a:hover { border-color: #a9cee6; background: #eef8ff; }
.error-code-shell-v729 [id^="code-"] { scroll-margin-top: 86px; }
.error-code-shell-v729 > h2,
.error-code-shell-v729 > section > h2 {
  scroll-margin-top: 86px;
}


/* Bring the exact-code catalog closer to the top on brand pages. */
.brand-hub--v729 .brand-hub-hero {
  padding: 44px max(7vw, calc((100vw - 1120px) / 2));
}
.brand-hub--v729 .brand-hub-hero h1 {
  max-width: 690px;
  margin: 7px 0 12px;
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: -2.2px;
}
.brand-hub--v729 .brand-hub-hero > p:not(.eyebrow) {
  max-width: 620px;
  font-size: 16px;
  line-height: 1.5;
}
.brand-hub--v729 .brand-hub-body { padding-top: 36px; }
.brand-hub--v729 .brand-hub-intro { margin-bottom: 16px; }
.brand-hub--v729 .code-quick-index { margin-top: 12px; margin-bottom: 22px; }
@media (max-width: 1100px) {
  .code-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-code-list--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .code-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-code-list--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .error-code-banner--v729 { grid-template-columns: 1fr; }
  .error-code-banner--v729 .error-code-banner__identity {
    min-height: 104px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
}
@media (max-width: 760px) {
  .code-grid--compact,
  .brand-code-list--compact { grid-template-columns: 1fr; gap: 7px; }
  .code-grid--compact article {
    min-height: 76px;
    padding: 10px 11px;
    grid-template-columns: 72px minmax(0, 1fr) 28px;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
  }
  .code-grid.code-grid--compact article[data-code-card] {
    min-height: 76px !important;
  }
  .code-grid--compact article span { grid-column: 1; grid-row: 1; }
  .code-grid--compact article h3 { grid-column: 1; grid-row: 2; margin: 2px 0 0; font-size: 18px; }
  .code-grid--compact article p { grid-column: 2; grid-row: 1 / span 2; align-self: center; -webkit-line-clamp: 2; }
  .code-grid--compact article a {
    grid-column: 3; grid-row: 1 / span 2; align-self: stretch;
    display: flex; align-items: center; justify-content: center;
    margin: 0; font-size: 0; text-decoration: none;
  }
  .code-grid.code-grid--compact article[data-code-card] a {
    font-size: 0 !important;
    line-height: 0;
    white-space: nowrap;
    overflow: hidden;
  }
  .code-grid--compact article a::after { content: "→"; font-size: 18px; color: var(--blue); }
  .brand-code-list--compact > a {
    min-height: 76px;
    padding: 10px 11px;
  }
  .error-code-shell-v729 { width: min(92vw, 920px); }
  .error-code-banner--v729 .error-code-banner__identity,
  .error-code-banner--v729 .error-code-banner__copy { padding: 17px 19px; }
  .error-code-banner--v729 .error-code-banner__identity { min-height: 92px; }
  .error-code-banner--v729 .error-code-banner__code { font-size: clamp(2.45rem, 14vw, 3.5rem); }
  .error-code-quicknav { grid-template-columns: 1fr; }
  .error-code-quicknav a { justify-content: flex-start; }
}
