/* A padded field shell keeps the native iOS date control itself padding-free. */
.nr4-body { background:#faf7ef; }
.nr4-body .nr4-shell { width:min(calc(100% - 32px),900px); }
.nr4-field-control {
  display:grid; grid-template-columns:minmax(0,1fr); align-items:center;
  width:100%; min-width:0; max-width:100%; box-sizing:border-box;
  min-height:48px; padding:0 12px; border:1px solid #bfa881; border-radius:8px;
  background:#fffdf8;
}
.nr4-field-control:focus-within { outline:2px solid #805f37; outline-offset:2px; }
.nr4-form, .nr4-field, .nr4-optional, .nr4-options { min-width:0; max-width:100%; }
.nr4-field .nr4-field-control :is(input,select) {
  display:block; width:100%; min-width:0; max-width:100%; box-sizing:border-box;
  min-height:46px; margin:0; border:0; border-radius:0; padding:0;
  background:transparent; color:#3e3026; font:inherit; font-size:16px;
}
.nr4-field-control :is(input[type=date],input[type=time]) { -webkit-appearance:none; appearance:none; text-align:start; }
.nr4-field-control :is(input[type=date],input[type=time])::-webkit-date-and-time-value { min-height:1.3em; min-width:0; text-align:start; }
.nr4-field-control :is(input,select):focus-visible { outline:0; }
.nr4-form button[type=submit], .nr4-body .nr-luna-submit, .nr4-body .nr-edition-input form button[type=submit] {
  width:100%; min-height:48px; margin:0; box-sizing:border-box; border-radius:8px; font-size:16px;
}
.nr4-body .nr-edition-input form { width:min(100%,38rem); max-width:100%; margin-inline:auto; grid-template-columns:minmax(0,1fr); }
.nr4-body .nr-edition-input form select {
  display:block; width:100%; min-width:0; max-width:100%; min-height:48px; box-sizing:border-box;
  margin:0; padding:0 12px; border:1px solid #bfa881; border-radius:8px; background:#fffdf8; font-size:16px;
}
.nr4-body #nr-luna-form { grid-template-columns:minmax(0,1fr); padding:20px; }
.nr4-body .nr-luna-numbers .nr-luna-date { border:1px solid #bfa881; border-radius:8px; min-height:48px; padding:0 12px; }
.nr4-body .nr-luna-numbers #nr-luna-birth { -webkit-appearance:none; appearance:none; padding:0; }
.nr4-body .nr-luna-numbers .nr-luna-date-display { padding:0; }
.nr4-body .nr4-daily-hero { margin-bottom:.9rem; }
.nr4-body #nr4-daily, .nr4-body #nr4-daily .nr-edition { min-width:0; }
.nr4-body #nr4-daily .nr-edition-body { padding-inline:0; }
.nr4-daily-tarot.nr-celestial-result-open .nr4-shell { width:100%; }
.nr4-daily-tarot.nr-celestial-result-open .nr4-daily-hero, .nr4-daily-tarot.nr-celestial-result-open .nr4-mast { display:none; }

.nr4-reading-result { padding-inline:0; border-color:transparent; background:transparent; }
.nr4-reading-result .nr4-calculation, .nr4-reading-result .nr4-graph { margin-inline:0; }
.nr4-reading-result .nr4-luna, .nr4-reading-result .nr-lucky-single-slot { margin-inline:0; }
.nr4-body .nr4-chapters { gap:28px; }
.nr4-body :is(.nr4-chapter,.nr-edition-chapter,.nr-luna-reading-section).nr-editorial-section,
.nr-celestial-result-open .nr-formal-reading .nr-editorial-section {
  padding:0 clamp(16px,4vw,20px) 20px;
  border:0; background:none; box-shadow:none;
}
.nr4-body .nr4-chapter.nr-editorial-section { border-bottom:1px solid #ddcaac; }
.nr-reading-heading { display:grid; justify-items:center; text-align:center; gap:4px; margin:0 auto 16px; }
.nr-reading-symbol { display:grid; place-items:center; color:#927443; font:400 23px/1.15 Georgia,serif; }
.nr-reading-kicker { color:#785a33; font:500 11px/1.4 Georgia,serif; letter-spacing:.14em; }
.nr-reading-heading::after {
  content:""; width:min(128px,48%); height:1px; margin:4px auto 0;
  background:linear-gradient(90deg,transparent,#bd9b64 26%,#9b7a46 50%,#bd9b64 74%,transparent);
}
.nr4-body .nr-editorial-section .nr-reading-heading :is(h3,h4),
.nr-celestial-result-open .nr-editorial-section .nr-reading-heading h4 {
  color:#5a4029; font-family:NR4Serif,"Yu Mincho",serif; font-size:clamp(21px,5.55vw,25px);
  font-weight:500; line-height:1.4; margin:0; text-align:center; white-space:normal;
}
.nr-celestial-result-open .nr-editorial-section .nr-reading-heading h4::after { content:none; }
.nr4-body .nr-editorial-section .nr-reading-paragraph,
.nr-celestial-result-open .nr-formal-reading .nr-reading-paragraph,
.nr4-body .nr4-luna .nr-reading-paragraph {
  font-size:16px; line-height:1.9; margin:0 0 16px; text-align:left; overflow-wrap:anywhere;
}
.nr4-body .nr-editorial-section .nr-reading-paragraph:last-child, .nr4-body .nr4-luna .nr-reading-paragraph:last-child { margin-bottom:0; }
.nr4-body .nr4-luna {
  border:1px solid #b49255; outline:1px solid #e4d2ac; outline-offset:-6px;
  margin-block:30px;
  padding:26px 20px;
  background:#fff9e9 url("../tarot-formal/celestial/crest.webp") center 12px / 42px auto no-repeat;
}
.nr4-body .nr4-luna h3 { padding-top:21px; margin-bottom:15px; }
.nr4-form .nr4-optional { padding-inline:0; }

/* Match the celestial readings' gutter, with a single inset for the prose. */
.nr-edition.nr-tarot-report .nr-formal-reading {
  box-sizing:border-box;
  max-width:48rem;
  padding-inline:clamp(17px,5vw,36px);
}
.nr-tarot-report .nr-formal-reading > .nr-tarot-chapter:not(.nr-formal-luna) {
  box-sizing:border-box;
  width:100%;
  max-width:39rem;
  padding-inline:0;
}
.nr-edition.nr-tarot-report .nr-formal-lead .nr-reading-paragraph {
  max-width:none;
  padding-inline:0;
}
.nr-celestial-result-open .nr-formal-reading > .nr-editorial-section .nr-reading-paragraph {
  font-size:16px;
  line-height:1.85;
  margin-block:0 12px;
  letter-spacing:.02em;
  text-align:left;
  /* Let Japanese prose fill the available line before breaking. */
  text-wrap:wrap;
}
.nr-celestial-result-open .nr-formal-reading > .nr-editorial-section .nr-reading-paragraph:last-child {
  margin-block-end:0;
}
.nr-tarot-report .nr-formal-interpretation-entry {
  min-width:0;
  padding-block:0;
}
.nr-tarot-report .nr-formal-interpretation-entry + .nr-formal-interpretation-entry {
  margin-block-start:24px;
  padding-block-start:24px;
}
.nr-tarot-report .nr-formal-reading .nr-formal-interpretation-entry .nr-formal-kicker {
  font-size:.8rem;
  line-height:1.5;
}
.nr-tarot-report .nr-formal-interpretation-entry h5 {
  margin-block:4px 12px;
  text-wrap:balance;
}
.nr-tarot-report .nr-formal-interpretation-entry .nr-formal-action {
  margin:16px 0 8px;
  padding:0;
  border:0;
  background:none;
  color:#5c321c;
  font:600 1rem/1.5 var(--celestial-serif);
  text-align:center;
  text-wrap:balance;
}
