/* TNM 2026 | Finishes, adaptable navigation v2. All selectors are scoped. */
.tnm-finishes,
.tnm-finishes * { box-sizing: border-box; }

.tnm-finishes {
  --tnm-red: var(--red, #ed1b2f);
  --tnm-ink: var(--ink, #171719);
  --tnm-line: var(--line, #dcdcd7);
  --tnm-paper: var(--paper, #f4f4f7);
  margin-top: clamp(48px, 5.5vw, 84px);
  color: var(--tnm-ink);
}
.tnm-finishes-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 18px;
}
.tnm-finishes-heading .tnm-finishes-eyebrow {
  margin: 0;
  color: var(--tnm-red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.tnm-finishes-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #707079;
}
.tnm-finishes-shell {
  display: grid;
  grid-template-columns: minmax(230px, 0.39fr) minmax(0, 0.61fr);
  border: 1px solid var(--tnm-line);
  background: #fff;
  min-width: 0;
}
/* The image sets the gallery height. The navigation NEVER changes that height. */
.tnm-finish-menu {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: var(--tnm-paper);
  border-right: 1px solid var(--tnm-line);
}
.tnm-finish-options {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d4d4da transparent;
  -webkit-overflow-scrolling: touch;
}
.tnm-finish-choice {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) 21px;
  align-items: center;
  gap: 15px;
  flex: 0 0 91px;
  width: 100%;
  min-width: 0;
  padding: 17px clamp(17px, 2.1vw, 30px);
  border: 0;
  border-bottom: 1px solid var(--tnm-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--tnm-ink);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background .23s ease, box-shadow .23s ease;
}
.tnm-finish-choice:hover { background: #fff; }
.tnm-finish-choice:focus-visible {
  z-index: 1;
  outline: 2px solid var(--tnm-red);
  outline-offset: -4px;
}
.tnm-finish-choice.is-active {
  background: #fff;
  box-shadow: inset 4px 0 0 var(--tnm-red);
}
.tnm-finish-choice-number {
  color: var(--tnm-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
}
.tnm-finish-choice-name {
  display: block;
  min-width: 0;
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: 700;
  letter-spacing: -.042em;
  line-height: 1.18;
}
.tnm-finish-choice-arrow {
  color: var(--tnm-red);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  opacity: 0;
  transform: translate(-5px, 4px);
  transition: opacity .22s, transform .22s;
}
.tnm-finish-choice.is-active .tnm-finish-choice-arrow,
.tnm-finish-choice:hover .tnm-finish-choice-arrow {
  opacity: 1;
  transform: translate(0, 0);
}
.tnm-finish-preview {
  min-width: 0;
  padding: clamp(12px, 1.7vw, 22px);
  background: #fff;
}
.tnm-finish-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 260px;
  background: #e9e9ed;
}
.tnm-finish-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: opacity .28s ease, transform .6s ease;
}
.tnm-finish-stage.is-switching .tnm-finish-photo {
  opacity: .25;
  transform: scale(1.018);
}
.tnm-finish-stage .tnm-finish-missing { display: none; }
.tnm-finish-stage.has-image-error .tnm-finish-missing {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f1f1f3;
  color: #66666e;
  font-size: 14px;
  text-align: center;
}
.tnm-finish-stage.has-image-error .tnm-finish-callout,
.tnm-finish-stage.has-image-error .tnm-finish-path,
.tnm-finish-stage.has-image-error .tnm-finish-target { display: none; }
.tnm-finish-callout {
  position: absolute;
  z-index: 4;
  top: 8%;
  left: 7%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 56%;
  padding: 11px 14px 12px;
  background: rgba(255,255,255,.94);
  border-left: 3px solid var(--tnm-red);
  box-shadow: 0 8px 30px rgba(12, 13, 25, .10);
  pointer-events: none;
}
.tnm-finish-callout small {
  color: var(--tnm-red);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}
.tnm-finish-callout strong {
  color: #151519;
  font-size: clamp(12px, 1.2vw, 16px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.02em;
}
.tnm-finish-path {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.tnm-finish-path path {
  stroke: var(--tnm-red);
  stroke-width: 1.7;
  vector-effect: non-scaling-stroke;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px #fff);
}
.tnm-finish-target {
  position: absolute;
  z-index: 4;
  display: block;
  left: 60%;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--tnm-red);
  box-shadow: 0 0 0 2px var(--tnm-red), 0 2px 10px rgba(0,0,0,.18);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.tnm-finish-target::after {
  content: '';
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(248,0,54,.50);
  border-radius: 50%;
  animation: tnm-target-pulse 2.8s ease-out infinite;
}
@keyframes tnm-target-pulse {
  0% { transform: scale(.64); opacity: .9; }
  70%, 100% { transform: scale(1.35); opacity: 0; }
}
.tnm-finish-caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 2px 2px;
}
.tnm-finish-caption h3 {
  margin: 0 0 7px;
  font-size: clamp(20px, 2.1vw, 29px);
  font-weight: 740;
  letter-spacing: -.055em;
  line-height: 1.2;
}
.tnm-finish-caption p {
  margin: 0;
  color: #61616b;
  font-size: 13px;
  line-height: 1.6;
  max-width: 470px;
}
.tnm-finish-caption-index {
  padding-top: 4px;
  color: var(--tnm-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  white-space: nowrap;
}

/* Tablet and mobile: single-row swipeable selector, no matter how many finishes. */
@media (max-width: 860px) {
  .tnm-finishes-shell { grid-template-columns: minmax(0, 1fr); }
  .tnm-finish-menu {
    height: 82px;
    border-right: 0;
    border-bottom: 1px solid var(--tnm-line);
  }
  .tnm-finish-options {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }
  .tnm-finish-choice {
    grid-template-columns: auto minmax(0, auto) auto;
    flex: 0 0 auto;
    min-width: 178px;
    max-width: min(280px, 75vw);
    width: auto;
    height: 100%;
    gap: 11px;
    padding: 17px 23px;
    border-right: 1px solid var(--tnm-line);
    border-bottom: 0;
    scroll-snap-align: start;
  }
  .tnm-finish-choice.is-active { box-shadow: inset 0 -4px 0 var(--tnm-red); }
  .tnm-finish-choice-name { font-size: 17px; }
  .tnm-finish-choice-arrow { font-size: 18px; }
}
@media (max-width: 600px) {
  .tnm-finishes-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .tnm-finish-menu { height: 75px; }
  .tnm-finish-choice { min-width: 157px; padding: 13px 16px; gap: 10px; }
  .tnm-finish-choice-name { font-size: 15px; }
  .tnm-finish-choice-arrow { display: none; }
  .tnm-finish-stage { min-height: 0; }
  .tnm-finish-callout { padding: 8px 9px; }
  .tnm-finish-callout small { font-size: 8px; }
  .tnm-finish-callout strong { font-size: 12px; }
  .tnm-finish-caption { padding-top: 16px; }
  .tnm-finish-caption h3 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .tnm-finish-choice,
  .tnm-finish-choice-arrow,
  .tnm-finish-photo { transition: none !important; }
  .tnm-finish-target::after { animation: none; }
}
