/* C04: SSR-only KICKSTOWN home components. No network, JS, historic prices or cart hooks.
   The stylesheet is inert unless A explicitly renders data-ks-home="public-v1".
   All interactive objects are ordinary server-approved links. */
body[data-ks-theme="bridge-v1"] #main-content.ks-home {
  --ks-home-gap: clamp(14px, 2.2vw, 30px);
  width: 100%; max-width: none; margin: 0; padding: 0 0 clamp(36px, 5vw, 80px);
}
body[data-ks-theme="bridge-v1"] .ks-home__page-title {
  position: absolute; height: 1px; width: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
body[data-ks-theme="bridge-v1"] .ks-home__section { margin-block: 0 clamp(32px, 5vw, 78px); }
body[data-ks-theme="bridge-v1"] .ks-home__section--hero { background: var(--ks-surface, #f4f4f4); }
body[data-ks-theme="bridge-v1"] .ks-home__hero-track {
  display: flex; overflow: auto hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
body[data-ks-theme="bridge-v1"] .ks-home__slide {
  position: relative; isolation: isolate; display: grid; flex: 0 0 100%;
  min-width: 0; min-height: clamp(300px, 42vw, 650px); scroll-snap-align: start;
  align-items: end; overflow: hidden; background: #242424; color: white;
}
body[data-ks-theme="bridge-v1"] .ks-home__slide--text-only { background: #ebebe8; color: #181818; }
body[data-ks-theme="bridge-v1"] .ks-home__picture,
body[data-ks-theme="bridge-v1"] .ks-home__picture img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
body[data-ks-theme="bridge-v1"] .ks-home__picture img { object-fit: cover; }
body[data-ks-theme="bridge-v1"] .ks-home__slide:not(.ks-home__slide--text-only)::after {
  content: ""; position: absolute; inset: 30% 0 0; z-index: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .68)); pointer-events: none;
}
body[data-ks-theme="bridge-v1"] .ks-home__slide-copy {
  position: relative; z-index: 1; max-width: 960px;
  padding: clamp(20px, 5vw, 76px); overflow-wrap: anywhere;
}
body[data-ks-theme="bridge-v1"] .ks-home__slide-copy h2 {
  font-size: clamp(1.7rem, 4.5vw, 4rem); line-height: 1.1; margin: 0 0 14px;
}
body[data-ks-theme="bridge-v1"] .ks-home__slide-copy p { font-size: clamp(1rem, 2vw, 1.4rem); margin: 0 0 24px; }
body[data-ks-theme="bridge-v1"] .ks-home__cta {
  display: inline-block; padding: 11px 23px; border: 1px solid currentColor;
  text-decoration: none; font-weight: 650; min-height: 44px;
}
body[data-ks-theme="bridge-v1"] .ks-home__cta:hover { background: white; color: #181818; }
body[data-ks-theme="bridge-v1"] .ks-home__slide--text-only .ks-home__cta:hover { background: #181818; color: white; }
body[data-ks-theme="bridge-v1"] .ks-home__section--shelf {
  width: min(calc(100% - 32px), 1380px); margin-inline: auto;
}
body[data-ks-theme="bridge-v1"] .ks-home__section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  margin-bottom: clamp(16px, 2vw, 28px);
}
body[data-ks-theme="bridge-v1"] .ks-home__section-head h2 { font-size: clamp(1.35rem, 2.5vw, 2.3rem); line-height: 1.2; margin: 0; }
body[data-ks-theme="bridge-v1"] .ks-home__section-head a { flex-shrink: 0; text-underline-offset: 4px; }
body[data-ks-theme="bridge-v1"] .ks-home__product-list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ks-home-gap);
}
body[data-ks-theme="bridge-v1"] .ks-home__product { min-width: 0; }
body[data-ks-theme="bridge-v1"] .ks-home__product-link { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
body[data-ks-theme="bridge-v1"] .ks-home__product-link img,
body[data-ks-theme="bridge-v1"] .ks-home__product-fallback {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: contain;
  background: #f3f3f1; display: block;
}
body[data-ks-theme="bridge-v1"] .ks-home__product-name { font-weight: 550; overflow-wrap: anywhere; }
body[data-ks-theme="bridge-v1"] .ks-home__product-price { margin: 6px 0 0; font-variant-numeric: tabular-nums; }
body[data-ks-theme="bridge-v1"] .ks-home__product-link:hover .ks-home__product-name { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 840px) {
  body[data-ks-theme="bridge-v1"] .ks-home__product-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  body[data-ks-theme="bridge-v1"] .ks-home__slide { min-height: 420px; }
  body[data-ks-theme="bridge-v1"] .ks-home__slide-copy { padding: 24px 18px; }
  body[data-ks-theme="bridge-v1"] .ks-home__product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-ks-theme="bridge-v1"] .ks-home__section-head { align-items: start; }
}
@media (max-width: 350px) {
  body[data-ks-theme="bridge-v1"] .ks-home__section-head { flex-wrap: wrap; }
  body[data-ks-theme="bridge-v1"] .ks-home__product-list { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-ks-theme="bridge-v1"] .ks-home__hero-track { scroll-behavior: auto; }
}

/* 2026-11-13: existing SQL-recovered home uses ks-recovered-* classes.
   Original C04 .ks-home selectors were not attached to this markup. */
body[data-ks-theme="bridge-v1"] main.ks-recovered-home {
  width:100%;max-width:1920px;margin:0 auto 80px;min-width:0;
}
body[data-ks-theme="bridge-v1"] .ks-recovered-hero {
  position:relative;isolation:isolate;margin-bottom:clamp(30px,5vw,76px);
}
body[data-ks-theme="bridge-v1"] .ks-recovered-hero-track {
  display:flex;overflow-x:auto;overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;scrollbar-width:none;
}
body[data-ks-theme="bridge-v1"] .ks-recovered-hero-track::-webkit-scrollbar {display:none;}
body[data-ks-theme="bridge-v1"] .ks-recovered-slide {flex:0 0 100%;min-width:0;scroll-snap-align:start;}
body[data-ks-theme="bridge-v1"] .ks-recovered-shelf {max-width:1920px;margin-inline:auto;}
body[data-ks-theme="bridge-v1"] .ks-recovered-shelf .ks-runtime-product-grid {
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(12px,2vw,26px);padding:0;
}
body[data-ks-theme="bridge-v1"] .ks-recovered-shelf .ks-catalog__product-card {
  min-width:0;max-width:100%;overflow:hidden;
}
body[data-ks-theme="bridge-v1"] .ks-recovered-shelf .ks-catalog__product-link {
  color:inherit;display:flex;flex-direction:column;gap:9px;text-decoration:none;height:100%;
}
body[data-ks-theme="bridge-v1"] .ks-recovered-shelf .ks-runtime-product-image {
  display:block;overflow:hidden;width:100%;aspect-ratio:4/5;background:#f3f3f1;
}
body[data-ks-theme="bridge-v1"] .ks-recovered-shelf .ks-runtime-product-image img {
  display:block;width:100%;height:100%;object-fit:contain;
}
body[data-ks-theme="bridge-v1"] .ks-recovered-shelf .ks-runtime-product-name {
  font-size:clamp(12px,1.1vw,15px);font-weight:500;line-height:1.4;
  margin:3px 0 0;overflow-wrap:anywhere;
}
body[data-ks-theme="bridge-v1"] .ks-recovered-shelf .ks-runtime-product-price {
  font-size:clamp(13px,1.15vw,16px);font-weight:650;line-height:1.4;
  font-variant-numeric:tabular-nums;margin:0;
}
body[data-ks-theme="bridge-v1"] .ks-recovered-shelf .ks-catalog__product-link:hover h2 {
  text-decoration:underline;text-underline-offset:3px;
}
body[data-ks-theme="bridge-v1"] .ks-recovered-header .msbridge-nav__dropdown {
  z-index:1600;box-shadow:0 12px 32px rgba(0,0,0,.12);
}
@media (max-width:900px) {
  body[data-ks-theme="bridge-v1"] .ks-recovered-shelf .ks-runtime-product-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:600px) {
  body[data-ks-theme="bridge-v1"] .ks-recovered-shelf .ks-runtime-product-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
}
@media (prefers-reduced-motion:reduce) {
  body[data-ks-theme="bridge-v1"] .ks-recovered-hero-track {scroll-behavior:auto;}
}

/* KICKSTOWN product shelves use square media stages; full-width hero stays a banner. */
body[data-ks-theme="bridge-v1"] .ks-recovered-shelf .ks-runtime-product-image{aspect-ratio:1/1;overflow:hidden;position:relative}
body[data-ks-theme="bridge-v1"] .ks-recovered-shelf .ks-runtime-product-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

body[data-ks-theme="bridge-v1"] .ks-product-card__brand{display:inline!important;letter-spacing:0;font-size:.88em;color:#666;font-weight:500}
