/* UNAGI JAPAN 0.4 — one editorial system, twenty complete editions.
   No font downloads, scroll hijacking or modifications to the preserved reader. */
:root{--font-body:system-ui,-apple-system,BlinkMacSystemFont,"Noto Sans CJK JP","Segoe UI",sans-serif;--inner-serif:"Noto Serif CJK JP","Yu Mincho",Georgia,serif;--i18n-ink:#17332c;--i18n-rule:#c8c5b9}
html{scroll-padding-top:7rem}body{font-family:var(--font-body)}[hidden]{display:none!important}
:where(a,button,input,summary):focus-visible{outline:2px solid #9c392c;outline-offset:5px}
.site-header{gap:clamp(.7rem,1.8vw,2rem)}.brand{min-width:0;max-width:38%;flex-shrink:1}.brand-lockup{min-width:0}.brand-caption{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:26rem}
.primary-nav{min-width:0;gap:clamp(1rem,2vw,2.4rem)}.primary-nav a{white-space:nowrap;font-size:.79rem;letter-spacing:.02em}.header-tools{flex-shrink:0}.icon-button,.language-menu>summary,.mobile-menu>summary{min-width:44px;min-height:44px}
.language-menu{position:relative}.language-menu>summary{gap:.6rem;display:flex;align-items:center;justify-content:center;cursor:pointer;list-style:none}.language-menu>summary::-webkit-details-marker{display:none}
.language-panel{position:absolute;inset-block-start:calc(100% + 1rem);inset-inline-end:0;width:min(29rem,calc(100vw - 32px));max-height:calc(100dvh - 110px);overflow-y:auto;overscroll-behavior:contain;padding:1.5rem;background:#f5f1e8;color:#17332c;border:1px solid #b9bbaa;box-shadow:0 22px 64px #17332c25;z-index:120;text-align:start}
.language-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;font:500 1.25rem/1.5 var(--font-body);margin:0}.language-heading>span{font:400 .75rem/1 var(--font-body);border:1px solid #a9af9d;border-radius:50%;width:32px;height:32px;display:grid;place-items:center}.language-context{font-size:.78rem;line-height:1.65;max-width:34em;margin:.7rem 0 1.2rem;color:#54625a}
.language-search{display:grid;gap:.4rem;font-size:.75rem;margin:0 0 1rem}.language-search input{width:100%;min-width:0;min-height:44px;border:1px solid #899584;background:#fffdf7;color:inherit;padding:.6rem .8rem;font:inherit;font-size:1rem;border-radius:0;appearance:none}.language-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px}
.language-grid a{min-width:0;min-height:46px;padding:.6rem .55rem;border-block-end:1px solid #d4d4c6;display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:.91rem;text-decoration:none}.language-grid a[aria-current=page]{background:#e3e9dc;color:#183c2e;font-weight:600}.language-grid a:hover{background:#eae9de}.language-grid a>span{color:#66775e;font-size:.8rem;flex-shrink:0}.language-grid bdi{overflow-wrap:anywhere}.language-panel [role=status]{font-size:.85rem}
:where(h1,h2,h3,p,a,button,summary,figcaption){overflow-wrap:break-word}.eyebrow{overflow-wrap:anywhere}.text-link{min-height:44px}.solid-link{min-height:48px;line-height:1.5;max-width:100%}.solid-link svg,.text-link svg,.footer-nav svg{flex-shrink:0}
.home-hero-copy h1{font-size:clamp(2.4rem,4.8vw,5rem);line-height:1.38}.home-hero-copy p{max-width:40em}.hero-intro{line-height:1.9}.card-copy{min-width:0}.story-card h3{font-size:clamp(1.15rem,1.9vw,1.65rem);line-height:1.6}.card-copy p{line-height:1.8}.card-meta{flex-wrap:wrap;row-gap:.4rem}.related-grid .card-copy h3{font-size:clamp(1.08rem,1.6vw,1.35rem)}
.article-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem 1rem;margin-block:0 2.8rem;font-size:.72rem;color:#546258}.article-breadcrumb a{display:inline-flex;min-height:44px;align-items:center;text-decoration:none;border-block-end:1px solid transparent}.article-breadcrumb a:hover{border-color:currentColor}.article-breadcrumb>[aria-current]{font-weight:500;color:#284837}
.article-hero{padding-block-start:2rem}.article-hero h1{font-size:clamp(2rem,3.7vw,4rem);line-height:1.45;letter-spacing:-.02em;text-wrap:pretty}.article-subtitle{line-height:1.85;max-width:40em}.article-author{row-gap:.7rem;flex-wrap:wrap}.article-author>span:first-child{max-width:100%;overflow-wrap:break-word}.article-art{align-self:center}.article-start-actions{flex-wrap:wrap}.article-key-points li{line-height:1.75}.article-tools{flex-wrap:wrap;row-gap:.75rem}.copy-link{white-space:normal;text-align:start}
.reading-prose{line-height:1.95;text-align:start}.reading-prose p{hyphens:auto}.reading-prose>h2{font-size:clamp(1.35rem,2vw,1.85rem);line-height:1.6}.reading-prose [id]{scroll-margin-top:calc(var(--rg-offset,6rem) + 1.5rem)}.section-sources{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .65rem!important}.section-sources a{min-width:44px;min-height:44px;display:inline-grid;place-items:center;border:1px solid #c7c6b7!important;border-radius:0;text-decoration:none!important;background:#eeebdf}.section-sources a:hover{background:#e1e5d6}.source-context{line-height:1.8}.source-dialog h2{font-size:clamp(1.3rem,2.3vw,1.8rem);line-height:1.6}.source-kind{font-size:.76rem;color:#62685b;margin:.5rem 0 1rem}.source-dialog .solid-link{justify-content:space-between;gap:1rem}.source-dialog .solid-link small{display:inline;font-size:.65rem}.source-dialog .solid-link>span{font-size:.8rem}
.reading-guide__open{text-align:start}.reading-guide__chapter,.reading-guide__value{direction:ltr;unicode-bidi:isolate}.reading-guide__back{white-space:normal}.reading-guide nav a{line-height:1.7}.reading-guide__dialog h2{max-width:75%;overflow-wrap:anywhere}.reading-guide__dialog-head{gap:1rem}.reading-guide__dialog-head>div{flex:1;min-width:0}.dock-settings{position:relative}.article-sources li>a{overflow-wrap:anywhere}.article-sources li>span{font-size:.75rem}.article-editorial-disclosure{gap:1rem}.article-editorial-disclosure>div{min-width:0}
.search-dialog{max-height:88dvh;overflow:auto}.search-dialog h2,.utility-dialog h2{font-size:clamp(1.4rem,2.5vw,2rem);line-height:1.6}.query-suggestions{align-items:flex-start}.query-suggestions button{min-height:44px;white-space:normal;text-align:start;line-height:1.65;max-width:100%}.search-result{min-width:0}.search-result-subject{line-height:1.6}.search-result-excerpt{line-height:1.85;overflow-wrap:anywhere}.search-input-row input,.library-input-row input{min-width:0;font-size:1rem}.story-filters{flex-wrap:wrap}.story-filters button{min-height:44px;line-height:1.4;white-space:normal}.setting-options button{min-height:72px;line-height:1.5}.motion-option{align-items:flex-start;gap:1rem}.motion-option input{margin-block-start:.35rem}.settings-note{line-height:1.8}.utility-dialog .solid-link{white-space:normal}.error-page h1{font-size:clamp(2rem,4vw,4rem);line-height:1.5}.error-suggestions a{min-height:52px}
.about-cover h1{font-size:clamp(2.1rem,4.2vw,4.7rem);line-height:1.45}.about-intro{line-height:1.9}.policy-row{align-items:start;gap:clamp(1rem,3vw,3rem)}.policy-row h3{font-size:clamp(1.35rem,2vw,1.9rem);line-height:1.55}.policy-row p,.about-details p{line-height:1.95}
.source-cover{padding-block:3.5rem 4rem;border-block-end:1px solid var(--i18n-rule)}.source-cover .back-link{display:inline-flex;min-height:44px;align-items:center;font-size:.8rem;margin-block-end:2rem}.source-cover h1{margin:.5rem 0 1.5rem;font:400 clamp(2.3rem,5vw,5rem)/1.35 var(--inner-serif);max-width:18em;letter-spacing:-.035em}.source-cover .eyebrow{color:#795d36}.source-intro{font-size:1.05rem;line-height:1.95;max-width:46em}.source-language-note{display:inline-block;border:1px solid #b9c2ac;padding:.55rem .8rem;font-size:.8rem;color:#41583f;margin:1.4rem 0 0}.source-library{padding-block:1rem 4rem}.source-record{display:grid;grid-template-columns:4rem minmax(0,1fr);gap:2rem;border-block-end:1px solid var(--i18n-rule);padding-block:2.5rem;scroll-margin-top:7rem}.source-folio{font:400 2rem/1.5 Georgia,serif;color:#8b7855}.source-record h2{font:400 clamp(1.3rem,2.4vw,2rem)/1.6 var(--inner-serif);margin:.5rem 0 1rem;max-width:34em}.source-record .eyebrow{font-size:.7rem;letter-spacing:.06em;color:#53624e}.source-used{display:grid;grid-template-columns:9rem minmax(0,1fr);gap:.6rem 1.2rem;margin-block-start:1.8rem;padding:1rem 1.4rem;background:#e9ece1}.source-used>span{font-size:.75rem;color:#526348;grid-row:1/5;align-self:center}.source-used>a{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:44px;font-size:.88rem;line-height:1.7;text-decoration:none}.source-used a svg{width:18px;flex-shrink:0}.source-used>a:hover{text-decoration:underline}.source-end{display:flex;align-items:center;gap:4rem;padding-block:1rem 5rem;justify-content:space-between}.source-end p{max-width:46rem;line-height:1.85;font-size:.9rem}.source-end .solid-link{flex-shrink:0}
:lang(ar){--font-body:"Noto Sans Arabic",Tahoma,system-ui,sans-serif;--inner-serif:"Noto Naskh Arabic","Noto Sans Arabic",serif}html:lang(ar) :is(h1,h2,h3,p,.eyebrow,.card-meta,.brand-caption){letter-spacing:0!important}html:lang(ar) .reading-prose{line-height:2.1}html:lang(ar) .reading-prose>h2{line-height:1.8}html:lang(hi){--font-body:"Noto Sans Devanagari",system-ui,sans-serif;--inner-serif:"Noto Serif Devanagari",serif}html:lang(th){--font-body:"Noto Sans Thai",system-ui,sans-serif;--inner-serif:"Noto Serif Thai",serif}html:lang(hi) :is(h1,h2,h3,p,.eyebrow),html:lang(th) :is(h1,h2,h3,p,.eyebrow){letter-spacing:0;line-height:1.9}html:lang(zh-CN){--font-body:"Noto Sans CJK SC",system-ui,sans-serif;--inner-serif:"Noto Serif CJK SC",serif}html:lang(zh-TW){--font-body:"Noto Sans CJK TC",system-ui,sans-serif;--inner-serif:"Noto Serif CJK TC",serif}html:lang(ko){--font-body:"Noto Sans CJK KR",system-ui,sans-serif;--inner-serif:"Noto Serif CJK KR",serif}html:lang(ko) :is(h1,h2,h3,p){word-break:keep-all;overflow-wrap:break-word}
[dir=rtl] .reading-guide__water{transform:scaleX(-1)}[dir=rtl] .reading-guide nav a{border-left:0;border-right:1px solid var(--rg-line);padding:.85rem .75rem .85rem .5rem}[dir=rtl] .reading-guide nav a[aria-current=location]{border-right:2px solid var(--rg-gold);padding-right:calc(.75rem - 1px)}[dir=rtl] .reading-guide__unit{margin-left:0;margin-inline-start:.15rem}[dir=rtl] .reading-guide__value{text-align:end}[dir=rtl] .article-tools{text-align:start}[dir=rtl] .source-used>a svg,[dir=rtl] .text-link>svg,[dir=rtl] .solid-link>svg,[dir=rtl] .footer-nav svg{transform:scaleX(-1)}[dir=rtl] :is(.copy-link,.search-result,.search-result-excerpt,.library-form label,.setting-options button){text-align:start}[dir=rtl] .brand-name,[dir=rtl] .footer-wordmark{font-family:Georgia,serif;letter-spacing:-.06em!important}[dir=rtl] .article-art svg{direction:ltr}
@media(max-width:1199px){.primary-nav{display:none}.mobile-menu{display:block}.brand{max-width:65%}.brand-caption{max-width:22rem}.tool-label{display:none}.source-record{grid-template-columns:3rem 1fr;gap:1.5rem}}
@media(max-width:767px){.brand{max-width:calc(100% - 150px)}.brand-name{font-size:1.05rem!important;white-space:nowrap}.brand-caption{display:none}.header-tools{gap:3px}.site-header{padding-inline:16px;gap:8px}.brand-seal{width:29px;height:35px;font-size:1.35rem}.brand{gap:.55rem}.language-panel{position:fixed;inset-block-start:80px;inset-inline:16px;width:auto;max-height:calc(100dvh - 96px);padding:1.15rem}.language-heading{font-size:1.1rem}.language-context{margin:.6rem 0 .9rem}.language-grid a{font-size:.85rem}.article-breadcrumb{margin-block-end:1.5rem;gap:.25rem .65rem}.article-hero{padding-block-start:1.25rem}.article-hero h1{font-size:clamp(1.85rem,7.3vw,2.7rem);line-height:1.5}.article-hero-grid{gap:2rem}.article-subtitle{font-size:.95rem}.article-author{font-size:.72rem;gap:.65rem 1.2rem}.article-entry{margin-block-start:1.6rem}.article-key-points{gap:.75rem}.article-key-points ul{padding-inline-start:1.2rem}.article-key-points li{font-size:.88rem}.article-tools button{min-height:48px}.reading-prose{font-size:1.04rem;line-height:1.95}.reading-guide__current{font-size:.68rem}.reading-guide__dock{column-gap:.55rem}.reading-guide__dialog{padding:1.3rem}.reading-guide__dialog-head{flex-wrap:nowrap}.reading-guide__dialog-head button{white-space:normal;line-height:1.4}.source-cover{padding-block:2rem 2.5rem}.source-cover h1{font-size:2.25rem}.source-intro{font-size:1rem}.source-cover .back-link{margin-bottom:1.25rem}.source-record{grid-template-columns:2rem minmax(0,1fr);gap:1rem;padding-block:2rem}.source-folio{font-size:1.3rem}.source-record h2{font-size:1.25rem}.source-used{grid-template-columns:1fr;padding:.8rem 1rem;margin-top:1.2rem;gap:.6rem}.source-used>span{grid-row:auto}.source-used>a{font-size:.85rem}.source-end{flex-direction:column;align-items:flex-start;gap:1rem;padding-bottom:3.5rem}.source-end .solid-link{width:100%}.source-dialog .solid-link{flex-wrap:wrap}.about-cover h1{font-size:clamp(2rem,8vw,3rem)}.about-intro{font-size:1rem}.policy-row{gap:.75rem 1rem}.policy-row h3{font-size:1.4rem}.policy-row p,.about-details p{font-size:.96rem}.search-dialog,.utility-dialog{width:calc(100% - 24px);padding:1.3rem;max-height:88dvh}.search-dialog h2{font-size:1.4rem}.query-suggestions{gap:.4rem}.query-suggestions button{font-size:.76rem;padding:.55rem .7rem}.search-result-subject{font-size:1rem}.search-result-excerpt{font-size:.82rem}.settings-note,.motion-option>span>span{font-size:.82rem}.footer-top{gap:2.3rem}.footer-statement{font-size:clamp(1.6rem,7vw,2.5rem);line-height:1.5}.footer-bottom{row-gap:1rem;flex-wrap:wrap}.footer-bottom>span{max-width:60%;line-height:1.6}.error-suggestions{gap:1rem}}
@media(max-width:359px){.brand-seal{display:none}.brand{max-width:calc(100% - 143px)}.site-header{padding-inline:12px}.header-tools{gap:0}.brand-name{font-size:.97rem!important}.language-grid{gap:3px 8px}.source-record{gap:.7rem;grid-template-columns:1.55rem 1fr}.article-start-actions{align-items:stretch}.article-start-actions .solid-link{flex:1}.article-key-points{grid-template-columns:1fr}.reading-guide__chapter{font-size:.58rem}.dock-settings{font-size:.7rem!important}.source-used{padding:.6rem .7rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{scroll-behavior:auto!important}.language-panel{animation:none;transition:none}}
@media(forced-colors:active){.language-panel,.source-used,.section-sources a{background:Canvas;color:CanvasText}.language-grid a[aria-current=page]{background:Highlight;color:HighlightText}.source-folio{color:CanvasText}:where(a,button,input,summary):focus-visible{outline-color:Highlight}}
@media print{.article-breadcrumb,.site-footer,.site-header,.article-start-actions,.source-back,.article-tools,.after-story{display:none!important}.reading-prose{font-size:11pt;line-height:1.6}.source-library,.source-record{break-inside:avoid}.article-sources a::after{content:' (' attr(href) ')';font-size:8pt}}
/* Review round 2: balanced headings, quiet summaries, distinct action rows. */
:where(.library-cover,.article-hero,.about-cover,.source-cover) h1{text-wrap:balance}
.quick-start .quick-subject{min-width:0;line-height:1.7;white-space:normal}.quick-start a{margin:0!important;line-height:1.65}.quick-start+.text-link{display:inline-flex;margin-block-start:1.3rem!important}.library-grid .card-copy>p,.story-grid .card-copy>p{font-size:.9rem;line-height:1.85;color:#566050}.library-grid .card-copy h3{font-size:1.25rem;font-weight:500;line-height:1.6}.article-breadcrumb{display:flex!important}.source-record .text-link{border-bottom:1px solid currentColor}.quick-start .quick-time{white-space:nowrap}
@media(max-width:767px){.library-grid .card-copy>p,.story-grid .card-copy>p{font-size:.83rem;line-height:1.8}.library-grid .card-copy h3{font-size:1.07rem}.library-cover h1{max-width:13em}.quick-start{width:100%;margin-block-end:0}.quick-start>a{min-height:58px}.intro-actions{display:flex;flex-direction:column;align-items:stretch;gap:1rem}html:lang(ja) .library-cover h1{max-width:10em}.reading-guide__dialog-head h2{max-width:100%}}
/* Review round 3: long compound words must not enlarge grid tracks. */
.source-record>div,.source-used,.perspective,.perspective>*{min-width:0}.source-record h2{overflow-wrap:anywhere;hyphens:auto}.source-used>a{min-width:0;overflow-wrap:anywhere}
@media(max-width:1199px){.source-record{grid-template-columns:3rem minmax(0,1fr)}}
@media(max-width:767px){.source-record{grid-template-columns:2rem minmax(0,1fr)}.perspective{grid-template-columns:24px minmax(0,1fr)!important;gap:.75rem 1.1rem!important;align-items:start}.perspective>.folio-marker{grid-column:1;grid-row:1}.perspective>h3{grid-column:2;grid-row:1;font-size:1.65rem;line-height:1.45}.perspective>p{grid-column:2;grid-row:2;width:auto;max-width:100%}.perspective>.perspective-more{grid-column:2;grid-row:3;justify-content:space-between;min-height:44px;margin-top:.3rem}}
@media(max-width:359px){.source-record{grid-template-columns:1.55rem minmax(0,1fr)}}

/* Round four: keep intrinsic Cyrillic word widths inside the enlarged mobile footer. */
.footer-top{grid-template-columns:minmax(0,1fr) minmax(0,340px)}.footer-top>*{min-width:0}.footer-statement,.footer-nav a{overflow-wrap:anywhere;hyphens:auto}
@media(max-width:1279px){.footer-top{grid-template-columns:minmax(0,1fr) minmax(0,290px)}}
@media(max-width:767px){.footer-top{grid-template-columns:minmax(0,1fr)}}

/* Enlarged text must reflow rather than determine the intrinsic grid width. */
.article-hero-grid>div,.article-hero-grid>figure{min-width:0}.article-start-actions{flex-wrap:wrap}.article-start-actions>*{max-width:100%;white-space:normal}.article-author>span{max-width:100%;overflow-wrap:anywhere}
