/* Numerology Calculator (Tool 14, prefix nm-) — the input, the Life Path hero, the name-number Bento and the proof of math.
   Loaded through the `styles:` list in numerology-hub.njk, so it sits in <head>, BEFORE the tool kit's inline <style> blocks.
   Rules are scoped `.nm .x`; where one restyles a kit class it carries one more class than the kit's `.tk .x`, so it outranks it.
   Depends on tokens.css, partials/tool-kit-css.njk and partials/result-kit-css.njk.

   Language: esoteric minimalism. The numbers are the artwork: 800-weight, geometric, set very large. The Life Path sits on the
   night surface (#0B1020) in amber; the three name numbers sit on white cards in ink. No illustration. The maths is shown, not hidden. */
.tk.nm {
  --tk-accent: var(--accent-numerology, #D97706);
  --night: var(--bg-ink, #0B1020);
  --night-text: #F8FAFC;
  --night-muted: #94A3B8;
  --night-soft: #CBD5E1;
  --night-line: rgba(248, 250, 252, 0.14);
  --gold: #FBBF24;
  --tone-fusion: #7C3AED;
}

/* ================= Input ================= */
.tk #nm-forms { margin-bottom: 20px; }
.nm .nm-fields { display: grid; gap: 0 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .nm .nm-fields { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.nm .nm-fields .field:first-child { margin-top: 0; }
@media (max-width: 719px) { .nm .nm-fields .field:first-child { margin-top: 0; } }
.nm .nm-form input[type="date"] { min-width: 0; text-align: left; }
.nm .btn { background: var(--c-ink); border-bottom: 3px solid var(--c-accent); }
.nm .btn:hover { box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--c-ink) 70%, transparent); }
.nm .nm-go { width: min(100%, 380px); margin: 20px auto 0; display: flex; align-items: center; justify-content: center; gap: 10px; }
.nm .nm-hint { margin-top: 10px; text-align: center; }
.nm .nm-form .form-error { max-width: 560px; margin: 16px auto 0; text-align: center; }
.form-error:empty { display: none; }
.nm .btn-sm.primary { background: var(--c-ink); border-color: var(--c-ink); }
.nm .btn-sm.primary:hover:not(:disabled) { background: var(--c-ink); }

/* After a reading the input folds into one bar. The details stay one tap away. */
.nm .nm-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding: 12px 12px 12px 20px; border: 1px solid var(--c-line); border-radius: var(--r-card); background: var(--c-card); }
.nm .nm-strip-names { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; min-width: 0; font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.01em; }
.nm .nm-strip-names span { min-width: 0; overflow-wrap: anywhere; }
.nm .nm-strip-names small { font-size: 0.875rem; font-weight: 600; color: var(--c-muted); }
.nm .nm-strip + .tk-layout { margin-top: 16px; }
.nm .tk-layout.nm-layout { grid-template-columns: minmax(0, 1fr); }
.nm .nm-funnel { container: nmfunnel / inline-size; }
.nm .nm-kick { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-accent-ink); margin-bottom: 4px; }

/* ---- Empty state ---- */
.nm .nm-sample { margin: 0 auto; width: 100%; max-width: 240px; }
.nm .nm-sample .nm-nine { width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: no-preference) { .nm .nm-sample .nm-nine { animation: nm-turn 240s linear infinite; } }
@keyframes nm-turn { to { transform: rotate(360deg); } }

/* ================= Hero: the Life Path ================= */
.nm .nm-hero { background: var(--night); border-color: var(--night); color: var(--night-text); }
.nm .nm-hero .rk-eyebrow { color: var(--gold); }
.nm .nm-hero .rk-ribbon { background: rgba(248, 250, 252, 0.08); border-color: var(--night-line); color: var(--night-text); }
.nm .nm-hero .rk-top { position: relative; }
.nm .nm-mark { position: absolute; right: -3%; top: -10%; width: min(66%, 480px); height: auto; opacity: 0.55; pointer-events: none; }
.nm .nm-stage { position: relative; display: grid; gap: 10px 44px; margin-top: 16px; align-items: center; }
@container rk (min-width: 640px) { .nm .nm-stage { grid-template-columns: auto minmax(0, 1fr); } }
.nm .nm-lockup { min-width: 0; }

/* the numeral: 800 weight, geometric, set as large as its container allows */
.nm .nm-big { display: flex; align-items: baseline; margin: 0; font-weight: 800; letter-spacing: -0.06em; line-height: 0.8; font-size: clamp(7.5rem, 52cqw, 17rem); color: var(--gold); text-shadow: 0 0 64px rgba(251, 191, 36, 0.32); }
@container rk (min-width: 640px) { .nm .nm-big { font-size: clamp(9rem, 34cqw, 17rem); } }
.nm .nm-big-root { margin-left: 0.1em; font-size: 0.2em; font-weight: 700; letter-spacing: 0; color: var(--night-soft); text-shadow: none; }
.nm .nm-big-sm { font-size: clamp(5.5rem, 46cqw, 9rem); color: var(--c-ink); text-shadow: none; }
.nm .nm-big-sm .nm-big-root { color: var(--c-accent-ink); }

.nm .nm-arch { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.375rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.nm .nm-summary { margin-top: 12px; max-width: 46ch; font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.25rem); font-weight: 700; line-height: 1.4; color: #E2E8F0; }
.nm .nm-summary .rk-sent { display: block; }
.nm .nm-summary .rk-sent + .rk-sent { margin-top: 4px; }
.nm .nm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.nm .nm-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--night-line); background: rgba(248, 250, 252, 0.07); font-size: 0.875rem; font-weight: 700; color: var(--night-text); }
.nm .nm-chip-k { font-weight: 600; color: var(--night-muted); }
.nm .nm-hero .nm-chips .nm-chip:last-child b { color: var(--gold); }
.nm .nm-sh { display: inline-block; flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--tone-fusion); }
.nm .nm-hero .nm-sh { background: #A78BFA; }

.nm .nm-hero .rk-actions { margin-top: 8px; padding-top: 8px; border-top: 0; justify-content: flex-start; }
.nm .nm-hero .btn-sm { background: rgba(248, 250, 252, 0.06); border-color: var(--night-line); color: var(--night-text); }
.nm .nm-hero .btn-sm:hover:not(:disabled) { background: rgba(248, 250, 252, 0.14); border-color: rgba(248, 250, 252, 0.3); }
.nm .nm-hero .btn-sm.primary { background: var(--gold); border-color: var(--gold); color: #0B1020; }
.nm .nm-hero .btn-sm.primary:hover:not(:disabled) { background: var(--gold); filter: brightness(1.06); }
.nm .nm-hero .fine-print { color: var(--night-muted); }
.nm .nm-hero :focus-visible { outline-color: var(--gold); }

/* ================= Bento: the name numbers ================= */
.nm .nm-bar { display: flex; justify-content: flex-end; margin-top: -4px; }
.nm .rk-bento.nm-bento { grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
@container nmfunnel (min-width: 860px) { .nm .rk-bento.nm-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nm .nm-tile { display: flex; flex-direction: column; padding: 22px 20px 12px; }
.nm .nm-tile h3 { color: var(--c-accent-ink); }
.nm .nm-role { margin-top: 2px; font-size: 0.875rem; font-weight: 600; color: var(--c-muted); }
.nm .nm-role i { font-style: normal; padding: 0 4px; }
.nm .nm-tile-num { margin-top: 14px; }
.nm .nm-tile .nm-chip { margin-top: 10px; align-self: flex-start; background: #fff; border-color: color-mix(in srgb, var(--tone-fusion) 28%, #fff); color: var(--c-ink); }
.nm .nm-tile .rk-body { margin-top: 10px; font-size: 1rem; font-weight: 600; color: var(--c-ink); }

/* ================= Proof of math ================= */
.nm .nm-proof { margin-top: 20px; border-top: 1px solid var(--c-line); }
.nm .nm-hero .nm-proof { border-top-color: var(--night-line); }
.nm .nm-tile .nm-proof { margin-top: 16px; }
.nm .nm-tile .rk-body { margin-bottom: 16px; }
.nm .sub-h { margin: 22px 0 10px; }
.nm .nm-proof-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 0; background: none; border: 0; font: inherit; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: inherit; cursor: pointer; text-align: left; }
.nm .nm-proof-btn svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.nm .nm-proof[data-open="true"] .nm-proof-btn svg { transform: rotate(180deg); }
.nm .nm-proof-btn:hover { color: var(--c-accent-ink); }
.nm .nm-hero .nm-proof-btn:hover { color: var(--gold); }
.nm .nm-proof-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.32s var(--ease), visibility 0s linear 0.32s; }
.nm .nm-proof[data-open="true"] .nm-proof-panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.32s var(--ease), visibility 0s; }
.nm .nm-proof-in { overflow: hidden; min-height: 0; }
.nm .nm-proof-body { padding: 4px 0 16px; font-size: 0.9375rem; }
.nm .nm-proof-intro { color: var(--c-muted); }
.nm .nm-hero .nm-proof-intro { color: var(--night-muted); }

/* the reduction, link by link */
.nm .nm-chain { margin-top: 8px; font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; }
.nm .nm-chain i { font-style: normal; color: var(--c-muted); padding: 0 2px; }
.nm .nm-hero .nm-chain i { color: var(--night-muted); }
.nm .nm-links { margin-top: 4px; display: grid; gap: 2px; font-size: 0.9375rem; color: var(--c-muted); }
.nm .nm-hero .nm-links { color: var(--night-soft); }
.nm .nm-links b { color: var(--c-ink); }
.nm .nm-hero .nm-links b { color: var(--gold); }
.nm .nm-links .nm-held { font-family: inherit; font-size: 0.8125rem; font-weight: 600; padding-top: 2px; }
.nm .nm-parts { margin-top: 12px; display: grid; gap: 14px; }
.nm .nm-part { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--c-line); }
.nm .nm-hero .nm-part { border-bottom-color: var(--night-line); }
.nm .nm-part:last-child { border-bottom: 0; padding-bottom: 0; }
.nm .nm-part-k { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--c-muted); }
.nm .nm-hero .nm-part-k { color: var(--night-muted); }
.nm .nm-part-n { grid-column: 1; font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.nm .nm-part .nm-part-k { grid-column: 1; }
.nm .nm-part .nm-chain, .nm .nm-part .nm-links { grid-column: 2; grid-row: 1 / span 2; }
.nm .nm-part .nm-chain { grid-row: 1; margin-top: 0; }
.nm .nm-part .nm-links { grid-row: 2; }
.nm .nm-sumrow { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #F8FAFC; border: 1px solid var(--c-line); font-size: 1.0625rem; font-weight: 600; }
.nm .nm-sumrow b { font-weight: 800; }
.nm .nm-hero .nm-sumrow { background: rgba(248, 250, 252, 0.06); border-color: var(--night-line); }
.nm .nm-hero .nm-sumrow b { color: var(--gold); }
.nm .nm-redhead { margin-top: 16px; }

/* the letters of a name, value under each */
.nm .nm-words { margin-top: 12px; display: grid; gap: 14px; }
.nm .nm-wordname { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em; color: var(--c-muted); }
.nm .nm-tiles { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.nm .nm-tiles li { display: grid; justify-items: center; align-content: center; width: 30px; height: 44px; border-radius: 8px; border: 1px solid var(--c-line); background: #fff; line-height: 1.15; }
.nm .nm-tiles li b { font-size: 0.9375rem; font-weight: 800; }
.nm .nm-tiles li i { font-style: normal; font-size: 0.8125rem; font-weight: 700; }
.nm .nm-tiles li.is-on { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.nm .nm-tiles li.is-on i { color: var(--gold); }
.nm .nm-tiles li.is-off { border-style: dashed; color: #94A3B8; background: transparent; }
.nm .nm-wordsum { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin-top: 6px; color: var(--c-muted); }
.nm .nm-wordsum b { color: var(--c-ink); }
.nm .nm-yrule, .nm .nm-count { margin-top: 8px; font-size: 0.8125rem; color: var(--c-muted); }

/* ---- Next ---- */
.nm .nm-nexts { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .nm .nm-nexts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================= Method: the chart and the rules (static, indexable) ================= */
.nm .nm-chart { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .nm .nm-chart { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
.nm .nm-chart li { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border: 1px solid var(--c-line); border-radius: 12px; background: #fff; }
.nm .nm-chart b { font-size: 1.5rem; font-weight: 800; line-height: 1.1; color: var(--c-ink); }
.nm .nm-chart span { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; color: var(--c-accent-ink); white-space: nowrap; }
.nm .nm-rules { display: grid; gap: 14px 28px; margin-top: 24px; }
@media (min-width: 720px) { .nm .nm-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nm .nm-rules dt { font-weight: 800; letter-spacing: -0.01em; }
.nm .nm-rules dd { margin-top: 2px; color: var(--c-muted); font-size: 0.9375rem; }

/* ================= Single-Number Tool Pages (Life Path, Destiny, Soul Urge, Personality) ================= */
.tk.nm .card,
.tk.nm-tool .card {
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--border-subtle, #E2E8F0);
  border-radius: 12px;
  padding: 20px;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 720px) {
  .tk.nm .card,
  .tk.nm-tool .card {
    padding: 28px;
  }
}

.tk.nm .bf-form,
.tk.nm-tool .bf-form {
  display: grid;
  gap: 18px;
}

.tk.nm .field,
.tk.nm-tool .field {
  display: grid;
  gap: 8px;
  position: relative;
}

.tk.nm .field__label,
.tk.nm .field > label,
.tk.nm-tool .field__label,
.tk.nm-tool .field > label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-main, #0F172A);
  margin: 0;
}

.tk.nm .field__hint,
.tk.nm .hint,
.tk.nm-tool .field__hint,
.tk.nm-tool .hint {
  font-size: 0.8125rem;
  color: var(--text-muted, #64748B);
  margin: 4px 0 0;
  line-height: 1.4;
}

/* Form Inputs (No browser-default grey inputs) */
.tk.nm .bf-form input[type="text"],
.tk.nm .bf-form input[type="date"],
.tk.nm-tool .bf-form input[type="text"],
.tk.nm-tool .bf-form input[type="date"] {
  width: 100%;
  min-height: 48px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--c-field, #7D8BA0);
  border-radius: 12px;
  background: #FFFFFF;
  font: inherit;
  font-size: 1rem;
  color: var(--text-main, #0F172A);
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tk.nm .bf-form input::placeholder,
.tk.nm-tool .bf-form input::placeholder {
  color: #94A3B8;
}

.tk.nm .bf-form input:hover:not(:disabled),
.tk.nm-tool .bf-form input:hover:not(:disabled) {
  border-color: var(--text-main, #0F172A);
}

.tk.nm .bf-form input:focus,
.tk.nm-tool .bf-form input:focus {
  outline: none;
  border-color: var(--c-accent, var(--accent-numerology, #D97706));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent, var(--accent-numerology, #D97706)) 20%, transparent);
}

.tk.nm .bf-form input[aria-invalid="true"],
.tk.nm-tool .bf-form input[aria-invalid="true"] {
  border-color: #E11D48;
  box-shadow: 0 0 0 4px color-mix(in srgb, #E11D48 14%, transparent);
}

/* Checkbox */
.tk.nm .bf-check,
.tk.nm-tool .bf-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  min-height: 28px;
  margin-top: 4px;
  color: var(--text-main, #0F172A);
}

.tk.nm .bf-check input[type="checkbox"],
.tk.nm-tool .bf-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--c-accent, var(--accent-numerology, #D97706));
  margin: 0;
  flex: none;
  cursor: pointer;
}

/* Errors */
.tk.nm .bf-error,
.tk.nm-tool .bf-error {
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #9F1239;
}

.tk.nm .bf-error:not(:empty),
.tk.nm-tool .bf-error:not(:empty) {
  padding: 10px 14px;
  border-radius: 10px;
  background: #FFF1F2;
  border: 1px solid #FFE4E6;
}

/* Buttons (No 21px browser default) */
.tk.nm .btn,
.tk.nm-tool .btn {
  min-height: 48px;
  height: 52px;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 12px;
  background: var(--c-accent, var(--accent-numerology, #D97706));
  color: #FFFFFF;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: filter 0.15s, box-shadow 0.15s, transform 0.15s;
  box-sizing: border-box;
  text-decoration: none;
}

.tk.nm .btn:hover,
.tk.nm-tool .btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--c-accent, var(--accent-numerology, #D97706)) 70%, transparent);
}

.tk.nm .btn:active,
.tk.nm-tool .btn:active {
  transform: translateY(1px);
}

.tk.nm .btn--quiet,
.tk.nm-tool .btn--quiet {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle, #E2E8F0);
  color: var(--text-main, #0F172A);
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
}

.tk.nm .btn--quiet:hover,
.tk.nm-tool .btn--quiet:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  filter: none;
  box-shadow: none;
}

.tk.nm .bf-actions,
.tk.nm-tool .bf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

/* Saved People Chips */
.tk.nm .chips,
.tk.nm-tool .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.tk.nm .chips:empty,
.tk.nm-tool .chips:empty {
  display: none;
}

.tk.nm .chip,
.tk.nm-tool .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle, #E2E8F0);
  background: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main, #0F172A);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.tk.nm .chip:hover,
.tk.nm-tool .chip:hover {
  background: color-mix(in srgb, var(--c-accent, var(--accent-numerology, #D97706)) 10%, #FFFFFF);
}

.tk.nm .chip[aria-pressed="true"],
.tk.nm-tool .chip[aria-pressed="true"] {
  background: var(--c-accent, var(--accent-numerology, #D97706));
  color: #FFFFFF;
  border-color: var(--c-accent, var(--accent-numerology, #D97706));
}

/* Result Card */
.tk.nm .card.result,
.tk.nm-tool .card.result {
  margin-top: 24px;
  border: 1px solid var(--border-subtle, #E2E8F0);
  border-radius: 12px;
  padding: 24px;
  background: #FFFFFF;
  scroll-margin-top: 80px;
  text-align: center;
}

@media (min-width: 720px) {
  .tk.nm .card.result,
  .tk.nm-tool .card.result {
    padding: 32px;
  }
}

.tk.nm .result__label,
.tk.nm-tool .result__label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-accent, var(--accent-numerology, #D97706));
  margin: 0;
  outline: none;
}

.tk.nm .result__value,
.tk.nm-tool .result__value {
  font-size: clamp(4rem, 2.5rem + 5vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--c-accent, var(--accent-numerology, #D97706));
  margin: 12px 0 6px;
  font-variant-numeric: tabular-nums;
}

.tk.nm .result__meaning,
.tk.nm-tool .result__meaning {
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-main, #0F172A);
  margin: 0 0 12px;
}

.tk.nm .bf-note:not(:empty),
.tk.nm-tool .bf-note:not(:empty) {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-accent, var(--accent-numerology, #D97706)) 12%, #FFFFFF);
  border: 1px solid color-mix(in srgb, var(--c-accent, var(--accent-numerology, #D97706)) 28%, #FFFFFF);
  color: var(--c-accent-ink, #78350F);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.tk.nm .nm-reading,
.tk.nm-tool .nm-reading {
  text-align: left;
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 20px;
  background: #F8FAFC;
  border: 1px solid var(--border-subtle, #E2E8F0);
  border-radius: 12px;
}

.tk.nm .nm-reading dt,
.tk.nm-tool .nm-reading dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-accent, var(--accent-numerology, #D97706));
  margin: 0;
}

.tk.nm .nm-reading dd,
.tk.nm-tool .nm-reading dd {
  margin: 2px 0 8px;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--text-main, #0F172A);
}

.tk.nm .nm-reading dd:last-child,
.tk.nm-tool .nm-reading dd:last-child {
  margin-bottom: 0;
}

.tk.nm .result__actions,
.tk.nm-tool .result__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.tk.nm .bf-section,
.tk.nm-tool .bf-section {
  text-align: left;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle, #E2E8F0);
}

.tk.nm .bf-section h3,
.tk.nm-tool .bf-section h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--text-main, #0F172A);
}

.tk.nm .nm-steps,
.tk.nm-tool .nm-steps {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.tk.nm .nm-steps li,
.tk.nm-tool .nm-steps li {
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  background: #F8FAFC;
  border: 1px solid var(--border-subtle, #E2E8F0);
  border-radius: 12px;
}

.tk.nm .nm-step__label,
.tk.nm-tool .nm-step__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #64748B);
}

.tk.nm .nm-step__math,
.tk.nm-tool .nm-step__math {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-main, #0F172A);
  overflow-wrap: anywhere;
}

.nm .nm-profile-link-wrap {
  margin-top: 12px;
}

.nm .nm-hero .nm-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease;
}

.nm .nm-hero .nm-profile-link:hover {
  opacity: 0.85;
}

.nm .nm-tile .nm-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-accent-ink, #B45309);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s ease;
}

.nm .nm-tile .nm-profile-link:hover {
  opacity: 0.8;
}

