/**
 * NDTI Calculators — styled to the ndtinspect.com system.
 * Palette taken from the site's own NDTI components:
 *   green #3d9142 / hover #337a38 / bright #7ac142
 *   navy #0d1b24 / #0b1620   ink #1d2327   muted #667781 / #8ea0ab
 *   border #e6eaee   panel #f5f7f8   green tint #f2faf4 on #cfe6d4
 * Everything is scoped under .ndti-* so BuddyBoss styles cannot bleed in.
 */
.ndti-calc,
.ndti-theory,
.ndti-index {
  --ndti-green: #3d9142;
  --ndti-green-dk: #337a38;
  --ndti-green-br: #7ac142;
  --ndti-green-bg: #f2faf4;
  --ndti-green-bd: #cfe6d4;
  --ndti-navy: #0d1b24;
  --ndti-navy-dk: #0b1620;
  --ndti-ink: #1d2327;
  --ndti-muted: #667781;
  --ndti-muted-2: #8ea0ab;
  --ndti-bd: #e6eaee;
  --ndti-bd-2: #cfd8de;
  --ndti-panel: #f5f7f8;
  --ndti-white: #ffffff;
  --ndti-warn: #b4690e;
  --ndti-warn-bg: #fdf6ec;
  --ndti-err: #b42318;
  --ndti-err-bg: #fef3f2;
  --ndti-r: 8px;
  --ndti-r-lg: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ndti-ink);
  box-sizing: border-box;
}
.ndti-calc *, .ndti-calc *::before, .ndti-calc *::after,
.ndti-theory *, .ndti-index * { box-sizing: border-box; }

/* ---------- shell ---------- */
.ndti-calc {
  background: var(--ndti-white);
  border: 1px solid var(--ndti-bd);
  border-radius: var(--ndti-r-lg);
  overflow: hidden;
  margin: 0 0 28px;
}
.ndti-calc__body {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}
@media (max-width: 860px) { .ndti-calc__body { grid-template-columns: 1fr; } }

/* ---------- form ---------- */
.ndti-calc__form {
  background: var(--ndti-panel);
  border-right: 1px solid var(--ndti-bd);
  padding: 18px 20px 20px;
  margin: 0;
}
@media (max-width: 860px) {
  .ndti-calc__form { border-right: 0; border-bottom: 1px solid var(--ndti-bd); }
}
.ndti-calc__formhead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 0 0 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--ndti-bd);
}
.ndti-calc__formtitle {
  margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ndti-muted);
}
.ndti-unitsys { display: inline-flex; border: 1px solid var(--ndti-bd-2); border-radius: 6px; overflow: hidden; }
.ndti-unitsys__btn {
  appearance: none; border: 0; background: var(--ndti-white); cursor: pointer;
  font: inherit; font-size: 11.5px; font-weight: 600; padding: 5px 10px;
  color: var(--ndti-muted); border-right: 1px solid var(--ndti-bd-2); line-height: 1.4;
}
.ndti-unitsys__btn:last-child { border-right: 0; }
.ndti-unitsys__btn[aria-pressed="true"] { background: var(--ndti-green); color: #fff; }

.ndti-field { margin: 0 0 14px; }
.ndti-field__label { display: block; margin: 0 0 5px; }
.ndti-field__name { font-size: 13px; font-weight: 600; color: var(--ndti-ink); }
.ndti-field__ctrl { display: flex; gap: 6px; align-items: stretch; }
.ndti-input {
  flex: 1 1 auto; min-width: 0; font: inherit; font-size: 14px;
  padding: 8px 10px; border: 1px solid var(--ndti-bd-2); border-radius: 7px;
  background: var(--ndti-white); color: var(--ndti-ink); line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.ndti-input:focus {
  outline: 0; border-color: var(--ndti-green);
  box-shadow: 0 0 0 3px rgba(61, 145, 66, .16);
}
.ndti-input:disabled { background: #eef1f3; color: var(--ndti-muted); cursor: not-allowed; }
.ndti-unit {
  flex: 0 0 auto; font: inherit; font-size: 12.5px; padding: 8px 6px;
  border: 1px solid var(--ndti-bd-2); border-radius: 7px;
  background: var(--ndti-white); color: var(--ndti-muted); max-width: 108px;
}
.ndti-unit--static {
  display: inline-flex; align-items: center; background: transparent;
  border-color: transparent; padding-left: 2px; padding-right: 2px; white-space: nowrap;
}
.ndti-field__help { margin: 5px 0 0; font-size: 11.5px; color: var(--ndti-muted); line-height: 1.45; }

.ndti-range { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; margin: 6px 0 0; background: transparent; cursor: pointer; }
.ndti-range::-webkit-slider-runnable-track { height: 3px; background: var(--ndti-bd-2); border-radius: 2px; }
.ndti-range::-moz-range-track { height: 3px; background: var(--ndti-bd-2); border-radius: 2px; }
.ndti-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%;
  background: var(--ndti-green); border: 2px solid #fff; margin-top: -6px;
  box-shadow: 0 0 0 1px var(--ndti-green);
}
.ndti-range::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%; background: var(--ndti-green);
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ndti-green);
}
.ndti-range:disabled::-webkit-slider-thumb { background: var(--ndti-muted-2); box-shadow: 0 0 0 1px var(--ndti-muted-2); }

/* ---------- buttons ---------- */
.ndti-calc__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ndti-bd); }
.ndti-btn {
  appearance: none; font: inherit; font-size: 12.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 7px; cursor: pointer; line-height: 1.4;
  border: 1px solid var(--ndti-bd-2); background: var(--ndti-white); color: var(--ndti-ink);
  text-decoration: none; display: inline-block;
}
.ndti-btn:hover { border-color: var(--ndti-green); color: var(--ndti-green); }
.ndti-btn--primary { background: var(--ndti-green); border-color: var(--ndti-green); color: #fff; }
.ndti-btn--primary:hover { background: var(--ndti-green-dk); border-color: var(--ndti-green-dk); color: #fff; }
.ndti-btn:focus-visible { outline: 2px solid var(--ndti-green); outline-offset: 2px; }

.ndti-presets { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: 10px; }
.ndti-presets__lab { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ndti-muted); }
.ndti-chip {
  appearance: none; font: inherit; font-size: 12px; padding: 4px 9px; cursor: pointer;
  border: 1px solid var(--ndti-green-bd); background: var(--ndti-green-bg);
  color: var(--ndti-green-dk); border-radius: 20px;
}
.ndti-chip:hover { background: var(--ndti-green); color: #fff; border-color: var(--ndti-green); }

/* ---------- membership lock ---------- */
.ndti-lock {
  margin-top: 16px; padding: 14px 15px; border-radius: var(--ndti-r);
  background: var(--ndti-green-bg); border: 1px solid var(--ndti-green-bd);
}
.ndti-lock__t { margin: 0 0 5px; font-size: 13px; font-weight: 700; color: var(--ndti-navy); }
.ndti-lock__p { margin: 0 0 11px; font-size: 12.5px; color: var(--ndti-muted); line-height: 1.5; }
.ndti-lock .ndti-btn { margin-right: 6px; }
.ndti-lock__ul { margin: 0 0 12px; padding-left: 17px; font-size: 12.5px; color: var(--ndti-muted); line-height: 1.65; }
.ndti-lock__ul li { margin-bottom: 3px; }
.ndti-lock__demo { margin: 11px 0 0; font-size: 12px; color: var(--ndti-muted); line-height: 1.6; }
.ndti-lock__demo a { color: var(--ndti-green-dk); font-weight: 600; text-decoration: none; }
.ndti-lock__demo a:hover { text-decoration: underline; }
.ndti-freenote {
  margin: 12px 0 0; padding: 10px 12px; font-size: 12.5px; line-height: 1.55;
  color: var(--ndti-muted); background: var(--ndti-green-bg);
  border: 1px solid var(--ndti-green-bd); border-radius: var(--ndti-r);
}
.ndti-freenote a { color: var(--ndti-green-dk); font-weight: 600; text-decoration: none; }
.ndti-freenote a:hover { text-decoration: underline; }

/* ---------- results ---------- */
.ndti-calc__results { padding: 18px 20px 20px; min-width: 0; }
.ndti-primary {
  background: linear-gradient(120deg, var(--ndti-navy-dk) 0%, #173026 60%, #1d4a2c 100%);
  border-radius: var(--ndti-r); padding: 16px 18px; color: #fff; margin: 0 0 14px;
}
.ndti-primary__lab {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #7FD18F; margin-bottom: 4px;
}
.ndti-primary__row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ndti-primary__val { font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ndti-primary__unit { font-size: 15px; font-weight: 600; color: #c9d8cf; }
.ndti-primary__help { margin: 7px 0 0; font-size: 12.5px; color: #c9d8cf; line-height: 1.5; }

.ndti-outgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 0; border: 1px solid var(--ndti-bd); border-radius: var(--ndti-r); overflow: hidden; }
.ndti-out { padding: 9px 12px; border-right: 1px solid var(--ndti-bd); border-bottom: 1px solid var(--ndti-bd); background: var(--ndti-white); }
.ndti-out__lab { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ndti-muted-2); margin-bottom: 2px; }
.ndti-out__val { display: block; font-size: 17px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; color: var(--ndti-ink); }
.ndti-out__unit { font-style: normal; font-size: 11px; font-weight: 500; color: var(--ndti-muted); margin-left: 3px; }

.ndti-warns:empty { display: none; }
.ndti-warn { padding: 9px 12px; border-radius: var(--ndti-r); font-size: 13px; margin: 0 0 8px; border: 1px solid; line-height: 1.5; }
.ndti-warn--warn { background: var(--ndti-warn-bg); border-color: #f0d5a8; color: var(--ndti-warn); }
.ndti-warn--error { background: var(--ndti-err-bg); border-color: #f3c2bd; color: var(--ndti-err); }
/* engine could not evaluate an expression — a defect in the definition, not a finding */
.ndti-warn--fault { background: var(--ndti-err-bg); border: 1px dashed var(--ndti-err); color: var(--ndti-err); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }

.ndti-formula { margin: 14px 0 0; border: 1px solid var(--ndti-bd); border-radius: var(--ndti-r); overflow: hidden; }
.ndti-formula__lab { display: block; padding: 7px 12px; background: var(--ndti-panel); border-bottom: 1px solid var(--ndti-bd); font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ndti-muted); }
.ndti-formula__body { margin: 0; padding: 11px 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.65; color: var(--ndti-ink); overflow-x: auto; white-space: pre; background: var(--ndti-white); }

.ndti-notes { margin: 12px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--ndti-muted); }
.ndti-notes li { margin-bottom: 4px; }
.ndti-ref { margin: 12px 0 0; font-size: 12px; color: var(--ndti-muted); }
.ndti-ref__lab { font-weight: 700; letter-spacing: .07em; text-transform: uppercase; font-size: 10.5px; color: var(--ndti-muted-2); }

/* ---------- simulation ---------- */
.ndti-sim { border-top: 1px solid var(--ndti-bd); background: var(--ndti-panel); }
.ndti-sim__head { padding: 9px 20px; border-bottom: 1px solid var(--ndti-bd); }
.ndti-sim__lab { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ndti-muted); }
.ndti-sim__canvas { display: block; width: 100%; height: 340px; background: var(--ndti-white); touch-action: none; }
@media (max-width: 640px) { .ndti-sim__canvas { height: 260px; } }

/* ---------- public theory block (indexable, ungated) ---------- */
.ndti-theory { max-width: 68ch; }
.ndti-theory h2 { font-size: 20px; font-weight: 700; margin: 26px 0 10px; color: var(--ndti-ink); }
.ndti-theory p { margin: 0 0 13px; color: #33475a; }
.ndti-theory code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; background: var(--ndti-panel); border: 1px solid var(--ndti-bd); border-radius: 4px; padding: 1px 4px; }
.ndti-worked { border: 1px solid var(--ndti-green-bd); background: var(--ndti-green-bg); border-radius: var(--ndti-r); padding: 14px 16px; margin: 18px 0; }
.ndti-worked h3 { margin: 0 0 9px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ndti-green-dk); }
.ndti-worked table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ndti-worked td { padding: 4px 0; border-bottom: 1px solid var(--ndti-green-bd); color: #33475a; }
.ndti-worked td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ndti-navy); }
.ndti-worked tr:last-child td { border-bottom: 0; }
.ndti-worked__note { margin: 9px 0 0; font-size: 12.5px; color: var(--ndti-muted); }

.ndti-wavemode {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px;
  background: var(--ndti-green-bg); border: 1px solid var(--ndti-green-bd); color: var(--ndti-green-dk);
}
.ndti-wavemode--compression { background: #eef4fb; border-color: #cbdcf0; color: #24557f; }
.ndti-wavemode--shear { background: var(--ndti-green-bg); border-color: var(--ndti-green-bd); color: var(--ndti-green-dk); }
.ndti-wavemode--both { background: #f6f1fb; border-color: #ded0ef; color: #6a4a91; }
.ndti-wavemode--surface { background: #fdf6ec; border-color: #f0d5a8; color: #b4690e; }

/* ---------- index / directory ---------- */
.ndti-index__filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.ndti-index__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ndti-card { border: 1px solid var(--ndti-bd); border-radius: var(--ndti-r); padding: 14px 16px; background: #fff; text-decoration: none; display: block; color: inherit; }
.ndti-card:hover { border-color: var(--ndti-green); box-shadow: 0 2px 10px rgba(13, 27, 36, .06); }
.ndti-card__m { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ndti-green); }
.ndti-card__t { margin: 4px 0 5px; font-size: 15px; font-weight: 700; color: var(--ndti-ink); line-height: 1.3; }
.ndti-card__s { margin: 0; font-size: 12.5px; color: var(--ndti-muted); line-height: 1.5; }

@media (prefers-reduced-motion: reduce) { .ndti-calc * { transition: none !important; animation: none !important; } }

/* ============================================================
   Calculator directory (archive)
   ============================================================ */
.ndti-archive {
  --ndti-green: #3d9142; --ndti-green-dk: #337a38; --ndti-green-br: #7ac142;
  --ndti-green-bg: #f2faf4; --ndti-green-bd: #cfe6d4;
  --ndti-navy: #0d1b24; --ndti-navy-dk: #0b1620; --ndti-ink: #1d2327;
  --ndti-muted: #667781; --ndti-muted-2: #8ea0ab; --ndti-bd: #e6eaee;
  --ndti-bd-2: #cfd8de; --ndti-panel: #f5f7f8;
  background: var(--ndti-panel);
  color: var(--ndti-ink);
  font-size: 15px; line-height: 1.55;
}
.ndti-archive *, .ndti-archive *::before, .ndti-archive *::after { box-sizing: border-box; }
.ndti-archive__inner { max-width: 1180px; margin: 0 auto; padding: 0 clamp(14px, 3.5vw, 32px) 64px; }

/* ---------- hero ---------- */
.ndti-hero {
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(122,193,66,.18) 0%, transparent 55%),
    linear-gradient(120deg, #0b1620 0%, #173026 62%, #1d4a2c 100%);
  border-radius: clamp(14px, 2.5vw, 20px);
  padding: clamp(22px, 4.5vw, 44px) clamp(18px, 4vw, 44px);
  margin: clamp(14px, 3vw, 30px) 0 clamp(14px, 2.5vw, 22px);
  color: #fff;
}
.ndti-hero__eyebrow {
  margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #7FD18F;
}
.ndti-hero__h {
  margin: 0 0 10px; font-size: clamp(26px, 5.4vw, 42px); line-height: 1.06;
  font-weight: 800; letter-spacing: -.02em; color: #fff;
}
.ndti-hero__p { margin: 0; font-size: clamp(14px, 1.6vw, 16px); line-height: 1.6; color: #c9d8cf; max-width: 72ch; }
.ndti-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; }
.ndti-hero__meta span {
  font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: #8ea0ab;
}
.ndti-hero__meta b { color: #7ac142; font-size: 16px; letter-spacing: 0; margin-right: 3px; }

/* ---------- "try one now" strip ---------- */
.ndti-try { margin: 0 0 6px; }
.ndti-try__h {
  margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ndti-muted);
}
.ndti-try__row {
  display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--ndti-bd-2) transparent;
}
.ndti-try__card {
  flex: 0 0 auto; scroll-snap-align: start;
  display: flex; align-items: center; gap: 10px;
  max-width: 280px; min-height: 52px;
  background: #fff; border: 1px solid var(--ndti-green-bd); border-radius: 12px;
  padding: 10px 14px; text-decoration: none; color: var(--ndti-ink);
  transition: border-color .12s, box-shadow .12s;
}
.ndti-try__card:hover { border-color: var(--ndti-green); box-shadow: 0 4px 14px rgba(13,27,36,.08); }
.ndti-try__badge {
  flex: none; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  background: var(--ndti-green); color: #fff; border-radius: 20px; padding: 3px 8px;
}
.ndti-try__t { font-size: 13.5px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ndti-try__go { flex: none; color: var(--ndti-green); font-weight: 700; }

/* ---------- sticky filter bar ---------- */
.ndti-filters {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--ndti-panel) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  padding: 10px 0 8px; margin: 0 0 4px; border-bottom: 1px solid var(--ndti-bd);
}
@supports not (backdrop-filter: blur(1px)) { .ndti-filters { background: var(--ndti-panel); } }
.ndti-search {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid var(--ndti-bd-2); border-radius: 12px; padding: 0 14px; margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(13,27,36,.04);
}
.ndti-search svg { flex: none; color: var(--ndti-muted-2); }
.ndti-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; font: inherit;
  font-size: 16px; padding: 13px 0; color: var(--ndti-ink); outline: none;
}
.ndti-search input::placeholder { color: var(--ndti-muted-2); }
.ndti-search:focus-within { border-color: var(--ndti-green); box-shadow: 0 0 0 3px rgba(61,145,66,.15); }
.ndti-chips {
  display: flex; gap: 7px;
  overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.ndti-chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .ndti-chips { flex-wrap: wrap; overflow: visible; } }
.ndti-chip2 {
  appearance: none; flex: none; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .03em;
  min-height: 40px; padding: 8px 15px; border-radius: 22px; cursor: pointer; line-height: 1.3;
  border: 1px solid var(--ndti-bd-2); background: #fff; color: var(--ndti-muted);
  display: inline-flex; align-items: center; gap: 7px;
  transition: background .12s, color .12s, border-color .12s;
}
.ndti-chip2 i { font-style: normal; font-size: 11.5px; opacity: .6; font-variant-numeric: tabular-nums; }
.ndti-chip2:hover { border-color: var(--ndti-green); color: var(--ndti-green-dk); }
.ndti-chip2[aria-pressed="true"] { background: var(--ndti-navy); border-color: var(--ndti-navy); color: #fff; }
.ndti-chip2[aria-pressed="true"] i { opacity: .75; }
.ndti-chip2--free[aria-pressed="true"] { background: var(--ndti-green); border-color: var(--ndti-green); }
.ndti-chip2:focus-visible, .ndti-search input:focus-visible { outline: 2px solid var(--ndti-green); outline-offset: 2px; }
.ndti-count { margin: 8px 0 0; font-size: 12.5px; color: var(--ndti-muted); }

/* ---------- method groups ---------- */
.ndti-group { margin-top: clamp(24px, 4vw, 38px); scroll-margin-top: 130px; }
.ndti-group[hidden] { display: none; }
.ndti-group__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ndti-group__code {
  font-size: 11px; font-weight: 800; letter-spacing: .09em; background: var(--ndti-navy);
  color: #fff; padding: 5px 10px; border-radius: 7px; flex: none;
}
.ndti-group__h { margin: 0; font-size: clamp(18px, 2.6vw, 23px); font-weight: 800; letter-spacing: -.015em; flex: 1 1 auto; }
.ndti-group__h a { color: var(--ndti-ink); text-decoration: none; }
.ndti-group__h a:hover { color: var(--ndti-green-dk); }
.ndti-group__n {
  font-size: 12px; font-weight: 700; color: var(--ndti-muted-2); font-variant-numeric: tabular-nums;
  background: #fff; border: 1px solid var(--ndti-bd); border-radius: 20px; padding: 3px 10px;
}
.ndti-group__p { margin: 8px 0 14px; font-size: 13.5px; color: var(--ndti-muted); max-width: 76ch; }

.ndti-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.ndti-card2 {
  display: flex; flex-direction: column; gap: 7px;
  text-decoration: none; color: inherit; background: #fff;
  border: 1px solid var(--ndti-bd); border-radius: 14px; padding: 15px 16px 14px;
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.ndti-card2[hidden] { display: none; }
.ndti-card2:hover, .ndti-card2:focus-visible {
  border-color: var(--ndti-green); box-shadow: 0 6px 20px rgba(13,27,36,.09); transform: translateY(-2px);
}
.ndti-card2:focus-visible { outline: 2px solid var(--ndti-green); outline-offset: 2px; }
.ndti-card2__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ndti-card2__m {
  font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--ndti-green-dk);
  background: var(--ndti-green-bg); border: 1px solid var(--ndti-green-bd);
  border-radius: 6px; padding: 2px 7px;
}
.ndti-card2__free {
  font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 20px; background: var(--ndti-green); color: #fff;
}
.ndti-card2__t { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.32; color: var(--ndti-ink); }
.ndti-card2:hover .ndti-card2__t { color: var(--ndti-green-dk); }
.ndti-card2__s { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ndti-muted); flex: 1 1 auto; }
.ndti-card2__w {
  align-self: flex-start; font-size: 10.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px;
  background: var(--ndti-green-bg); border: 1px solid var(--ndti-green-bd); color: var(--ndti-green-dk);
}
.ndti-card2__w--compression { background: #eef4fb; border-color: #cbdcf0; color: #24557f; }
.ndti-card2__w--both { background: #f6f1fb; border-color: #ded0ef; color: #6a4a91; }
.ndti-card2__w--surface { background: #fdf6ec; border-color: #f0d5a8; color: #b4690e; }

.ndti-empty2 { padding: 44px 0; text-align: center; color: var(--ndti-muted); font-size: 15px; }
.ndti-archive__foot { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--ndti-bd); }
.ndti-archive__foot p { margin: 0; font-size: 12.5px; color: var(--ndti-muted-2); max-width: 84ch; line-height: 1.6; }

/* phones: tighter paddings, full-bleed feel */
@media (max-width: 640px) {
  .ndti-hero { padding: 20px 18px; }
  .ndti-hero__meta { gap: 6px 14px; }
  .ndti-card2 { border-radius: 12px; }
  .ndti-grid { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ndti-archive * { transition: none !important; }
  .ndti-try__row { scroll-behavior: auto; }
}

/* related, on the single view */
.ndti-related { margin: 34px 0 0; padding-top: 22px; border-top: 1px solid #e6eaee; }
.ndti-related__h { margin: 0 0 14px; font-size: 18px; font-weight: 700; color: #1d2327; }
.ndti-related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.ndti-related li { border: 1px solid #e6eaee; border-radius: 9px; padding: 12px 14px; background: #fff; }
.ndti-related li a { display: block; font-weight: 600; font-size: 14.5px; color: #1d2327; text-decoration: none; margin-bottom: 3px; }
.ndti-related li a:hover { color: #3d9142; }
.ndti-related li span { display: block; font-size: 12.5px; color: #667781; line-height: 1.45; }
.ndti-related__all { margin: 14px 0 0; font-size: 14px; }
.ndti-related__all a { color: #3d9142; font-weight: 600; text-decoration: none; }

/* ---------- liability disclaimer ---------- */
.ndti-disclaimer {
  margin: 14px 0 0; padding: 12px 16px; border-radius: 10px;
  background: #fdf6ec; border: 1px solid #f0d5a8;
}
.ndti-disclaimer__t {
  margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: #b4690e;
}
.ndti-disclaimer__p { margin: 0; font-size: 12px; line-height: 1.6; color: #7a5a23; }
.ndti-disclaimer__p a { color: #b4690e; font-weight: 700; }
.ndti-archive .ndti-disclaimer { margin-top: 16px; }
