/* Full BNN — Nadi Astrology Reading
   Prose-first birth reading. Reuses the shared .milan-app card + page theme. */

.nd-wrap {
  margin-top: 1rem;
}

/* Hero */
.nd-hero {
  text-align: center;
  padding: 1.1rem 1rem;
  margin: 0 0 0.85rem;
  background: linear-gradient(180deg, #f7eccf, #f3e4c6);
  border: 1px solid var(--cream-border, #e0d4c4);
  border-radius: 12px;
}

.nd-hero__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #6b5e58);
}

.nd-hero__name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--crimson, #7a1834);
  line-height: 1.35;
}

.nd-person {
  margin: 0.5rem 0 0.1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--crimson, #7a1834);
}

.nd-birth-line {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted, #6b5e58);
}

.nd-summary {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink, #2a2220);
}

/* Chart-at-a-glance cards */
.nd-chart-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 0 0 0.5rem;
}

.nd-chart-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.7rem 0.75rem;
  background: var(--cream-card, #faf6f0);
  border: 1px solid var(--cream-border, #e0d4c4);
  border-radius: 10px;
}

.nd-chart-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #6b5e58);
}

.nd-chart-card__sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink, #2a2220);
}

.nd-chart-card__sub--wide {
  line-height: 1.35;
}

/* Sign chip (glyph on maroon circle) */
.nd-sign {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nd-sign__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--crimson, #7a1834);
  flex: 0 0 auto;
}

/* Give the white glyph breathing room inside the maroon circle so it never
   touches the edge (overrides the global 15% inset for these tiles). */
.nd-sign__icon img,
.nd-section__glyph img,
.nd-table__glyph img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 24%;
  box-sizing: border-box;
}

.nd-sign__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink, #2a2220);
}

/* Sections */
.nd-section {
  margin: 0.35rem 0 0.25rem;
}

.nd-section__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nd-section__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--crimson, #7a1834);
  flex: 0 0 auto;
}

.nd-para {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink, #2a2220);
}

.nd-lifepath-fig {
  margin: 0.35rem 0 0.4rem;
  text-align: center;
}

.nd-lifepath-fig img {
  width: 60px;
  height: 60px;
  max-width: 22.5%;
}

.nd-muted {
  color: var(--muted, #6b5e58);
  font-size: 0.9rem;
}

.nd-dir {
  color: var(--crimson, #7a1834);
  font-weight: 600;
}

.nd-list {
  margin: 0 0 0.75rem;
  padding: 0 0 0 1.25rem;
}

.nd-list li {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.nd-list li::marker {
  color: var(--crimson, #7a1834);
}

.nd-table__flag {
  color: var(--muted, #6b5e58);
  font-size: 0.78rem;
}

/* Dominant strengths / themes pill cards */
.nd-pill-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 0 0 0.75rem;
}

.nd-pillcard {
  padding: 0.7rem 0.8rem;
  background: var(--cream-card, #faf6f0);
  border: 1px solid var(--cream-border, #e0d4c4);
  border-radius: 10px;
}

.nd-pillcard__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #6b5e58);
  margin: 0 0 0.25rem;
}

.nd-pillcard__val {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--crimson, #7a1834);
  line-height: 1.4;
}

/* Strength-tagged life areas */
.nd-areas {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.25rem 0 0.75rem;
}

.nd-area {
  padding: 0.65rem 0.8rem;
  background: #fff;
  border: 1px solid var(--cream-border, #e0d4c4);
  border-radius: 10px;
}

.nd-area__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
}

.nd-area__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--crimson, #7a1834);
  flex: 0 0 auto;
}

.nd-area__glyph img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 24%;
  box-sizing: border-box;
}

.nd-area__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink, #2a2220);
}

.nd-area__level {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nd-area__level--strong,
.nd-area__level--favourable {
  background: #e7f2e7;
  color: #2c6e34;
  border-color: #3f9147;
}

.nd-area__level--moderate {
  background: #f3ecd8;
  color: #8a6d1e;
  border-color: #c9a227;
}

.nd-area__level--limited {
  background: #f6e6e6;
  color: #8f2b2b;
  border-color: #c15b5b;
}

.nd-area__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink, #2a2220);
}

/* Life phases */
.nd-phases {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.25rem 0 0.75rem;
}

.nd-phase {
  padding: 0.65rem 0.8rem;
  background: var(--cream-card, #faf6f0);
  border: 1px solid var(--cream-border, #e0d4c4);
  border-left: 3px solid var(--crimson, #7a1834);
  border-radius: 8px;
}

/* Contain the floated phase image so the card always encloses it. */
.nd-phase::after {
  content: "";
  display: block;
  clear: both;
}

/* Small left-aligned illustration; the tag + text wrap around and under it. */
.nd-phase__img {
  float: left;
  width: 42px;
  height: 42px;
  margin: 0.05rem 0.7rem 0.25rem 0;
}

.nd-phase__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--crimson, #7a1834);
  margin: 0 0 0.25rem;
}

.nd-phase__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink, #2a2220);
}

/* People-and-you blocks */
.nd-blocks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.25rem 0 0.75rem;
}

.nd-block {
  padding: 0.65rem 0.8rem;
  background: #fff;
  border: 1px solid var(--cream-border, #e0d4c4);
  border-radius: 8px;
}

.nd-block__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.3rem;
}

.nd-block__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--crimson, #7a1834);
  flex: 0 0 auto;
}

.nd-block__glyph img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 24%;
  box-sizing: border-box;
}

.nd-block__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--crimson, #7a1834);
}

.nd-block__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink, #2a2220);
}

/* Transit subheads */
.nd-transit-h {
  margin: 0.6rem 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink, #2a2220);
}

/* Conjunction / combination cards */
.nd-combos {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.25rem 0 0.75rem;
}

.nd-combo {
  padding: 0.6rem 0.75rem;
  background: #fff;
  border: 1px solid var(--cream-border, #e0d4c4);
  border-left: 3px solid var(--crimson, #7a1834);
  border-radius: 8px;
}

.nd-combo--icon {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.nd-combo__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.nd-combo__icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.nd-combo__body {
  flex: 1 1 auto;
  min-width: 0;
}

.nd-combo__head {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--crimson, #7a1834);
}

.nd-combo__head a {
  color: var(--crimson, #7a1834);
  text-decoration: none;
}

.nd-combo__head a:hover {
  text-decoration: underline;
}

.nd-combo__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink, #2a2220);
}

/* Named yogas */
.nd-yogas {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.25rem 0 0.75rem;
}

.nd-yoga {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  background: var(--cream-card, #faf6f0);
  border: 1px solid var(--cream-border, #e0d4c4);
  border-radius: 8px;
}

.nd-yoga__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.nd-yoga__icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.nd-yoga__body {
  flex: 1 1 auto;
  min-width: 0;
}

.nd-yoga__name {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--crimson, #7a1834);
}

.nd-yoga__name a {
  color: var(--crimson, #7a1834);
  text-decoration: none;
}

.nd-yoga__name a:hover {
  text-decoration: underline;
}

.nd-yoga__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink, #2a2220);
}

/* Planet table */
.nd-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.25rem 0 0.75rem;
}

.nd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.nd-table th,
.nd-table td {
  padding: 0.5rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--cream-border, #e0d4c4);
  white-space: nowrap;
}

.nd-table thead th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #6b5e58);
  background: var(--cream-card, #faf6f0);
}

.nd-table__en {
  color: var(--muted, #6b5e58);
  font-size: 0.82rem;
}

.nd-table__sign {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nd-table__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--crimson, #7a1834);
  flex: 0 0 auto;
}

/* Related */
.nd-related {
  margin: 1rem 0 0;
  padding: 0.85rem 0.95rem;
  background: var(--cream-card, #faf6f0);
  border: 1px solid var(--cream-border, #e0d4c4);
  border-radius: 10px;
}

.nd-related__head {
  margin: 0 0 0.4rem;
  font-weight: 700;
  color: var(--crimson, #7a1834);
}

.nd-related__list {
  list-style: disc;
  margin: 0;
  padding: 0 0 0 1.25rem;
}

.nd-related__list li {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.nd-related__list li:last-child {
  margin-bottom: 0;
}

.nd-related__list li::marker {
  color: var(--crimson, #7a1834);
}

@media (max-width: 520px) {
  .nd-chart-cards {
    grid-template-columns: 1fr;
  }
}
