/* LABMODUL References: Prince Naif + unified Video sorter v1.0.
   Local review only. Video content and card structure remain unchanged. */

body.page-id-5675 .lm-reference-unified {
  width: 100%;
  max-width: none;
  margin: 0;
  background:
    linear-gradient(rgba(255,255,255,.965),rgba(255,255,255,.965)),
    url('/__labmodul_original_blueprint.jpg') center top / cover no-repeat;
}

body.page-id-5675 .lm-reference-unified-section {
  width: min(1760px, calc(100% - 56px));
  margin: 0 auto;
  padding: 90px 0 112px;
}

body.page-id-5675 .lm-reference-unified-heading {
  max-width: 780px;
  margin: 0 0 54px;
}

body.page-id-5675 .lm-reference-unified-heading h2 {
  margin: 0;
  color: #27322f;
  font-family: 'Century Gothic','CenturyGothic',Arial,sans-serif;
  font-size: clamp(40px,3.8vw,60px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.035em;
}

body.page-id-5675 .lm-reference-unified-heading h2::after {
  content: '';
  display: block;
  width: 92px;
  height: 2px;
  margin-top: 24px;
  background: #f36f21;
}

body.page-id-5675 .lm-reference-unified-heading p {
  max-width: 720px;
  margin: 22px 0 0;
  color: #66716f;
  font-size: clamp(17px,1.3vw,21px);
  line-height: 1.65;
}

body.page-id-5675 .lm-reference-unified-layout {
  display: grid;
  grid-template-columns: minmax(240px,300px) minmax(0,1fr);
  gap: 38px;
  align-items: start;
}

/* Exact visual pattern used by the approved Video sorter. */
body.page-id-5675 .lm-reference-unified-filters {
  position: sticky;
  top: 116px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid #d8ddd9;
}

body.page-id-5675 .lm-reference-unified-filters .lm-video-filter {
  position: relative;
  width: 100%;
  padding: 16px 28px 16px 4px;
  border: 0;
  border-bottom: 1px solid #d8ddd9;
  color: #27322f;
  background: transparent;
  font: 700 14px/1.35 'Century Gothic','CenturyGothic',Arial,sans-serif;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: padding .2s ease,color .2s ease,border-color .2s ease;
}

body.page-id-5675 .lm-reference-unified-filters .lm-video-filter::after {
  content: '→';
  position: absolute;
  right: 6px;
  color: #f36f21;
  font-size: 17px;
  font-weight: 400;
}

body.page-id-5675 .lm-reference-unified-filters .lm-video-filter:is(:hover,:focus-visible),
body.page-id-5675 .lm-reference-unified-filters .lm-video-filter[aria-pressed='true'] {
  padding-left: 16px;
  color: #f36f21;
  border-left: 2px solid #f36f21;
  outline: 0;
}

body.page-id-5675 .lm-reference-unified-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
  align-items: stretch;
}

body.page-id-5675 .lm-reference-selected-card {
  grid-column: span 1;
  min-width: 0;
}

body.page-id-5675 .lm-reference-selected-card[hidden] { display: none !important; }
body.page-id-5675 .lm-reference-selected-link { display: flex; height: 100%; flex-direction: column; color: inherit; text-decoration: none; }
body.page-id-5675 .lm-reference-selected-media { aspect-ratio: 16 / 10; overflow: hidden; background: #f5f6f4; }
body.page-id-5675 .lm-reference-selected-media .lm-video-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.82) contrast(.96) brightness(1.03);
  transition: transform .45s ease,filter .3s ease;
}

body.page-id-5675 .lm-reference-selected-card:is(:hover,:focus-within) .lm-video-poster {
  filter: saturate(.9) contrast(1) brightness(.96);
  transform: scale(1.025);
}

body.page-id-5675 .lm-reference-selected-info {
  display: flex;
  min-height: 180px;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 28px 32px;
}

body.page-id-5675 .lm-reference-selected-info .lm-video-card-category {
  display: block;
  margin: 0 0 14px;
  color: #f36f21;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.page-id-5675 .lm-reference-selected-info h3 {
  margin: 0;
  color: #27322f;
  font-size: clamp(23px,1.65vw,31px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -.025em;
}

body.page-id-5675 .lm-reference-selected-action {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 26px;
  color: #27322f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.page-id-5675 .lm-reference-selected-action span { color: #f36f21; font-size: 20px; font-weight: 400; }

/* Products sorter: only visual alignment with Video; product data and filtering remain native. */
html.lm-products-c body.page-id-4167 .project_filters { border-top: 1px solid #d8ddd9 !important; }
html.lm-products-c body.page-id-4167 .project_filters li { margin: 0 !important; }
html.lm-products-c body.page-id-4167 .project_filters a {
  position: relative !important;
  width: 100% !important;
  padding: 16px 28px 16px 4px !important;
  border: 0 !important;
  border-bottom: 1px solid #d8ddd9 !important;
  color: #27322f !important;
  background: transparent !important;
  font: 700 14px/1.35 'Century Gothic','CenturyGothic',Arial,sans-serif !important;
  letter-spacing: .04em !important;
  text-align: left !important;
  text-transform: uppercase !important;
}
html.lm-products-c body.page-id-4167 .project_filters a::after {
  content: '→' !important;
  position: absolute !important;
  right: 6px !important;
  color: #f36f21 !important;
  font-size: 17px !important;
  font-weight: 400 !important;
}
html.lm-products-c body.page-id-4167 .project_filters a:is(:hover,:focus-visible,.selected) {
  padding-left: 16px !important;
  color: #f36f21 !important;
  border-left: 2px solid #f36f21 !important;
  outline: 0 !important;
}
html.lm-products-c body.page-id-4167 .project_filters .filter-count { display: none !important; }

@media (max-width: 1024px) {
  body.page-id-5675 .lm-reference-unified-layout { grid-template-columns: 1fr; }
  body.page-id-5675 .lm-reference-unified-filters {
    position: static;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  body.page-id-5675 .lm-reference-unified-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 640px) {
  body.page-id-5675 .lm-reference-unified-section { width: min(100% - 28px,1760px); padding: 54px 0 72px; }
  body.page-id-5675 .lm-reference-unified-heading { margin-bottom: 34px; }
  body.page-id-5675 .lm-reference-unified-filters,
  body.page-id-5675 .lm-reference-unified-grid { grid-template-columns: 1fr; }
  body.page-id-5675 .lm-reference-selected-info { min-height: 0; padding: 22px 22px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  body.page-id-5675 .lm-reference-selected-media .lm-video-poster,
  body.page-id-5675 .lm-reference-unified-filters .lm-video-filter { transition: none !important; }
}
