.disease-intro,.disease-title{border-bottom:2px solid var(--brand);padding:18px 0 24px}
.disease-intro{display:flex;justify-content:space-between;align-items:center;gap:28px}
.disease-intro>div{max-width:44em}
.disease-intro img{width:clamp(110px,18vw,190px);height:auto;border-radius:14px}
.disease-intro h1,.disease-title h1{font-family:var(--round);font-size:clamp(1.7rem,4vw,2.65rem);line-height:1.35;letter-spacing:.01em}
.disease-intro p,.disease-title p,.disease-block p{line-height:1.95}
.disease-intro .disease-count{margin:.8rem 0 0;color:var(--accent-ink);font-weight:700}
.disease-jumps,.disease-related ul{display:flex;flex-wrap:wrap;gap:8px 10px;padding:14px 0}
.disease-jumps a,.disease-related li a{display:inline-block;padding:8px 14px;border-radius:24px;background:var(--warm);color:var(--accent-ink);font-weight:700;text-decoration:none}
.disease-group{margin:34px 0;scroll-margin-top:calc(var(--site-chrome-height) + 16px)}
.disease-group h2,.disease-detail h2{font-size:clamp(1.18rem,2vw,1.45rem);font-family:var(--round);margin:0 0 10px}
.disease-group h2 small{font:normal .85rem sans-serif;color:var(--muted);margin-left:8px}
.disease-group ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:0 24px;list-style:none;margin:0;padding:0}
.disease-group li{border-bottom:1px solid var(--line)}
.disease-group li a{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:54px;padding:10px 4px;text-decoration:none;line-height:1.55;color:var(--ink);font-weight:600}
.disease-group li a span{color:var(--accent);font-size:1.5rem}
.disease-group a:hover,.disease-jumps a:hover,.disease-related a:hover,.disease-refs a:hover{text-decoration:underline}
.disease-detail{max-width:800px;margin:0 auto 40px;overflow-wrap:anywhere}
.disease-title{padding-top:8px}
.disease-title p{margin:10px 0 0}
.disease-block{margin:28px 0}
.disease-block h2{border-left:4px solid var(--brand);padding-left:12px}
.disease-block p{margin:8px 0;white-space:pre-line}
.disease-related,.disease-refs{padding:18px 0;border-top:1px solid var(--line)}
.disease-related ul{list-style:none;margin:0;padding:0}
.disease-refs ul{padding-left:1.4em}.disease-refs li{margin:.55rem 0}.disease-refs a{text-decoration:underline;color:var(--accent-ink)}
.disease-refs p{color:var(--muted);font-size:.86rem}
@media(max-width:560px){.disease-intro{align-items:flex-start;gap:10px}.disease-intro img{width:78px;margin-top:10px}.disease-intro>div{flex:1}.disease-group{margin:24px 0}.disease-block{margin:22px 0}}

.disease-related li a{display:flex;align-items:center;gap:9px;padding:4px 12px 4px 4px;border:1px solid var(--line);background:white;border-radius:10px}
.disease-related li img{width:64px;height:48px;object-fit:cover;border-radius:6px}
.disease-backlinks{margin:22px 0;padding:14px 18px;border:1px solid var(--line);border-radius:12px}
.disease-backlinks summary{cursor:pointer;color:var(--accent-ink);font-weight:700}
.disease-backlinks li{margin:6px 0}

.disease-filter{margin-top:22px;max-width:36em}.disease-filter label{display:block;font-weight:700;margin-bottom:6px}
.disease-filter input{font:inherit;color:var(--ink);width:100%;padding:10px 14px;border:1px solid #b2a79c;border-radius:8px;background:#fff}
.disease-filter p{font-size:.94rem;margin:6px 0}.disease-filter p:empty{display:none}
#diseases-view [hidden]{display:none!important}

.disease-related li a:not(:has(img)){padding:10px 14px;min-height:48px}

.disease-detail{max-width:980px}
.disease-title p,.disease-block p,.test-case>p,.test-case details p{max-width:52em}
.test-visual,.test-guide,.test-case{margin:30px 0}
.test-board{padding:20px;border-radius:20px;background:#fcf8ef;border:1px solid #e1d6c4;color:#253e40}
.test-board-title{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;padding:0 0 15px;border-bottom:1px solid #dbd0bd}
.test-board-title span{font-size:.88rem;color:#725d45;font-weight:700}
.test-board-title strong{font-family:var(--round);font-size:clamp(1.22rem,2.6vw,1.65rem);line-height:1.45}
.test-board-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.06fr);align-items:center;gap:22px;margin-top:15px}
.test-board-body:not(:has(.test-plate)){grid-template-columns:1fr}
.test-plate{margin:0;min-width:0}.test-plate img{display:block;width:100%;height:auto;border-radius:12px;background:white}
.test-plate figcaption{font-size:.96rem;line-height:1.65;margin:8px 2px 0}.test-plate figcaption small{display:block;margin-top:5px;font-size:.86rem}
.test-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}
.test-branch{padding:12px;border:1px solid #96cfc4;background:#e9f6f2;border-radius:12px;text-align:center;min-width:0}
.test-branch:nth-child(2){background:#fff0dc;border-color:#e4bf88}
.test-branch dt{font-weight:750;line-height:1.35;overflow-wrap:anywhere}.test-branch dd{font-size:.96rem;line-height:1.55;margin:7px 0 0}
.test-join{width:50%;height:29px;border:solid #846f50;border-width:0 2px 2px;margin:0 auto 21px;position:relative}
.test-join i{position:absolute;top:100%;height:17px;width:2px;left:50%;background:#846f50}
.test-join i:after{content:"";position:absolute;left:-4px;bottom:-1px;width:8px;height:8px;border:solid #846f50;border-width:0 2px 2px 0;transform:rotate(45deg)}
.test-interpret{padding:14px 16px;background:#fff;border:2px solid #467a70;border-radius:12px}
.test-interpret h3{font:700 .93rem var(--round);color:#31695d;margin:0 0 5px}.test-interpret p{font-size:1.02rem;line-height:1.65;margin:0}
.test-map-links{display:flex;gap:8px 18px;flex-wrap:wrap;justify-content:flex-end;margin:8px 0 0;font-size:.94rem}
.test-map-links a,.test-case summary{color:var(--accent-ink);text-decoration:underline;text-underline-offset:3px}
.test-entries{border-top:2px solid #b6cfc3}
.test-entry{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(0,2.9fr);grid-template-rows:auto 1fr;gap:5px 22px;padding:17px 4px;border-bottom:1px solid var(--line);align-items:start}
.test-entry h3{margin:0;font-size:1.05rem;line-height:1.5}.test-entry .test-sample{margin:0;font-size:.9rem;color:#625746;line-height:1.5}
.test-entry dl{grid-column:2;grid-row:1/3;display:grid;grid-template-columns:6.5em 1fr;gap:6px 12px;margin:0;line-height:1.7}
.test-entry dt{font-weight:bold;color:#326558}.test-entry dd{margin:0;overflow-wrap:anywhere}
.test-case{background:#f6f3ec;padding:20px 22px;border-radius:14px}.test-case summary{cursor:pointer;font-weight:bold;padding:8px 0}.test-case p{line-height:1.8}
@media(max-width:760px){
 .test-board{padding:14px}.test-board-body{grid-template-columns:minmax(0,1fr);gap:16px}
 .test-plate img{width:100%;max-width:520px;margin:auto}.test-branch{padding:10px 8px}
 .test-entry{display:block;padding:16px 0}.test-entry dl{margin-top:10px;grid-template-columns:auto 1fr;gap:6px 10px}
 .test-case{padding:16px}.test-entry dt,.test-entry dd,.test-plate figcaption{font-size:.94rem}
}
@media(max-width:410px){.test-entry dl{display:block}.test-entry dt{margin:8px 0 0}.test-entry dd{margin:0}}

.test-extra{padding:12px 16px;border:1px solid var(--line);border-radius:12px}
.test-extra summary{cursor:pointer;color:var(--accent-ink);font-weight:700}
.test-extra figure{max-width:680px;margin:16px auto}.test-extra img{width:100%;height:auto;border-radius:8px}
.test-extra figcaption{line-height:1.7}.test-extra small{display:block;margin-top:6px}
