/* Compact homepage previews. Load after video-library.css; full libraries stay unchanged. */
.ns-home-compact .nh-home-section,
.ns-home-compact .nh-client-entry,
.ns-home-compact .nh-home-services {
  padding: 54px 0;
  color: var(--ns-ink, #242a31);
}
.ns-home-compact :is(.nh-home-section, .nh-client-entry, .nh-home-services, .nh-home-connect) *,
.ns-clients-page .ns-transactions * { box-sizing: border-box; min-width: 0; }
.ns-home-compact .nh-client-entry,
.ns-home-compact .nh-home-communities { background: #fff; }
.ns-home-compact .nh-home-videos,
.ns-home-compact .nh-home-services { background: var(--ns-paper, #fbf9f6); }
.ns-home-compact .nh-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 28px;
  margin-bottom: 25px;
}
.ns-home-compact .nh-title-copy { flex: 1 1 390px; max-width: 820px; }
.ns-home-compact .nh-title-copy > .eyebrow,
.ns-home-compact .nh-client-copy > .eyebrow { margin-bottom: 12px; }
.ns-home-compact .nh-title-copy h2,
.ns-home-compact .nh-client-copy h2,
.ns-home-compact .nh-home-connect h2 {
  margin: 0;
  font-size: clamp(29px, 2.8vw, 38px);
  line-height: 1.22;
  letter-spacing: -.035em;
}
.ns-home-compact .nh-title-copy > p,
.ns-home-compact .nh-client-copy > p {
  margin: 13px 0 0;
  color: var(--ns-muted, #59636d);
  font-size: 18px;
  line-height: 1.7;
}
.ns-home-compact .nh-section-head > a {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  max-width: 100%;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ns-blue, #466780);
}

/* One complete original poster introduces the separate client archive. */
.ns-home-compact .nh-client-card {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 34px;
  padding: 26px;
  border: 1px solid var(--ns-line, #dededb);
  border-radius: 6px;
  background: var(--ns-paper, #fbf9f6);
  color: inherit;
  text-decoration: none;
}
.ns-home-compact .nh-client-image {
  width: 100%;
  border: 1px solid #e1e1de;
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
}
.ns-home-compact .nh-client-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}
.ns-home-compact .nh-client-copy { padding: 3px 10px 3px 0; }
.ns-home-compact .nh-client-copy > p { max-width: 590px; }
.ns-home-compact .nh-client-copy > .text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  margin-top: 19px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ns-blue, #466780);
}

/* Four previews form one desktop row and one touch-scroll row on smaller screens. */
.ns-home-compact .nh-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row;
  align-items: start;
  gap: 21px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}
.ns-home-compact .nh-rail > * { min-width: 0; max-width: 100%; }
.ns-home-compact .nh-video-rail .film-image {
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: #e8ecee;
}
.ns-home-compact .nh-video-rail .film-image img { width: 100%; height: 100%; object-fit: cover; }
.ns-home-compact .nh-video-rail [data-video-format="short"] .film-image img { object-fit: contain; }
.ns-home-compact .nh-video-rail .nv-film-card > p,
.ns-home-compact .nh-video-rail .nv-film-card > a > p,
.ns-home-compact .nh-video-rail .nv-film-card .eyebrow { display: none; }
.ns-home-compact .nh-video-rail .nv-video-meta {
  gap: 5px 9px;
  margin: 12px 0 7px;
  font-size: 14px;
  line-height: 1.6;
}
.ns-home-compact .nh-video-rail .nv-video-meta time,
.ns-home-compact .nh-video-rail .nv-video-meta span,
.ns-home-compact .nh-video-rail .duration { font-size: 14px; }
.ns-home-compact .nh-video-rail .nv-film-card h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin: 0;
  color: var(--ns-ink, #242a31);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.ns-home-compact .nh-rail-controls { display: none; gap: 8px; align-items: center; flex-shrink: 0; }
.ns-home-compact .nh-rail-controls button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #b9c4cc;
  border-radius: 50%;
  color: var(--ns-blue, #466780);
  background: #fff;
  font: 400 22px/1 var(--sans, sans-serif);
  cursor: pointer;
}
.ns-home-compact .nh-rail-controls button svg { width: 20px; height: 20px; }
.ns-home-compact .nh-rail-controls button:disabled { opacity: .36; cursor: default; }
.ns-home-compact .nh-rail-hint {
  display: none;
  margin: 10px 0 0;
  color: var(--ns-muted, #59636d);
  font-size: 14px;
  line-height: 1.65;
}
.ns-home-compact .nh-rail-controls[hidden],
.ns-home-compact .nh-rail-hint[hidden] { display: none !important; }
.ns-home-compact .nh-community-rail { align-items: stretch; }
.ns-home-compact .nh-community-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--ns-line, #dededb);
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
  color: var(--ns-ink, #242a31);
  text-decoration: none;
}
.ns-home-compact .nh-community-image,
.ns-home-compact .nh-community-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  overflow: hidden;
  background: #edf0f1;
}
.ns-home-compact .nh-community-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ns-home-compact .nh-community-placeholder {
  display: grid;
  place-items: center;
  padding: 18px;
  color: #758995;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}
.ns-home-compact .nh-community-placeholder svg { width: 38px; height: 38px; }
.ns-home-compact .nh-community-copy { flex: 1; padding: 17px 40px 18px 17px; }
.ns-home-compact .nh-community-copy h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.ns-home-compact .nh-community-copy p {
  margin: 7px 0 0;
  color: var(--ns-muted, #59636d);
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.ns-home-compact .nh-community-card > .arrow,
.ns-home-compact .nh-community-copy > .arrow {
  position: absolute;
  bottom: 20px;
  right: 15px;
  font-size: 20px;
  line-height: 1;
  color: var(--ns-blue, #466780);
}

/* Service and contact prompts avoid repeating the introduction's full contact block. */
.ns-home-compact .nh-home-services > .wrap > .eyebrow { margin-bottom: 19px; }
.ns-home-compact .nh-service-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 27px; }
.ns-home-compact .nh-service-links > a {
  display: block;
  min-height: 44px;
  padding: 21px 0 12px;
  border-top: 1px solid #c5ced3;
  color: var(--ns-ink, #242a31);
}
.ns-home-compact .nh-service-links h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.4; letter-spacing: -.025em; }
.ns-home-compact .nh-service-links h3 { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.ns-home-compact .nh-service-links h3 svg { flex-shrink: 0; }
.ns-home-compact .nh-service-links p { margin: 0; color: var(--ns-muted, #59636d); font-size: 18px; line-height: 1.65; }
.ns-home-compact .nh-commercial-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  min-height: 44px;
  margin-top: 21px;
  padding-top: 19px;
  border-top: 1px solid var(--ns-line, #dededb);
  color: var(--ns-blue, #466780);
  font-size: 16px;
  line-height: 1.65;
}
.ns-home-compact .nh-commercial-link p { margin: 0; color: var(--ns-muted, #59636d); font-size: 16px; line-height: 1.65; }
.ns-home-compact .nh-commercial-link a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.ns-home-compact .nh-home-connect { padding: 44px 0; background: #eff2f3; color: var(--ns-ink, #242a31); }
.ns-home-compact .nh-home-connect > .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 19px 35px;
}
.ns-home-compact .nh-home-connect > .wrap > div { flex: 1 1 400px; }
.ns-home-compact .nh-home-connect p { margin: 12px 0 0; max-width: 800px; font-size: 18px; line-height: 1.7; color: var(--ns-muted, #59636d); }
.ns-home-compact .nh-home-connect .btn { min-height: 48px; flex: 0 1 auto; max-width: 100%; font-size: 16px; }
.ns-home-compact :is(.nh-client-card, .nh-community-card, .nh-service-links > a):focus-visible,
.ns-home-compact .nh-rail-controls button:focus-visible,
.ns-home-compact .nh-rail:focus-visible {
  outline: 2px solid var(--ns-blue, #466780);
  outline-offset: 4px;
}
.ns-home-compact .nh-rail:focus-visible { outline-offset: 1px; }

/* The dedicated client archive keeps the complete existing gallery and tabs. */
.ns-clients-page .ns-transactions { padding-top: 52px; padding-bottom: 62px; }
.ns-clients-page .ns-transactions .ns-section-heading { margin-bottom: 28px; }
.ns-clients-page .ns-transactions .ns-section-heading > h1 { margin: 0; }

@media (hover: hover) {
  .ns-home-compact .nh-client-card:hover { border-color: #a8b6bf; }
  .ns-home-compact .nh-community-card:hover { border-color: #9aadb9; }
  .ns-home-compact .nh-community-card:hover h3,
  .ns-home-compact .nh-service-links > a:hover h3 { color: var(--ns-blue, #466780); }
  .ns-home-compact .nh-rail-controls button:not(:disabled):hover { background: #edf1f3; }
}
@media (min-width: 1001px) {
  .ns-home-compact .ns-intro { padding-top: 54px; padding-bottom: 60px; }
  .ns-home-compact .ns-intro-heading { margin-bottom: 36px; }
}
@media (max-width: 1000px) {
  .ns-home-compact .nh-rail {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(250px, 82%, 330px);
    gap: 17px;
    max-width: none;
    margin: -6px -5px 0;
    padding: 6px 5px 13px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 5px;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: #a5b3bd transparent;
    -webkit-overflow-scrolling: touch;
  }
  .ns-home-compact .nh-rail > * { scroll-snap-align: start; }
  .ns-home-compact .nh-rail-controls { display: flex; }
  .ns-home-compact .nh-rail-hint { display: block; }
  .ns-home-compact .nh-client-card { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 25px; padding: 22px; }
  .ns-home-compact .nh-client-copy { padding-right: 0; }
}
@media (max-width: 700px) {
  .ns-home-compact .nh-home-section,
  .ns-home-compact .nh-client-entry,
  .ns-home-compact .nh-home-services { padding: 39px 0; }
  .ns-home-compact .nh-section-head { gap: 12px 18px; margin-bottom: 21px; }
  .ns-home-compact .nh-title-copy { flex-basis: 100%; }
  .ns-home-compact .nh-title-copy h2,
  .ns-home-compact .nh-client-copy h2,
  .ns-home-compact .nh-home-connect h2 { font-size: 30px; }
  .ns-home-compact .nh-section-head > a { margin-right: auto; }
  .ns-home-compact .nh-client-card { grid-template-columns: 1fr; gap: 21px; padding: 20px; }
  .ns-home-compact .nh-client-copy { padding: 0; }
  .ns-home-compact .nh-client-copy > .text-link { margin-top: 13px; }
  .ns-home-compact .nh-service-links { grid-template-columns: 1fr; gap: 13px; }
  .ns-home-compact .nh-service-links > a { padding: 17px 0 10px; }
  .ns-home-compact .nh-service-links h3 { margin-bottom: 7px; font-size: 21px; }
  .ns-home-compact .nh-commercial-link { margin-top: 15px; padding-top: 15px; }
  .ns-home-compact .nh-home-connect { padding: 36px 0; }
  .ns-home-compact .nh-home-connect > .wrap { gap: 22px; }
  .ns-home-compact .nh-home-connect > .wrap > div { flex-basis: 100%; }
  .ns-clients-page .ns-transactions { padding-top: 35px; padding-bottom: 45px; }
}
@media (max-width: 359px) {
  .ns-home-compact .nh-client-card { padding: 16px; gap: 18px; }
  .ns-home-compact .nh-rail { gap: 15px; grid-auto-columns: 250px; }
  .ns-home-compact .nh-title-copy h2,
  .ns-home-compact .nh-client-copy h2,
  .ns-home-compact .nh-home-connect h2 { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  .ns-home-compact .nh-rail { scroll-behavior: auto; }
}
@media print {
  .ns-home-compact .nh-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; overflow: visible; margin: 0; padding: 0; }
  .ns-home-compact .nh-rail-controls, .ns-home-compact .nh-rail-hint { display: none; }
  .ns-home-compact .nh-home-section, .ns-home-compact .nh-client-entry,
  .ns-home-compact .nh-home-services, .ns-home-compact .nh-home-connect { padding: 25px 0; }
}
