/* A padded field shell keeps the native iOS date control itself padding-free. */
body.nr4-body { background:var(--nr-pearl); }
.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:var(--nr-section-gap); }
.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 var(--nr-reading-gutter) 16px;
  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 13px; }
.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:var(--nr-heading); font-family:var(--nr-serif); font-size:clamp(21px,5.55vw,23px);
  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 {
  color:var(--nr-ink); font-family:var(--nr-serif); font-size:var(--nr-reading-size); line-height:var(--nr-reading-leading); letter-spacing:.02em;
  margin:0 0 var(--nr-paragraph-gap); 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; }

.nr4-body .nr4-graph {
  margin:0;
  padding:16px clamp(12px,4vw,26px) 14px;
  border:1px solid #bba16b;
  border-radius:12px;
  background:radial-gradient(ellipse at 50% 0%,#fffaf0,#fffef9 66%);
  color:var(--nr-heading);
  text-align:center;
}
.nr4-rhythm-heading { display:grid; justify-items:center; gap:4px; font-size:14px; }
.nr4-rhythm-heading strong { font:600 23px/1.45 var(--nr-serif); }
.nr4-rhythm-decoration {
  display:flex; align-items:center; gap:8px; width:88%; color:var(--nr-gold);
  font:26px/1.1 Georgia,serif;
}
.nr4-rhythm-decoration::before,.nr4-rhythm-decoration::after {
  content:""; flex:1; height:1px; background:linear-gradient(90deg,transparent,#bba16b);
}
.nr4-rhythm-decoration::after { transform:scaleX(-1); }
.nr4-graph svg { display:block; width:100%; height:auto; max-width:36rem; margin:4px auto 0; overflow:visible; }
.nr4-rhythm-grid { stroke:#d8c5a1; stroke-width:.65; stroke-dasharray:3 5; fill:none; }
.nr4-rhythm-orbit { stroke-dasharray:none; opacity:.62; }
.nr4-rhythm-curve { stroke:#a38141; stroke-width:2.45; stroke-linecap:round; fill:none; }
.nr4-rhythm-star circle { fill:#ead7a5; opacity:.55; }
.nr4-rhythm-star path { fill:#a8864f; stroke:#fffaf0; stroke-width:1; }
.nr4-rhythm-axis { fill:#795d37; font-size:11px; font-weight:600; }
.nr4-rhythm-phases {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px;
  padding-top:12px; border-top:1px solid var(--nr-fine-rule);
}
.nr4-rhythm-phases > div { display:grid; gap:2px; justify-items:center; align-content:start; font-size:13px; }
.nr4-rhythm-phase-symbol { color:var(--nr-gold); font:23px/1.15 Georgia,serif; }
.nr4-rhythm-phases strong { font-size:17px; overflow-wrap:anywhere; }
.nr4-rhythm-date { white-space:nowrap; }
.nr4-rhythm-phases p { grid-column:1/-1; margin:0; font-size:14px; }
.nr4-graph .nr4-small { margin:10px 0 0; color:#745c43; }
.nr4-body .nr4-luna { margin-block:var(--nr-section-gap); }
.nr4-body .nr4-chapter.nr-editorial-section { border-color:var(--nr-fine-rule); }
