/**
 * Numerology tool pages — aligned with site: slate neutrals, #ff6b35 accent,
 * card shadows like panchang-section / category pages.
 */

.nm-shell,
.nr-shell {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f8fafc 100%);
  min-height: 60vh;
}

/* --- Hero (landing + match) --- */
.nm-hero,
.mm-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  border-left: 5px solid #ff6b35;
}

@media (min-width: 768px) {
  .nm-hero,
  .mm-hero {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 2rem 2rem;
  }
}

.nm-kicker,
.mm-kicker,
.nr-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff6b35;
  margin: 0 0 0.5rem;
}

.nm-hero h1,
.mm-hero h1,
.nr-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.65rem;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .nm-hero h1,
  .mm-hero h1 {
    font-size: 2.1rem;
  }
}

.nm-sub,
.mm-hero p {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.nm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.nm-tags span {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
}

.nm-right {
  display: flex;
  justify-content: center;
}

.nm-orb-wrap {
  text-align: center;
}

.nm-orb {
  width: 120px;
  height: 120px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  background: linear-gradient(145deg, #ff6b35 0%, #f7931e 55%, #ea580c 100%);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.35);
}

.nm-orb-note {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

/* --- Two-column form + info --- */
.nm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 992px) {
  .nm-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.nm-form-card,
.nm-info-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.nm-form-card h2,
.nm-info-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.nm-form-card > p,
.nm-info-card > p {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.nm-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  margin: 0.85rem 0 0.35rem;
}

.nm-form label:first-of-type {
  margin-top: 0;
}

.nm-form input[type="text"],
.nm-form input[type="date"] {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.nm-form input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.nm-form button[type="submit"] {
  margin-top: 1.25rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
  transition: transform 0.15s, filter 0.15s;
}

.nm-form button[type="submit"]:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.nm-info-card ul {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: #475569;
  line-height: 1.7;
}

.nm-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  color: #ea580c;
  text-decoration: none;
}

.nm-link:hover {
  color: #c2410c;
  text-decoration: underline;
}

/* --- Article blocks --- */
.nm-content {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem 1.35rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.nm-content h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #ff6b35;
  display: inline-block;
}

.nm-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin: 1.25rem 0 0.5rem;
}

.nm-content h4:first-of-type {
  margin-top: 0.5rem;
}

.nm-content p {
  color: #475569;
  line-height: 1.75;
  margin: 0 0 0.85rem;
}

.nm-content.nm-faq h3 {
  display: block;
  border-bottom: none;
  padding-bottom: 0;
}

.nm-faq-item {
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.nm-faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.nm-faq-item h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: #0f172a;
}

.nm-faq-item p {
  margin: 0;
  font-size: 0.95rem;
}

.nm-disclaimer,
.mm-disclaimer {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

/* --- Result page --- */
.nr-header-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem 1.35rem;
  border-left: 5px solid #ff6b35;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.nr-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #475569;
}

.nr-score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.75rem;
}

.nr-score {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 0.65rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.nr-score span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.nr-score strong {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ff6b35;
  line-height: 1;
}

.nr-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem 1.15rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.nr-card h3.np-sa-aac113f08b {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem;
}

.nr-steps {
  font-size: 0.9rem;
  color: #475569;
}

.nr-step-item {
  padding: 0.35rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.nr-step-item:last-child {
  border-bottom: none;
}

.nr-content {
  color: #334155;
  line-height: 1.75;
}

.nr-section .nr-title {
  font-size: 1.15rem;
  color: #0f172a;
}

.nr-section .nr-subtitle {
  font-size: 1rem;
  color: #1e293b;
  margin: 1rem 0 0.5rem;
}

.nr-section .nr-point {
  margin: 0.35rem 0;
  color: #475569;
}

.nr-cta {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border-color: #fed7aa;
}

.nr-cta a {
  color: #ea580c;
  font-weight: 600;
}

.nr-save-btn,
.mm-save-btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.nr-save-btn:hover,
.mm-save-btn:hover {
  filter: brightness(1.05);
}

.nr-save-msg {
  display: none;
  margin-top: 0.65rem;
  font-size: 0.9rem;
}

.nr-save-msg.ok {
  color: #15803d;
}

.nr-save-msg.err {
  color: #b91c1c;
}

.nr-disclaimer {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

/* Raw h5/h6 from pathResultSmall* (no nr-section wrapper) + prose inside cards */
.nr-card h5,
.nr-section h5 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.65rem;
  line-height: 1.35;
}

.nr-card h6,
.nr-section h6 {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  color: #475569;
  margin: 0.45rem 0;
  line-height: 1.65;
}

.nr-card h6 b,
.nr-section h6 b {
  color: #334155;
  font-weight: 700;
}

.nr-card hr,
.nr-section + hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 1rem 0;
}

.nr-card > p,
.nr-section > p,
.nr-card p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.75;
  margin: 0.75rem 0 0;
}

.nr-card > p b,
.nr-section > p b {
  color: #0f172a;
}

.nr-path-lead {
  padding-bottom: 0.25rem;
}

.nr-path-footnote {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.7;
  margin: 0;
  padding-top: 0.25rem;
}

.nr-path-footnote b {
  color: #334155;
}

/* --- Matchmaking --- */
.mm-hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mm-badge {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  color: #fff;
  background: linear-gradient(145deg, #ec4899 0%, #f43f5e 50%, #ff6b35 100%);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.35);
}

.mm-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.mm-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem;
}

.mm-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .mm-form {
    grid-template-columns: 1fr 1fr;
  }
}

.mm-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #ff6b35;
}

.mm-col label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  margin: 0.65rem 0 0.3rem;
}

.mm-col label:first-of-type {
  margin-top: 0;
}

.mm-col input[type="text"],
.mm-col input[type="date"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.mm-col input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.mm-actions {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

.mm-actions button {
  width: 100%;
  max-width: 320px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}

.mm-actions button:hover {
  filter: brightness(1.05);
}

.mm-info {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.35rem 1.25rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.mm-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.65rem;
}

.mm-info p {
  color: #475569;
  line-height: 1.7;
  margin: 0 0 0.65rem;
}

.mm-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #475569;
  line-height: 1.75;
}

.mm-faq .mm-faq-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.mm-faq .mm-faq-item:last-child {
  border-bottom: none;
}

.mm-faq h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.35rem;
}

.mm-faq p {
  margin: 0;
  font-size: 0.92rem;
}

.mm-people {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
}

.mm-score-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

@media (min-width: 768px) {
  .mm-score-card {
    grid-template-columns: 220px 1fr;
  }
}

.mm-score-left {
  text-align: center;
  padding: 0.5rem;
}

.mm-score-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.mm-score-value {
  font-size: 3rem;
  font-weight: 800;
  color: #ff6b35;
  line-height: 1.1;
}

.mm-score-band {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.mm-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem;
}

.mm-mini {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  font-size: 0.8rem;
}

.mm-mini span {
  display: block;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.mm-mini strong {
  color: #0f172a;
  font-size: 0.95rem;
}

.mm-save-msg {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

@media (max-width: 576px) {
  .nm-hero h1,
  .mm-hero h1 {
    font-size: 1.45rem;
  }
  .nr-score-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
