.nctm {
  --nctm-dark:  #2c2e18;
  --nctm-mid:   #5d6135;
  --nctm-accent:#c4c69a;
  --nctm-light: #e6e7c8;
  --nctm-card:  #f0f1de;
  --nctm-rust:  #b04a2f;
  --nctm-gap:   40px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
}
.nctm *, .nctm *::before, .nctm *::after { box-sizing: border-box; }

/* Viewport: negative margin cancels the first/last slide's side padding,
   so the cards line up with the rest of the page content. */
.nctm-outer {
  overflow: hidden;
  margin: 0 calc(var(--nctm-gap) / -2);
}
.nctm-track {
  display: flex;
  align-items: stretch;
  will-change: transform;
  touch-action: pan-y;          /* vertical page scroll still works on touch */
  cursor: grab;
}
.nctm.is-dragging .nctm-track { cursor: grabbing; }

.nctm-slide {
  flex-shrink: 0;
  padding: 0 calc(var(--nctm-gap) / 2);
  display: flex;
}

/* ── Card ── */
.nctm-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--nctm-card);
  border-top: 3px solid var(--nctm-accent);
  padding: 34px 32px;
}
.nctm-tag {
  display: block;
  margin: 0 0 14px;
  font-family: 'Work Sans', 'Open Sans', Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--nctm-rust);
}
.nctm-quote {
  margin: 0;
  padding: 0;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: var(--nctm-dark);
}
.nctm-who {
  margin: auto 0 0;               /* pushes attribution to the card bottom */
  padding: 18px 0 0;
  font-family: 'Work Sans', 'Open Sans', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--nctm-mid);
}

/* ── Controls ── */
.nctm-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}
.nctm-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--nctm-dark);
  border-radius: 50%;
  background: transparent;
  color: var(--nctm-dark);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background .2s, color .2s, transform .15s;
}
.nctm-nav:hover,
.nctm-nav:focus-visible { background: var(--nctm-dark); color: var(--nctm-light); }
.nctm-nav:active { transform: scale(.94); }
.nctm-nav:focus-visible,
.nctm-dot:focus-visible { outline: 3px solid var(--nctm-mid); outline-offset: 3px; }

.nctm-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}
.nctm-dot {
  /* 24px hit area around an 8px dot — easy to tap on phones */
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  -webkit-appearance: none;
  appearance: none;
}
.nctm-dot::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--nctm-accent);
  transition: background .2s, transform .2s;
}
.nctm-dot.active::after { background: var(--nctm-dark); transform: scale(1.4); }

/* ── Tablet & phone ── */
@media (max-width: 980px) {
  .nctm { --nctm-gap: 24px; }
}
@media (max-width: 767px) {
  .nctm { --nctm-gap: 16px; }
  .nctm-card { padding: 24px 20px; }
  .nctm-quote { font-size: 17px; }
  .nctm-controls { gap: 12px; margin-top: 20px; }
}
@media (max-width: 480px) {
  .nctm-card { padding: 20px 16px; }
  .nctm-quote { font-size: 16px; line-height: 1.5; }
}

/* ═══ Content-card template ═══ */
.nctm--content .nctm-card--content {
  background: #f6f7e7;
  padding: 32px 30px 28px;
}
.nctm .nctm-heading {
  margin: 0;
  padding: 0 0 18px;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  color: var(--nctm-dark);
}
.nctm .nctm-body p {
  margin: 0;
  padding: 0 0 1em;
  font-family: 'Work Sans', 'Open Sans', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: #4a4d2c;
}
.nctm .nctm-body p:last-child { padding-bottom: 0; }
.nctm .nctm-body a { color: var(--nctm-mid); text-decoration: underline; }
@media (max-width: 767px) {
  .nctm--content .nctm-card--content { padding: 24px 20px; }
  .nctm .nctm-heading { font-size: 21px; padding-bottom: 14px; }
  .nctm .nctm-body p { font-size: 14.5px; }
}
