/* Company identity rail: original marks on white, editorial summaries on brand
   navy. This component inherits the newspaper's palette and serif typography.
   Native overflow keeps every profile reachable without JavaScript. */
.nm-company-carousel { --carousel-copy: #c5d3df; --carousel-rule: #3c5063; }
.nm-carousel__intro { color: var(--muted); font-size: .9375rem; margin: -.5rem 0 1.75rem; }
.nm-carousel__viewport { position: relative; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 12px; }
.nm-carousel__viewport::-webkit-scrollbar { display: none; }
.nm-carousel__viewport:focus-visible { outline-offset: 4px; }
.nm-carousel__viewport.is-sliding { scroll-snap-type: none; }
.nm-company-carousel .nm-carousel__track { display: flex; gap: 20px; align-items: stretch; padding: 0; }
.nm-company-carousel .nm-move { flex: 0 0 calc((100% - 40px) / 3); min-width: 0; scroll-snap-align: start; display: flex; flex-direction: column; padding: 0; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--navy); }
.nm-move__identity { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 112px; padding: 20px 24px; background: var(--white); }
.nm-company-carousel .nm-move__logo { min-height: 0; width: 150px; flex: 0 1 150px; place-items: center start; }
.nm-company-carousel .nm-logo__img { width: 150px; height: 64px; max-height: 64px; object-fit: contain; object-position: left center; }
.nm-company-carousel .nm-move__dev { flex: 0 1 112px; font-size: .6875rem; font-weight: 500; line-height: 1.45; color: var(--muted); text-align: right; margin: 0; }
.nm-move__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.nm-company-carousel .nm-move__name { color: var(--white); font: 600 1.5rem/1.2 var(--font-head); letter-spacing: -.015em; min-height: 2.4em; margin: 0 0 12px; text-wrap: balance; }
.nm-company-carousel .nm-move__name a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.nm-company-carousel .nm-move__description { color: var(--carousel-copy); font-size: .875rem; line-height: 1.6; margin: 0 0 20px; align-self: start; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nm-company-carousel .nm-move__bottom { border-top: 1px solid var(--carousel-rule); padding-top: 16px; margin-top: auto; min-height: 96px; }
.nm-company-carousel .nm-move__label { display: block; color: var(--carousel-copy); font-size: .6875rem; font-weight: 400; line-height: 1.4; margin-bottom: 6px; }
.nm-company-carousel .nm-move__story { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; border: 0; padding: 0; color: var(--white); font-size: .8125rem; line-height: 1.4; margin-bottom: 6px; }
.nm-company-carousel .nm-move__bottom .nm-meta { color: var(--carousel-copy); font-size: .6875rem; margin: 0; }
.nm-company-carousel .nm-move__bottom time, .nm-company-carousel .nm-move__bottom .nm-ts { color: var(--carousel-copy); font: inherit; }
.nm-company-carousel .nm-move__profile { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--white); font-size: .875rem; font-weight: 600; min-height: 44px; }
.nm-move__profile > span[aria-hidden] { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--carousel-rule); border-radius: 50%; font-size: 1.125rem; transition: background-color 220ms ease, border-color 220ms ease, transform 220ms ease; }
.nm-move__profile:hover > span[aria-hidden] { background: var(--signal); border-color: var(--signal); transform: translateX(2px); }
.nm-move__body :focus-visible { outline-color: var(--white); }
.nm-carousel__controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.nm-carousel__controls[hidden] { display: none; }
.nm-carousel__count { font: 500 .8125rem/1.5 var(--font-ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.nm-carousel__buttons { display: flex; align-items: center; gap: 8px; }
.nm-carousel__arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--navy); border-radius: 50%; background: var(--navy); color: var(--white); cursor: pointer; font-size: 1.25rem; transition: background-color 180ms ease, border-color 180ms ease; }
.nm-carousel__arrow:hover:not(:disabled) { border-color: var(--signal); background: var(--signal); }
.nm-carousel__arrow:disabled { color: var(--muted); background: var(--wash); border-color: var(--line); cursor: default; }
.nm-carousel__toggle { border: 0; background: transparent; min-height: 44px; color: var(--muted); font: 500 .75rem/1.4 var(--font-ui); cursor: pointer; padding: 0 16px; }
.nm-carousel__toggle:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1000px) {
  .nm-company-carousel .nm-move { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 600px) {
  .nm-company-carousel .nm-carousel__track { gap: 12px; }
  .nm-company-carousel .nm-move { flex-basis: 87%; }
  .nm-move__identity { min-height: 100px; padding: 18px 20px; gap: 16px; }
  .nm-company-carousel .nm-move__logo { flex-basis: 130px; }
  .nm-company-carousel .nm-logo__img { width: 130px; height: 60px; max-height: 60px; }
  .nm-move__body { padding: 20px; }
  .nm-company-carousel .nm-move__name { font-size: 1.375rem; }
  .nm-carousel__intro { font-size: .875rem; margin-bottom: 24px; }
  .nm-carousel__toggle { padding-inline: 4px; }
  .nm-carousel__controls { margin-top: 16px; padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .nm-move__profile > span[aria-hidden], .nm-carousel__arrow { transition: none; }
  .nm-move__profile:hover > span[aria-hidden] { transform: none; }
}
@media print {
  .nm-carousel__viewport { overflow: visible; }
  .nm-company-carousel .nm-carousel__track { display: grid; grid-template-columns: repeat(2,1fr); }
  .nm-carousel__controls { display: none; }
  .nm-company-carousel .nm-move { break-inside: avoid; background: white; }
  .nm-company-carousel .nm-move__body * { color: #17212b; }
}
