.wealth-story,.wealth-overview,.wealth-ground{border:1px solid #bea575;border-radius:18px;background:#fcf8ef url('/media/hanji.svg');margin:24px 0;overflow:hidden;color:#183e32}
.wealth-tag{font-size:13px;color:#45614b;margin:18px 0 8px}
.wealth-easy{background:#eef0e4;border:1px solid #d0c8ac;border-radius:12px;padding:16px;margin:20px 0}
.wealth-easy strong{font-size:15px}.wealth-easy p{font-size:15px;line-height:1.85;margin-top:8px}
.wealth-story-copy>p{margin:15px 0}.wealth-story-copy>h3{margin-bottom:20px}
.wealth-pillars,.wealth-uncertainty{padding:20px;border:1px solid #c7b990;border-radius:14px;margin:24px 0;background:#fffaf0;color:#30483a}
.wealth-pillars h2,.wealth-uncertainty h2{font-size:18px;line-height:1.6;margin-bottom:16px}
.wealth-pillar-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0;margin:0 0 16px}
.wealth-pillar-grid>div{text-align:center;border:1px solid #d9cdb4;border-radius:8px;background:#f8f0e0;padding:12px 3px}
.wealth-pillar-grid dt{font-size:13px}.wealth-pillar-grid dd{font-size:18px;font-weight:700;margin:8px 0 0;overflow-wrap:anywhere}
.wealth-uncertainty{background:#f7edda}.wealth-uncertainty li{font-size:15px;line-height:1.85;margin:10px 0}.wealth-uncertainty ul{padding-left:19px}
.wealth-ground p,.wealth-card-basis p{font-size:15px;line-height:1.9;margin-top:16px;overflow-wrap:anywhere}
.wealth-ground a{display:block;text-decoration:underline;text-underline-offset:4px;font-size:14px;padding:12px 0}
.wealth-card-basis summary{min-height:44px;display:flex;align-items:center}.wealth-ground summary{min-height:44px}
.wealth-preview #wealth-demo>h1{font-size:clamp(26px,6vw,34px);overflow-wrap:anywhere}
@media(max-width:340px){.wealth-pillars,.wealth-uncertainty{padding:16px}.wealth-pillar-grid{gap:5px}.wealth-pillar-grid dd{font-size:16px}}
.wealth-art{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}
.wealth-story-copy,.wealth-overview{padding:24px}.wealth-number{color:#8b713e;font-size:13px;letter-spacing:3px}.wealth-story h2{font:700 clamp(23px,5.5vw,30px)/1.5 var(--serif);margin:8px 0 18px;word-break:keep-all}.wealth-story h3{font-size:20px;line-height:1.6}.wealth-story p{font-size:17px;line-height:1.85;word-break:keep-all}.wealth-story .wealth-note{font-size:14px;color:#6b7167}.wealth-overview{background-color:#eff1e5}.wealth-overview li{padding:12px 0;line-height:1.8;border-bottom:1px solid #d8cfb8}.wealth-overview ul{list-style:none;padding:0}.wealth-overview strong{display:block}.wealth-checks{border:0;padding:12px 0;margin:24px 0}.wealth-checks legend{font-weight:700;font-size:19px}.wealth-checks label{display:flex;gap:12px;align-items:flex-start;padding:16px 0;border-bottom:1px solid #dbd3c1;font-size:16px;line-height:1.7;cursor:pointer}.wealth-checks input{flex:0 0 22px;width:22px;height:22px;margin-top:3px;accent-color:#315e4c}.wealth-story details{padding:16px;background:#eef0e4;border-radius:10px}.wealth-story summary,.wealth-ground summary{cursor:pointer;font-weight:700;line-height:1.7;min-height:32px}.wealth-ground{padding:20px}.wealth-memo{display:block;font-size:16px}.wealth-memo textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;margin-top:12px;padding:14px;font:inherit;line-height:1.7;border:1px solid #bba77e;border-radius:10px;background:#fffdf6;color:#183e32}#wealth-demo[hidden]{display:none}.wealth-form input[hidden]{display:none!important}
/* Wealth report: hanji overview, thematic timeline and expandable birth chart. */
.wealth-overview h2{font:700 28px/1.5 var(--serif);color:#244c3d;margin:4px 0 16px}.wealth-overview h3{font-size:21px;line-height:1.6;margin:12px 0;color:#284d3f}
.wealth-overview .wealth-overall-copy{font-size:16px;line-height:1.85;margin:14px 0;color:#455143}
.wealth-overview strong{font-size:14px;color:#355646}.wealth-overview li span{display:block;font-size:15px;line-height:1.75;margin-top:4px}
.input-preview .wealth-edit-top{width:auto;min-height:40px;margin:12px 0 0;padding:4px 0;font-size:14px}
.wealth-flow,.wealth-person-chart{margin:20px 0;padding:20px;border:1.5px solid #a89873;border-radius:14px;background:#fcf9ef url('/media/hanji.svg');color:#274d3e;min-width:0}
.wealth-person-chart>summary,.wealth-uncertainty>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:10px;font-weight:600;font-size:15px;list-style:none}
.wealth-person-chart>summary::before,.wealth-uncertainty>summary::before{content:'›';font-size:24px;line-height:1}.wealth-person-chart[open]>summary::before,.wealth-uncertainty[open]>summary::before{transform:rotate(90deg)}
.wealth-person-chart summary::-webkit-details-marker,.wealth-uncertainty summary::-webkit-details-marker{display:none}.wealth-person-chart h3{font-size:16px;margin-top:18px}.wealth-person-chart .birth-chart{margin-top:14px}
.wealth-flow h2{font:700 22px/1.5 var(--serif);margin:0 0 10px;color:#284e3e}.wealth-flow .wealth-note{font-size:13px;line-height:1.7;color:#6a725f}
.wealth-flow-chart{display:block;width:100%;height:auto;margin:18px 0 8px;overflow:visible}.flow-grid{stroke:#d8ccba;stroke-width:1}.flow-label{fill:#6a6653;font-size:20px;font-family:var(--sans)}.flow-link{stroke:#607b66;stroke-width:3;stroke-linecap:round}.flow-point{fill:#ad5357;stroke:#fffdf5;stroke-width:3}
.wealth-period-buttons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-top:18px}.wealth-period-buttons:has(button:nth-child(6)){grid-template-columns:repeat(3,minmax(0,1fr))}
.wealth-period-buttons button{min-height:44px;background:#f3eee1;color:#475a43;border:1px solid #b6af93;border-radius:9px;font-size:13px;line-height:1.5;padding:7px 4px;cursor:pointer}
.wealth-period-detail{padding:18px;margin-top:14px;border:1px solid #bdaf90;border-radius:10px;background:#f2f1e4}.wealth-period-detail h3{font-size:17px;line-height:1.6;margin:0 0 9px;color:#315244}.wealth-period-detail h4{font-size:16px;line-height:1.6;margin-bottom:8px}.wealth-period-detail p{font-size:15px;line-height:1.8;margin:8px 0;color:#4d594b}.wealth-period-detail .period-action{font-weight:600;padding-top:12px;border-top:1px solid #d7cdb8}.wealth-period-detail .wealth-card-basis{margin-top:12px}.wealth-period-detail summary{cursor:pointer;font-size:13px;min-height:40px;padding:8px 0}
.wealth-reading-title{font:700 24px/1.5 var(--serif);color:#2f5141;margin:28px 0 16px}
@media(max-width:480px){.wealth-overview{padding:20px 16px}.wealth-overview h2{font-size:25px}.wealth-overview h3{font-size:19px}.wealth-flow,.wealth-person-chart{padding:16px 12px}.wealth-flow h2{font-size:20px}.wealth-period-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}.wealth-period-detail{padding:14px}.wealth-overview .wealth-overall-copy{font-size:15px}.wealth-person-chart .birth-chart th{font-size:11px}}
.flow-area{fill:#607b6620}.flow-value{fill:#72533d;font:600 21px var(--sans)}.flow-axis-title{fill:#736953;font:16px var(--sans)}.flow-point.selected{fill:#ab354b;stroke:#af354b;stroke-width:4;r:9px}
.wealth-chart-scale{font-size:12px;line-height:1.7;color:#77654d;margin:10px 0 0}
.wealth-index-method{margin:12px 0;padding:8px 0;border-top:1px solid #d8ccba}.wealth-index-method summary{font-size:13px;min-height:40px;padding:8px 0;cursor:pointer}.wealth-period-detail .wealth-index-result{font-size:16px;font-weight:700;color:#904d47;padding-bottom:10px;border-bottom:1px solid #d1c2a9}
.wealth-flow {container-type:inline-size}
.wealth-flow .wealth-month-highlights {margin:1rem 0;display:grid;gap:4px}
.wealth-month-highlights > div {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.wealth-month-highlights span {font-weight:650;color:#354c40}
.wealth-flow .wealth-month-highlights button {background:transparent;border:0;border-bottom:1px solid #a39269;border-radius:0;color:#563e1e;font-family:inherit;font-size:1rem;font-weight:700;min-height:44px;padding:6px 8px;cursor:pointer}
.wealth-flow .month-score-chart {margin:1rem 0 1.25rem}
.wealth-flow .wealth-period-detail {scroll-margin-block-start:1.25rem}
.bokhee-advice h3:not(:first-of-type) {border-top:1px solid #cfc6af;padding-top:1.1rem;margin-top:1.4rem}
.wealth-form [hidden]{display:none!important}

.wealth-month-practice > p, .wealth-overview > p, .wealth-period-detail > p {
  font-size: 1.0625rem; line-height: 1.60; word-break: keep-all; overflow-wrap: anywhere;
}
.wealth-month-practice > p + p, .wealth-overview > p + p, .wealth-period-detail > p + p { margin-block-start: 1.30em; }
.wealth-overview p strong { display: inline; font-size: inherit; }
.wealth-period-detail .period-action { font-weight: normal; border: 0; padding: 0; }

.input-preview .wealth-flow .wealth-period-detail > p { line-height: 1.60; }

.wealth-practice-link {display:inline-flex;align-items:center;min-height:44px;color:#244c3c;font-weight:700;text-underline-offset:.2em}
#wealth-practice-title {scroll-margin-block-start:1.25rem}

.wealth-flow > h2 { margin-block-end: 1rem; }
.wealth-period-detail :is(h3, h4):has(+ p),
.wealth-person-chart h3:has(+ p) { margin-block-end: .875rem; }
.bokhee-advice > h3 { margin-block-end: 1rem; }
