.unjae-section{background:#fffdf7;border:1px solid #dbd2bf;border-radius:16px;padding:clamp(16px,4vw,28px);margin:16px 0;color:#302e27;line-height:1.65;scroll-margin-top:18px}.unjae-section h2{font-family:Batang,serif;margin-top:0}.unjae-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.unjae-fields button,#wealth-demo>button{background:#faf6ed;color:#36463e;border:1px solid #cbc8b9;border-radius:8px;min-height:44px;font:inherit;cursor:pointer}.unjae-fields button[aria-pressed=true]{background:#375849;color:white}.unjae-section article{padding-top:10px}.unjae-section dl{display:grid;grid-template-columns:repeat(4,1fr);text-align:center;background:#f3efe4;padding:12px 0}.unjae-section dd{margin:0;font-weight:700}.unjae-section details{padding:10px 0}.unjae-section summary{cursor:pointer}.unjae-section p{word-break:keep-all}

.unjae-section p { font-size: 1.0625rem; line-height: 1.60; overflow-wrap: anywhere; }
.unjae-section > nav.unjae-fields { margin-block: .85rem 1.25rem; }
.unjae-section p + p { margin-block-start: 1.30em; }

.unjae-birth-chart {
  margin-block-start: 1.6rem;
  padding-block-start: 1.15rem;
  border-top: 1px solid #d9d2c2;
}
.unjae-birth-chart h3, .unjae-birth-chart h4 { margin: 0 0 .4rem; }
.unjae-birth-chart > p { margin: 0 0 .85rem; color: #514c40; font-size: .98rem; }
.unjae-section .unjae-pillars {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px;
  padding: 1px; margin: .8rem 0 1rem; text-align: left;
  background: #ded7c8; border-radius: .6rem; overflow: hidden;
}
.unjae-pillars > div { padding: .65rem .8rem; background: #f8f5ec; }
.unjae-pillars dt { font-size: .88rem; color: #565647; }
.unjae-pillars dd strong, .unjae-pillars dd small { display: block; }
.unjae-pillars dd strong { color: #23493e; font-size: 1.12rem; }
.unjae-pillars dd small { color: #534f45; font-size: .86rem; line-height: 1.45; word-break: keep-all; }
.unjae-elements { display: flex; flex-wrap: wrap; gap: .35rem 1rem; list-style: none; padding: 0; margin: 0; font-variant-numeric: tabular-nums; }
.unjae-month-picker { margin-block: 1.35rem .85rem; container-type: inline-size; }
.unjae-month-picker h4 { margin: 0; font-size: 1.02rem; }
.unjae-month-picker p { margin: .15rem 0 .65rem; color: #5b584f; font-size: .92rem; }
.unjae-month-detail { scroll-margin-top: 1rem; }
.unjae-month-detail > h3 { margin: .25rem 0 .55rem; }
#unjae-overall-month-detail > h3 {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
  margin-block-end: .8rem;
}
.unjae-overall-score { display: inline-block; white-space: nowrap; }


.unjae-section details > button {min-height:44px;padding:.45rem .85rem;font:inherit;font-weight:700;color:#244c3c;background:#f0f4ec;border:1px solid #9caf99;border-radius:.45rem;cursor:pointer}
.unjae-section details > button:focus-visible {outline:2px solid #82462f;outline-offset:2px}

.unjae-study-jump {
  min-width:44px;min-height:44px;padding:0 .35em;margin-inline:.1em;
  font:inherit;font-weight:700;color:#244c3c;background:#f0f4ec;border:1px solid #9caf99;
  border-radius:.45rem;cursor:pointer;white-space:nowrap;vertical-align:baseline;
}
.unjae-study-jump:focus-visible {outline:2px solid #82462f;outline-offset:2px}

.input-preview .wealth-form .forecast-years {min-width:0;margin:0 0 1.5rem;padding:0;border:0;border-radius:0}
.input-preview .forecast-years > legend {padding:0;margin:0 0 .55rem;font:700 1.05rem/1.45 system-ui,sans-serif;color:#214437}
.forecast-year-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;max-width:30rem}
.forecast-year-options label {position:relative;cursor:pointer}
.forecast-year-options input[type=radio] {position:absolute;opacity:0;width:1px;height:1px}
.forecast-year-face {position:relative;display:grid;gap:.1rem;padding:.55rem 2rem .6rem .9rem;background:#fffcf4;border:1px solid #a5ad9c;border-radius:.65rem;color:#344432}
.forecast-year-face > span {font:600 .88rem/1.3 system-ui,sans-serif}
.forecast-year-face strong {font:700 1.3rem/1.35 system-ui,sans-serif;font-variant-numeric:tabular-nums}
.forecast-year-options input:checked + .forecast-year-face {background:#2e5142;color:#fffdf5;border-color:#2e5142}
.forecast-year-options input:checked + .forecast-year-face::after {content:'';position:absolute;right:1rem;top:50%;width:.58rem;height:.32rem;border-left:2px solid;border-bottom:2px solid;transform:translateY(-65%) rotate(-45deg)}
.forecast-year-options input:focus-visible + .forecast-year-face {outline:3px solid #95551f;outline-offset:2px}

.unjae-question-return {display:block;min-height:44px;margin-top:1rem;padding:.55rem 1rem;border:1px solid #365849;border-radius:.55rem;background:#365849;color:#fffdf4;font:inherit;font-weight:700;cursor:pointer}
.unjae-question-return:focus-visible,.unjae-section details > button:focus,.unjae-study-jump:focus {outline:2px solid #82462f;outline-offset:3px}

.unjae-ranks {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));
  gap:.8rem;
  margin-block:1.25rem;
}
.unjae-rank-group {display:grid;align-content:start;gap:.5rem;min-width:0}
.unjae-field-jump {
  --tone:#872c41; --tint:#ffe7e8; --rim:#dfa4ac;
  display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:.22rem .65rem;
  width:100%;min-height:4.6rem;padding:.6rem .9rem;
  text-align:start;font:inherit;color:var(--tone);cursor:pointer;
  background:linear-gradient(150deg,#fffafa,var(--tint));
  border:1px solid var(--rim);border-radius:.8rem;
  box-shadow:0 2px 0 var(--rim),0 4px 7px #443c2618;
  transition:transform .12s ease-out,box-shadow .12s ease-out;
}
.unjae-field-jump[data-rank=low] {--tone:#235581;--tint:#e1f0ff;--rim:#9bbfdc}
.unjae-field-jump[data-rank=equal] {--tone:#36584c;--tint:#e4f3ea;--rim:#a1c7b0}
.unjae-field-jump > small {grid-column:1/-1;font:600 .875rem/1.3 system-ui,sans-serif}
.unjae-field-jump > strong {font-size:1.05rem}
.unjae-field-jump > b {font:700 1.35rem/1.15 system-ui,sans-serif;font-variant-numeric:tabular-nums}
.unjae-field-jump > b small {margin-inline-start:.12em;font-size:.8rem}
.unjae-field-jump:focus-visible {outline:3px solid var(--tone);outline-offset:3px}
@media (any-hover:hover) and (any-pointer:fine) {
  .unjae-field-jump:hover {transform:translateY(-4px) scale(1.025);box-shadow:0 3px 0 var(--rim),0 8px 13px #443c2638}
}
.unjae-field-jump.touch-lift {transform:translateY(-4px) scale(1.025);box-shadow:0 3px 0 var(--rim),0 8px 13px #443c2638}
@media (prefers-reduced-motion:reduce) {
  .unjae-field-jump, .unjae-field-jump:is(:hover,.touch-lift) {transform:none;transition:none}
}

/* Keep each reading title visually separate from its first line. */
.unjae-section > h2 { margin-block-end: 1rem; }
.unjae-section :is(h3, h4):has(+ p) { margin-block-end: .75rem; }

.unjae-section > .unjae-fields + article { padding-block-start: 1.5rem; }

.unjae-section > nav.unjae-fields {
  gap: .65rem;
  margin-block: 1.2rem 1.6rem;
}
