@font-face{font-family:HgSong;src:url(assets/song.woff)}@font-face{font-family:HgSong;src:url(assets/song-bold.woff);font-weight:700}*{box-sizing:border-box}body{margin:0;background:#f5efe3 url(assets/paper.svg);color:#302c24;font-family:HgSong,'Noto Serif TC',serif}button,input,select{font:inherit;color:inherit}button,select{cursor:pointer}button{border:1px solid #cbb78f;background:#fffaf0;border-radius:5px;padding:11px 17px;min-height:44px}button:hover{background:#ede1ca}button:disabled{opacity:.4;cursor:default}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #a57329;outline-offset:3px}.hg-main{max-width:1500px;margin:auto;padding:32px 5% 58px}.hg-crumb{font-size:14px;color:#978263}.hg-crumb a{text-decoration:none}.hg-heading{display:flex;justify-content:space-between;align-items:center;margin:30px 0}.hg-eyebrow{color:#997b48;font-size:13px;letter-spacing:.18em}h1{font-size:clamp(32px,4vw,52px);margin:9px 0 14px;letter-spacing:.08em}.hg-heading p:last-child{font-size:19px;color:#796d5c}.hg-seal{border:1px solid #a46244;color:#a46244;font-size:19px;line-height:1.6;padding:9px;outline:1px solid #b08b6c;outline-offset:4px}#hgSettings{display:flex;gap:16px;align-items:end;padding:23px;background:#fffcf580;border:1px solid #ddcbaa;border-radius:9px;margin-bottom:25px}#hgSettings label{display:grid;gap:9px;font-size:14px;color:#7d6a4c}.hg-search{flex:1}#hgSettings input,#hgSettings select{width:100%;padding:12px;background:#fffcf5;border:1px solid #cbb78f;border-radius:5px;min-height:46px;font-size:16px}.hg-primary{background:#88632d;color:#fff8e9}.hg-primary:hover{background:#6b4a21}#hgError{color:#9c3e23}.hg-chart{border:1px solid #cdb88e;border-radius:10px;overflow:hidden;background:#f8f5eaf2;box-shadow:0 7px 24px #6154330a}.hg-toolbar{padding:19px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #d9cdb6;gap:15px}.hg-toolbar strong{font-size:22px}.hg-toolbar span{display:block;font-size:13px;color:#8b795d;margin-top:7px}.hg-toolbar>div:last-child{display:flex;gap:8px}.hg-legend{display:flex;gap:22px;align-items:center;padding:17px 24px;color:#7e755f;font-size:13px}.hg-legend i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#53665d;margin-right:7px}.hg-legend span:nth-child(2) i{background:#a64e32}.hg-legend span:nth-child(3) i{background:#b59451}.hg-legend small{margin-left:auto}#hgViewport{height:670px;overflow:auto;overscroll-behavior:contain;background:radial-gradient(ellipse at center,#fffaf0aa,transparent 65%),linear-gradient(#e6e9df88,#fbf7eb 48%,#f1eadb88);scrollbar-color:#b39e74 #ece5d6}#hgSvg{display:block;margin:auto;max-width:none;overflow:visible}.hg-link{fill:none;stroke:#64796d;stroke-width:1.6;opacity:.65}.hg-link.child{stroke:#b19b6c}.hg-link.adopted{stroke-dasharray:5 5}.hg-person{cursor:pointer;outline:none}.hg-person rect{fill:#fffcf5;stroke:#bba981;stroke-width:1}.hg-person:hover rect,.hg-person:focus rect{stroke:#8c6428;stroke-width:2;fill:#fff0cc}.hg-person text{fill:#342f27;font-size:16px;font-family:HgSong,serif}.hg-person .hg-meta{font-size:11px;fill:#8a795d}.hg-person.center rect{fill:#9e452e;stroke:#9e452e}.hg-person.center text{fill:#fff4df}.hg-person.center .hg-meta{fill:#efd0ba}.hg-dot{fill:#a88745}.hg-axis{font:12px HgSong,serif;fill:#a28e68;letter-spacing:3px}.hg-caption{padding:15px 24px;display:flex;justify-content:space-between;font-size:13px;color:#8b795c;border-top:1px solid #dfd1b6;gap:12px}.hg-note{margin-top:32px;max-width:1000px}.hg-note h2{font-size:24px}.hg-note p{font-size:14px;line-height:2;color:#84745d}.hg-note a{font-size:15px;color:#8b672e;text-underline-offset:5px}dialog{width:min(620px,92vw);max-height:88dvh;overflow:auto;border:1px solid #c6ab78;border-radius:10px;background:#fff9ee;padding:30px;color:#352d22}dialog::backdrop{background:#142d2bc4}#hgClose{float:right;font-size:24px;padding:0;width:44px}dialog h2{margin-top:10px;font-size:30px}dialog p{line-height:1.9}dialog img{width:100%;max-height:350px;object-fit:contain}dialog a{display:inline-block;margin:8px 15px 8px 0;color:#946c31}dialog .hg-muted{font-size:14px;color:#8b795e}@media(max-width:700px){.hg-main{padding:22px 5% 40px}.hg-heading{margin:22px 0}.hg-heading p:last-child{font-size:16px;line-height:1.8}.hg-seal{display:none}#hgSettings{display:grid;grid-template-columns:1fr 1fr;padding:17px;gap:15px}.hg-search{grid-column:1/-1}.hg-primary{grid-column:1/-1}.hg-toolbar{align-items:start;flex-direction:column;padding:17px}.hg-toolbar>div:last-child{width:100%}.hg-toolbar button{flex:1;padding:9px 5px;font-size:14px}.hg-legend{padding:15px 17px;gap:17px;flex-wrap:wrap}.hg-legend small{width:100%;margin:0}#hgViewport{height:620px}.hg-caption{padding:15px 17px;flex-direction:column;font-size:12px}.hg-note h2{font-size:21px}}

@media(max-width:700px){.hg-toolbar>div:last-child{flex-wrap:wrap}.hg-toolbar button{flex:1 1 40%}}
