/* Shared relationship reading: normal document flow; disclosures have no network dependency. */
body .relation-depth{min-width:0;max-width:100%;overflow-wrap:anywhere;}
body .relation-depth-block{margin:14px 0;padding:0;min-width:0;}
body .relation-depth .relation-depth-block>h3{font-size:21px!important;line-height:1.4!important;color:#FFD76A!important;margin:0 0 7px!important;font-weight:800!important;}
body .relation-depth :is(p,li){line-height:1.6;white-space:normal;}
body .relation-depth ol{padding-inline-start:24px;margin:8px 0;}
body .relation-depth ol>li+li{margin-top:6px;}
body .relation-modern-notice{border-left:3px solid #DCC18A;padding:8px 12px!important;margin:16px 0!important;}
body .relation-cases>summary{cursor:pointer;min-height:44px;touch-action:manipulation;}
body .relation-overview-list{padding:0;list-style:none;display:grid;gap:12px;margin:12px 0;}
body .relation-overview-list>li{border:1px solid #DCC18A55;border-radius:12px;padding:12px;min-width:0;}
body .relation-overview-list h4{margin:0 0 8px;}
body .relation-overview-list a{display:inline-block;min-height:44px;padding:8px 0;max-width:100%;overflow-wrap:anywhere;}
@media(max-width:760px){body .relation-depth-block{margin:12px 0;}body .relation-depth .relation-depth-block>h3{font-size:20px!important;}body .relation-depth{width:100%;box-sizing:border-box;}}
/* Two faces: native disclosures open synchronously; all content is already local. */
body .relationship-two-faces{margin-top:14px!important;min-width:0;max-width:100%;border:1px solid #DCC18A66;border-radius:12px;padding:0 12px!important;}
body .relationship-two-faces>summary{cursor:pointer;min-height:48px;box-sizing:border-box;padding:12px 0!important;font-weight:800;line-height:1.5;white-space:normal;overflow-wrap:anywhere;touch-action:manipulation;}
body .two-faces-body{padding:0 0 12px;}
body .nasabu-one-word{border-left:3px solid #FFD76A;margin:14px 0!important;padding:10px 14px!important;}
body .nasabu-one-word>h3{color:#FFD76A!important;margin:0 0 8px!important;font-size:21px!important;}
body .relationship-hall{margin-block:24px;padding-block:20px;min-width:0;scroll-margin-top:100px;}
body .relation-hall-nav{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0;}
body .relation-hall-nav>a{display:flex;align-items:center;justify-content:center;padding:10px 16px;min-height:44px;box-sizing:border-box;border:1px solid #DCC18A66;border-radius:10px;}
body .relation-hall-group{margin:20px 0;scroll-margin-top:100px;}
body .relation-hall-entry{min-width:0;margin:12px 0;}
body .relation-hall-play{display:inline-block;padding:8px 0;min-height:44px;max-width:100%;overflow-wrap:anywhere;}
body .relation-hall-shortcut .button{white-space:normal;max-width:100%;overflow-wrap:anywhere;}
@media(max-width:760px){body .relationship-hall{padding-block:12px;}body .relationship-two-faces{padding-inline:10px!important;}body .nasabu-one-word>h3{font-size:20px!important;}}
/* Direct questions for generation relations only; other relationship layouts remain unchanged. */
body .sangsaeng-two-faces>summary{color:#FFD76A!important;font-size:20px!important;font-weight:800!important;line-height:1.5!important;}
body .sangsaeng-depth .sangsaeng-expression-note{margin:12px 0;font-size:16px;line-height:1.6;}
@media(max-width:760px){body .sangsaeng-two-faces>summary{font-size:19px!important;}}
/* Individual emotional questions and a respectful route to the existing inquiry area. */
body .relation-emotion-hook{color:#FFD76A!important;font-size:21px!important;font-weight:800!important;line-height:1.45!important;margin:0 0 8px!important;overflow-wrap:anywhere;}
body .relation-empathy{margin:12px 0;line-height:1.6;overflow-wrap:anywhere;}
body .relation-original-title{font-weight:700;line-height:1.5;}
body .relation-human-ending{border-top:1px solid #DCC18A55;margin-top:16px;padding-top:12px;min-width:0;}
body .relation-human-ending>h3{color:#FFD76A!important;font-size:20px!important;line-height:1.4;}
body .relation-question-link{display:inline-block;min-height:44px;padding:10px 0;max-width:100%;overflow-wrap:anywhere;}
@media(max-width:760px){body .relation-emotion-hook{font-size:20px!important;}}

/* One supplied photograph, CSS portrait windows: original facial geometry is unchanged. */
.guide-avatar{display:inline-block;width:48px;height:48px;flex:0 0 auto;border:2px solid #c6a86a;border-radius:50%;box-sizing:border-box;background-image:url('/assets/characters/trio-3d.webp');background-repeat:no-repeat;box-shadow:0 3px 9px #4630151a;vertical-align:middle}
.guide-nasabu{background-size:451.7647% auto;background-position:16.7224% 3.655%}
.guide-chao{background-size:451.7647% auto;background-position:54.3478% 34.3567%}
.guide-pipi{background-size:384% auto;background-position:91.5493% 40.0641%}
.guide-line{display:flex;align-items:center;gap:12px;min-width:0;margin:10px 0;line-height:1.65}.guide-message{display:block;min-width:0;overflow-wrap:anywhere}.guide-line .guide-avatar{width:42px;height:42px}.guide-quote{position:relative;min-height:48px;padding-left:64px!important}.guide-quote>.guide-avatar{position:absolute;left:0;top:2px}.guide-quote>.guide-quote-label{display:block;font-size:14px;color:#65563e;margin-bottom:3px}.guide-quote blockquote{margin:0}
.nasabu-home .home-entrances a{flex-direction:row;justify-content:flex-start;align-items:center;gap:12px;min-width:0;min-height:86px}.home-entrances .entrance-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.home-entrances .entrance-label{display:block;overflow-wrap:anywhere}.home-entrances .entrance-saju{border-color:#b69551;background:#fffbef}.home-entrances .guide-avatar{width:50px;height:50px}.home-entrances .entrance-play .guide-avatar{border-color:#d8ba79}.home-entrances .entrance-play .entrance-label{color:#fff}.home-entrances .entrance-play small{color:#f2d995}
#nasabu-thought summary>.guide-avatar{width:32px;height:32px;margin-right:10px}#face-question>.guide-avatar,#story-pipi>.guide-avatar,#story-chao>.guide-avatar{width:36px;height:36px;margin-right:7px}#face-question,#story-pipi,#story-chao{min-height:36px}.ency-intro .guide-line{justify-content:flex-start}.ency-intro .guide-avatar{width:48px;height:48px}.activity-dialog .guide-line{font-size:16px;line-height:1.5;margin:10px 0 14px}.activity-dialog .guide-avatar{width:36px;height:36px}.saju-guide .guide-line{align-items:flex-start}.saju-guide .guide-avatar{margin-top:5px}
@media(max-width:760px){.nasabu-home .home-entrances a{display:block;padding:10px 8px;min-height:92px}.home-entrances .guide-avatar{float:left;width:30px;height:30px;margin:2px 6px 2px 0}.home-entrances .entrance-copy{display:contents}.home-entrances .entrance-label{font-size:16px;line-height:1.4;min-height:44px;word-break:normal;overflow-wrap:anywhere}.home-entrances small{display:block;clear:both;font-size:14px!important;line-height:1.4!important;margin-top:4px}.guide-line{gap:9px}.guide-line .guide-avatar{width:36px;height:36px}.guide-quote{padding-left:49px!important}.guide-quote>.guide-avatar{width:38px;height:38px}.ency-intro .guide-avatar{width:40px;height:40px}.guide-message{word-break:normal}.home-entrances .entrance-label{letter-spacing:-.03em}.saju-guide .guide-line{gap:10px}}
@media(prefers-reduced-motion:reduce){.guide-avatar{transition:none}}

.guide-label{display:inline-flex;align-items:center;gap:8px}.guide-label .guide-avatar{width:30px;height:30px}.room-hero+.guide-line{justify-content:center}

/* Keep entrance titles in meaningful words; portraits never steal title width. */
.home-entrances .entrance-word{display:inline-block;white-space:nowrap}
@media(max-width:760px){
 .nasabu-home .home-entrances{gap:8px}
 .nasabu-home .home-entrances a{display:grid;grid-template-rows:32px 48px auto;justify-items:center;align-content:start;gap:7px;padding:12px 6px;min-height:0;text-align:center}
 .home-entrances .guide-avatar{float:none;width:32px;height:32px;margin:0}
 .home-entrances .entrance-copy{display:contents}
 .home-entrances .entrance-label{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;width:100%;min-height:0;font-size:16px;line-height:24px;letter-spacing:-.03em;word-break:keep-all;overflow-wrap:normal}
 .home-entrances .entrance-word{display:block;white-space:nowrap}
 .home-entrances small{align-self:start;clear:none;display:block;margin:0;font-size:14px!important;line-height:20px!important;word-break:keep-all;overflow-wrap:normal;letter-spacing:-.03em}
}

/* Pipi guidance portraits: about 45% larger, with real layout space reserved. */
body .guide-line:has(> .guide-avatar.guide-pipi){align-items:center;gap:12px;}
body .guide-line>.guide-avatar.guide-pipi{width:61px!important;height:61px!important;min-width:61px!important;max-width:61px!important;flex:0 0 61px!important;float:none;margin:0;}
body .guide-line:has(> .guide-avatar.guide-pipi)>.guide-message{flex:1 1 0;min-width:0;overflow-wrap:anywhere;}
@media(max-width:760px){
 body .guide-line:has(> .guide-avatar.guide-pipi){gap:10px;}
 body .guide-line>.guide-avatar.guide-pipi{width:52px!important;height:52px!important;min-width:52px!important;max-width:52px!important;flex-basis:52px!important;}
}
body .activity-rating-form .guide-line>.guide-avatar.guide-pipi{width:46.4px!important;height:46.4px!important;min-width:46.4px!important;max-width:46.4px!important;flex-basis:46.4px!important;}

/* Transient feedback only: existing selected/checked styles remain authoritative. */
:is(button,a[href],summary,select,input[type=button],input[type=submit],[role=button],label:has(input[type=radio]),label:has(input[type=checkbox])){transition:box-shadow .12s ease,transform .12s ease;-webkit-tap-highlight-color:rgba(191,146,59,.28)}
:is(button,a[href],summary,select,input[type=button],input[type=submit],[role=button],label:has(input[type=radio]),label:has(input[type=checkbox])):not(:disabled):not([aria-disabled=true]):is(:active,.nasabu-pressed){background-color:#ead398!important;color:#13232d!important;box-shadow:inset 0 0 0 2px #bf923b!important;transform:scale(.98)}
[aria-busy=true].nasabu-processing{background-color:#ead398!important;color:#13232d!important;cursor:progress}
button.nasabu-processing::after{content:' · 처리 중';font-size:.85em}
.nasabu-feedback-settings{max-width:1120px;margin:12px auto;padding:0 18px;text-align:right}
.nasabu-feedback-settings button{font:inherit;font-size:14px;line-height:1.5;min-height:44px;padding:8px 12px;color:#13232d;background:#fffdf7;border:1px solid #bf923b;border-radius:10px;cursor:pointer}
.nasabu-feedback-settings button[aria-pressed=true]{background:#ead398}
@media(prefers-reduced-motion:reduce){:is(button,a[href],summary,select,input,[role=button],label){transition:none!important}.nasabu-pressed,:is(button,a[href],summary,select,input,[role=button],label):active{transform:none!important}}

/* Content navigation responds immediately; feedback lasts at most 150ms. */
html{scroll-behavior:auto!important}
button,a,summary,[role="tab"]{touch-action:manipulation;transition-duration:150ms!important;transition-delay:0ms!important}
@media(prefers-reduced-motion:reduce){button,a,summary,[role="tab"]{transition-duration:0ms!important}}

/* One reading rhythm across the existing site. Artwork, data and controls keep their roles. */
:root{--reading-ink:#13232d;--reading-gold:#78571f;--reading-line:#d8cebc;--reading-wood:#3b6246;--reading-fire:#9b4036;--reading-earth:#7c5b20;--reading-metal:#485d6b;--reading-water:#365d79}
:root{--reading-sanghwa:#855831;--reading-standard:#695e4a}
body{color:var(--reading-ink);line-height:1.7!important}
main h1,main h2,main h3,main h4,main summary{overflow-wrap:anywhere;word-break:keep-all}
main h2{color:var(--reading-ink)}
main h3,main h4{color:var(--reading-gold)}
main h3{margin-block:16px 8px;line-height:1.5!important}
main h4{margin-block:14px 6px;line-height:1.5!important}
main p,main li,main dd{line-height:1.7!important}
.reading-copy{margin-block:10px!important}
.reading-sentence{display:block}
.reading-sentence+.reading-sentence{margin-top:4px}
.reading-copy strong,.reading-facts strong{font-weight:800;color:var(--reading-ink)}
.reading-facts{list-style:none;margin:6px 0 12px;padding:0}
.reading-facts li{margin:4px 0;padding:0;line-height:1.65}
.reading-facts b{color:var(--reading-gold);font-weight:700;margin-right:6px}
.reading-facts .reading-ratio{font-variant-numeric:tabular-nums}
/* Home: remove empty card height and align the illustrated chapters. */
.nasabu-home .home-chapter{min-height:0;padding:20px!important}
.nasabu-home .home-chapter .eyebrow{margin-bottom:6px}
.nasabu-home .home-chapter .ux-home-reading{margin-top:10px}
.nasabu-home .home-chapter .ux-home-body{padding-top:8px}
.nasabu-home .home-chapter .section-top h2{margin-bottom:8px!important}
.nasabu-home .home-chapters{gap:14px}
.nasabu-home .home-chapters:not(:has(.ux-home-reading[open])){grid-auto-rows:auto}
.nasabu-home .home-disclosure-body{padding-top:8px}
.nasabu-home #today-nasabu{padding-block:22px 16px;gap:24px}
.nasabu-home .lesson-line{padding-block:12px}
.nasabu-home #ask-nasabu{padding-block:22px!important}
.nasabu-home .home-participation{padding:22px}
.nasabu-home .participation-steps{margin-block:14px 12px;gap:12px}
.nasabu-home .participation-actions{margin-top:12px}
.nasabu-home .sabu-end{padding-block:16px}
.nasabu-home #faces .face-detail-copy h3{color:var(--reading-wood)}
.nasabu-home #faces:has(.face-tabs [data-face=fire][aria-selected=true]) .face-detail-copy h3{color:var(--reading-fire)}
.nasabu-home #faces:has(.face-tabs [data-face=earth][aria-selected=true]) .face-detail-copy h3{color:var(--reading-earth)}
.nasabu-home #faces:has(.face-tabs [data-face=metal][aria-selected=true]) .face-detail-copy h3{color:var(--reading-metal)}
.nasabu-home #faces:has(.face-tabs [data-face=water][aria-selected=true]) .face-detail-copy h3{color:var(--reading-water)}
/* Encyclopedia: type colour marks hierarchy, not every word. */
.ency-layout{gap:0 32px}
.ency-intro{padding-block:28px 22px;margin-bottom:20px}
.ency-title{margin-bottom:10px;gap:16px}
.ency-title h2,.ency-reading h3,.ency-reading h4{color:var(--type-color,var(--reading-gold))}
.ency-reading summary{color:var(--type-color,var(--reading-gold))}
.ency-reading summary,.ency-library summary{padding-block:12px;min-height:48px;font-size:18px!important;line-height:1.6!important}
.ency-reading .ency-hook{font-size:20px;line-height:1.55!important;margin-block:12px 10px;font-weight:800}
.ency-reading #personality{padding-bottom:14px}
.ency-reading p{margin-block:10px}
.ency-detail{padding-bottom:12px}
.ency-detail h4{font-size:18px!important;margin-block:14px 6px}
.ency-taste{padding:16px 20px;margin-bottom:16px}
.ency-taste h3{color:var(--reading-gold);font-size:16px!important;margin-top:0}
.ency-taste p{font-size:16px!important;line-height:1.65!important}
.ency-dl dt{color:var(--reading-gold);font-weight:800;margin-top:14px}
.ency-dl dd{margin:4px 0 12px}
.ency-library{padding-top:20px}
.ency-library>p{margin-bottom:12px}
.ency-compounds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;list-style:none;padding:0}
.ency-compounds li{margin:0;padding:8px 0;border-bottom:1px solid var(--reading-line)}
.ency-compounds b{color:var(--reading-gold)}
.ency-bottom{margin-top:20px;padding-block:16px}
.ency-footer{padding-block:16px 22px}
.ency-note,.ency-context{color:#46535d!important;font-size:16px!important;line-height:1.65!important}
.ency-types button[data-type=wood]{--choice-color:var(--reading-wood)}
.ency-types button[data-type=fire]{--choice-color:var(--reading-fire)}
.ency-types button[data-type=earth]{--choice-color:var(--reading-earth)}
.ency-types button[data-type=metal]{--choice-color:var(--reading-metal)}
.ency-types button[data-type=water]{--choice-color:var(--reading-water)}
.ency-types button[aria-pressed=true]{background:var(--choice-color,#21363c);border-color:var(--choice-color,#21363c);color:#fff}
/* Result cards and their folds keep the existing relationship renderer. */
body:has(.room-navigation)>main{padding-block:20px 32px}
.room-hero{padding:22px 20px;margin-bottom:20px}
.room-exits{gap:14px;margin-top:20px;padding-top:14px}
.relation-card{padding:22px;margin-bottom:14px}
.relation-card h2{margin-bottom:12px}
.result-details{padding-block:12px!important}
.result-details>.detail-label{margin-bottom:4px!important}
.result-details .card-detail{margin-top:0;padding-top:0}
.result-details .card-detail>summary{padding-block:12px;min-height:48px;font-size:18px!important;line-height:1.6!important;color:var(--reading-gold)}
.result-details .detail-body{padding-top:4px}
.result-details h3{font-size:20px!important;margin-block:14px 6px}
.result-details .detail-body p{margin-block:8px}
.result-details .detail-body ul{padding-left:22px;margin-block:10px}
.result-details .detail-body li+li{margin-top:8px}
.pair{padding-block:18px;gap:24px}
.actions{gap:10px;padding-block:10px 16px}
/* Information, saju, participation and footer share the same spacing. */
.info-main{padding-block:30px 40px;min-height:0}
.info-main h1{margin-bottom:12px}
.info-main .info-lead{margin:10px 0 22px;font-size:18px!important;line-height:1.7!important}
.info-main section+section{margin-top:24px}
.info-main h2{color:var(--reading-gold);margin-bottom:8px!important}
.info-main .privacy-items div{padding-block:12px}
.info-main .privacy-items dt{color:var(--reading-gold)}
.info-main .info-note{padding:16px;margin-top:18px}
.saju-guide-brand{margin-bottom:20px;gap:14px}
.saju-guide h2{font-size:24px!important;line-height:1.5!important}
.saju-guide-actions{gap:10px;margin-block:14px}
.saju-guide-actions .saju-guide-link,.saju-guide-actions button{padding:12px 16px;min-height:48px;font-size:18px!important}
.saju-reviews{padding-block:16px!important}
.saju-review-grid{margin-block:12px;gap:12px}
.saju-review-grid>p{padding:14px;margin:0}
.saju-review-card{padding:16px}
.activity-panel{padding:16px!important;margin-block:12px 18px!important}
.activity-panel h2,.activity-panel h3,.activity-dialog h2,.activity-dialog h3{color:var(--reading-gold)}
.activity-dialog p,.activity-dialog li{line-height:1.65!important}
.activity-dialog .guide-line{margin-block:10px}
.activity-dialog>.activity-panel{padding:0!important;margin:0!important}
.activity-card h3{font-size:18px!important}
.activity-note{line-height:1.65!important}
.site-footer{gap:16px 32px;padding-block:24px!important}
.site-footer p{line-height:1.65!important}
.site-footer .footer-menu{padding-block:10px;gap:4px 18px}
.footer-operations dt{flex:0 0 5em;white-space:nowrap}
.footer-operations dd{min-width:0;flex:1}
.site-footer .footer-content-notice h2{color:var(--reading-gold)}
/* Light headings stay light on the established navy surfaces. */
.relation-card.first h2,.relation-card.first h3,.relation-card.first h4,
.nasabu-home .home-participation h2,.nasabu-home .home-participation h3,
.nasabu-home #cycles .cycle-columns h3,.nasabu-home .shelf h3{color:#f4d99a}
.nasabu-home #cycles .flow-list b{color:#f4d99a}
.nasabu-home #cycles .cycle-columns p{color:#f2f5f6}
.room-hero h1{color:var(--reading-ink)}
.relation-card.first .guide-quote-label{color:#f4d99a}
.nasabu-home .face-card.wood h3{color:var(--reading-wood)}
.nasabu-home .face-card.fire h3{color:var(--reading-fire)}
.nasabu-home .face-card.earth h3{color:var(--reading-earth)}
.nasabu-home .face-card.metal h3{color:var(--reading-metal)}
.nasabu-home .face-card.water h3{color:var(--reading-water)}
.nasabu-home #match .saju-next-step{margin-top:24px;padding-top:20px}
.nasabu-home #match .saju-next-step p{margin-top:12px}
.nasabu-home #match .saju-bridge{padding:18px}
.nasabu-home #match .saju-roles{gap:12px;margin-top:16px}
.nasabu-home #match .saju-roles>div{padding:18px}
.nasabu-home #match .saju-coming-card{margin-top:18px;padding:20px}
.nasabu-home #match .saju-waiting-slot,.nasabu-home #match .saju-ready-slot{padding:18px;margin-top:16px}
.nasabu-home #match .match-retry{padding:20px;margin-top:20px}
@media(max-width:760px){
 .nasabu-home .home-chapter{padding:16px!important}
 .nasabu-home .home-chapters{gap:10px}
 .nasabu-home #today-nasabu{gap:12px;padding-block:18px 14px}
 .nasabu-home .home-participation{padding:18px 16px}
 .nasabu-home #home-quick-start{padding-bottom:18px}
 .ency-layout{padding-inline:18px}
 .ency-intro{padding-block:18px 14px;margin-bottom:14px}
 .ency-intro .ency-context{font-size:16px!important}
 .ency-index{padding-bottom:14px}
 .ency-types{margin-bottom:12px}
 .ency-types button,.ency-topics button{min-height:44px;font-size:16px!important}
 .ency-topics{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
 .ency-compounds{grid-template-columns:1fr}
 .ency-reading summary,.ency-library summary{min-height:48px;padding-block:12px}
 .ency-taste{padding:14px 16px}
 .ency-library{padding-top:16px}
 .info-main{padding-block:24px 30px}
 .info-main section+section{margin-top:20px}
 .relation-card{padding:18px 16px}
 .room-hero{padding:18px 16px}
 .pair{gap:16px;padding-block:14px}
 .saju-guide-brand{margin-bottom:16px}
 .site-footer{gap:16px;padding-block:20px!important}
}
