/* ============================================================================
   Scout Your Stars — the free numerology calculator (/numerology-calculator/)
   Page built by tools/v2_calculator.py; behaviour in calc.js. Colours, type
   and spacing come from unify.css tokens, and the form follows the booking
   page (book.css), so the page is part of the site.
   ========================================================================== */

.nc [hidden] {
  display: none !important;
}

.nc-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nc-intro .mx-intro__lede {
  max-width: 62ch !important;
}

/* ------------------------------------------------------------------ body  */

.nc-body {
  padding: var(--u-open-pad) max(var(--u-side), calc((100% - var(--u-wrap)) / 2)) var(--u-edge);
}

.nc-layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: var(--u-col-gap);
  align-items: start;
}

.nc-form,
.nc-result {
  position: relative;
  min-width: 0;
  padding: clamp(24px, 3vw, 44px);
  background: var(--u-card-bg);
  border: 1px solid var(--u-card-edge);
  border-radius: 18px;
  box-shadow: var(--u-card-shadow);
}

/* ------------------------------------------------------------------ form  */

.nc-form__title {
  margin: 0 0 4px !important;
  font-family: var(--v2-display);
  font-size: var(--u-fs-sub);
  font-weight: 400;
  line-height: 1.2;
  color: var(--u-head);
}

.nc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.nc-label {
  padding: 0;
  font-family: var(--v2-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--u-sub);
}

/* A legend sits on its fieldset's border unless it floats. */
.nc-dob > legend {
  float: left;
  width: 100%;
  margin: 0 0 8px;
}

/* Day, month, year on one line; on the narrowest phones the year wraps
   under them rather than any label being cut ("September" is the longest). */
.nc-dob__row {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nc-dob__row #nc-day {
  flex: 1 1 68px;
}

.nc-dob__row #nc-month {
  flex: 1.8 1 122px;
}

.nc-dob__row #nc-year {
  flex: 1.1 1 72px;
}

.nc-form .nc-input {
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 13px 16px;
  border: 1px solid var(--u-line);
  border-radius: 10px;
  background: #fffdf8;
  font-family: var(--v2-body);
  font-size: 1rem;                 /* 16px: phones do not zoom into the field */
  line-height: 1.4;
  color: var(--u-ink);
  transition: border-color 0.3s var(--u-ease), box-shadow 0.3s var(--u-ease);
  -webkit-appearance: none;
  appearance: none;
}

.nc-form .nc-input::placeholder {
  color: #93836f;
}

.nc-form select.nc-input {
  padding-left: 11px;
  padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2387632a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 11px 7px;
  cursor: pointer;
}

.nc-form .nc-input:hover {
  border-color: var(--u-gold-soft);
}

.nc-form .nc-input:focus {
  outline: none;
  border-color: var(--u-gold);
  box-shadow: 0 0 0 4px rgba(176, 132, 53, 0.16);
}

.nc-form .nc-input[aria-invalid="true"] {
  border-color: #a8452f;
  box-shadow: 0 0 0 3px rgba(168, 69, 47, 0.1);
}

.nc-help,
.nc-err {
  margin: 0 !important;
  font-family: var(--v2-body);
  font-size: 0.84rem;
  line-height: 1.5;
}

.nc-help {
  color: var(--u-mute);
}

.nc-err {
  color: #9a3b26;                   /* 5.9:1 on the paper */
}

.nc-submit.v2-btn {
  width: 100%;
  justify-content: center;
  margin-top: 28px;
}

.nc-private {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0 !important;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--u-mute);
}

.nc-private svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  color: var(--u-gold-text);
}

/* ---------------------------------------------------------------- result  */

.nc-result {
  container-type: inline-size;
}

.nc-result__kicker {
  margin: 0 0 8px !important;
  font-family: var(--v2-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--u-gold-text);
}

.nc-result__title {
  margin: 0 !important;
  font-family: var(--v2-display);
  font-size: var(--u-fs-sub);
  font-weight: 400;
  line-height: 1.15;
  color: var(--u-head);
  overflow-wrap: anywhere;
}

.nc-result__title:focus {
  outline: none;
}

.nc-result.is-done .nc-result__title {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
}

.nc-result__meta {
  margin: 8px 0 0 !important;
  font-size: var(--u-fs-body);
  line-height: 1.6;
  color: var(--u-mute);
}

/* Mulank, Bhagyank, Name Number */
.nc-nums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.nc-num {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--u-card-edge);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.7);
}

.nc-num p {
  margin: 0 !important;
}

.nc-num__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--u-gold-text);
}

.nc-num--m .nc-num__label::after,
.nc-num--b .nc-num__label::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--u-gold);
  border-radius: 50%;
}

.nc-num--b .nc-num__label::after {
  width: 7px;
  height: 7px;
  border-radius: 0;
  background: #6b4f27;
  transform: rotate(45deg);
}

.nc-num__value {
  margin-top: 6px !important;
  font-family: var(--v2-display);
  font-size: clamp(2.6rem, 3.6vw, 3.4rem);
  line-height: 1;
  color: var(--u-head);
}

.nc-num__sub {
  margin-top: 6px !important;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--u-sub);
}

.nc-num__work {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px solid var(--u-rule);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--u-mute);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.nc-result__body {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

/* The grid beside its notes once the card is wide enough. */
@container (min-width: 700px) {
  .nc-result__body {
    grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
    gap: 40px;
    gap: clamp(28px, 4cqi, 48px);
    align-items: start;
  }
}

/* ------------------------------------------------------------------ grid  */

.nc-grid {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  max-width: 520px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  background: var(--u-line);
  border: 1px solid var(--u-line);
  border-radius: 16px;
  overflow: hidden;
}

.nc-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  min-width: 0;
  margin: 0 !important;
  padding: 10px 6px 28px;
  background: #fffdf8;
  transition: background-color 0.5s var(--u-ease);
}

.nc-cell::before {
  content: none;
}

/* Before a calculation: each box shows its number, faintly. */
.nc-result:not(.is-done) .nc-cell::before {
  content: attr(data-digit);
  font-family: var(--v2-display);
  font-size: 2.3rem;                       /* before container units (Safari 15) */
  font-size: clamp(1.9rem, 11cqi, 2.8rem);
  line-height: 1;
  color: rgba(35, 26, 18, 0.16);
}

.nc-cell__nums {
  font-family: var(--v2-display);
  font-size: 2.3rem;                       /* before container units (Safari 15) */
  font-size: clamp(1.9rem, 11cqi, 2.8rem);
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--u-head);
  overflow-wrap: anywhere;
}

.nc-cell.is-many .nc-cell__nums {
  font-size: 1.7rem;
  font-size: clamp(1.4rem, 7.5cqi, 2rem);
}

.nc-cell__planet {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--v2-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--u-mute);
}

.nc-cell__name i {
  font-style: normal;
  font-weight: 500;
}

.nc-cell__glyph {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--u-gold);
}

/* Narrow grids: the planet's English name only. */
@container (max-width: 400px) {
  .nc-cell__name i {
    display: none;
  }
  .nc-cell__planet {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }
}

.nc-cell__marks {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
}

.nc-mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--u-gold);
}

.nc-mark--b {
  width: 7px;
  height: 7px;
  border-radius: 0;
  background: #6b4f27;
  transform: rotate(45deg);
}

.nc-cell.is-key {
  background: #fdf6e7;
}

.nc-cell.is-missing {
  background: #f6eedf;
}

/* A missing number: its box a shade deeper, its symbol faded (the name
   stays legible). */
.nc-cell.is-missing .nc-cell__glyph {
  opacity: 0.5;
}

/* The digits settle into their boxes one after another. */
.nc-result.is-done .nc-cell__nums {
  animation: nc-in 0.55s var(--u-ease) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

@keyframes nc-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nc-result.is-done .nc-cell__nums {
    animation: none;
  }
  .nc-cell {
    transition: none;
  }
}

/* ----------------------------------------------------------------- notes  */

.nc-notes {
  min-width: 0;
  font-size: var(--u-fs-body);
  line-height: 1.65;
  color: var(--u-text);
}

.nc-read {
  margin: 0 !important;
  padding-left: 1.3em;
}

.nc-read li {
  margin-bottom: 0.6em;
}

.nc-read li::marker {
  color: var(--u-gold);
}

.nc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 14px !important;
  font-size: 0.88rem;
  color: var(--u-sub);
}

.nc-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.nc-missing {
  margin: 0 !important;
}

.nc-missing b {
  font-weight: 600;
  color: var(--u-head);
}

.nc-next {
  margin-top: 22px;
  padding: 20px 22px 22px;
  border: 1px solid var(--u-card-edge);
  border-radius: 14px;
  background: rgba(176, 132, 53, 0.06);
}

.nc-next p {
  margin: 0 !important;
}

.nc-next__title {
  font-family: var(--v2-display);
  font-size: var(--u-fs-item);
  line-height: 1.25;
  color: var(--u-head);
}

.nc-next__text {
  margin-top: 8px !important;
  font-size: 0.94rem;
  line-height: 1.6;
}

.nc-next__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* ------------------------------------------------------ how it is made  */

.nc-how {
  padding: var(--u-open-pad) max(var(--u-side), calc((100% - var(--u-wrap)) / 2)) var(--u-edge);
}

.nc-how__title {
  margin: 0 0 var(--u-lead-gap) !important;
  font-family: var(--v2-display);
  font-size: var(--u-fs-section);
  font-weight: 400;
  line-height: 1.1;
  color: var(--u-head);
}

.nc-how__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--u-grid-gap);
}

.nc-how__card {
  min-width: 0;
  padding: clamp(20px, 2vw, 28px);
  background: var(--u-card-bg);
  border: 1px solid var(--u-card-edge);
  border-radius: 16px;
  box-shadow: var(--u-card-shadow);
  font-size: var(--u-fs-body);
  line-height: 1.65;
  color: var(--u-text);
}

.nc-how__card p {
  margin: 0 !important;
}

.nc-how__num {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--u-gold-text);
}

.nc-how__name {
  margin: 6px 0 10px !important;
  font-family: var(--v2-display);
  font-size: var(--u-fs-card);
  font-weight: 400;
  line-height: 1.2;
  color: var(--u-head);
}

.nc-letters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  margin: 14px 0 0 !important;
  padding: 12px 0 0 !important;
  list-style: none;
  border-top: 1px solid var(--u-rule);
}

.nc-letters li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: var(--u-sub);
}

.nc-letters b {
  min-width: 0.8em;
  font-family: var(--v2-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--u-gold-text);
}

/* ---------------------------------------------------------------- sizes  */

@media (max-width: 1180px) {
  .nc-how__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .nc-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .nc-form {
    max-width: 640px;
  }
}

@media (max-width: 400px) {
  .nc-form {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 640px) {
  .nc-nums {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .nc-num {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "value label" "value sub" "work work";
    column-gap: 16px;
    align-items: center;
  }
  .nc-num__value {
    grid-area: value;
    margin: 0 !important;
    font-size: 2.6rem;
  }
  .nc-num__label {
    grid-area: label;
  }
  .nc-num__sub {
    grid-area: sub;
    margin-top: 2px !important;
  }
  .nc-num__work {
    grid-area: work;
  }
  .nc-how__cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .nc-next {
    padding: 18px 18px 20px;
  }
  .nc-next__acts .v2-btn {
    width: 100%;
    justify-content: center;
    padding-left: 18px;
    padding-right: 18px;
    text-align: center;
  }
}
