/* nd-before-after, Told style only (style = told). Classic output does not load this file.
   Spec: docs/browser/ref-2026-11/SPEC.md ("aisle"): two photos side by side in one rounded frame,
   a label card on each, the handle in the middle. Dragging the handle moves the split (--pos, set by nd-before-after.js). */
.nd-told.ndba-told { padding: 70px 0 0; }
.nd-told.ndba-told .ndba-head { margin: 0 0 40px; }

.nd-told.ndba-told .ndba {
  position: relative; display: grid !important;
  grid-template-columns: var(--pos, 50%) minmax(0, 1fr);
  height: 640px; border-radius: 24px; overflow: hidden; background: var(--t-grey);
}
.nd-told.ndba-told .ndba-side { position: relative; min-width: 0; overflow: hidden; }
.nd-told.ndba-told .ndba-after { border-left: 3px solid var(--t-white); }
.nd-told.ndba-told .ndba-img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }

.nd-told.ndba-told .ndba-card {
  position: absolute; top: 30px; left: 30px; z-index: 2;
  width: min(320px, calc(100% - 60px)); padding: 18px 20px; border-radius: 16px;
  background: var(--t-white); color: var(--t-ink); pointer-events: none;
}
.nd-told.ndba-told .ndba-card--after { width: min(300px, calc(100% - 60px)); background: var(--t-yellow); border: 2px solid var(--t-ink); }
.nd-told.ndba-told .ndba-card-title { margin: 0; font-family: var(--t-display); font-size: 26px; line-height: .92; text-transform: uppercase; color: rgba(34, 40, 47, .6); }
.nd-told.ndba-told .ndba-card--after .ndba-card-title { font-size: 25px; color: var(--t-ink); }
.nd-told.ndba-told .ndba-card-price { margin: 8px 0 0; font-weight: 700; font-size: 30px; line-height: 36px; letter-spacing: -.01em; }
.nd-told.ndba-told .ndba-card-sub { margin: 6px 0 0; font-size: 14px; line-height: 21px; color: var(--t-ink-66); }
.nd-told.ndba-told .ndba-card--after .ndba-card-sub { color: var(--t-ink); }

.nd-told.ndba-told .ndba-knob {
  position: absolute; top: 50%; left: var(--pos, 50%); z-index: 3; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--t-white); color: var(--t-ink);
  box-shadow: 0 2px 10px rgba(34, 40, 47, .18); font-size: 20px; line-height: 1; pointer-events: none;
}
.nd-told.ndba-told .ndba-range {
  position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent;
}
.nd-told.ndba-told .ndba:focus-within .ndba-knob { outline: 3px solid var(--t-ocean); outline-offset: 3px; }
.nd-told.ndba-told .ndba-hint { margin: 14px 0 0; text-align: center; }

@media (max-width: 990px) {
  .nd-told.ndba-told .ndba { height: 520px; }
}
@media (max-width: 720px) {
  .nd-told.ndba-told { padding: 48px 0 0; }
  /* Stacked on mobile, no handle */
  .nd-told.ndba-told .ndba { grid-template-columns: minmax(0, 1fr); gap: 8px; height: auto; border-radius: 0; background: none; overflow: visible; }
  .nd-told.ndba-told .ndba-side { height: 300px; border-radius: 20px; }
  .nd-told.ndba-told .ndba-after { border-left: 0; }
  .nd-told.ndba-told .ndba-knob, .nd-told.ndba-told .ndba-range { display: none; }
  .nd-told.ndba-told .ndba-card { top: 14px; left: 14px; width: auto; right: 14px; max-width: 260px; padding: 14px 16px; }
  .nd-told.ndba-told .ndba-card--after { max-width: 240px; }
  .nd-told.ndba-told .ndba-card-title { font-size: 21px; }
  .nd-told.ndba-told .ndba-card--after .ndba-card-title { font-size: 20px; }
  .nd-told.ndba-told .ndba-card-price { font-size: 24px; line-height: 29px; margin-top: 6px; }
  .nd-told.ndba-told .ndba-card-sub { font-size: 11.2px; line-height: 16.8px; }
  .nd-told.ndba-told .ndba-hint { display: none; }
}
